/* ============================================
   Apple Blossom Cottage — Style Sheet
   Rustic Highland Charm
   ============================================ */

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

:root {
  --stone-grey: #4A4A48;
  --cream: #F5F0E8;
  --olive: #6B7F5E;
  --amber: #B8653A;
  --charcoal: #2C2C2C;
  --deep-red: #8B3A3A;
  --warm-white: #FAF8F4;
  --linen: #EDE8DF;
  --shadow: rgba(44, 44, 44, 0.12);
  --shadow-strong: rgba(44, 44, 44, 0.25);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--deep-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--amber);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--deep-red);
  color: var(--cream);
}

.btn-primary:hover {
  background-color: #6E2E2E;
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-strong);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.25rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background-color: rgba(44, 44, 44, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.5px;
}

.nav-logo:hover {
  color: var(--cream);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.85);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-cta {
  background-color: var(--deep-red) !important;
  color: var(--cream) !important;
  padding: 8px 20px !important;
  border-radius: 4px;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: #6E2E2E !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--cream);
  transition: all 0.3s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 44, 44, 0.2) 0%,
    rgba(44, 44, 44, 0.35) 50%,
    rgba(44, 44, 44, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--cream);
  padding: 0 24px;
  max-width: 800px;
}

.hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 36px;
  opacity: 0.95;
  line-height: 1.5;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  opacity: 0.7;
  animation: bounceDown 2s infinite;
}

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

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background-color: var(--cream);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 8px;
}

.section-subheading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--stone-grey);
  text-align: center;
  margin-bottom: 60px;
}

/* --- Story Section --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.story-text h2 {
  text-align: left;
  margin-bottom: 24px;
}

.story-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--stone-grey);
}

.story-text p em {
  color: var(--charcoal);
  font-style: italic;
}

.story-image {
  position: sticky;
  top: 100px;
}

.story-image img {
  border-radius: 8px;
  box-shadow: 0 8px 40px var(--shadow-strong);
}

.pull-quote {
  background: linear-gradient(135deg, var(--cream), var(--linen));
  border-left: 4px solid var(--amber);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.5;
}

.pull-quote--dark {
  background: linear-gradient(135deg, var(--charcoal), var(--stone-grey));
  border-left-color: var(--amber);
}

.pull-quote--dark blockquote {
  color: var(--cream);
}

/* --- Cottage Section --- */
.cottage-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--warm-white);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px var(--shadow-strong);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--olive);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--stone-grey);
  line-height: 1.6;
}

.cottage-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cottage-gallery img {
  border-radius: 8px;
  width: 100%;
  height: 250px;
  object-fit: cover;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.3s ease;
}

.cottage-gallery img:hover {
  transform: scale(1.03);
}

/* --- Farm Section --- */
.farm-activities {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.activity-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.activity-card--reverse {
  direction: rtl;
}

.activity-card--reverse > * {
  direction: ltr;
}

.activity-image img {
  border-radius: 8px;
  width: 100%;
  height: 350px;
  object-fit: cover;
  box-shadow: 0 8px 32px var(--shadow-strong);
}

.activity-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.activity-content p {
  font-size: 1rem;
  color: var(--stone-grey);
  line-height: 1.7;
}

.farm-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}

/* --- Explore Section --- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.explore-card {
  background: var(--cream);
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px var(--shadow-strong);
}

.explore-icon {
  width: 36px;
  height: 36px;
  color: var(--olive);
  margin-bottom: 16px;
}

.explore-icon svg {
  width: 100%;
  height: 100%;
}

.explore-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.explore-card p {
  font-size: 0.9rem;
  color: var(--stone-grey);
  line-height: 1.6;
  margin-bottom: 12px;
}

.explore-distance {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber);
  padding: 4px 10px;
  background: rgba(184, 101, 58, 0.1);
  border-radius: 20px;
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(44, 44, 44, 0.8), transparent);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* --- Location Section --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-group {
  margin-bottom: 28px;
}

.info-group h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.info-group p,
.info-group li {
  font-size: 0.95rem;
  color: var(--stone-grey);
  line-height: 1.7;
}

.info-group ul {
  padding-left: 0;
}

.info-group li {
  padding: 4px 0;
}

.info-group li strong {
  color: var(--charcoal);
}

/* --- CTA Section --- */
.cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.75);
}

.cta-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--cream);
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 36px;
}

.cta-sub {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.cta-sub a {
  color: var(--cream);
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background-color: var(--charcoal);
  color: rgba(245, 240, 232, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
}

.footer h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer ul {
  margin-bottom: 20px;
}

.footer li {
  padding: 3px 0;
}

.footer a {
  color: rgba(245, 240, 232, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto;
}

.lightbox-caption {
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 16px;
  opacity: 0.8;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font-size: 2rem;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 201;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 16px;
  right: 24px;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

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

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

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

  .farm-quotes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(44, 44, 44, 0.97);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Story */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-image {
    position: static;
    order: -1;
  }

  .story-text h2 {
    text-align: center;
  }

  /* Cottage */
  .cottage-features {
    grid-template-columns: 1fr;
  }

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

  .cottage-gallery img {
    height: 200px;
  }

  /* Farm */
  .activity-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .activity-card--reverse {
    direction: ltr;
  }

  .activity-image img {
    height: 250px;
  }

  /* Explore */
  .explore-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-item::after {
    opacity: 1;
    transform: translateY(0);
  }

  /* Location */
  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-map iframe {
    height: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* CTA */
  .cta {
    padding: 80px 0;
  }

  .cta-bg {
    background-attachment: scroll;
  }
}

/* Small mobile */
@media (max-width: 375px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
  }
}

/* Tablet gallery */
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg {
    transform: none;
    transition: none;
  }

  .hero:hover .hero-bg {
    transform: none;
  }

  .hero-scroll {
    animation: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta-bg {
    background-attachment: scroll;
  }
}

/* Subtle texture overlay on cream sections */
.story,
.explore {
  position: relative;
}

.story::before,
.explore::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0z' fill='%234A4A48' fill-opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}
