/* ========================================
   RESET
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ========================================
   CUSTOM PROPERTIES
   ======================================== */
:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --accent: #C8A951;
  --accent-hover: #B89840;
  --dark: #1A1A1A;
  --light: #FAF9F6;
  --gray: #6B7280;
  --gray-light: #F0EFEB;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 90%;
  --container-max: 1200px;
}

/* ========================================
   BASE
   ======================================== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--light);
}

.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--dark);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.navbar__logo span {
  color: var(--accent);
}

.navbar__links {
  display: none;
  gap: 2rem;
}

.navbar__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.navbar__links a:hover {
  color: var(--accent);
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.navbar__mobile.active {
  display: flex;
}

.navbar__mobile a {
  color: var(--white);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: color 0.2s ease;
}

.navbar__mobile a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
  .navbar__toggle {
    display: none;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 26, 26, 0.7) 0%,
    rgba(27, 67, 50, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8rem 0 4rem;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200, 169, 81, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 169, 81, 0.35);
}

.hero__cta svg {
  width: 18px;
  height: 18px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero__stat {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero__stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  padding: 5rem 0;
  background: var(--light);
}

.about__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-description {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 67, 50, 0.08);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.625rem;
}

.feature-card p {
  color: var(--gray);
  font-size: 0.925rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .about {
    padding: 6rem 0;
  }
  .about__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .about {
    padding: 7rem 0;
  }
  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  padding: 4rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__logo span {
  color: var(--accent);
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col ul a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__col ul a:hover {
  color: var(--accent);
}

.footer__col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.footer__col address a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer__col address a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.825rem;
}

@media (min-width: 768px) {
  .footer {
    padding: 5rem 0 1.5rem;
  }
  .footer__grid {
    grid-template-columns: 2fr 1.5fr;
    gap: 3rem;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}
