/* ============================================
   On The Corner Nutrition and Energy
   Custom Styles
============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  line-height: 1.7;
  color: #240a29;
  background-color: #ffffff;
}

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

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

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

.container--narrow {
  max-width: 680px;
}

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

.section--light {
  background-color: #faf5fb;
}

.section--dark {
  background: linear-gradient(135deg, #240a29 0%, #431a4c 50%, #4f1d59 100%);
  color: #faf5fb;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 64px;
}

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

.section-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5a623;
  margin-bottom: 16px;
}

.section-eyebrow--light {
  color: #fde68a;
}

.section-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.2;
  color: #240a29;
  margin-bottom: 24px;
}

.section-headline--light {
  color: #faf5fb;
}

.section-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #4f1d59;
  max-width: 560px;
}

.section-body--wide {
  max-width: 520px;
  margin: 0 auto;
}

.section-body--light {
  color: #ebd3ef;
  max-width: 520px;
}

/* --- Thin Divider --- */
.thin-divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.thin-divider-inner {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9b0df, transparent);
}

/* --- Navigation --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 245, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 176, 223, 0.3);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 1px 20px rgba(36, 10, 41, 0.08);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #240a29;
}

.nav-brand-icon {
  width: 28px;
  height: 28px;
  color: #7b2d8e;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #240a29;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #4f1d59;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f5a623;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #7b2d8e;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  padding: 8px 20px;
  border: 1px solid #7b2d8e;
  border-radius: 100px;
  color: #7b2d8e;
  transition: all 0.2s ease;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: #7b2d8e;
  color: #faf5fb;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #240a29 0%, #431a4c 30%, #7b2d8e 60%, #a855a8 80%, #f5a623 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 166, 35, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168, 85, 168, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(36, 10, 41, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
  padding-top: 72px;
}

.hero-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: #faf5fb;
  margin-bottom: 24px;
}

.hero-headline--accent {
  font-style: italic;
  font-weight: 300;
  color: #fde68a;
}

.hero-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #ebd3ef;
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 245, 251, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--primary {
  background: #f5a623;
  color: #240a29;
  border-color: #f5a623;
}

.btn--primary:hover {
  background: #e8911a;
  border-color: #e8911a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.3);
}

.btn--ghost {
  background: transparent;
  color: #faf5fb;
  border-color: rgba(250, 245, 251, 0.4);
}

.btn--ghost:hover {
  border-color: #faf5fb;
  background: rgba(250, 245, 251, 0.1);
}

.btn--outline-light {
  background: transparent;
  color: #faf5fb;
  border-color: rgba(250, 245, 251, 0.5);
}

.btn--outline-light:hover {
  background: #faf5fb;
  color: #240a29;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

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

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

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid #d9b0df;
  border-radius: 4px;
  z-index: -1;
}

.about-image {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 2px;
}

.about-content {
  max-width: 480px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #ebd3ef;
}

.stat {
  flex: 1;
}

.stat--divider::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: #d9b0df;
}

.stat-number {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #7b2d8e;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #61236f;
  letter-spacing: 0.02em;
}

/* --- Products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: #faf5fb;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(36, 10, 41, 0.1);
}

.product-card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

.product-card-content {
  padding: 28px;
}

.product-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #240a29;
  margin-bottom: 10px;
}

.product-card-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: #61236f;
}

/* --- Community --- */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.community-image-stack {
  position: relative;
  height: 420px;
}

.community-image-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
}

.community-image-float {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border: 4px solid #431a4c;
}

/* --- Visit --- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-info {
  max-width: 480px;
}

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

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

.visit-detail-icon {
  width: 22px;
  height: 22px;
  color: #f5a623;
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a855a8;
  margin-bottom: 4px;
}

.visit-detail-value {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #240a29;
  line-height: 1.6;
}

.visit-detail-value--link {
  color: #7b2d8e;
  transition: color 0.2s ease;
}

.visit-detail-value--link:hover {
  color: #f5a623;
}

.visit-map {
  height: 420px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(36, 10, 41, 0.1);
}

.map-placeholder {
  width: 100%;
  height: 100%;
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 48px;
}

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

.contact-field {
  margin-bottom: 20px;
}

.contact-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #61236f;
  margin-bottom: 8px;
}

.contact-input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #240a29;
  background: #faf5fb;
  border: 1px solid #ebd3ef;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input::placeholder {
  color: #d9b0df;
}

.contact-input:focus {
  border-color: #7b2d8e;
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.1);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 20px;
  background: #ebd3ef;
  border-radius: 2px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #4f1d59;
}

.form-success svg {
  color: #7b2d8e;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: #240a29;
  color: #ebd3ef;
  padding: 80px 0 0;
}

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

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #faf5fb;
  margin-bottom: 16px;
}

.footer-brand-icon {
  width: 28px;
  height: 28px;
  color: #f5a623;
}

.footer-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #d9b0df;
  max-width: 260px;
  line-height: 1.7;
}

.footer-links-label,
.footer-contact .footer-links-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5a623;
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #d9b0df;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fde68a;
}

.footer-address {
  font-style: normal;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #d9b0df;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-contact-link {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #ebd3ef;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: #fde68a;
}

.footer-bottom {
  border-top: 1px solid rgba(217, 176, 223, 0.15);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: #61236f;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .about-grid,
  .community-grid,
  .visit-grid {
    gap: 48px;
  }
  
  .community-image-float {
    right: -20px;
    bottom: -20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }
  
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 245, 251, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(217, 176, 223, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .about-grid,
  .products-grid,
  .community-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image-wrap {
    order: -1;
  }
  
  .about-image {
    height: 320px;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat--divider::before {
    display: none;
  }
  
  .community-image-stack {
    height: 300px;
  }
  
  .community-image-main {
    height: 300px;
  }
  
  .community-image-float {
    width: 160px;
    height: 120px;
    right: -10px;
    bottom: -10px;
  }
  
  .visit-map {
    height: 280px;
  }
  
  .contact-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 56px 0;
  }
  
  .hero-content {
    padding-top: 64px;
  }
  
  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  
  .product-card-content {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
