/* ============================================
   Rapha — Artisan Bakery & Grocer
   Clean minimalist · Deep navy + warm gold
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: #0B1D3A;
  background-color: #FDFBF7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

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

/* ---------- SECTION EYEBROW ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C8A45E;
  margin-bottom: 16px;
}

/* ---------- SECTION TITLE ---------- */
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  color: #0B1D3A;
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  color: #1A3A6A;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: #3A4F6A;
  max-width: 520px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn--gold {
  background: #C8A45E;
  color: #0B1D3A;
  border: 1.5px solid #C8A45E;
}

.btn--gold:hover {
  background: #B8943E;
  border-color: #B8943E;
}

.btn--navy {
  background: #0B1D3A;
  color: #FDFBF7;
  border: 1.5px solid #0B1D3A;
}

.btn--navy:hover {
  background: #1A3A6A;
  border-color: #1A3A6A;
}

.btn--outline-light {
  background: transparent;
  color: #FDFBF7;
  border: 1.5px solid rgba(253, 251, 247, 0.6);
}

.btn--outline-light:hover {
  background: rgba(253, 251, 247, 0.1);
  border-color: #FDFBF7;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(253, 251, 247, 0.97);
  box-shadow: 0 1px 0 rgba(11, 29, 58, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: #FDFBF7;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled .nav-logo-mark {
  color: #0B1D3A;
  border-color: #0B1D3A;
}

.nav-logo-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #FDFBF7;
  transition: color 0.4s ease;
}

.nav.scrolled .nav-logo-word {
  color: #0B1D3A;
}

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

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(253, 251, 247, 0.85);
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-link:hover {
  color: #FDFBF7;
}

.nav.scrolled .nav-link {
  color: #3A4F6A;
}

.nav.scrolled .nav-link:hover {
  color: #0B1D3A;
}

.nav-cta-btn {
  color: #C8A45E !important;
  font-weight: 400;
}

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

.nav-cta-btn:hover {
  color: #C8A45E !important;
}

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

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #FDFBF7;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
  transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
  background: #0B1D3A;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 58, 0.55) 0%,
    rgba(11, 29, 58, 0.65) 50%,
    rgba(11, 29, 58, 0.80) 100%
  );
}

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

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8A45E;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.1;
  color: #FDFBF7;
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: #E8D5A0;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(253, 251, 247, 0.8);
  max-width: 540px;
  margin: 0 auto 40px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(253, 251, 247, 0.5);
  transition: color 0.3s ease;
}

.hero-scroll:hover {
  color: #C8A45E;
}

.hero-scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ========== ABOUT ========== */
.section {
  padding: 120px 0;
}

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

.about-image-wrap {
  overflow: hidden;
  border-radius: 2px;
}

.about-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-wrap:hover img {
  transform: scale(1.02);
}

.about-text {
  padding: 16px 0;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #3A4F6A;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(11, 29, 58, 0.1);
}

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

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: #0B1D3A;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7F9A;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(11, 29, 58, 0.12);
}

/* ========== DIVIDER ========== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(11, 29, 58, 0.1);
  max-width: 200px;
}

.divider-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ========== PRODUCTS ========== */
.products {
  background: #F5F0E8;
}

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

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

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

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

.product-card:hover {
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.1);
  transform: translateY(-4px);
}

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

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

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

.product-card-body {
  padding: 28px 28px 32px;
}

.product-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: #0B1D3A;
  margin-bottom: 10px;
}

.product-card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #6B7F9A;
}

/* ========== GROCER ========== */
.grocer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grocer-content {
  order: 1;
}

.grocer-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #3A4F6A;
  margin-bottom: 28px;
}

.grocer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.grocer-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #3A4F6A;
}

.grocer-list-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: #C8A45E;
}

.grocer-image {
  order: 2;
  overflow: hidden;
  border-radius: 2px;
}

.grocer-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.grocer-image:hover img {
  transform: scale(1.02);
}

/* ========== VISIT ========== */
.visit {
  background: #0B1D3A;
  color: #FDFBF7;
}

.visit .section-eyebrow {
  color: #C8A45E;
}

.visit .section-title {
  color: #FDFBF7;
}

.visit .section-title em {
  color: #E8D5A0;
}

.visit .section-header {
  margin-bottom: 64px;
}

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

.visit-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.visit-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C8A45E;
  margin-bottom: 10px;
}

.visit-block p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(253, 251, 247, 0.75);
}

.visit-phone,
.visit-email {
  color: #FDFBF7;
  font-size: 18px;
  border-bottom: 1px solid rgba(253, 251, 247, 0.2);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.visit-phone:hover,
.visit-email:hover {
  color: #C8A45E;
  border-color: #C8A45E;
}

.visit-map {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.visit-map a {
  display: block;
  position: relative;
  overflow: hidden;
}

.visit-map img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.visit-map:hover img {
  transform: scale(1.03);
}

.visit-map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(11, 29, 58, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #FDFBF7;
  letter-spacing: 0.04em;
  transition: background 0.3s ease;
}

.visit-map:hover .visit-map-overlay {
  background: rgba(11, 29, 58, 0.95);
}

/* ========== FOOTER ========== */
.footer {
  background: #081428;
  color: rgba(253, 251, 247, 0.5);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(253, 251, 247, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid #C8A45E;
  border-radius: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  color: #C8A45E;
}

.footer-logo-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #FDFBF7;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(253, 251, 247, 0.4);
  max-width: 240px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(253, 251, 247, 0.5);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #C8A45E;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(253, 251, 247, 0.5);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #C8A45E;
}

/* ========== REVEAL ANIMATION ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

/* Default state: visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
}

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

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

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    top: 72px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    background: rgba(11, 29, 58, 0.97);
    backdrop-filter: blur(12px);
    padding: 40px 24px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 15px;
    color: rgba(253, 251, 247, 0.85) !important;
    border-bottom: 1px solid rgba(253, 251, 247, 0.08);
  }

  .nav-link:hover {
    color: #C8A45E !important;
  }

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

  .nav-cta-btn {
    color: #C8A45E !important;
    margin-top: 16px;
    border-bottom: none !important;
  }

  .nav.scrolled .nav-menu {
    background: rgba(253, 251, 247, 0.98);
  }

  .nav.scrolled .nav-link {
    color: #3A4F6A !important;
    border-bottom-color: rgba(11, 29, 58, 0.08);
  }

  .nav.scrolled .nav-link:hover {
    color: #0B1D3A !important;
  }

  .nav.scrolled .nav-toggle-line {
    background: #0B1D3A;
  }

  .about-grid,
  .grocer-layout,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grocer-content {
    order: 2;
  }

  .grocer-image {
    order: 1;
  }

  .about-image-wrap img,
  .grocer-image img {
    height: 400px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

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

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(32px, 10vw, 48px);
  }

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

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

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

  .stat-divider {
    display: none;
  }
}
