/* J.P. Radić — mobile-first. Breakpoints: 640px (in-between), 900px (desktop). */

/* ---------- Fonts: Archivo, self-hosted (SIL Open Font License, see fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 800 900;
  font-display: swap;
  src: url(fonts/archivo-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 800 900;
  font-display: swap;
  src: url(fonts/archivo-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --gold: #FEC803; /* accent only: never a text colour, never behind text */
  --navy: #02213F;
  --wa: #1A8A45;

  --bg: #FFFFFF;
  --surface: #F3F5F8;
  --border: #DDE3EA;
  --text: #02213F;
  --muted: #46586D;
  --primary-bg: #02213F;
  --primary-fg: #FFFFFF;
  --review-bg: #02213F;
  --review-fg: #FFFFFF;
  --footer-bg: #02213F;
  --footer-fg: #FFFFFF;
  --footer-muted: #B9C6D4;
  --footer-line: rgba(255, 255, 255, 0.16);
  --bar-bg: rgba(255, 255, 255, 0.97);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #00152B;
  --surface: #072745;
  --border: #1D3F62;
  --text: #F1F4F8;
  --muted: #A8B6C6;
  --primary-bg: #F1F4F8;
  --primary-fg: #02213F;
  --review-bg: #072745;
  --review-fg: #F1F4F8;
  --footer-bg: #000D1C;
  --footer-fg: #F1F4F8;
  --footer-muted: #8FA1B5;
  --footer-line: rgba(255, 255, 255, 0.12);
  --bar-bg: rgba(0, 21, 43, 0.97);
  color-scheme: dark;
}

/* No JS: follow the system theme (the toggle is hidden below). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #00152B;
    --surface: #072745;
    --border: #1D3F62;
    --text: #F1F4F8;
    --muted: #A8B6C6;
    --primary-bg: #F1F4F8;
    --primary-fg: #02213F;
    --review-bg: #072745;
    --review-fg: #F1F4F8;
    --footer-bg: #000D1C;
    --footer-fg: #F1F4F8;
    --footer-muted: #8FA1B5;
    --footer-line: rgba(255, 255, 255, 0.12);
    --bar-bg: rgba(0, 21, 43, 0.97);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; }
svg { flex-shrink: 0; }
b { font-weight: 800; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.9; }

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- Shared pieces ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.logo-text {
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 8px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-outline { border: 2px solid var(--text); color: var(--text); }

/* Square behind a button icon */
.sq {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.sq-gold { background: var(--gold); color: var(--navy); }
.sq-wa { width: 38px; height: 38px; background: var(--wa); color: #FFFFFF; }

/* Gold icon chip (navy icon) */
.chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--gold);
  color: var(--navy);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 64px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
.site-header .logo { margin-right: auto; }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.lang a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
/* Stretch the tap target to the full 46px pill height */
.lang a::after {
  content: '';
  position: absolute;
  inset: -4px 0;
}
.lang a[aria-current] { background: var(--primary-bg); color: var(--primary-fg); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme]) .theme-toggle { display: none; }

.header-email { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 4px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
h1 {
  text-wrap: balance;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.sub {
  font-size: 17px;
  line-height: 1.45;
  color: var(--muted);
}
.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.wa-short { display: none; }
.cta .cta-email { display: none; } /* desktop leads with e-mail, phones with a call */
.cta-alt { display: none; }

.hero-media { display: block; }
.hero-media img {
  width: 100%;
  height: clamp(236px, 42vw, 380px);
  object-fit: cover;
  object-position: 30% 50%;
  border-radius: 16px;
  background: var(--surface);
}

.review {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--review-bg);
  color: var(--review-fg);
  font-size: 14px;
  line-height: 1.3;
}
.stars { display: flex; gap: 2px; color: var(--gold); }
.review-text { flex-grow: 1; }

/* ---------- Services ---------- */
.services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
  padding-bottom: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.card h3 { font-size: 17px; line-height: 1.25; font-weight: 800; }
.card p { font-size: 13px; line-height: 1.35; color: var(--muted); }
.note { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Photo strip ---------- */
.strip-wrap { padding: 22px 0 4px; }
.strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: 0 0 150px; border-radius: 14px; cursor: zoom-in; }
.strip picture { display: block; }
.strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface);
}

/* ---------- Prices + contact ---------- */
.split { padding-bottom: 28px; }
.block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
}

