/* ============================================
   PACIFIC RIM — CSS
   Burgundy + Blush · Confident Corporate
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5C1F2B;
  --burgundy-deeper: #3D141C;
  --blush: #F5E6E0;
  --blush-light: #FBF5F2;
  --blush-mid: #EDE0DA;
  --cream: #FDF8F6;
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #EEEEEE;
  --neutral-300: #E0E0E0;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.08);
  --shadow-md: 0 4px 16px rgba(123, 45, 59, 0.10);
  --shadow-lg: 0 8px 32px rgba(123, 45, 59, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --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(--neutral-900);
  background: var(--cream);
  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;
}

ul {
  list-style: none;
}

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

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--burgundy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blush-mid);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--burgundy);
}
.logo:hover {
  color: var(--burgundy-dark);
}
.logo--light {
  color: var(--white);
}
.logo--light:hover {
  color: var(--blush);
}

.logo-text {
  letter-spacing: -0.02em;
}

/* NAV */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--neutral-800);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.primary-nav a:hover {
  color: var(--burgundy);
  background: var(--blush);
}

.btn-nav {
  background: var(--burgundy);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-nav:hover {
  background: var(--burgundy-dark);
  color: var(--white) !important;
}

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--burgundy-deeper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 20, 28, 0.92) 0%,
    rgba(123, 45, 59, 0.75) 50%,
    rgba(61, 20, 28, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 230, 224, 0.15);
  border: 1px solid rgba(245, 230, 224, 0.25);
  color: var(--blush);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.text-accent-light {
  color: var(--blush);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(245, 230, 224, 0.85);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 40px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(245, 230, 224, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(245, 230, 224, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 230, 224, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 230, 224, 0.5);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  margin-bottom: 16px;
}
.section-label--light {
  color: var(--blush);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title--light {
  color: var(--white);
}
.text-accent-dark {
  color: var(--burgundy);
}
.text-accent-warm {
  color: var(--burgundy);
}
.section-header--center {
  text-align: center;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--neutral-700);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--neutral-700);
  margin-bottom: 16px;
}
.lead--light {
  color: rgba(245, 230, 224, 0.85);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-col {
  position: relative;
}
.about-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}
.about-img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text-col {
  padding: 16px 0;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature strong {
  display: block;
  font-size: 1rem;
  color: var(--neutral-900);
  margin-bottom: 4px;
}
.about-feature span {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: 100px 0;
  background: var(--white);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.product-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--blush-mid);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card-img 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 img {
  transform: scale(1.06);
}
.product-card-body {
  padding: 24px;
}
.product-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.product-card-body p {
  font-size: 0.9rem;
  color: var(--neutral-700);
  line-height: 1.7;
}

/* ============================================
   BAKERY SPOTLIGHT
   ============================================ */
.bakery-spotlight {
  padding: 100px 0;
  background: var(--burgundy-deeper);
  overflow: hidden;
}
.bakery-spotlight-inner {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy-deeper) 100%);
}
.bakery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.bakery-text {
  padding: 16px 0;
}
.bakery-detail {
  font-size: 0.95rem;
  color: rgba(245, 230, 224, 0.7);
  line-height: 1.8;
  margin-bottom: 32px;
}
.bakery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.bakery-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--blush);
  font-weight: 500;
}
.bakery-image-col {
  position: relative;
}
.bakery-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bakery-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bakery-img-small {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 50%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--burgundy-dark);
}
.bakery-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
  padding: 100px 0;
  background: var(--cream);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--blush-mid);
}
.visit-detail:first-child {
  padding-top: 0;
}
.visit-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.visit-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.visit-detail strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  margin-bottom: 6px;
  font-weight: 600;
}
.visit-detail p {
  font-size: 0.95rem;
  color: var(--neutral-800);
  line-height: 1.7;
}
.visit-detail a {
  color: var(--burgundy);
  font-weight: 600;
  transition: color var(--transition);
}
.visit-detail a:hover {
  color: var(--burgundy-dark);
}
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 100px 0;
  background: var(--burgundy);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 230, 224, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta-body {
  font-size: 1.05rem;
  color: rgba(245, 230, 224, 0.8);
  line-height: 1.8;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--neutral-700);
}
.contact-item a {
  color: var(--burgundy);
  font-weight: 600;
  transition: color var(--transition);
}
.contact-item a:hover {
  color: var(--burgundy-dark);
}
.contact-form-col {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--blush-mid);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-800);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--neutral-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--neutral-300);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--blush-light);
  border: 1px solid var(--blush-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--burgundy);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--neutral-900);
  color: var(--blush);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 230, 224, 0.1);
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 230, 224, 0.6);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blush);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(245, 230, 224, 0.6);
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--blush);
}
.footer-col li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(245, 230, 224, 0.6);
}
.footer-col li span {
  margin-left: auto;
  font-size: 0.85rem;
  color: rgba(245, 230, 224, 0.4);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(245, 230, 224, 0.4);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}

/* ============================================
   SCROLL REVEAL (below-fold only)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid,
  .bakery-grid,
  .visit-grid,
  .contact-grid {
    gap: 48px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 248, 246, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid var(--blush-mid);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .primary-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
  }
  .btn-nav {
    text-align: center;
    justify-content: center;
    margin-top: 8px;
  }

  .hero-content {
    padding: 100px 20px 80px;
  }
  .hero-stats {
    gap: 20px;
  }
  .hero-stat-divider {
    display: none;
  }

  .about-grid,
  .bakery-grid,
  .visit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img-accent {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 16px;
    border-color: var(--cream);
  }
  .bakery-img-small {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 16px;
    border-color: var(--burgundy-dark);
  }
  .bakery-list {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

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

  .contact-form-col {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
