/* ---- Apple-inspired marketing site: system font stack, generous
   whitespace, alternating full-bleed sections, pill buttons, a
   translucent sticky nav. Deliberately a separate, much simpler design
   system from admin.css (the internal control panel) - this one has to
   sell, not manage. ---- */

:root {
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-muted: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-alt2: #fbfbfd;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #1d1d1f;
  --accent-hover: #000000;
  --accent-ink: #ffffff;
  --accent-tint: var(--bg-alt);
  --pill-bg: rgba(0, 0, 0, 0.06);
  --pill-ink: #1d1d1f;
  --nav-h: 44px;
  --good: #0a8a3f;
  --danger: #d6363b;
}

/* This is a marketing/business site, not a dev tool - it does not follow
   the visitor's OS dark-mode preference. Always white background, always
   the same professional look for every visitor. Black is used
   deliberately in specific places (the feature-row photo panel) as an
   accent, not as a whole-page inverted theme. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.47059;
  letter-spacing: -0.003em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Nav ---- */
.pubnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.pubnav-inner {
  width: 100%; max-width: 1024px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.pubnav-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pubnav-brand svg { flex: none; }
.pubnav-links { display: flex; align-items: center; gap: 28px; }
.pubnav-links a { font-size: 12.5px; color: var(--ink-secondary); }
.pubnav-links a:hover { color: var(--ink); text-decoration: none; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-muted);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
}
.lang-toggle a { color: inherit; }
.lang-toggle a:hover { color: var(--ink); text-decoration: none; }
.lang-toggle a.active { color: var(--ink); font-weight: 600; }
.lang-toggle-sep { color: var(--border); }
.lang-toggle-mobile {
  padding: 10px 0 0; border: none; justify-content: center; font-size: 15px;
}
.pubnav-toggle {
  display: none; background: none; border: none; padding: 6px; margin: -6px;
  color: var(--ink); cursor: pointer;
}
.pubnav-toggle svg { display: block; }
.pubnav-mobile-panel {
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 8px 22px 16px; flex-direction: column;
}
.pubnav-mobile-panel a { padding: 10px 0; font-size: 15px; color: var(--ink-secondary); border-bottom: 1px solid var(--border); }
.pubnav-mobile-panel a:last-child { border-bottom: none; }
.pubnav-mobile-panel.open { display: flex; }

