/* ============================================================
   FESTE DESIGNS — Warm Luxury Theme
   ------------------------------------------------------------
   ALL colors, fonts, and spacing are configured in :root below.
   Change values here and they propagate site-wide.
   ============================================================ */
:root {
  /* Palette: Warm Luxury */
  --color-gold-primary: #E6A225;       /* Classic Gold */
  --color-gold-light: #F3E5AB;         /* Champagne tint */
  --color-gold-dark: #AA8C2C;          /* Deep Gold */

  --color-green-warm: #556B2F;         /* Olive */
  --color-green-deep: #3A4A20;         /* Forest */

  --color-red-warm: #AA2D3D;           /* Burnt Sienna */
  --color-red-muted: #D498A0;          /* Burgundy */

  /* Neutrals */
  --color-bg-body: #FAFAF5;
  --color-bg-card: #FFFFFF;
  --color-bg-subtle: #F4F4EE;
  --color-text-main: #2C2C2C;
  --color-text-muted: #666666;
  --color-border: #E0E0E0;

  /* Hero overlays (green tint applied over hero images) */
  --overlay-green: rgba(58, 74, 32, 0.75);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing & Layout */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --container-width: 1200px;

  --radius-card: 8px;
  --shadow-card: 0 4px 10px rgba(0, 0, 0, 0.05);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green-deep);
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

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

/* Visible keyboard focus everywhere (accessibility) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-gold-primary);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

section {
  padding: var(--spacing-lg) 0;
}

.section-white {
  background-color: var(--color-bg-card);
}

.section-white-bordered {
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-gold-dark);
}

.section-title p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--color-gold-primary);
  color: #fff;
  border: 2px solid var(--color-gold-primary);
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn:hover {
  background-color: transparent;
  color: var(--color-gold-primary);
}

/* Outline variant (on light backgrounds) */
.btn-outline {
  background-color: transparent;
  color: var(--color-gold-primary);
}

.btn-outline:hover {
  background-color: var(--color-gold-primary);
  color: #fff;
}

/* Light variant (on dark/photo backgrounds) */
.btn-light {
  background-color: #fff;
  border-color: #fff;
  color: var(--color-green-deep);
}

.btn-light:hover {
  background-color: transparent;
  color: #fff;
}

/* White-outline variant (on hero images) */
.btn-outline-light {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: var(--color-green-deep);
}

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

/* ------------------------------------------------------------
   HEADER & NAVIGATION
   ------------------------------------------------------------ */
header {
  background-color: var(--color-bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-gold-dark);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-text-main);
  transition: var(--transition-speed);
}

/* ------------------------------------------------------------
   HERO (home page)
   Image lives here so swapping hero photos means editing
   this file once. Until you add the file, the green overlay
   renders as a solid deep-green background — intentional
   graceful fallback.
   ------------------------------------------------------------ */
.hero {
  background:
    linear-gradient(var(--overlay-green), var(--overlay-green)),
    url('/images/home-hero.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   PAGE HERO (inner pages)
   Per-page modifier classes set the image; the green overlay
   and layout live here, shared.
   ------------------------------------------------------------ */
.page-hero {
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero--services { background-image: linear-gradient(var(--overlay-green), var(--overlay-green)), url('/images/services-hero.jpg'); }
.page-hero--gallery  { background-image: linear-gradient(var(--overlay-green), var(--overlay-green)), url('/images/gallery-hero.jpg'); }
.page-hero--faq       { background-image: linear-gradient(var(--overlay-green), var(--overlay-green)), url('/images/faq-hero.jpg'); }
.page-hero--contact   { background-image: linear-gradient(var(--overlay-green), var(--overlay-green)), url('/images/contact-hero.jpg'); }

/* ------------------------------------------------------------
   HOME: FEATURE TRIO
   ------------------------------------------------------------ */
.feature-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  text-align: center;
}

.feature-item h3 {
  color: var(--color-gold-primary);
}

.feature-item p {
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   SERVICES
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  background: var(--color-bg-card);
  padding: var(--spacing-md);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-gold-primary);
  transition: transform var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: var(--color-gold-dark);
}

.service-blurb {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.service-list {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.service-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-list li:last-child {
  border-bottom: none;
}

/* ------------------------------------------------------------
   GALLERY
   ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-card);
  margin-bottom: 1rem;
  border-radius: var(--radius-card);
  /*overflow: hidden; */
  box-shadow: var(--shadow-card);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-green-deep);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.faq-icon {
  color: var(--color-gold-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition-speed);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg); /* "+" rotates into an "×" */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out,
              padding var(--transition-speed) ease-out;
  padding: 0 1.5rem;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--color-text-main);
}

/* ------------------------------------------------------------
   CTA BANDS
   ------------------------------------------------------------ */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  color: var(--color-green-deep);
}

.cta-band p {
  margin-bottom: var(--spacing-md);
}

.cta-band p:last-child {
  margin-bottom: 0;
}

.cta-band--gold {
  background-color: var(--color-gold-light);
}

.cta-band--green {
  background-color: var(--color-green-deep);
  color: #fff;
}

.cta-band--green h2 {
  color: #fff;
}

.cta-band--green p {
  color: #fff;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-card {
  padding: var(--spacing-md);
  background-color: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  color: var(--color-green-deep);
}

.contact-field {
  margin-bottom: 1.5rem;
}

.contact-field strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-link {
  color: var(--color-gold-primary);
}

.contact-link:hover {
  color: var(--color-gold-dark);
}

.contact-subsection {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.contact-subsection h4 {
  color: var(--color-gold-dark);
  margin-bottom: 0.25rem;
}

.contact-subsection p {
  color: var(--color-text-muted);
}

.form-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.form-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-md);
  text-align: center;
  background-color: var(--color-bg-subtle);
  color: var(--color-text-muted);
}

/* Google Form iframe wrapper — uncomment markup in contact.html
   along with the iframe. Keeps embedded form responsive. */
.form-embed iframe {
  width: 100%;
  border: none;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  background-color: var(--color-green-deep);
  color: #fff;
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-content a {
  color: var(--color-gold-light);
}

.footer-content a:hover {
  color: var(--color-gold-primary);
}

.footer-legal {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;                              /* always hug the right edge */
    margin-right: calc(var(--spacing-sm) * -1);     /* cancel container's side padding */
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-bg-card);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-sm);
    transform: translateY(-150%);
    transition: transform var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .page-hero {
    height: 40vh;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
