/* ============================================================
   Dreamy Drip Coffee & Bakery - styles
   Aesthetic: warm daylight ritual.
   Soft light-lavender canvas (from the logo / Book button)
   warmed with peach & amber, deep plum ink for contrast.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Light lavender canvas */
  --lav-50:  #f6eafc;   /* lightest wash */
  --lav-100: #ecd9f6;   /* page base */
  --lav-200: #e1c6ef;   /* deeper bands */
  --lav-300: #d3aee7;

  /* Purple ink + accents */
  --plum-900: #2a0f42;  /* darkest text */
  --plum-700: #4a2168;
  --plum-600: #5e2c82;
  --lilac:      #a247c4; /* accent on light */
  --lilac-deep: #7a3a9e;

  /* Warm firelight accents (roasted coffee, the ceremony flame) */
  --peach: #e9a86a;
  --amber: #d98b3f;
  --ember: #c8632f;

  /* Roles */
  --ink:   #2a0f42;
  --muted: #6b4a82;
  --cream: #fbf0ff;     /* text on dark buttons */
  --card:  rgba(255, 255, 255, 0.55);
  --line:  rgba(74, 33, 104, 0.16);
  --line-strong: rgba(74, 33, 104, 0.30);
  --shadow: 0 18px 44px -26px rgba(74, 33, 104, 0.55);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
  --radius-sm: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-body);
  background: var(--lav-100);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--lilac); color: var(--cream); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lilac);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Atmospheric background ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 50% at 12% 8%,  rgba(162, 71, 196, 0.18), transparent 60%),
    radial-gradient(45% 45% at 88% 14%, rgba(233, 168, 106, 0.20), transparent 60%),
    radial-gradient(60% 55% at 82% 86%, rgba(162, 71, 196, 0.16), transparent 62%),
    radial-gradient(55% 50% at 18% 92%, rgba(217, 124, 82, 0.12), transparent 60%),
    var(--lav-100);
}
/* Subtle film grain for warmth/texture */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}
.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); position: relative; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--plum-900);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--lilac);
}
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-intro {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

p { color: rgba(42, 15, 66, 0.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
  min-height: 44px;
}
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.02rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--lilac), var(--plum-600));
  color: var(--cream);
  box-shadow: 0 10px 30px -10px rgba(94, 44, 130, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(94, 44, 130, 0.85); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  color: var(--plum-700);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--lilac); color: var(--lilac-deep); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* ============================================================
   Header / Nav
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 217, 246, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum-900);
}
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--plum-700);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--lilac);
  transition: width 0.28s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--lilac-deep); }
.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after { width: 100%; }
.nav-links a.active:not(.btn) { color: var(--lilac-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 11px;
}
.nav-toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--plum-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--plum-900);
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--lilac); }
.hero-lead {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-photo {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-img {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: clamp(20px, 4vw, 32px);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 60px -28px rgba(74, 33, 104, 0.6);
  animation: floaty 7s ease-in-out infinite;
}
.hero-photo-glow {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162,71,196,0.4), rgba(233,168,106,0.3) 55%, transparent 72%);
  filter: blur(44px);
  z-index: 0;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse  { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  padding-block: 0.9rem;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  animation: scroll-x 32s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--lilac-deep);
}
.marquee .dot { color: var(--ember); font-style: normal; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Her Story
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-text p { margin-top: 1.1rem; font-size: clamp(1rem, 2.1vw, 1.12rem); }
.signature {
  margin-top: 1.6rem !important;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ember);
  font-size: 1.2rem;
}

/* ============================================================
   Culture & Coffee Ceremony
   ============================================================ */
.culture {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45) 12%, rgba(255, 255, 255, 0.45) 88%, transparent);
}
.culture-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.culture-figure { margin: 0; }
.culture-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.culture-figure figcaption {
  margin-top: 0.8rem;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}
.culture-figure figcaption em { color: var(--ember); }
.culture-content { display: grid; gap: clamp(1.6rem, 4vw, 2.4rem); }
.culture-prose p { margin-top: 1.1rem; font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
.culture-prose p:first-child { margin-top: 0; }
.culture-prose em { color: var(--ember); font-style: italic; }

.steps {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.steps-intro { color: var(--muted); margin-bottom: 1.3rem; font-size: 0.98rem; }
.steps-list { display: grid; gap: 1.1rem; }
.step {
  position: relative;
  padding-left: 3.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-num {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--lilac);
}
.step-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--plum-900);
}
.step p { margin-top: 0.25rem; font-size: 0.96rem; color: var(--muted); }

/* ============================================================
   Gallery (photos)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 1.3rem);
}
.gallery-tile {
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-tile:hover { transform: translateY(-4px); }
.gallery-tile:hover img { transform: scale(1.05); }

/* ============================================================
   Visit
   ============================================================ */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.info-list { margin-top: 1.5rem; display: grid; gap: 1.1rem; }
.info-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.info-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
}
.info-value { font-size: 1.1rem; color: var(--plum-900); }
.info-value a:hover { color: var(--lilac-deep); }
.visit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.visit-card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(162, 71, 196, 0.22), rgba(233, 168, 106, 0.25));
  font-size: 1.4rem;
  color: var(--ember);
  margin-bottom: 1rem;
}
.visit-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--plum-900);
  margin-bottom: 0.6rem;
}
.visit-card p { color: var(--muted); }
.visit-card-social {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.3rem;
}
.visit-card-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--lilac-deep);
  transition: color 0.2s var(--ease);
}
.visit-card-social a:hover { color: var(--ember); }
.visit-card-social svg, .footer-social svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-intro p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form textarea { resize: vertical; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234a2168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(162, 71, 196, 0.18);
}
.contact-form button { margin-top: 0.4rem; justify-self: start; }
.field-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 500;
}
.form-status.is-success {
  background: rgba(162, 71, 196, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--plum-700);
}
.form-status.is-error {
  background: rgba(200, 99, 47, 0.12);
  border: 1px solid rgba(200, 99, 47, 0.4);
  color: var(--ember);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--lav-200);
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; max-width: 320px; }
.footer-logo { width: 64px; height: 64px; border-radius: 50%; }
.footer-tagline { color: var(--muted); font-family: var(--font-display); font-style: italic; }
.footer-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a, .footer-social a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-nav a:hover, .footer-social a:hover { color: var(--lilac-deep); }
.footer-social { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
}
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero load-in animation */
.hero-anim { opacity: 0; transform: translateY(20px); animation: rise 0.9s var(--ease) forwards; }
.hero-anim[data-d="1"] { animation-delay: 0.05s; }
.hero-anim[data-d="2"] { animation-delay: 0.18s; }
.hero-anim[data-d="3"] { animation-delay: 0.32s; }
.hero-anim[data-d="4"] { animation-delay: 0.46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-photo { order: -1; max-width: 280px; margin-inline: auto; }
  .hero-img { aspect-ratio: 1 / 1; }
  .culture-body { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(246, 234, 252, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(1.1rem, 4vw, 2.2rem) 1.3rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease);
  }
  .nav-links.open { max-height: 80vh; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta-li { margin-top: 0.9rem; }
  .nav-cta-li .btn { width: 100%; }

  .story-grid { grid-template-columns: 1fr; }
  .story-photo { order: 2; max-width: 420px; margin-inline: auto; width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .info-label { margin-bottom: 0.1rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  [data-reveal], .hero-anim { opacity: 1 !important; transform: none !important; }
  .hero-img, .hero-photo-glow, .marquee-track { animation: none !important; }
}