.prices, .rows {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.prices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
}
.prices li + li { border-top: 1px solid var(--border); }
.badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--gold);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.hint { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* 1px gaps over a border-coloured background draw the dividers in any row order */
.rows { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.row {
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 14px;
}
.row .chip { width: 44px; height: 44px; border-radius: 12px; }
.row-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.row-label { font-size: 13px; color: var(--muted); }
.row-value { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.row-chevron { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  flex-grow: 1;
  background: var(--footer-bg);
  color: var(--footer-fg);
}
.footer-in {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  /* 28px + room for the sticky bar, so the bar never covers the legal lines */
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer .logo { min-height: 0; }
.site-footer .logo-text { font-size: 22px; }
.slogan { font-size: 20px; font-weight: 800; font-style: italic; }
.legal {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--footer-line);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  color: var(--footer-muted);
}

.legal a {
  align-self: flex-start;
  /* 44px tap target for a small text link */
  padding: 13px 0;
  margin-bottom: -13px;
  color: var(--footer-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer :focus-visible { outline-color: var(--footer-fg); }
/* pages without the sticky bar don't need the extra room under the footer */
.page-plain .footer-in { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ---------- Text pages (privacy) ---------- */
.prose {
  max-width: 800px;
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 16px;
  line-height: 1.6;
}
.prose h1 { font-size: 34px; line-height: 1.1; }
.prose h2 { margin: 32px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .lead { font-size: 18px; color: var(--muted); }
.prose .updated { margin: 32px 0 20px; font-size: 14px; color: var(--muted); }

/* ---------- Sticky bottom bar (mobile only) ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--bar-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(2, 33, 63, 0.10);
}
/* With JS the bar stays out of the way while the hero buttons are on screen (see site.js) */
.js .bar { transition: transform 0.2s ease, visibility 0.2s; }
.js .bar:not(.is-visible) { transform: translateY(100%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .js .bar { transition: none; }
}
.bar .btn {
  flex: 1 1 0;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0;
  font-weight: 800;
}
.bar .sq { width: 30px; height: 30px; border-radius: 8px; }
.bar .sq-wa { width: 28px; height: 28px; }

/* ---------- Photo lightbox ---------- */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  background: rgba(0, 13, 28, 0.95);
  color: #FFFFFF;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lightbox::backdrop { background: transparent; }
.lightbox :focus-visible { outline-color: #FFFFFF; }
.lb-img {
  /* all strip photos are square */
  width: min(100%, 800px, calc(100vh - 190px));
  width: min(100%, 800px, calc(100dvh - 190px));
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #072745;
}
.lb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 800px);
}
.lb-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}

/* ---------- 640px: in-between ---------- */
@media (min-width: 640px) {
  .cta { flex-direction: row; }
  .cta .btn { flex: 1 1 0; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

/* ---------- 900px: desktop ---------- */
@media (min-width: 900px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
  }
  h2 { font-size: 34px; }
  a:hover { opacity: 0.85; }

  .header-in {
    gap: 12px;
    height: 76px;
    padding-left: max(40px, env(safe-area-inset-left));
    padding-right: max(40px, env(safe-area-inset-right));
  }
  .logo { gap: 8px; }
  .logo-mark { width: 36px; height: 26px; }
  .logo-text, .site-footer .logo-text { font-size: 26px; }
  .header-email {
    display: flex;
    gap: 10px;
    height: 48px;
    margin-left: 8px;
    padding: 0 18px 0 6px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
  }
  .header-email .sq { width: 36px; height: 36px; border-radius: 9px; }

  .hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "text media"
      "review media";
    gap: 26px clamp(32px, 4.4vw, 56px);
    padding-top: 64px;
    padding-bottom: 32px;
  }
  .hero-text { grid-area: text; align-self: end; gap: 22px; }
  /* no Google pill yet: one row, text centred against the photo */
  .hero:not(:has(.review)) { grid-template-areas: "text media"; }
  .hero:not(:has(.review)) .hero-text { align-self: center; }
  .loc { gap: 8px; font-size: 16px; }
  .loc svg { width: 18px; height: 18px; }
  h1 {
    font-size: clamp(40px, 4.6vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }
  .sub { font-size: 20px; max-width: 30em; }
  .cta { flex-wrap: wrap; gap: 12px; padding-top: 6px; }
  .cta .btn {
    flex: 0 0 auto;
    height: 60px;
    padding: 0 24px 0 9px;
    font-size: 18px;
    font-weight: 800;
  }
  .wa-long { display: none; }
  .wa-short { display: inline; }
  .cta .cta-email { display: flex; }
  .cta .cta-call { display: none; }
  /* a desktop can't dial, so show the number as text to read off */
  .cta-alt { display: block; margin-top: -8px; font-size: 15px; color: var(--muted); }
  .cta-alt b { color: var(--text); }

  .hero-media { grid-area: media; align-self: center; }
  .hero-media img {
    height: 440px;
    object-position: 50% 50%;
    border-radius: 20px;
  }

  .review {
    grid-area: review;
    align-self: start;
    justify-self: start;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 15px;
  }
  .stars svg { width: 16px; height: 16px; }

  .services {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 20px 24px;
    padding-top: 40px;
    padding-bottom: 0;
  }
  .services h2 { grid-area: 1 / 1; }
  .note { grid-area: 1 / 2; font-size: 15px; }
  .cards { grid-area: 2 / 1 / 3 / 3; gap: 16px; }
  .card { gap: 12px; padding: 22px; border-radius: 18px; }
  .card .chip { width: 48px; height: 48px; border-radius: 13px; }
  .card .chip svg { width: 26px; height: 26px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 15px; }

  .strip-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px max(40px, env(safe-area-inset-right)) 16px max(40px, env(safe-area-inset-left));
  }
  .strip { gap: 16px; padding: 0; }
  .strip a { border-radius: 16px; }
  .strip img { height: 220px; aspect-ratio: auto; border-radius: 16px; }

  .split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4.4vw, 56px);
    padding-top: 48px;
    padding-bottom: 72px;
  }
  .block { gap: 18px; padding-top: 0; }
  .prices, .rows { border-radius: 18px; }
  .prices li { min-height: 60px; padding: 8px 20px; font-size: 16px; }
  .badge { height: 34px; padding: 0 14px; font-size: 15px; }
  .hint { font-size: 15px; }
  .row { gap: 16px; min-height: 72px; padding: 10px 20px; }
  .row .chip { width: 48px; height: 48px; }
  .row .chip svg { width: 22px; height: 22px; }
  .row-value { font-size: 18px; }
  .row-chevron { display: none; }
  .row-mail { order: -1; } /* e-mail first on desktop */

  .footer-in {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .footer-brand { gap: 12px; }
  .slogan { font-size: 22px; }
  .legal {
    padding-top: 0;
    border-top: 0;
    font-size: 14px;
    text-align: right;
  }
  .legal a { align-self: flex-end; }
  .page-plain .footer-in { padding-bottom: 44px; }
  .prose { padding-top: 56px; padding-bottom: 72px; }
  .prose h1 { font-size: 44px; letter-spacing: -0.025em; }

  .bar { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
