/* ============================================
   TRINITY OAKS FARM — Custom Styles
   Bold Editorial · Charcoal + Coral
   ============================================ */

:root {
  --charcoal: #2C2C2E;
  --charcoal-deep: #1C1C1E;
  --charcoal-light: #3D3D40;
  --coral: #E07A5F;
  --coral-dark: #C4624A;
  --coral-light: #F2A892;
  --cream: #F5F0EB;
  --cream-dark: #E8E0D8;
  --white: #FEFEFE;
  --sand: #D4C4B0;
  --sand-light: #EDE5DB;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: 0.875rem;
}
.skip-link:focus {
  top: var(--space-sm);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 44, 46, 0.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(44, 44, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.logo--light { color: var(--white); }
.logo-mark {
  color: var(--coral);
  flex-shrink: 0;
}

/* NAV */
.nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--coral);
  transition: width var(--transition);
}
.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}
.nav a:hover { color: var(--coral); }

/* NAV TOGGLE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--coral {
  background: var(--coral);
  color: var(--white);
  border: 1.5px solid var(--coral);
}
.btn--coral:hover,
.btn--coral:focus {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(254, 254, 254, 0.5);
}
.btn--ghost:hover,
.btn--ghost:focus {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.btn--outline:hover,
.btn--outline:focus {
  background: var(--charcoal);
  color: var(--white);
}
.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
}
.btn--full {
  width: 100%;
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}
.section-eyebrow--light { color: var(--coral-light); }

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.section-headline--light {
  color: var(--white);
}
.text-coral { color: var(--coral); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 28, 30, 0.92) 0%,
    rgba(44, 44, 46, 0.75) 50%,
    rgba(28, 28, 30, 0.6) 100%
  );
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: var(--space-lg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-lg);
  align-items: center;
}
.hero-content { max-width: 600px; }
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-light);
  margin-bottom: var(--space-md);
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(254, 254, 254, 0.75);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.stat {
  background: rgba(254, 254, 254, 0.07);
  border: 1px solid rgba(254, 254, 254, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(254, 254, 254, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, 0.4);
}
.hero-scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.intro-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44, 44, 46, 0.1);
}
.intro-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-content { padding: var(--space-md) 0; }
.intro-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal-light);
  margin-bottom: var(--space-md);
}
.intro-features {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}
.intro-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}
.intro-features svg {
  color: var(--coral);
  flex-shrink: 0;
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
  padding: var(--space-2xl) 0;
  background: var(--white);
}
.experience-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.exp-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(44, 44, 46, 0.1);
}
.exp-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.exp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.exp-card:hover .exp-card-img img {
  transform: scale(1.04);
}
.exp-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  letter-spacing: -0.01em;
}
.exp-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  padding: 0 var(--space-md) var(--space-md);
}

/* ============================================
   GROUNDS
   ============================================ */
.grounds {
  position: relative;
  padding: var(--space-2xl) 0;
  overflow: hidden;
}
.grounds-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.grounds-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grounds-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28, 28, 30, 0.92) 0%,
    rgba(28, 28, 30, 0.78) 60%,
    rgba(28, 28, 30, 0.5) 100%
  );
  z-index: 1;
}
.grounds .container {
  position: relative;
  z-index: 2;
}
.grounds-content { max-width: 640px; }
.grounds-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(254, 254, 254, 0.75);
  margin-bottom: var(--space-lg);
}
.grounds-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.grounds-feature {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}
.grounds-feature-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}
.grounds-feature-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(254, 254, 254, 0.85);
  letter-spacing: 0.02em;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.location-content { padding: var(--space-md) 0; }
.location-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal-light);
  margin-bottom: var(--space-md);
}
.location-list {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.location-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}
.location-list li strong {
  color: var(--charcoal);
  font-weight: 600;
}
.location-list li span {
  color: var(--charcoal-light);
  font-weight: 400;
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44, 44, 46, 0.1);
  position: relative;
}
.map-link {
  display: block;
  position: relative;
}
.map-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(44, 44, 46, 0.5);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.map-link:hover .map-overlay {
  background: rgba(44, 44, 46, 0.7);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info { padding: var(--space-md) 0; }
.contact-info p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal-light);
  margin-bottom: var(--space-lg);
}
.contact-details {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--charcoal);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact-detail:hover { color: var(--coral); }
.contact-detail svg {
  color: var(--coral);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail span {
  line-height: 1.5;
}
.contact-detail address {
  font-style: normal;
}

/* FORM */
.contact-form-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.contact-form { display: grid; gap: var(--space-md); }
.form-group { display: grid; gap: 0.5rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--sand);
}
.form-note {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  text-align: center;
  margin-top: var(--space-xs);
}
.form-success {
  display: grid;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--charcoal);
}
.form-success p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal-light);
}
.form-success .btn { margin: 0 auto; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--charcoal-deep);
  color: rgba(254, 254, 254, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--space-sm);
  max-width: 300px;
}
.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral-light);
  margin-bottom: var(--space-sm);
}
.footer-nav ul {
  list-style: none;
  display: grid;
  gap: var(--space-xs);
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(254, 254, 254, 0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-contact a {
  color: rgba(254, 254, 254, 0.6);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(254, 254, 254, 0.08);
  padding-top: var(--space-md);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(254, 254, 254, 0.35);
}

/* ============================================
   SCROLL REVEAL (below fold only)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 320px;
    gap: var(--space-md);
  }
  .hero-headline { font-size: clamp(2rem, 4vw, 3rem); }
  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }
  .experience-grid .exp-card:last-child {
    grid-column: span 2;
  }
  .exp-card:last-child .exp-card-img {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }
  .nav-toggle { display: flex; }
  .nav ul {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-md);
    background: var(--cream);
    padding: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
  }
  .nav ul.open { transform: translateX(0); }
  .nav a { font-size: 1rem; }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-aside { display: none; }
  .hero-headline { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero-sub { font-size: 1rem; }

  .intro-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .intro-image-wrap { order: -1; }

  .experience-grid {
    grid-template-columns: 1fr;
  }
  .experience-grid .exp-card:last-child {
    grid-column: auto;
  }

  .grounds-features {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-sm); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: var(--space-md); }
  .btn { padding: 0.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
