/* ===================================
   Cotton Farms – The Hen House Loft
   Editorial / Bold / Teal + Slate
   =================================== */

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

:root {
  --teal: #1a6b6b;
  --teal-dark: #145252;
  --teal-light: #2a8a8a;
  --teal-pale: #e8f4f4;
  --slate: #2c3e50;
  --slate-light: #4a6274;
  --slate-pale: #f0f4f7;
  --cream: #faf9f7;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #6b7b8d;
  --gray-light: #b0bec5;
  --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: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--slate);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate);
  margin-bottom: var(--space-md);
}

.text-teal {
  color: var(--teal);
}

.text-white {
  color: var(--white);
}

.lead {
  font-size: 1.125rem;
  color: var(--slate-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: 560px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-ghost-light:hover {
  background: var(--teal-pale);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
}

.logo-icon {
  color: var(--teal);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--slate-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--teal);
  background: var(--teal-pale);
}

.nav-cta {
  font-weight: 500;
  color: var(--teal) !important;
  background: var(--teal-pale);
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--teal);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  position: relative;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--slate);
  left: 0;
  transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.45) 0%,
    rgba(26, 107, 107, 0.35) 50%,
    rgba(26, 26, 26, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero-accent {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: float 2s ease-in-out infinite;
}

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

/* --- SECTIONS --- */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--teal);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.about-content {
  padding: var(--space-md) 0;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
}

.feature-item svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* --- AMENITIES --- */
.amenities {
  background: var(--white);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.amenity-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.amenity-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.amenity-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: var(--space-md);
  transition: var(--transition);
}

.amenity-card:hover .amenity-icon {
  background: var(--teal);
  color: var(--white);
}

.amenity-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.amenity-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.7;
}

/* --- LOCATION --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.location-image-wrap {
  position: relative;
}

.location-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.location-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--slate);
}

.location-list li svg {
  color: var(--teal);
  flex-shrink: 0;
}

.location-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm) var(--space-md);
  background: var(--teal-pale);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--teal-dark);
  margin-top: var(--space-md);
}

.location-address svg {
  flex-shrink: 0;
}

/* --- GALLERY --- */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: var(--space-sm);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item--large {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
  grid-column: 8 / 13;
  grid-row: 1 / 2;
}

.gallery-item:nth-child(3) {
  grid-column: 8 / 13;
  grid-row: 2 / 3;
}

.gallery-item:nth-child(4) {
  grid-column: 1 / 7;
  grid-row: 2 / 3;
}

.gallery-item:nth-child(5) {
  grid-column: 7 / 13;
  grid-row: 2 / 3;
}

/* --- CTA --- */
.cta {
  background: var(--slate);
  padding: var(--space-3xl) 0;
}

.cta-card {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-eyebrow {
  color: rgba(255,255,255,0.6);
}

.cta-headline {
  color: var(--white);
}

.cta-text {
  color: rgba(255,255,255,0.75);
  margin: 0 auto var(--space-lg);
  max-width: 520px;
}

.cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost-light {
  border-color: rgba(26, 107, 107, 0.6);
  color: var(--white);
}

.btn-ghost-light:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 1rem;
  color: var(--slate);
}

.contact-item a {
  color: var(--teal);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* --- FORM --- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(44, 62, 80, 0.06);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--slate);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 107, 107, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-md);
  background: var(--teal-pale);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 500;
  margin-top: var(--space-md);
}

.form-success svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-item--large {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 360px;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    height: 240px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-md);
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .about-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-image-wrap {
    order: -1;
  }

  .about-image-accent {
    display: none;
  }

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

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

  .gallery-item--large {
    height: 280px;
  }

  .gallery-item:nth-child(n) {
    height: 220px;
  }

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

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: var(--space-md);
  }
}
