/* ============================================
   Shape Up Nutrition — Styles
   Classic & elegant · Charcoal + Coral palette
   ============================================ */

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

:root {
  --charcoal: #36454F;
  --charcoal-deep: #2A363E;
  --charcoal-light: #4A5B66;
  --coral: #E07A5F;
  --coral-deep: #C45D3F;
  --coral-light: #F2A892;
  --cream: #F8F4F0;
  --cream-dark: #EDE8E2;
  --warm-white: #FDFCFA;
  --text-primary: #1E2A32;
  --text-secondary: #5A6B76;
  --text-muted: #8A9AA5;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(54,69,79,0.06), 0 1px 2px rgba(54,69,79,0.04);
  --shadow-md: 0 4px 16px rgba(54,69,79,0.08), 0 2px 4px rgba(54,69,79,0.04);
  --shadow-lg: 0 12px 40px rgba(54,69,79,0.12), 0 4px 12px rgba(54,69,79,0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--coral-deep); }

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

/* --- Typography --- */
.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-eyebrow--light { color: var(--coral-light); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title--light { color: var(--cream); }

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--coral {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.btn--coral:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--outline:hover {
  background: var(--charcoal);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248,244,240,0.4);
}

.btn--outline-light:hover {
  background: rgba(248,244,240,0.1);
  border-color: rgba(248,244,240,0.7);
  color: var(--cream);
}

.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 20px; font-size: 0.8125rem; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,252,250,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(54,69,79,0.06);
  transition: box-shadow var(--transition);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
}

.logo:hover { color: var(--charcoal); }

.logo-accent { color: var(--coral); }

.logo-mark { color: var(--coral); flex-shrink: 0; }

.logo--light { color: var(--cream); }
.logo--light .logo-accent { color: var(--coral-light); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--coral);
  transition: width var(--transition);
}

.main-nav a:hover { color: var(--charcoal); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--charcoal);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: all 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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

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

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__trust-item {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero__trust-dot {
  color: var(--coral-light);
  font-size: 1.25rem;
  line-height: 1;
}

.hero__image {
  position: relative;
}

.hero__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--coral-light);
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: 0.5;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--coral), 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); }
}

/* --- About --- */
.about {
  padding: 120px 0;
  background: var(--warm-white);
}

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

.about__media {
  position: relative;
}

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

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.about__badge-year {
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.about__badge-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--coral-light);
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about__text p em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--charcoal);
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(54,69,79,0.1);
}

.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Products --- */
.products {
  padding: 120px 0;
  background: var(--cream);
}

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

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

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

.product-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.product-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.04);
}

.product-card__body {
  padding: 28px;
}

.product-card__title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Philosophy --- */
.philosophy {
  padding: 120px 0;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.philosophy__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(224,122,95,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(224,122,95,0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

.philosophy__inner .section-title {
  margin-bottom: 0;
}

.philosophy__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.pillar {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.pillar:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(224,122,95,0.3);
  transform: translateY(-2px);
}

.pillar__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-light);
}

.pillar__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.pillar__desc {
  font-size: 0.875rem;
  color: rgba(248,244,240,0.6);
  line-height: 1.7;
}

/* --- Visit --- */
.visit {
  padding: 120px 0;
  background: var(--warm-white);
}

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

.visit__detail {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.visit__detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--coral);
}

.visit__detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.visit__detail p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.visit__detail a {
  color: var(--coral);
}

.visit__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}

.visit__map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  text-align: center;
  padding: 32px;
  background:
    linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.visit__map-placeholder svg {
  color: var(--coral);
  opacity: 0.6;
}

.visit__map-placeholder p {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--charcoal);
  line-height: 1.6;
}

/* --- Contact --- */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

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

.contact__text .section-title { margin-bottom: 20px; }

.contact__note {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact__note a {
  color: var(--coral);
  font-weight: 500;
}

.contact__form {
  background: var(--warm-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--cream);
  border: 1.5px solid rgba(54,69,79,0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224,122,95,0.12);
}

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

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

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(224,122,95,0.08);
  border: 1px solid rgba(224,122,95,0.2);
  border-radius: var(--radius);
  color: var(--coral-deep);
  font-size: 0.875rem;
  font-weight: 500;
}

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

/* --- Footer --- */
.site-footer {
  background: var(--charcoal-deep);
  color: var(--cream);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(248,244,240,0.08);
}

.footer__brand p {
  color: rgba(248,244,240,0.55);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer__col h4 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a {
  color: rgba(248,244,240,0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--coral-light); }

.footer__col address {
  font-style: normal;
  color: rgba(248,244,240,0.55);
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer__phone a {
  color: var(--coral-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom p {
  color: rgba(248,244,240,0.35);
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: rgba(248,244,240,0.35);
  font-size: 0.8125rem;
}

.footer__bottom a:hover { color: var(--coral-light); }

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,252,250,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid rgba(54,69,79,0.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(54,69,79,0.06);
  }

  .main-nav li:last-child { border-bottom: none; }

  .main-nav a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  .main-nav a::after { display: none; }

  .main-nav .btn {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .hero { padding: 100px 0 60px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__image { order: -1; }
  .hero__image-frame { max-height: 400px; }
  .hero__image-accent { display: none; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__badge {
    right: 16px;
    bottom: -16px;
  }

  .about__stats { gap: 24px; }

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

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

  .visit__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .about, .products, .philosophy, .visit, .contact { padding: 80px 0; }
  .hero__headline { font-size: 2rem; }
  .about__stats { flex-direction: column; gap: 20px; }
  .stat { display: flex; align-items: baseline; gap: 8px; }
  .stat__num { margin-bottom: 0; font-size: 1.75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
