/* ============================================
   SECTIONS.CSS
   Hero · Marquee · Story · Collection ·
   Process · Featured · Testimonials ·
   Subscription · Social · Location/Map · Footer
   ============================================ */


/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--deep-brown);
}

/* Hero Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 88, 69, 0) 40%, rgba(74, 88, 69, .3) 100%);
  opacity: .5;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding-inline: 1.5rem;
}

.hero-tag {
  display: none;
}

.hero-title {
  display: none;
}

.hero-sub {
  display: none;
}

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

.hero-buttons .btn-primary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  padding: 1rem 2.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all .3s ease;
}

.hero-buttons .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--deep-brown);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .3);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.scroll-hint .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: .3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}


/* ─── MARQUEE ─── */
.marquee-strip {
  background: var(--deep-brown);
  padding: 1.15rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-serif);
  font-size: .85rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 0 2.5rem;
}

.marquee-track .dot {
  color: var(--gold);
  font-size: .5rem;
  vertical-align: middle;
  padding: 0 .2rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}


/* ─── STORY ─── */
.story-section {
  padding: 0;
  background: var(--cream);
}

.story {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.story-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, #7a8b6f, #5a6852);
  overflow: hidden;
}

.story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 35% 45%, rgba(184, 197, 168, .15) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.story-cat {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 55%;
  opacity: .9;
}

.story-text {
  padding: 3rem 3.5rem 3rem 4rem;
}

.story-text .section-label,
.story-text .section-title,
.story-text .section-desc {
  text-align: left;
}

.contact-info .section-label,
.contact-info .section-title {
  text-align: left;
}

.story-text .section-desc {
  margin: 0 0 2rem;
}

.story-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 2rem;
}

.pillar {
  border-top: 1px solid var(--gold);
  padding-top: .9rem;
}

.pillar h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--deep-brown);
  margin-bottom: .3rem;
}

.pillar p {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}


/* ─── CHEESE COLLECTION CARDS ─── */
.collection {
  background: var(--cream-dark);
}

.cheese-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cheese-card {
  background: var(--cream);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .4s ease, box-shadow .4s ease;
  transform-style: preserve-3d;
  /* enables the JS tilt animation */
}

.cheese-card:hover {
  box-shadow: 0 12px 40px rgba(74, 88, 69, .12);
}

.cheese-card-img {
  aspect-ratio: 3 / 3.2;
  position: relative;
  overflow: hidden;
}

/* ─── Gradient placeholder (shown when no photo) ─── */
.cheese-card-img .card-bg {
  width: 100%;
  height: 100%;
  transition: transform .6s ease;
}

.cheese-card:hover .card-bg {
  transform: scale(1.06);
}

.card-aged .card-bg {
  background: linear-gradient(160deg, #8b9d7e 0%, #5a6852 100%);
}

.card-fresh .card-bg {
  background: linear-gradient(160deg, #b8d4a8 0%, #87a578 100%);
}

.card-blue .card-bg {
  background: linear-gradient(160deg, #7a8b8a 0%, #52615e 100%);
}

.card-goat .card-bg {
  background: linear-gradient(160deg, #a8b89a 0%, #798766 100%);
}

.card-smoke .card-bg {
  background: linear-gradient(160deg, #7a7968 0%, #52554a 100%);
}

.card-cream .card-bg {
  background: linear-gradient(160deg, #c9d4bb 0%, #9caa8c 100%);
}

/* Decorative wheel overlay on placeholder */
.cheese-wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(1px);
  pointer-events: none;
}

.cheese-wheel::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
}

/* ─── Product photo (shown when image is provided) ─── */
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}

.cheese-card:hover .card-photo {
  transform: scale(1.06);
}

/* Card body text */
.cheese-card-body {
  padding: 1.6rem 1.5rem 1.8rem;
}

.cheese-card-body .cheese-type {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .45rem;
}

.cheese-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--deep-brown);
  margin-bottom: .35rem;
}

.cheese-card-body p {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: .9rem;
}

.cheese-card-body .price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--warm-brown);
  font-weight: 500;
}


/* ─── PROCESS ─── */
.process {
  background: var(--deep-brown);
  color: #fff;
}

.process .section-label {
  color: var(--gold);
}

.process .section-title {
  color: #fff;
}

.process .section-desc {
  color: rgba(255, 255, 255, .45);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  max-width: 1060px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 300;
}

.step h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: .45rem;
}

.step p {
  font-size: .76rem;
  color: rgba(255, 255, 255, .42);
  font-weight: 300;
  line-height: 1.7;
}


/* ─── FEATURED / SIGNATURE ─── */
.featured {
  background: var(--cream);
  padding: var(--space-xl) var(--space-lg);
}

.featured-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.featured-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2px;
  background: linear-gradient(170deg, #8b9d7e 0%, #5a6852 100%);
  overflow: hidden;
}

