/* ═══════════════════════════════════════════
   S&J's Caffe Express — Stylesheet
   Classic & Elegant · Burgundy + Blush
   ═══════════════════════════════════════════ */

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

:root {
  --burgundy: #6B1D2A;
  --burgundy-dark: #4A1419;
  --burgundy-light: #8B2E3F;
  --blush: #F5E6D3;
  --blush-light: #FAF3EB;
  --blush-dark: #E8D5C0;
  --cream: #FDF9F5;
  --charcoal: #2C2420;
  --charcoal-light: #4A3F3A;
  --warm-gray: #7A6E67;
  --warm-gray-light: #A89890;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Skip Link ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--burgundy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1px;
  background: var(--burgundy);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

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

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.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: 0 8px 24px rgba(107, 29, 42, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ── Header ──────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(253, 249, 245, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(44, 36, 32, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 101;
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.site-header.scrolled .logo-mark,
.site-header.scrolled .logo-text {
  color: var(--burgundy);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  position: relative;
}

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

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

.site-nav a:hover {
  color: var(--white);
}

.site-header.scrolled .site-nav a {
  color: var(--charcoal-light);
}

.site-header.scrolled .site-nav a:hover {
  color: var(--burgundy);
}

.btn-nav {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: all var(--transition);
}

.btn-nav:hover {
  background: var(--white);
  color: var(--burgundy) !important;
  border-color: var(--white);
}

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

.site-header.scrolled .btn-nav {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.site-header.scrolled .btn-nav:hover {
  background: var(--burgundy);
  color: var(--white) !important;
}

/* ── Mobile Nav Toggle ───────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

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

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 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 {
  transform: rotate(45deg);
  top: 0;
}

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

.site-header.scrolled .hamburger {
  background: var(--charcoal);
}

.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after {
  background: var(--charcoal);
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  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;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 32, 0.55) 0%,
    rgba(107, 29, 42, 0.65) 50%,
    rgba(44, 36, 32, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding-top: 5rem;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245, 230, 211, 0.85);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

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

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

/* ── About ───────────────────────────────── */
.about {
  padding: 8rem 0;
  background: var(--cream);
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44, 36, 32, 0.15);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 55%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44, 36, 32, 0.2);
  border: 4px solid var(--cream);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 120px;
  height: 120px;
  background: var(--blush);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
}

.about-content {
  padding: 1rem 0;
}

.about-content p {
  color: var(--warm-gray);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--burgundy);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ── Divider Section ─────────────────────── */
.divider-section {
  padding: 5rem 0;
  background: var(--burgundy);
}

.divider-content {
  text-align: center;
}

.divider-icon {
  width: 40px;
  height: 40px;
  color: var(--blush);
  margin: 0 auto 1.5rem;
  opacity: 0.7;
}

.divider-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--blush-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Products ────────────────────────────── */
.products {
  padding: 8rem 0;
  background: var(--blush-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .section-eyebrow {
  padding-left: 0;
}

.section-header .section-eyebrow::before {
  display: none;
}

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

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

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44, 36, 32, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.12);
}

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

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

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

.product-body {
  padding: 2rem;
}

.product-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.product-body p {
  color: var(--warm-gray);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ── Gallery ─────────────────────────────── */
.gallery {
  padding: 8rem 0;
  background: var(--cream);
}

.gallery .section-header {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 5/4;
}

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

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ── Visit ───────────────────────────────── */
.visit {
  padding: 8rem 0;
  background: var(--blush-light);
}

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

.visit-info {
  padding: 1rem 0;
}

.visit-address {
  font-style: normal;
  margin: 2rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.visit-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.visit-icon {
  width: 24px;
  height: 24px;
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.visit-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray-light);
  margin-bottom: 0.25rem;
}

.visit-detail a {
  color: var(--burgundy);
  font-weight: 500;
}

.visit-detail a:hover {
  color: var(--burgundy-dark);
  text-decoration: underline;
}

.visit-detail p {
  color: var(--charcoal-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44, 36, 32, 0.12);
  aspect-ratio: 4/3;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* ── Contact ─────────────────────────────── */
.contact {
  padding: 8rem 0;
  background: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-content p {
  color: var(--warm-gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--burgundy);
  transition: color var(--transition);
}

.contact-phone:hover {
  color: var(--burgundy-dark);
}

.contact-phone svg {
  width: 24px;
  height: 24px;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(44, 36, 32, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--blush-dark);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--blush-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 29, 42, 0.1);
  background: var(--white);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(107, 29, 42, 0.06);
  border-radius: 4px;
  color: var(--burgundy);
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-brand .logo-mark,
.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blush);
}

.footer-contact address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--blush);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Back to Top ─────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 50;
  box-shadow: 0 4px 16px rgba(107, 29, 42, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .about-grid,
  .visit-grid,
  .contact-inner {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(44, 36, 32, 0.15);
    z-index: 100;
  }

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

  .site-nav ul {
  flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-nav a {
    color: var(--charcoal);
    font-size: 1rem;
    padding: 0.75rem 0;
    display: block;
  }

  .site-nav a:hover {
    color: var(--burgundy);
  }

  .site-header.scrolled .site-nav a {
    color: var(--charcoal);
  }

  .btn-nav {
    border-color: var(--burgundy);
    color: var(--burgundy) !important;
    margin-top: 1rem;
  }

  .btn-nav:hover {
    background: var(--burgundy);
    color: var(--white) !important;
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

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

  .about-images {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .visit-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    aspect-ratio: 16/9;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

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

  .about,
  .products,
  .gallery,
  .visit,
  .contact {
    padding: 5rem 0;
  }

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

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .about-img-secondary {
    right: -0.5rem;
    bottom: -1.5rem;
  }
}

/* ── Reduced Motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .product-card:hover,
  .gallery-item:hover {
    transform: none;
  }

  .product-card:hover .product-img img,
  .gallery-item:hover img {
    transform: none;
  }
}

/* ── Print ────────────────────────────────── */
@media print {
  .site-header,
  .back-to-top,
  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-bg {
    position: relative;
  }

  .hero-overlay {
    background: rgba(107, 29, 42, 0.9);
  }
}
