/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Updated to new warm earthy color palette */
  --primary: #3e4e50; /* Outer space - dark teal/gray */
  --secondary: #f5f5f5;
  --accent: #f8bd7f; /* Fawn - medium peach */
  --accent-light: #facfad; /* Apricot - light peach */
  --accent-dark: #f5ac72; /* Sandy brown */
  --text: #333;
  --white: #fff;
  --gray: #666;
  --light-gray: #f9f9f9;
  --border: #e0e0e0;
  --section-spacing: 100px;
  --border-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease-in-out;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--primary);
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  transition: transform 0.3s ease-in-out;
  width: 120px;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: var(--primary);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.burger-line::before,
.burger-line::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease-in-out;
}

.burger-line::before {
  top: -8px;
}

.burger-line::after {
  top: 8px;
}

.burger.active .burger-line {
  background: transparent;
}

.burger.active .burger-line::before {
  transform: rotate(45deg);
  top: 0;
}

.burger.active .burger-line::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section */
.hero {
  /* Updated gradient to use new color palette */
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: var(--section-spacing) 0;
  color: var(--white);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  /* Updated hover color to darker shade of primary */
  background: #2d3a3c;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(62, 78, 80, 0.3);
}

/* About Section */
.about {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 40px;
  margin-bottom: 25px;
  color: var(--primary);
}

.about-text p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--gray);
  line-height: 1.8;
}

/* Features Section */
.features {
  padding: var(--section-spacing) 0;
  background: var(--light-gray);
}

.text-center {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary);
}

.feature-description {
  color: var(--gray);
  line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--light-gray);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-text {
  font-size: 16px;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

/* Footer */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease-in-out;
}

.footer-links a:hover {
  /* Updated hover color to new accent */
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

.social-links a:hover {
  /* Updated hover background to new primary color */
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Page Section (for additional pages) */
.page-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
  min-height: 60vh;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: center;
}

.page-content h2 {
  font-size: 28px;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-content p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-content ul {
  margin-left: 30px;
  margin-bottom: 20px;
}

.page-content ul li {
  list-style: disc;
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.7;
}

.page-content a {
  color: var(--primary);
  text-decoration: underline;
}

.page-content a:hover {
  /* Updated hover color to darker shade of primary */
  color: #2d3a3c;
}

.update-date {
  margin-top: 40px;
  font-style: italic;
  color: var(--gray);
  text-align: center;
}

/* Contact Page */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.contact-item h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-item a {
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-item p {
  color: var(--gray);
  font-size: 14px;
}

.contact-map {
  position: sticky;
  top: 100px;
}

.contact-map img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.social-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.social-section h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}

.social-link-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: var(--light-gray);
  border-radius: var(--border-radius);
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.social-link-large:hover {
  /* Updated hover colors to new accent */
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(248, 189, 127, 0.3);
}

.social-link-large span {
  font-weight: 600;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1023px) {
  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 38px;
  }

  .section-title {
    font-size: 34px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    padding: 80px 30px 30px;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .nav-link {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-spacing: 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .page-title {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  .nav {
    width: 85%;
  }

  .contact-map {
    position: static;
  }
}
