/* ============================================================
   Cyndalyn Ranch — main.css
   Palette: Dry Chaparral
   Fonts:   Special Elite · Lora · Roboto Condensed
   ============================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --straw:      #E8D9B0;
  --harvest:    #C9A86C;
  --chaparral:  #6B7C5C;
  --oak:        #4A3728;
  --oak-bark:   #3A3020;
  --wine-clay:  #8B3A3A;
  --cream:      #F2EAD8;

  /* Typography — all Special Elite per client direction */
  --font-display: 'Special Elite', cursive;
  --font-body:    'Special Elite', cursive;
  --font-ui:      'Special Elite', cursive;

  /* Spacing */
  --gutter: 3.5rem;
}

/* ── BASE ── */
body {
  background: var(--oak);
  font-family: var(--font-body);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ── NAVIGATION ── */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--gutter);
  background: var(--straw);
  min-height: 180px;
}

/* WordPress wp_nav_menu wraps in <ul> directly */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links--right {
  justify-content: flex-end;
}

.nav-links li a,
.nav-links a {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oak);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav-links li a:hover,
.nav-links a:hover {
  opacity: 1;
}

/* WordPress adds .current-menu-item */
.nav-links .current-menu-item > a {
  opacity: 1;
  border-bottom: 1px solid var(--oak);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--oak);
  text-align: center;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 180px; /* clear the nav bar */
}

.hero-image {
  position: absolute;
  inset: 0;
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.0); }
}

/* Warm overlay — deepens toward bottom */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(74, 55, 40, 0.25)  0%,
    rgba(74, 55, 40, 0.08) 40%,
    rgba(74, 55, 40, 0.55) 75%,
    rgba(74, 55, 40, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 5.5rem;
  max-width: 680px;
  animation: fadeUp 1.2s ease-out 0.4s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--harvest);
  margin-bottom: 1rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.75), 0 0 20px rgba(0,0,0,0.5);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1.25rem;
  font-weight: normal;
}

.hero-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--straw);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2.25rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--harvest);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.hero-cta:hover {
  color: var(--harvest);
}

/* ── AWARDS STRIP ── */
.awards-strip {
  background: var(--oak-bark);
  padding: 1.75rem var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.awards-label {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
}

.awards-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.awards-logos img {
  height: 100px;
  width: auto;
}

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--oak-bark);
  padding: 2.5rem var(--gutter) 1.75rem;
  text-align: center;
}

/* Widget area — centered nav menu */
.footer-widget-area {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* WordPress Navigation Menu widget */
.footer-widget-area .widget_nav_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2rem;
}

.footer-widget-area .widget_nav_menu li a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--straw);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.footer-widget-area .widget_nav_menu li a:hover {
  opacity: 1;
}

/* Copyright line */
.footer-copy {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--straw);
  opacity: 0.35;
  text-transform: lowercase;
}

/* ── SITE MAIN (non-front-page fallback) ── */
.site-main {
  background: var(--oak);
  color: var(--cream);
  font-family: var(--font-body);
}

.site-main h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

.entry-content {
  max-width: 680px;
  line-height: 1.8;
}

/* ── SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}


/* ── NAV LOGO ── */
/*
 * If the logo still looks small, the source image likely has transparent
 * padding baked in. Crop tighter in your image editor for best results.
 */
.nav-logo {
  display: block;
  height: 160px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
}

.nav-logo-placeholder {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--oak);
  text-transform: lowercase;
  white-space: nowrap;
}


/* ── PAGE SECTIONS ── */
/*
 * Each section is a WordPress page pulled in by slug.
 * Alternating sections use .section--alt for a subtle background shift.
 */

.page-section {
  background: var(--oak);
  color: var(--cream);
  padding: 5rem var(--gutter);
}

.page-section.section--alt {
  background: var(--oak-bark);
}

.section-inner {
  max-width: 820px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: normal;
  color: var(--straw);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.section-content {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--cream);
  opacity: 0.9;
}

/* Spacing for WP-generated content inside sections */
.section-content p      { margin-bottom: 1.4em; }
.section-content p:last-child { margin-bottom: 0; }

.section-content h2,
.section-content h3 {
  font-family: var(--font-display);
  font-weight: normal;
  color: var(--straw);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  margin: 2em 0 0.75em;
}

.section-content h2 { font-size: 1.5rem; }
.section-content h3 { font-size: 1.15rem; }

.section-content a {
  color: var(--harvest);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 108, 0.35);
  transition: border-color 0.2s;
}

.section-content a:hover {
  border-color: var(--harvest);
}

.section-content ul,
.section-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.section-content li {
  margin-bottom: 0.5em;
}

/* Section horizontal rule / divider */
.section-content hr {
  border: none;
  border-top: 1px solid rgba(232, 217, 176, 0.15);
  margin: 2.5em 0;
}

/* ── CF7 FORM STYLES ── */
/*
 * Covers CF7 forms anywhere inside .section-content —
 * both the home page [cr_section] shortcode and standalone pages.
 */

.section-content .wpcf7 {
  margin-top: 1.5rem;
}

.section-content .wpcf7-form p {
  margin-bottom: 1.25rem;
}

.section-content .wpcf7-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--straw);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.section-content input[type="text"],
.section-content input[type="email"],
.section-content textarea {
  display: block;
  width: 100%;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 217, 176, 0.2);
  border-radius: 2px;
  padding: 0.55rem 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.section-content input[type="text"]:focus,
.section-content input[type="email"]:focus,
.section-content textarea:focus {
  border-color: rgba(201, 168, 108, 0.55);
}

.section-content input[type="text"]::placeholder,
.section-content input[type="email"]::placeholder,
.section-content textarea::placeholder {
  color: rgba(232, 217, 176, 0.3);
}

.section-content textarea {
  min-height: 130px;
  resize: vertical;
}

.section-content input[type="submit"] {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(201, 168, 108, 0.5);
  border-radius: 2px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, border-color 0.2s;
  -webkit-appearance: none;
  margin-top: 0.5rem;
}

.section-content input[type="submit"]:hover {
  opacity: 1;
  border-color: var(--harvest);
}

/* Validation messages */
.section-content .wpcf7-not-valid-tip {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--wine-clay);
  margin-top: 0.25rem;
}

.section-content .wpcf7-response-output {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border: none !important;
  padding: 0 !important;
  margin: 1rem 0 0 !important;
  color: var(--chaparral);
}


/* ── RESPONSIVE ── */
@media ( max-width: 768px ) {
  :root {
    --gutter: 1.5rem;
  }

  .site-nav {
    padding: 0.75rem var(--gutter);
    min-height: 120px;
  }

  .nav-logo {
    height: 100px;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  body {
    padding-top: 10px;
  }

  .awards-logos {
    gap: 2rem;
  }

  .awards-logos img {
    height: 70px;
  }

  .page-section {
    padding: 3.5rem var(--gutter);
  }
}
