/* ============================================================
   THE WILDFLOWER BARN — Main Stylesheet
   Colors: Sage #8B9E7A | Tan #C4A882 | Cream #F5F0E8
           Dark #2C2416 | Accent #D4956A
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  color: #2C2416;
  background: #F5F0E8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B9E7A;
  margin-bottom: 0.5rem;
}

.section-label.light { color: rgba(255,255,255,0.7); }

.section-title { margin-bottom: 2.5rem; }
.section-title.light { color: #fff; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #8B9E7A;
  color: #fff;
  border-color: #8B9E7A;
}
.btn-primary:hover {
  background: #7A8D6A;
  border-color: #7A8D6A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,158,122,0.35);
}

.btn-outline-dark {
  background: transparent;
  color: #2C2416;
  border-color: #2C2416;
}
.btn-outline-dark:hover {
  background: #2C2416;
  color: #F5F0E8;
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }

/* ---------- PLACEHOLDER IMAGES ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #C4A882 0%, #8B9E7A 50%, #D4956A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

.img-placeholder i { font-size: 2.5rem; opacity: 0.6; }

.img-placeholder.dark {
  background: linear-gradient(135deg, #2C2416 0%, #4a3a28 50%, #3d3020 100%);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(44, 36, 22, 0.12);
  border-bottom-color: rgba(196, 168, 130, 0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2C2416;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: #8B9E7A; }

.nav-links .nav-cta {
  background: #8B9E7A;
  color: #fff;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
}

.nav-links .nav-cta:hover {
  background: #7A8D6A;
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #2C2416;
  padding: 0.25rem;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 1.5rem 4rem;
  background-image: url('assets/photos/hero.jpg');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

/* Subtle wildflower texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(139,158,122,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,149,106,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 22, 0.45);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  color: #fff;
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto;
  filter: brightness(1.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-title {
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #C4A882;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.section-cream { background: #F5F0E8; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(44,36,22,0.15);
  aspect-ratio: 4/5;
}

.about-image .img-placeholder {
  min-height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.about-text .section-label { color: #C4A882; }

.about-text h2 {
  margin-bottom: 1.25rem;
  color: #2C2416;
}

.about-text p {
  color: #5a4a38;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.about-verse {
  color: #8B9E7A !important;
  font-size: 0.9rem !important;
  border-left: 3px solid #8B9E7A;
  padding-left: 1rem;
  margin: 1.5rem 0 !important;
}

.about-signoff {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem !important;
  color: #C4A882 !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   SERVICES
   ============================================================ */
.section-dark {
  background: #2C2416;
  color: #F5F0E8;
}

.section-dark .section-label { color: #C4A882; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(139,158,122,0.25);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(139,158,122,0.12);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(139,158,122,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #8B9E7A;
  font-size: 1.1rem;
}

.service-card h3 {
  color: #C4A882;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.service-card li {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.75);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #8B9E7A;
}

/* ============================================================
   GALLERY
   ============================================================ */
.section-sage {
  background: #E8EDE3;
}

.section-sage .section-label { color: #8B9E7A; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(44,36,22,0.2);
}

.gallery-item .img-placeholder {
  min-height: 100%;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

/* ============================================================
   LOVE LETTERS (TESTIMONIALS)
   ============================================================ */
#love-letters {
  position: relative;
  background-image: url('assets/photos/gallery-1.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
}

.testimonials-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 22, 0.72);
  pointer-events: none;
}

.testimonials-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.love-letters-title {
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  font-style: italic;
  color: #fff !important;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial-card {
  background: rgba(196, 168, 130, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.25s ease;
}

.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-quote {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: #2C2416;
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.testimonial-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5a4a38;
}

.testimonials-invite {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.section-cta {
  background: #2C2416;
  padding: 5rem 0;
}

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

.cta-inner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-container {
  max-width: 760px;
}

.faq-list {
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(139,158,122,0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1.25rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #2C2416;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-question:hover { color: #8B9E7A; }

.faq-question[aria-expanded="true"] { color: #8B9E7A; }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #8B9E7A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #8B9E7A;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: #5a4a38;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-sage-dark { background: #8B9E7A; }

.section-sage-dark .section-label { color: rgba(255,255,255,0.65); }
.section-sage-dark .section-title { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

.contact-details i {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.contact-details a:hover { text-decoration: underline; }

.contact-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  color: #fff;
}

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 2.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.22);
}

.form-group select option { color: #2C2416; background: #fff; }

.form-group textarea { resize: vertical; }

.contact-form .btn-primary {
  background: #2C2416;
  border-color: #2C2416;
  margin-top: 0.5rem;
}
.contact-form .btn-primary:hover {
  background: #1a160d;
  border-color: #1a160d;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #1a160d;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(0.9);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: #C4A882; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,240,232,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.5);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: #C4A882;
  color: #C4A882;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { aspect-ratio: 16/9; }

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

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

  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #F5F0E8;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 8px 20px rgba(44,36,22,0.1);
    border-top: 1px solid rgba(196,168,130,0.3);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(196,168,130,0.2);
  }

  .nav-links .nav-cta {
    margin: 0.75rem 0 0;
    text-align: center;
    border-radius: 3px;
  }

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

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

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .contact-form .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 1.75rem 1.25rem; }

  .hero-logo { width: 110px; height: 110px; }
}
