/* ============================================
   FAIR HAVEN GENERAL STORE — STYLES
   ============================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fefdf8;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #065f46;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 .5rem .5rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- SECTION UTILITIES ---------- */
.section {
  padding: 5rem 0;
}

.section--emerald {
  background: #065f46;
}

.section--cream {
  background: #fdf9f0;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #065f46;
  background: #d1fae5;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-label--light {
  background: rgba(255,255,255,.15);
  color: #a7f3d0;
}

.section-label--dark {
  background: #065f46;
  color: #d1fae5;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-title--light { color: #fff; }
.section-title--dark { color: #065f46; }

.section-subtitle {
  font-size: 1.1rem;
  color: #4a4a4a;
  max-width: 560px;
  line-height: 1.7;
}

.section-subtitle--light { color: #a7f3d0; }

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  padding: .875rem 1.75rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--emerald {
  background: #065f46;
  color: #fff;
  border-color: #065f46;
}
.btn--emerald:hover { background: #047857; border-color: #047857; }

.btn--cream {
  background: #fdf9f0;
  color: #065f46;
  border-color: #fdf9f0;
}
.btn--cream:hover { background: #faf3e0; }

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--sm { padding: .625rem 1.25rem; font-size: .875rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- NAVBAR ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254,253,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6,95,70,.08);
  transition: box-shadow .3s;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: #065f46;
  line-height: 1.2;
}

.nav__logo-text { display: flex; flex-direction: column; }
.nav__logo-sub { font-family: 'Inter', sans-serif; font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #4a4a4a; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav__menu a {
  font-size: .9375rem;
  font-weight: 500;
  color: #1a1a1a;
  padding: .5rem .875rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.nav__menu a:hover { background: #ecfdf5; color: #065f46; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav__bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #065f46;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(254,253,248,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(6,95,70,.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s;
  }

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

  .nav__menu a { padding: .875rem .75rem; font-size: 1rem; }
}

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

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2,44,34,.88) 0%,
    rgba(6,95,70,.82) 35%,
    rgba(4,120,87,.75) 65%,
    rgba(5,150,105,.70) 100%
  );
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(2,44,34,.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #a7f3d0;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .5rem 1.125rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
}

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

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

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text p {
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.stat { display: flex; flex-direction: column; gap: .25rem; }

.stat__number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #065f46;
}

.stat__label {
  font-size: .8125rem;
  color: #6b7280;
  font-weight: 500;
}

.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,.12);
}

.about__image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: #065f46;
  border-radius: 16px;
  z-index: -1;
  opacity: .1;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__image { order: -1; }
}

/* ---------- OFFER GRID ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.offer-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 2rem;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.offer-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

.offer-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(16,185,129,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.offer-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}

.offer-card__text {
  color: rgba(255,255,255,.7);
  font-size: .9375rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
}

/* ---------- WHY FAIR HAVEN ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why__image-col img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,.1);
}

.why__content .section-subtitle { margin-bottom: 2rem; }

.why__list { display: flex; flex-direction: column; gap: 1.5rem; }

.why__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why__item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #ecfdf5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.why__item-title {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: .25rem;
}

.why__item-text {
  font-size: .9375rem;
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; gap: 2rem; }
  .why__image-col img { height: 280px; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid #f0f0f0;
  transition: transform .2s, box-shadow .2s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.testimonial-card__stars {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.25rem;
}

.testimonial-card__text {
  font-size: .9375rem;
  line-height: 1.75;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  background: #065f46;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: .875rem;
  color: #1a1a1a;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ---------- CTA BANNER ---------- */
.cta {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

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

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

.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2,44,34,.9) 0%, rgba(6,95,70,.85) 100%);
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- VISIT / MAP ---------- */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.visit__info p { color: #4a4a4a; line-height: 1.7; }
.visit__info .section-subtitle { margin-bottom: 2rem; }

.visit__details { display: flex; flex-direction: column; gap: 1.5rem; }

.visit__detail-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6b7280;
  margin-bottom: .25rem;
}

.visit__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  color: #065f46;
  font-weight: 500;
  transition: color .2s;
}

.visit__link:hover { color: #047857; text-decoration: underline; }

.visit__hours {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .9375rem;
  color: #4a4a4a;
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  aspect-ratio: 4/3;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
}

/* ---------- CONTACT FORM ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__text p { line-height: 1.7; }
.contact__text .section-subtitle { margin-bottom: 2rem; }

.contact__quick-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact__quick-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .9375rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, color .2s;
}

.contact__quick-link:hover { background: rgba(255,255,255,.15); color: #fff; }

.contact__form-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
  letter-spacing: .04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .875rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  transition: border-color .2s, background .2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #34d399;
  background: rgba(255,255,255,.12);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 8px;
  color: #34d399;
  font-weight: 500;
  font-size: .9375rem;
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: #022c22;
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}

.footer__inner { padding: 0 1.5rem; }

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.footer__logo-text { display: flex; flex-direction: column; }

.footer__tagline {
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 280px;
}

.footer__heading {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #34d399;
  margin-bottom: 1.25rem;
}

.footer__links ul { list-style: none; display: flex; flex-direction: column; gap: .625rem; }

.footer__links a {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer__links a:hover { color: #fff; }

.footer__contact address { font-style: normal; display: flex; flex-direction: column; gap: .625rem; }

.footer__link {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
}

.footer__link:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}

.reveal--delay  { transition-delay: .15s; }
.reveal--delay2 { transition-delay: .3s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  .btn:hover { transform: none; }
  .offer-card:hover { transform: none; }
  .testimonial-card:hover { transform: none; }
}