/* Decorative wheel (placeholder) */
.featured-visual .wheel-big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
}

.featured-visual .wheel-big::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
}

.featured-visual .accent-line {
  position: absolute;
  top: 8%;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold);
  opacity: .35;
}

/* Product photo (replaces placeholder when set in config) */
.featured-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text column */
.featured-text .section-label,
.featured-text .section-title,
.featured-text .section-desc {
  text-align: left;
}

.featured-text .section-desc {
  margin: 0 0 1.8rem;
}

.featured-text .feat-detail {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.feat-detail-item h5 {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}

.feat-detail-item p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--deep-brown);
  font-weight: 400;
}


/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--cream-dark);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1060px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--cream);
  padding: 2.2rem 1.8rem;
  border-top: 1px solid var(--gold);
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .15em;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--deep-brown);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.testimonial-card .author {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}


/* ─── SUBSCRIPTION CTA ─── */
.subscription {
  background: linear-gradient(135deg, #4a3425 0%, #3d2b1f 100%);
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.subscription::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, .1);
}

.subscription::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -8%;
  width: 50%;
  height: 160%;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, .08);
}

.subscription .section-label {
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.subscription .section-title {
  color: #fff;
  position: relative;
  z-index: 1;
}

.subscription .section-desc {
  color: rgba(255, 255, 255, .45);
  position: relative;
  z-index: 1;
}

.subscription .btn-primary {
  position: relative;
  z-index: 1;
}


/* ─── SOCIAL SECTION ─── */
.social-section {
  background: var(--cream);
  text-align: center;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 1.8rem 2.2rem;
  border: 1px solid var(--cream-dark);
  background: #fff;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
  text-decoration: none;
  color: var(--deep-brown);
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(61, 43, 31, .1);
  border-color: var(--gold);
}

.social-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background .3s;
}

.social-card:hover .social-icon-wrap {
  background: var(--gold-light);
}

.social-icon {
  width: 22px;
  height: 22px;
  /* Tint SVG icons to match the brand colour */
  filter: invert(40%) sepia(30%) saturate(600%) hue-rotate(10deg) brightness(70%);
  transition: filter .3s;
  background: transparent;
}

.social-card:hover .social-icon {
  filter: invert(100%);
}

.social-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .3s;
}

.social-card:hover .social-label {
  color: var(--deep-brown);
}


/* ─── LOCATION / GOOGLE MAPS ─── */
.location-section {
  background: var(--cream-dark);
}

.location-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Text column */
.location-text .section-label,
.location-text .section-title,
.location-text .section-desc {
  text-align: left;
}

.location-text .section-desc {
  margin: 0 0 1.5rem;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--gold);
  margin-top: .5rem;
}

.location-address .pin-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: invert(40%) sepia(30%) saturate(600%) hue-rotate(10deg) brightness(70%);
}

.location-address p {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.location-address strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--deep-brown);
  margin-bottom: .2rem;
}

/* Map panel */
.map-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  max-height: 400px;
  max-width: 80%;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  box-sizing: border-box;
}

#map-container {
  width: 100%;
  height: 100%;
  padding: 2px;
}


/* ─── FOOTER ─── */
footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, .55);
  padding: 4.5rem 3rem 2rem;
}

.footer-grid {
  margin-left: 50px;
  margin-right: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 3rem;
  align-items: start;
  text-align: center;
}

#footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-brand .nav-logo {
  color: rgba(255, 255, 255, .85);
  display: block;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-brand p {
  font-size: .78rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 260px;
}

footer h5 {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: .55rem;
}

footer ul a {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  transition: color .3s;
  font-weight: 300;
}

footer ul a:hover {
  color: var(--gold-light);
}

/* Newsletter */
.newsletter-desc {
  font-size: .76rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.footer-newsletter input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  padding: .6rem 0;
  color: #fff;
  font-size: .78rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .3s;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, .3);
}

.footer-newsletter input:focus {
  border-color: var(--gold);
}

.footer-newsletter button {
  margin-top: .8rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: .5rem 1.4rem;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .3s, color .3s;
}

.footer-newsletter button:hover {
  background: var(--gold);
  color: #fff;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .7rem;
  color: rgba(255, 255, 255, .25);
  margin-left: 50px;
  margin-right: 50px;
  margin-top: 20px;
  padding-top: 1rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer-social-link {
  color: rgba(255, 255, 255, .3);
  transition: color .3s;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.footer-social-icon {
  width: 24px;
  height: 24px;
  filter: none;
  /* No filter - shows original SVG colors */
  transition: opacity .3s;
}

.footer-social-link:hover {
  color: var(--gold-light);
}

.footer-social-link:hover .footer-social-icon {
  opacity: 0.8;
  /* Slight opacity change on hover */
}

#footer-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  /* aligns items to the left */
}