/* Kalimera Digital — shared brand styles for kalimeradigital.com marketing pages
   (home, /villas/, /restaurants/, /weddings/, future /boat-maps/).
   NOT for client pages (menus, villa guides, maps, wedding sites): those carry the client's brand,
   plus the small .kd-madeby badge at most.

   Load in <head>:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Commissioner:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@1,500&display=swap">
     <link rel="stylesheet" href="/brand/brand.css">
     <link rel="icon" href="/brand/mark.svg" type="image/svg+xml">

   Concept: "morning on the Ionian". A sun rising over the water: warm paper, deep sea ink,
   one sun accent. Real photos do the emotional work; the type stays clear and practical. */

:root {
  /* Color */
  --kd-paper: #faf6ee;      /* page background, warm whitewash (sibling of mottiavraham.com's cream) */
  --kd-paper-2: #f1eadc;    /* tinted section band */
  --kd-card: #ffffff;
  --kd-ink: #0e2a38;        /* text, deep sea at dawn */
  --kd-muted: #536a75;      /* secondary text */
  --kd-line: #e3dacb;
  --kd-sea: #0f5f7f;        /* primary actions, links */
  --kd-sea-deep: #0b4560;   /* hover, dark bands */
  --kd-sun: #f2a93b;        /* the single accent: highlights, step numbers, focus */
  --kd-sun-ink: #2a1a00;    /* text on sun */
  --kd-olive: #6b7a45;      /* rare secondary, nod to the photography brand */
  --kd-on-dark: #faf6ee;

  /* Type */
  --kd-font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --kd-font-sign: "Cormorant Garamond", Georgia, "Times New Roman", serif; /* signature line only */
  --kd-fs-xs: 13px;
  --kd-fs-sm: 15px;
  --kd-fs-md: 17px;
  --kd-fs-lg: 20px;
  --kd-fs-xl: 26px;
  --kd-fs-2xl: clamp(30px, 4.4vw, 42px);
  --kd-fs-hero: clamp(40px, 7vw, 72px);

  /* Shape & space */
  --kd-radius: 14px;
  --kd-radius-sm: 10px;
  --kd-gutter: 20px;
  --kd-max: 1080px;
  --kd-shadow: 0 10px 30px rgba(14, 42, 56, .10);
  color-scheme: light;
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.kd {
  margin: 0; background: var(--kd-paper); color: var(--kd-ink);
  font-family: var(--kd-font); font-size: var(--kd-fs-md); line-height: 1.55;
}
.kd *, .kd *::before, .kd *::after { box-sizing: border-box; }
.kd img { max-width: 100%; display: block; }
.kd a { color: var(--kd-sea); }
.kd a:focus-visible, .kd button:focus-visible, .kd input:focus-visible, .kd select:focus-visible, .kd textarea:focus-visible {
  outline: 3px solid var(--kd-sun); outline-offset: 3px; border-radius: 6px;
}
.kd h1, .kd h2, .kd h3 { text-wrap: balance; letter-spacing: -.01em; }
.kd h1 { font-size: var(--kd-fs-hero); line-height: 1.02; font-weight: 800; margin: 0; }
.kd h2 { font-size: var(--kd-fs-2xl); line-height: 1.12; font-weight: 750; margin: 0; }
.kd h3 { font-size: var(--kd-fs-lg); line-height: 1.25; font-weight: 700; margin: 0; }
.kd p { margin: 0; }
.kd-wrap { max-width: var(--kd-max); margin-inline: auto; padding-inline: var(--kd-gutter); }
.kd-lead { font-size: var(--kd-fs-lg); color: var(--kd-muted); max-width: 56ch; }
.kd-muted { color: var(--kd-muted); }
.kd-eyebrow { font-size: var(--kd-fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kd-sea); }
.kd-sign { font-family: var(--kd-font-sign); font-style: italic; font-weight: 500; font-size: 1.15em; }
.kd-section { padding-block: 64px; }
.kd-section--tint { background: var(--kd-paper-2); }
.kd-section--dark { background: var(--kd-ink); color: var(--kd-on-dark); }
.kd-section--dark .kd-muted, .kd-section--dark .kd-lead { color: #b9c8ce; }
.kd-stack { display: grid; gap: 16px; }
@media (max-width: 720px) { .kd-section { padding-block: 44px; } }

/* ---------- header ---------- */
.kd-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--kd-paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--kd-line); }
.kd-header .kd-wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.kd-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kd-ink); font-weight: 800; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.kd .kd-logo { color: var(--kd-ink); }
.kd-logo img, .kd-logo svg { width: 32px; height: 32px; border-radius: 8px; }
.kd-logo span { font-weight: 500; color: var(--kd-muted); }
.kd-nav { display: flex; gap: 4px; margin-left: auto; }
.kd-nav a { text-decoration: none; color: var(--kd-ink); font-weight: 600; font-size: var(--kd-fs-sm); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.kd-nav a:hover { background: var(--kd-paper-2); }
.kd-nav a[aria-current="page"] { color: var(--kd-sea); box-shadow: inset 0 -2px 0 var(--kd-sun); border-radius: 0; }
@media (max-width: 860px) {
  .kd-header .kd-wrap { flex-wrap: wrap; gap: 0 12px; padding-block: 8px; }
  .kd-header .kd-btn { margin-left: auto; }
  .kd-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .kd-nav::-webkit-scrollbar { display: none; }
}

/* ---------- buttons ---------- */
.kd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--kd-radius-sm); font: inherit; font-weight: 700; font-size: var(--kd-fs-sm); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.kd .kd-btn--primary, .kd-btn--primary { background: var(--kd-sea); color: var(--kd-on-dark); }
.kd-btn--primary:hover { background: var(--kd-sea-deep); }
.kd .kd-btn--ghost, .kd-btn--ghost { background: transparent; color: var(--kd-ink); border-color: var(--kd-line); }
.kd-btn--ghost:hover { border-color: var(--kd-sea); }
.kd .kd-btn--sun, .kd-btn--sun { background: var(--kd-sun); color: var(--kd-sun-ink); }
.kd-btn--sun:hover { background: #e79b2a; }
.kd-btn svg { width: 18px; height: 18px; }
.kd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- cards ---------- */
.kd-card { background: var(--kd-card); border: 1px solid var(--kd-line); border-radius: var(--kd-radius); padding: 22px; }
.kd-card--link { display: grid; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.kd-card--link:hover { border-color: var(--kd-sea); transform: translateY(-2px); }
.kd-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kd-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .kd-grid-2, .kd-grid-3 { grid-template-columns: 1fr; } }

/* photo with a caption strip (use real photos only) */
.kd-photo { position: relative; overflow: hidden; border-radius: var(--kd-radius); background: var(--kd-paper-2); }
.kd-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- numbered steps (only for real sequences) ---------- */
.kd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: kd-step; }
.kd-steps li { counter-increment: kd-step; display: grid; gap: 6px; align-content: start; }
.kd-steps li::before { content: counter(kd-step); width: 36px; height: 36px; border-radius: 50%; background: var(--kd-sun); color: var(--kd-sun-ink); font-weight: 800; display: grid; place-items: center; }
.kd-steps strong { font-size: var(--kd-fs-md); }
.kd-steps span { color: var(--kd-muted); font-size: var(--kd-fs-sm); }
@media (max-width: 760px) { .kd-steps { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.kd-price { display: grid; gap: 10px; align-content: start; }
.kd-price .kd-amount { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.kd-price .kd-amount small { font-size: var(--kd-fs-sm); font-weight: 600; color: var(--kd-muted); }
.kd-price ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--kd-fs-sm); }
.kd-price--featured { border: 2px solid var(--kd-sea); box-shadow: var(--kd-shadow); }
.kd-tag { display: inline-block; justify-self: start; background: var(--kd-sun); color: var(--kd-sun-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* ---------- phone frame for live demos (put an <iframe> or <img> inside) ---------- */
.kd-phone { width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; border: 10px solid var(--kd-ink); border-radius: 38px; overflow: hidden; background: var(--kd-ink); box-shadow: var(--kd-shadow); margin-inline: auto; }
.kd-phone iframe, .kd-phone img { width: 100%; height: 100%; border: 0; display: block; background: #fff; object-fit: cover; }

/* ---------- FAQ ---------- */
.kd-faq details { border-bottom: 1px solid var(--kd-line); padding-block: 14px; }
.kd-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.kd-faq summary::after { content: "+"; color: var(--kd-sea); font-weight: 800; }
.kd-faq details[open] summary::after { content: "–"; }
.kd-faq summary::-webkit-details-marker { display: none; }
.kd-faq details p { margin-top: 8px; color: var(--kd-muted); }

/* ---------- footer ---------- */
.kd-footer { background: var(--kd-ink); color: var(--kd-on-dark); padding-block: 44px 32px; font-size: var(--kd-fs-sm); }
.kd-footer .kd-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.kd-footer a { color: var(--kd-on-dark); }
.kd-footer .kd-logo { color: var(--kd-on-dark); }
.kd-footer .kd-logo span { color: #b9c8ce; }
.kd-footer h4 { margin: 0 0 10px; font-size: var(--kd-fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #b9c8ce; }
.kd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kd-footer .kd-fine { grid-column: 1 / -1; border-top: 1px solid rgba(250, 246, 238, .15); padding-top: 18px; color: #b9c8ce; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 760px) { .kd-footer .kd-wrap { grid-template-columns: 1fr; } }

/* ---------- "Made by" badge for client pages (the only brand element allowed there) ---------- */
.kd-madeby { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--kd-font); color: inherit; opacity: .75; text-decoration: none; }
.kd-madeby img { width: 14px; height: 14px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) { .kd-card--link, .kd-btn { transition: none; } .kd-card--link:hover { transform: none; } }
