/* =========================================================
   Crown House Elegant Coffee — Demo Website
   Warm café + elegant patisserie direction
   Ivory / espresso / warm beige, champagne gold as ACCENT ONLY
   ========================================================= */

:root {
  --cream: #f7f1e7;      /* main background */
  --ivory: #fcf9f2;      /* lighter surface, cards/split sections */
  --beige: #ede2d1;      /* secondary background, alternating sections */
  --cappuccino: #e3d3b8; /* subtle divider / tertiary tone */
  --coffee: #3a281f;     /* primary text — espresso */
  --coffee-soft: #6f5c4e;/* secondary text */
  --coffee-muted: #7a6a5c;/* tertiary / least important text */

  /* Champagne gold — a restrained accent, never the dominant color */
  --caramel: #b8955a;       /* champagne gold — CTA fills, dots, light touches */
  --caramel-deep: #b08d52;  /* muted hover stop for gold buttons (stays AA-safe with dark text) */
  --gold-text: #7d5f35;     /* richer gold for eyebrow labels, link hovers, icons — AA-safe on light bg */
  --gold-line: #d6c6a4;     /* soft gold for hairline dividers */
  --gold-gradient: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-deep) 100%);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--coffee);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--caramel);
  color: var(--ivory);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--coffee);
}

p { margin: 0 0 1em; color: var(--coffee-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 16px;
  font-weight: 600;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), background-position 0.5s ease, color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--gold-gradient);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: var(--coffee);
}
.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(124, 83, 33, 0.5);
}
.btn--ghost {
  background: transparent;
  border-color: var(--coffee);
  color: var(--coffee);
}
.btn--ghost:hover {
  background: var(--coffee);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 45, 31, 0.08);
  transition: box-shadow var(--transition);
}
.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo-img {
  height: 52px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.navbar__nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.navbar__nav a {
  font-size: 14px;
  color: var(--coffee-soft);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color var(--transition);
}
.navbar__nav a:hover { color: var(--gold-text); }
.navbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--caramel);
  transition: right var(--transition);
}
.navbar__nav a:hover::after { right: 0; }

.navbar__cta {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gold-gradient);
  background-size: 220% 220%;
  background-position: 0% 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--coffee);
  white-space: nowrap;
  transition: background-position 0.5s ease;
}
.navbar__cta:hover { background-position: 100% 50%; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--coffee);
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--ivory);
  border-top: 1px solid rgba(63, 45, 31, 0.1);
  padding: 8px 24px 20px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  color: var(--coffee-soft);
  border-bottom: 1px solid rgba(63, 45, 31, 0.08);
  font-size: 15px;
}
.mobile-menu__cta {
  margin-top: 12px;
  text-align: center;
  background: var(--gold-gradient);
  background-size: 220% 220%;
  color: var(--coffee) !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 600;
}

/* ---------- Hero (editorial split, no overlay) ---------- */
.hero {
  padding: 150px 0 90px;
  background: var(--cream);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero__content h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero__subheadline {
  font-size: 18px;
  color: var(--coffee-soft);
  max-width: 440px;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--coffee-muted);
}
.hero__trust strong {
  color: var(--gold-text);
  font-weight: 700;
}
.hero__trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--coffee-muted);
  opacity: 0.6;
}
.hero__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(63, 45, 31, 0.35);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Brand / Intro ---------- */
.brand { padding: 100px 0; background: var(--ivory); }
.brand__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: 64px;
  align-items: center;
}
.brand__image {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}
.brand__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(63, 45, 31, 0.3);
}
.brand__text h2 {
  font-size: clamp(27px, 3.4vw, 36px);
  margin-bottom: 20px;
}
.brand__text p { font-size: 16px; }

/* ---------- Experience — editorial list, no boxes ---------- */
.experience { padding: 100px 0; background: var(--cream); }
.experience__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.experience-item {
  padding: 8px 28px;
  border-left: 1px solid var(--gold-line);
  text-align: left;
}
.experience-item:first-child { border-left: none; padding-left: 0; }
.experience-item__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--gold-text);
  margin-bottom: 18px;
}
.experience-item__icon svg { width: 100%; height: 100%; }
.experience-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.experience-item p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Events ---------- */
.events { padding: 0; background: var(--beige); }
.events__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  max-width: none;
}
.events__media { position: relative; overflow: hidden; }
.events__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}
.events__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 72px;
}
.events__content h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 20px;
}
.events__content p {
  font-size: 16px;
  max-width: 420px;
  margin-bottom: 32px;
}

/* ---------- Gallery ---------- */
.gallery { padding: 100px 0; background: var(--ivory); }
.gallery__intro {
  text-align: center;
  max-width: 480px;
  margin: -32px auto 48px;
  font-size: 15px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery__grid--four {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
}
.gallery__grid--four .gallery__item--tall { grid-row: auto; }
.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  gap: 64px;
  align-items: center;
}
.contact__info h2 {
  font-size: clamp(27px, 3.4vw, 36px);
  margin-bottom: 28px;
  max-width: 420px;
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 16px;
  color: var(--coffee);
}
.contact__list a { transition: color var(--transition); }
.contact__list a:hover { color: var(--gold-text); }
.contact__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.contact__media {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}
.contact__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(63, 45, 31, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ivory);
  border-top: 1px solid rgba(63, 45, 31, 0.1);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer__logo-img {
  height: 56px;
  width: auto;
  mix-blend-mode: multiply;
}
.footer__location {
  font-size: 12.5px;
  color: var(--coffee-muted);
  margin: 0;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13px;
  color: var(--coffee-soft);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold-text); }
.footer__copy {
  font-size: 12px;
  color: var(--coffee-muted);
  margin: 0;
  width: 100%;
  text-align: center;
}

/* ---------- Cinematic scroll (subtle, respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero__content {
    animation: heroContentIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  }
  .hero__media {
    animation: heroMediaIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
  }
  @keyframes heroContentIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroMediaIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .parallax-img { will-change: transform; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid,
  .brand__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .brand__image { order: -1; }
  .events__grid { grid-template-columns: 1fr; }
  .events__media img { min-height: 320px; }
  .events__content { padding: 56px 32px; }
  .experience__list { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .experience-item { border-left: none; padding-left: 0; }
}

@media (max-width: 900px) {
  .navbar__nav, .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__brand-group { align-items: center; }
}

@media (max-width: 640px) {
  .experience__list { grid-template-columns: 1fr; gap: 32px; }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .hero { padding: 120px 0 64px; }
  .events__content { padding: 48px 24px; }
  .contact__media { order: -1; }
}