/* ---- Sections ---- */
.section { padding: 140px 22px; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner-narrow { max-width: 760px; margin: 0 auto; }
.muted { color: var(--ink-muted); }
.section-eyebrow {
  display: block; text-align: center; font-size: 19px; font-weight: 600;
  color: var(--ink-secondary); margin-bottom: 8px;
}
.section-title {
  text-align: center; font-size: clamp(32px, 5vw, 56px); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.07; margin: 0 0 16px; color: var(--ink);
}
.section-subtitle {
  text-align: center; font-size: clamp(17px, 2vw, 21px); color: var(--ink-secondary);
  max-width: 620px; margin: 0 auto 48px; font-weight: 400; line-height: 1.4;
}

/* ---- Hero ---- */
.hero {
  position: relative; padding: 100px 22px 96px; text-align: center;
}
.hero-eyebrow {
  display: inline-block; font-size: 19px; font-weight: 600; color: var(--ink-secondary);
  margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(40px, 7.5vw, 80px); font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.05; margin: 0 0 16px; color: var(--ink);
}
.hero-subtitle {
  font-size: clamp(19px, 2.4vw, 26px); color: var(--ink-secondary); max-width: 640px;
  margin: 0 auto 36px; font-weight: 400; line-height: 1.38;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---- Buttons ---- */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 23px; border-radius: 980px; font-size: 17px; font-weight: 400;
  border: 1px solid transparent; cursor: pointer; transition: background 0.15s, transform 0.1s;
  line-height: 1.17648;
}
.btn-pill:hover { text-decoration: none; }
.btn-pill:active { transform: scale(0.98); }
.btn-pill-primary { background: var(--accent); color: var(--accent-ink); }
.btn-pill-primary:hover { background: var(--accent-hover); }
.btn-pill-secondary { background: var(--pill-bg); color: var(--pill-ink); }
.btn-pill-secondary:hover { background: color-mix(in srgb, var(--pill-bg) 150%, black 6%); }
.btn-pill-outline { background: transparent; color: var(--ink); border-color: var(--ink-muted); }
.btn-pill-outline:hover { border-color: var(--ink); }
.btn-pill-sm { padding: 8px 18px; font-size: 14px; }
.link-arrow { font-size: 16px; font-weight: 500; color: var(--accent); }
.link-arrow::after { content: " \2192"; }

/* ---- Service cards ---- */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 28px; overflow: hidden;
}
.service-card {
  background: var(--bg); padding: 44px 36px; transition: background 0.2s ease;
}
.service-card:hover { background: var(--bg-alt2); }
.service-icon {
  width: 44px; height: 44px; color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-icon-hero {
  width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.service-icon-hero svg { width: 34px; height: 34px; }
.service-card h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.service-card p { font-size: 15px; color: var(--ink-secondary); line-height: 1.45; margin: 0 0 18px; }

/* ---- Feature rows (icon + text, stacked, used on home) ---- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual {
  position: relative; aspect-ratio: 4/3; border-radius: 28px; overflow: hidden;
  background: #0a0a0c;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.feature-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 45%, transparent 70%);
}
.feature-visual-badge {
  position: relative; z-index: 2; margin: 24px; width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.feature-visual-badge svg { width: 26px; height: 26px; }
.feature-text h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 14px; }
.feature-text p { font-size: 18px; color: var(--ink-secondary); line-height: 1.45; margin: 0 0 20px; }

.detail-image { width: 100%; border-radius: 20px; margin-top: 36px; display: block; }

/* ---- Full-bleed photo banner (real photography, not CSS gradients) ---- */
.photo-banner {
  position: relative; margin: 0; min-height: 420px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.photo-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.05) 100%);
}
.photo-banner-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 0 22px 48px; color: #fff;
}
.photo-banner-eyebrow { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.72); margin-bottom: 6px; }
.photo-banner-title { font-size: clamp(24px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.015em; margin: 0; }

/* ---- Two-column photo + content (contact page) ---- */
.split-photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split-photo-row img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.split-photo-content { display: flex; align-items: center; padding: 64px 56px; }
@media (max-width: 860px) {
  .split-photo-row { grid-template-columns: 1fr; }
  .split-photo-row img { min-height: 260px; }
  .split-photo-content { padding: 48px 22px; }
}

/* ---- Card carousel (On-Premise / Cloud): exactly two cards, each sized
   to fill the available width (max-width:1100px content column, same as
   the rest of the page) rather than peeking at a next card - with only
   two items there's no third thing to tease, so peeking just left dead
   space at one end. JS-driven transform slide (not native scroll - see
   the JS comment for why), auto-advancing with a progress scrubber +
   play/pause. ---- */
.ac-section { padding: 56px 0 64px; overflow: hidden; }
.ac-track { display: flex; padding: 0 22px; will-change: transform; }
.ac-card {
  flex: 0 0 auto; width: min(1100px, calc(100vw - 44px));
  min-height: 420px; border-radius: 28px; padding: 40px 40px 0;
  box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden;
}
.ac-card-light { background: var(--bg-alt); color: var(--ink); }
.ac-card-dark { background: #000; color: #fff; }
.ac-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ac-card-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.ac-card-sub { font-size: 18px; margin: 0; opacity: 0.65; }
.ac-card-cta {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.ac-card-dark .ac-card-cta { background: #fff; color: #000; }
.ac-card-cta:hover { text-decoration: none; opacity: 0.85; }
.ac-card-visual {
  flex: 1; margin: 16px -40px 0; position: relative; min-height: 200px;
}
.ac-card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.ac-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.ac-progress-track { width: 56px; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ac-progress-fill { width: 0%; height: 100%; background: var(--ink); border-radius: 999px; }
@keyframes ac-fill { from { width: 0%; } to { width: 100%; } }
.ac-progress-fill.running { animation: ac-fill 4200ms linear forwards; }
.ac-playpause {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ac-progress-fill.running { animation: none; width: 100%; }
}

/* ---- Forms (contact / booking) ---- */
.pub-form { max-width: 560px; margin: 0 auto; }
.pub-field { margin-bottom: 20px; }
.pub-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-secondary); margin-bottom: 6px; }
.pub-field input, .pub-field textarea, .pub-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--ink); font-size: 16px; font-family: inherit;
}
.pub-field input:focus, .pub-field textarea:focus, .pub-field select:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
}
.pub-field-error { color: var(--danger); font-size: 13px; margin-top: 5px; }
.pub-flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; font-size: 14.5px; }
.pub-flash-success { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.pub-flash-danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.pub-flash-warning { background: color-mix(in srgb, #b8860b 14%, transparent); color: #96690a; }
.pub-flash-info { background: var(--pill-bg); color: var(--ink-secondary); }

/* ---- Booking slot picker ---- */
.slot-days { display: flex; flex-direction: column; gap: 28px; }
.slot-day-label { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot-btn {
  padding: 10px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt);
  color: var(--ink); font-size: 14px; cursor: pointer; text-align: center; font-family: inherit;
}
.slot-btn:hover { border-color: var(--accent); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---- Footer ---- */
.pubfooter { border-top: 1px solid var(--border); padding: 48px 22px 28px; background: var(--bg-alt); }
.pubfooter-inner { max-width: 1024px; margin: 0 auto; }
.pubfooter-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 32px; }
.pubfooter h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.pubfooter a { display: block; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 8px; }
.pubfooter a:hover { color: var(--ink); text-decoration: none; }
.pubfooter-bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: 12px; color: var(--ink-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pubfooter-legal-links { display: inline-flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
.pubfooter-legal-links a { white-space: nowrap; }
.pubfooter-legal-links a + a::before { content: "\00b7"; margin: 0 8px; color: var(--ink-muted); }

@media (max-width: 720px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse { direction: ltr; }
}

@media (max-width: 640px) {
  .pubnav-links, .pubnav-inner > .lang-toggle { display: none; }
  .pubnav-toggle { display: block; }
}

/* ---- Scroll reveal (Apple-style: content settles into place as you
   scroll to it, rather than just appearing). JS toggles .in-view when
   an element enters the viewport; see base.html. ---- */
.reveal {
  opacity: 0; transform: translateY(28px);
  /* Delay is folded into each property's own transition value (rather than
     the separate transition-delay property) so it never leaks onto a
     hover transition (e.g. .service-card's background fade) also present
     on the same element - transition is a shorthand and a later rule with
     equal specificity replaces it entirely, so background has to be
     re-listed here too or hover would silently stop animating. */
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.2, 1) var(--reveal-delay, 0s),
              transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1) var(--reveal-delay, 0s),
              background 0.2s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- privacy notice ---- */
.privacy-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin-left: auto;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 18px 20px; font-size: 14px; line-height: 1.5;
}
.privacy-notice[hidden] { display: none; }
.privacy-notice p { margin: 6px 0 14px; color: var(--ink-secondary); }
.privacy-notice p a { color: var(--accent); }
.privacy-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.privacy-notice .btn-pill { font-size: 14px; padding: 9px 18px; }
.form-privacy-note { font-size: 12.5px; color: var(--ink-muted); margin-top: 12px; text-align: center; }
.form-privacy-note a { color: var(--accent); }
