/* ===== Surfbreak Nutrition — Stylesheet ===== */

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

:root {
  --forest: #1a5c3a;
  --forest-dark: #144a2e;
  --forest-deeper: #0f3a24;
  --forest-light: #2d7a4f;
  --off-white: #f7f5f0;
  --cream: #ede9e0;
  --wheat: #d4a574;
  --wheat-light: #e8c9a0;
  --charcoal: #1a1a1a;
  --dark-gray: #2d2d2d;
  --mid-gray: #555;
  --light-gray: #8a8a8a;
  --border: rgba(26, 92, 58, 0.12);
  --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);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  color: var(--charcoal);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#site-header.scrolled {
  background: rgba(247, 245, 240, 0.97);
  box-shadow: var(--shadow-sm);
}

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

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
}

.logo em { font-style: italic; font-weight: 500; color: var(--wheat); }

.logo-mark { color: var(--forest); }

.logo.logo-light { color: var(--off-white); }
.logo.logo-light em { color: var(--wheat-light); }

/* ---------- Nav ---------- */
#main-nav { position: relative; }

#nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

#nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-gray);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#nav-list a:hover { color: var(--forest); background: rgba(26, 92, 58, 0.06); }

.nav-cta {
  background: var(--forest) !important;
  color: #fff !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--forest-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  left: 0;
  transition: var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

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

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 58, 36, 0.82) 0%,
    rgba(26, 92, 58, 0.70) 50%,
    rgba(45, 122, 79, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  max-width: 720px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat-light);
  background: rgba(212, 165, 116, 0.15);
  border: 1px solid rgba(212, 165, 116, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- Section spacing ---------- */
section { padding: 100px 0; }

/* ---------- About ---------- */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--forest);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.1;
}

.about-content .section-title { margin-bottom: 24px; }

.about-content p {
  color: var(--mid-gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---------- Products ---------- */
.products { background: var(--cream); }

.products .section-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  height: 220px;
  overflow: hidden;
}

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

.product-card:hover .product-image img { transform: scale(1.06); }

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.product-info p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.7;
}

/* ---------- Quality ---------- */
.quality { background: var(--forest); color: #fff; }

.quality .section-label { color: var(--wheat-light); }

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

.quality-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.quality-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.standards-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.standard-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.standard-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(212, 165, 116, 0.15);
  border: 1px solid rgba(212, 165, 116, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wheat);
}

.standard-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.standard-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.quality-image-stack {
  position: relative;
  padding-top: 40px;
}

.quality-img-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.quality-img-float {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--forest);
}

.quality-img-float img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ---------- Visit ---------- */
.visit { background: var(--off-white); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.visit-intro {
  color: var(--mid-gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(26, 92, 58, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}

.visit-detail strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.visit-detail span {
  font-size: 0.88rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 480px;
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

/* ---------- Contact ---------- */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-intro {
  color: var(--mid-gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-direct-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-direct-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
}

.contact-direct-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  transition: var(--transition);
}

.contact-direct-value:hover { color: var(--forest-light); }

/* ---------- Form ---------- */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-gray);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--charcoal);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--forest);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.1);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(26, 92, 58, 0.08);
  border: 1px solid rgba(26, 92, 58, 0.2);
  border-radius: var(--radius-sm);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 8px;
}

.form-success svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-brand .logo { color: var(--off-white); }

.footer-links,
.footer-hours,
.footer-contact { display: flex; flex-direction: column; gap: 16px; }

.footer-links strong,
.footer-hours strong,
.footer-contact strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-links ul,
.footer-hours ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--wheat); }

.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

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

  .nav-toggle { display: block; }

  #nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--off-white);
    flex-direction: column;
    align-items: stretch;
    padding: 88px 24px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  #nav-list.open { right: 0; }

  #nav-list a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 8px; }

  .about-grid,
  .quality-split,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap img { height: 360px; }

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

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 28px; }

  .quality-img-float { display: none; }

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

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-content { padding-top: 96px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .about-stats { flex-direction: column; gap: 24px; }

  .visit-map { min-height: 300px; }
  .visit-map iframe { min-height: 300px; }
}
