/**
 * Kanteklik marketing — shared refresh bands, waves, logo, footer.
 * No :root here on purpose: each product (and the hub) defines its own
 * palette tokens (--ink-deep, --cream, --tint, --accent, --page-max, etc.)
 * in styles.css, then links this file SECOND so these utility classes pick
 * up that page's own colors. Defining :root here would load after and
 * override product-specific tokens (e.g. cafe-bar/hotel would render olive).
 */

/* --- Logo mark --- */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}
.brand-logo--hero {
  display: block;
  width: min(188px, 52vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: var(--cream, #fff8f0);
}
.brand-logo--nav {
  display: block;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: var(--cream, #fff8f0);
  padding: 4px;
  box-sizing: border-box;
}
.brand-logo--footer {
  display: block;
  width: 136px;
  height: 136px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: var(--cream, #fff8f0);
  padding: 8px;
  box-sizing: border-box;
}
.nav-cta {
  flex-shrink: 0;
}
.brand-lockup .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-lockup .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 2px;
}

/* --- Site nav (hub + product pages) --- */
.nav {
  background: var(--ink-deep);
  color: var(--on-dark);
  padding: 14px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-dark);
}
.nav .brand-lockup {
  color: var(--on-dark);
}
.nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}
.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover {
  color: var(--on-dark);
}
.nav-end .btn {
  white-space: nowrap;
}
.lang-switcher {
  display: flex;
  flex-shrink: 0;
  background: var(--bg-elevated);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  color: var(--on-dark-muted);
  font-family: inherit;
  min-height: 36px;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
}
@media (max-width: 860px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand lang"
      "end end";
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
  }
  .nav .brand-lockup {
    grid-area: brand;
  }
  .brand-logo--nav {
    width: 64px;
    height: 64px;
  }
  .nav > .lang-switcher {
    grid-area: lang;
  }
  .nav-end {
    grid-area: end;
    margin-left: 0;
    width: 100%;
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
  }
  .nav-links {
    width: auto;
    flex: 1 1 auto;
    gap: 8px 16px;
  }
}

/* --- Bands --- */
.band {
  position: relative;
  padding: var(--section-y) var(--pad-x);
}
.band > .container,
.band > .container-narrow {
  position: relative;
  z-index: 1;
  /* Band already provides --pad-x — avoid double gutter */
  padding-inline: 0;
}
.band-ink {
  background: var(--ink-deep);
  color: var(--on-dark);
}
.band-ink .section-header h2,
.band-ink h2 {
  color: var(--on-dark);
}
.band-ink .section-header p,
.band-ink p.lead {
  color: var(--on-dark-muted);
}
.band-cream {
  background: var(--cream);
  color: var(--ink);
}
.band-soft {
  background: var(--cream-soft);
  color: var(--ink);
}
.band-tint {
  background: var(--tint);
  color: var(--ink);
}
.band-accent {
  background: var(--tint-strong);
  color: var(--on-tint);
}
.band-accent h2,
.band-accent .section-header h2 {
  color: var(--on-tint);
}
.band-accent p,
.band-accent .section-header p {
  color: rgba(243, 239, 230, 0.88);
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--pad-x, clamp(20px, 5.5vw, 36px));
  width: 100%;
  min-width: 0;
}
.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding-inline: var(--pad-x, clamp(20px, 5.5vw, 36px));
  min-width: 0;
}
.text-center {
  text-align: center;
}

/* --- FAQ (hub + product pages) --- */
.faq-wrap {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 18px;
}
.faq-group > summary.faq-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-group > summary.faq-group-title::-webkit-details-marker {
  display: none;
}
.faq-group > summary.faq-group-title::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.faq-group[open] > summary.faq-group-title::after {
  content: "–";
}
.faq-group-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.faq-group-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-group > .faq-list {
  margin-top: 12px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq-group .faq-item {
  background: var(--cream-soft, var(--surface-muted, var(--surface)));
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* --- Waves between bands --- */
.wave {
  display: block;
  width: 100%;
  height: var(--wave-height);
  margin: 0;
  line-height: 0;
  overflow: hidden;
}
.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wave path {
  fill: currentColor;
}

/* --- Icon wells --- */
.icon-well {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.icon-well svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.band-accent .icon-well {
  background: rgba(243, 239, 230, 0.18);
  color: var(--on-tint);
}
.band-ink .icon-well {
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 28px);
  max-width: var(--page-max);
  margin: 0 auto;
}
.icon-grid article {
  text-align: left;
}
.icon-grid h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--primary);
}
.band-tint .icon-grid h3 {
  color: var(--primary);
}
.icon-grid p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* --- Stats strip --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  text-align: center;
}
.stats-row .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 6px;
}
.stats-row .stat-label {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- Footer (rich) --- */
.site-footer {
  background: var(--ink-band);
  color: var(--on-dark-muted);
  padding: var(--section-y) var(--pad-x) 28px;
  border-top: 1px solid var(--border-dark);
}
.site-footer-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
  gap: clamp(24px, 4vw, 40px);
}
.site-footer .brand-lockup {
  color: var(--on-dark);
  margin-bottom: 10px;
}
.site-footer .footer-blurb {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 28ch;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 12px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--on-dark);
}
.site-footer a.footer-facebook {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer a.footer-facebook svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.site-footer-bottom {
  max-width: var(--page-max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: 0.82rem;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin: 0;
}
.site-footer-legal a {
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-cookies {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--on-dark-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-cookies:hover,
.site-footer-cookies:focus-visible {
  color: var(--on-dark);
}
.site-footer .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* --- Section header helpers --- */
.section-header {
  text-align: center;
  max-width: 36rem;
  width: 100%;
  margin: 0 auto 36px;
  padding-inline: 0;
  box-sizing: border-box;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 auto 10px;
  color: var(--primary);
  text-align: center;
  text-wrap: balance;
}
.section-header p {
  margin: 0 auto;
  color: var(--ink-muted);
  text-align: center;
  max-width: 34rem;
}

/* --- Motion --- */
@media (prefers-reduced-motion: reduce) {
  .wave,
  .hero-phone,
  .track,
  .proof-track {
    animation: none !important;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }
  .icon-grid article {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .icon-grid p {
    max-width: 28rem;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer-bottom {
    flex-direction: column;
    text-align: left;
  }
}

/* --- Page shell: no horizontal rubber-band / zoom gutter --- */
html {
  overflow-x: clip;
  max-width: 100%;
  scroll-padding-top: 7.5rem;
}
#contact,
#contact-form {
  scroll-margin-top: 7.5rem;
}
@media (max-width: 860px) {
  html {
    scroll-padding-top: 11rem;
  }
  #contact,
  #contact-form {
    scroll-margin-top: 11rem;
  }
}
body {
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

/* Journey: stack on narrow screens (marker stays in-flow, media below).
   Product styles.css had a side-by-side phone column that overflowed phones. */
@media (max-width: 800px) {
  .journey {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-left: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .journey::before {
    display: none !important;
  }
  .journey-step {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 6px 14px !important;
    text-align: left !important;
    align-items: start !important;
    width: 100%;
    min-width: 0;
  }
  .journey-marker {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    box-shadow: none !important;
  }
  .journey-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
  }
  .journey-step h3,
  .journey-step p.journey-desc {
    max-width: none !important;
    margin-inline: 0 !important;
  }
  .journey-media {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: min(280px, 100%) !important;
    max-width: min(280px, 100%) !important;
    margin-block: 12px 0 !important;
    margin-inline: auto !important;
    min-width: 0;
    justify-self: center !important;
  }
}

/* Shared contact / quote form (hub + product pages) */
.contact-form {
  background: var(--surface, #fff8f0);
  color: var(--ink, #1a1712);
  padding: 28px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border, #d4ccbc);
  text-align: left;
  max-width: 560px;
  margin: 28px auto 0;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-muted, #5c5348);
  margin: 0 0 18px;
  padding: 10px 12px;
  background: var(--surface-muted, #e8e2d6);
  border-radius: 6px;
  border: 1px solid var(--border, #d4ccbc);
}

.form-privacy {
  margin: -8px 0 18px;
  font-size: 0.85rem;
}

.form-privacy a {
  color: var(--accent, #6f2526);
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #d4ccbc);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent, #6f2526);
}

.form-status {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.form-status.is-ok {
  background: var(--surface-muted, #e8e2d6);
  border: 1px solid var(--border, #d4ccbc);
  color: var(--ink, #1a1712);
}
.form-status.is-err {
  background: #f8ecec;
  border: 1px solid #e0c4c4;
  color: var(--ink, #1a1712);
}
.form-status a {
  color: inherit;
  font-weight: 700;
}

.band-ink .contact-form,
.closing .contact-form {
  box-shadow: none;
}
