/*
Theme Name: Paju Hambaravi Pro
Theme URI: https://pajuhambaravi.ee/
Author: Paju Hambaravi
Description: Modern, lightweight multilingual landing page for Paju Hambaravi dental clinic. ET/EN/RU, SEO-optimised, mobile-first.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: paju-hambaravi-pro
License: Private
*/


/* ════════════════════════════════════════
     RESET & CUSTOM PROPERTIES
  ════════════════════════════════════════ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --teal:       #0d7a72;
    --teal-dark:  #095f59;
    --teal-light: #18a89e;
    --mint:       #d2f0ec;
    --mint-deep:  #a8ddd7;
    --bg:         #ffffff;
    --bg-soft:    #f3fbfa;
    --bg-card:    #ffffff;
    --text:       #192e34;
    --muted:      #5c7880;
    --border:     #d9e9e8;
    --sh-sm:  0 2px 10px rgba(13,70,66,.07);
    --sh:     0 8px 28px rgba(13,70,66,.10);
    --sh-lg:  0 20px 52px rgba(13,70,66,.14);
    --r:   20px;
    --r-s: 12px;
    --max: 1140px;
    --ff: 'Inter', system-ui, -apple-system, sans-serif;
  }

  html { scroll-behavior: smooth; }
  body {
    font-family: var(--ff);
    color: var(--text);
    background: var(--bg);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
  }
  a { text-decoration: none; color: inherit; }

  /* ════════════════════════════════════════
     LAYOUT
  ════════════════════════════════════════ */
  .wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
  .sec  { padding: 76px 0; }
  .sec--soft { background: var(--bg-soft); }

  /* ════════════════════════════════════════
     TYPOGRAPHY
  ════════════════════════════════════════ */
  h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
  h2 { font-size: clamp(26px, 3.8vw, 42px); font-weight: 800; line-height: 1.09; letter-spacing: -.035em; }
  h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
  .lead  { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); line-height: 1.68; }
  .muted { color: var(--muted); }

  .tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--mint); color: var(--teal-dark);
    font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  }
  .bar {
    width: 44px; height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: 2px; margin: 14px 0 18px;
  }

  /* ════════════════════════════════════════
     BUTTONS
  ════════════════════════════════════════ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 999px;
    font-family: var(--ff); font-size: 15px; font-weight: 700;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap; line-height: 1;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }

  .btn-p {
    background: var(--teal); color: #fff;
    box-shadow: 0 4px 18px rgba(13,122,114,.38);
  }
  .btn-p:hover { background: var(--teal-dark); box-shadow: 0 8px 28px rgba(13,122,114,.44); }

  .btn-s {
    background: #fff; color: var(--teal-dark);
    border-color: var(--border); box-shadow: var(--sh-sm);
  }
  .btn-s:hover { background: var(--bg-soft); }

  .btn-lg { padding: 17px 30px; font-size: 17px; }
  .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

  /* ════════════════════════════════════════
     HEADER
  ════════════════════════════════════════ */
  .hd {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid rgba(217,233,232,.8);
  }
  .hd-in {
    display: flex; align-items: center; gap: 16px;
    padding: 13px 0;
  }

  .logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .logo-ico {
    width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--teal) 0%, #20b0a6 100%);
    box-shadow: 0 4px 14px rgba(13,122,114,.32);
    display: grid; place-items: center; color: #fff; font-size: 22px;
  }
  .logo-txt strong { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
  .logo-txt span   { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

  .hd-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }

  .nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
  .nav-links a {
    padding: 8px 13px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: var(--muted);
    transition: color .15s, background .15s;
  }
  .nav-links a:hover { color: var(--teal-dark); background: var(--bg-soft); }

  .lang-sw {
    display: flex; gap: 2px; padding: 3px;
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 999px;
  }
  .lang-btn {
    padding: 6px 12px; border-radius: 999px; border: none;
    font: 600 12px var(--ff); color: var(--muted); cursor: pointer;
    background: transparent; transition: .15s;
  }
  .lang-btn[aria-pressed="true"] { background: var(--teal); color: #fff; }
  .lang-btn:hover:not([aria-pressed="true"]) { color: var(--teal-dark); }

  .hd-cta { display: flex; align-items: center; gap: 8px; }

  /* ════════════════════════════════════════
     HERO
  ════════════════════════════════════════ */
  .hero { padding: 60px 0 52px; }
  .hero-grid {
    display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center;
  }

  .hero-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    background: var(--mint); color: var(--teal-dark);
    font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 999px;
  }
  .hero-kicker::before {
    content: ''; width: 8px; height: 8px; background: var(--teal);
    border-radius: 50%; flex-shrink: 0;
  }

  h1 em { font-style: normal; color: var(--teal); }
  .hero-h1 { margin-bottom: 18px; }
  .hero-sub { max-width: 520px; margin-bottom: 30px; }

  .hero-trust { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
  .trust-i {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--muted);
  }
  .trust-i svg { color: var(--teal); flex-shrink: 0; }

  .hero-card {
    background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: var(--r); padding: 28px; box-shadow: var(--sh);
  }
  .hero-card h3  { font-size: 18px; margin-bottom: 5px; }
  .hero-card > p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

  .cblock { display: grid; gap: 10px; }
  .crow {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 15px; border-radius: var(--r-s);
    background: #fff; border: 1px solid var(--border);
    transition: border-color .15s;
  }
  a.crow:hover { border-color: var(--mint-deep); }
  .crow-ico {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
    background: var(--mint); display: grid; place-items: center; color: var(--teal);
  }
  .crow-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
  .crow-val { font-size: 15px; font-weight: 700; }

  /* ════════════════════════════════════════
     SERVICES
  ════════════════════════════════════════ */
  .svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 44px; }

  .svc-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); padding: 26px; box-shadow: var(--sh-sm);
    transition: transform .2s, box-shadow .2s;
  }
  .svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
  .svc-ico {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--mint); display: grid; place-items: center;
    color: var(--teal); margin-bottom: 18px;
  }
  .svc-card h3  { font-size: 17px; margin-bottom: 8px; }
  .svc-card p   { font-size: 14px; color: var(--muted); line-height: 1.58; }

  /* ════════════════════════════════════════
     ABOUT
  ════════════════════════════════════════ */
  .abt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }

  .abt-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); padding: 34px; box-shadow: var(--sh-sm);
  }
  .abt-card h3  { margin-bottom: 14px; }
  .abt-card p   { font-size: 15px; color: var(--muted); line-height: 1.68; margin-bottom: 12px; }
  .abt-card p:last-of-type { margin-bottom: 0; }
  .abt-notice {
    background: linear-gradient(135deg, #e4f8f5 0%, #d1f0eb 100%);
    border-color: var(--mint-deep);
  }

  /* ════════════════════════════════════════
     CONTACT
  ════════════════════════════════════════ */
  .ct-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-top: 44px; }

  .map-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden; box-shadow: var(--sh);
  }
  .map-hd { padding: 22px 22px 0; }
  .map-btns { display: flex; gap: 10px; margin: 14px 0 18px; flex-wrap: wrap; }
  .map-wrap { height: 320px; background: var(--bg-soft); display: grid; place-items: center; }
  .map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
  .map-ph { text-align: center; padding: 24px; color: var(--muted); font-size: 14px; }
  .map-ph svg { opacity: .4; margin-bottom: 10px; }

  .info-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r); padding: 30px; box-shadow: var(--sh-sm);
  }
  .info-list { display: grid; gap: 10px; margin-top: 18px; }
  .info-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 15px; border-radius: var(--r-s);
    background: var(--bg-soft); border: 1px solid var(--border);
  }
  .info-ico {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
    background: var(--mint); display: grid; place-items: center; color: var(--teal); margin-top: 1px;
  }
  .info-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
  .info-val { font-size: 15px; font-weight: 600; }
  .info-val a { color: var(--teal-dark); }
  .info-val a:hover { text-decoration: underline; }

  /* ════════════════════════════════════════
     FOOTER
  ════════════════════════════════════════ */
  .ft { background: var(--text); color: rgba(255,255,255,.55); padding: 30px 0; }
  .ft-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .ft-brand { display: flex; align-items: center; gap: 10px; }
  .ft-brand strong { color: #fff; font-size: 15px; }
  .ft-logo {
    width: 36px; height: 36px; border-radius: 10px; font-size: 18px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: grid; place-items: center;
  }
  .ft-info { font-size: 13px; line-height: 1.75; }
  .ft-info a { color: rgba(255,255,255,.45); }
  .ft-info a:hover { color: #fff; }

  /* ════════════════════════════════════════
     STICKY MOBILE CTA
  ════════════════════════════════════════ */
  .sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    padding: 10px 14px 16px;
    background: linear-gradient(to top, rgba(255,255,255,.96) 55%, transparent);
    display: none;
  }
  .sticky-cta .btn { width: 100%; min-height: 54px; font-size: 16px; }

  /* ════════════════════════════════════════
     FADE-IN
  ════════════════════════════════════════ */
  .fi { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .fi.on { opacity: 1; transform: none; }

  /* ════════════════════════════════════════
     RESPONSIVE
  ════════════════════════════════════════ */
  @media (max-width: 1060px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .svc-grid  { grid-template-columns: repeat(2,1fr); }
    .abt-grid, .ct-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    .sec { padding: 54px 0; }
    .hero { padding: 36px 0 30px; }
    .nav-links { display: none; }
    .hd-cta .btn-s { display: none; }
    .svc-grid { grid-template-columns: 1fr; }
    .map-wrap { height: 280px; }
    .sticky-cta { display: block; }
    .ft { padding-bottom: 96px; }
    .ft-in { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 480px) {
    .hero-trust { gap: 14px; }
    .btn-lg { padding: 15px 24px; font-size: 16px; }
  }

/* Footer single block override */
.ft-in--single{justify-content:flex-end;}
.ft-info{max-width:560px;text-align:right;line-height:1.75;}
@media (max-width:780px){.ft-info{text-align:left;max-width:none;}}


.svc-ico svg{width:28px;height:28px;display:block;}


/* Desktop call modal */
.call-modal{position:fixed;inset:0;display:none;z-index:200;}
.call-modal.is-open{display:block;}
.call-modal__backdrop{position:absolute;inset:0;background:rgba(17,52,58,.48);backdrop-filter:blur(6px);}
.call-modal__dialog{position:relative;z-index:1;min-height:100%;display:grid;place-items:center;padding:24px;}
.call-modal__content{
  position:relative;
  width:min(460px, calc(100% - 24px));
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--sh-lg);
  padding:28px;
  text-align:center;
}
.call-modal__close{
  position:absolute;top:14px;right:14px;border:none;background:#f3fbfa;color:var(--teal-dark);
  width:38px;height:38px;border-radius:999px;font-size:24px;line-height:1;cursor:pointer;
}
.call-modal__tag{
  display:inline-flex;align-items:center;justify-content:center;
  padding:7px 12px;border-radius:999px;background:var(--mint);color:var(--teal-dark);
  font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:14px;
}
.call-modal__phone a{
  display:inline-block;font-size:30px;font-weight:800;color:var(--teal-dark);margin:8px 0 18px;
}
.call-modal__qr{
  display:grid;place-items:center;
  padding:16px;border-radius:20px;background:var(--bg-soft);border:1px solid var(--border);
  margin:0 auto 12px;max-width:240px;
}
.call-modal__qr img{width:190px;height:190px;display:block;}
.call-modal__hint{font-size:13px;color:var(--muted);margin-bottom:18px;}
.call-modal__actions{justify-content:center;}
@media (max-width: 780px){
  .call-modal{display:none !important;}
}



.call-modal__qr-card{
  margin:0 auto 14px;
  max-width:260px;
  background:linear-gradient(180deg,#ffffff 0%, #f7fcfb 100%);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 14px 34px rgba(17,52,56,.10);
  padding:14px 14px 16px;
}
.call-modal__qr-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:12px;
}
.call-modal__qr-badge{
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  background:var(--mint);
  color:var(--teal-dark);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}
.call-modal__qr-title{
  font-size:14px;
  font-weight:700;
  color:var(--text);
}
.call-modal__qr{
  display:grid;
  place-items:center;
  padding:14px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--border);
  margin:0 auto;
  max-width:220px;
}
.call-modal__qr img{
  width:180px;
  height:180px;
  display:block;
}
.call-modal__hint{
  font-size:13px;
  color:var(--muted);
  margin-bottom:18px;
}



/* Theme toggle */
.theme-toggle{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid var(--border); background:#fff; color:var(--teal-dark);
  border-radius:999px; padding:7px 10px; cursor:pointer; font:600 14px var(--ff);
  box-shadow:var(--sh-sm); transition:.2s ease;
}
.theme-toggle:hover{ background:var(--bg-soft); }
.theme-toggle__moon{ opacity:.55; }
html[data-theme="dark"] .theme-toggle__sun{ opacity:.55; }
html[data-theme="dark"] .theme-toggle__moon{ opacity:1; }
html[data-theme="light"] .theme-toggle__sun{ opacity:1; }

/* Dark theme variables */
html[data-theme="dark"]{
  --bg: #0f171a;
  --bg-soft: #152126;
  --bg-card: #18262b;
  --text: #e8f1f3;
  --muted: #a7bcc2;
  --border: #274047;
  --mint: #173a37;
  --mint-deep: #245752;
  --teal: #25a69a;
  --teal-dark: #baf4ec;
  --teal-light: #47d0c3;
  --sh-sm: 0 2px 10px rgba(0,0,0,.22);
  --sh: 0 8px 28px rgba(0,0,0,.28);
  --sh-lg: 0 20px 52px rgba(0,0,0,.42);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at top left, rgba(37,166,154,.12), transparent 30%),
    linear-gradient(180deg,#10191d 0%, var(--bg) 100%);
}
html[data-theme="dark"] .hd{
  background: rgba(15,23,26,.82);
  border-bottom-color: rgba(39,64,71,.9);
}
html[data-theme="dark"] .svc-card,
html[data-theme="dark"] .abt-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .call-modal__content{
  background: var(--bg-card);
}
html[data-theme="dark"] .tag,
html[data-theme="dark"] .hero-kicker,
html[data-theme="dark"] .svc-ico,
html[data-theme="dark"] .logo-ico,
html[data-theme="dark"] .crow-ico,
html[data-theme="dark"] .info-ico,
html[data-theme="dark"] .call-modal__qr-badge{
  color:#dffaf6;
}
html[data-theme="dark"] .btn-s,
html[data-theme="dark"] .lang-sw,
html[data-theme="dark"] .theme-toggle{
  background: var(--bg-card);
}
html[data-theme="dark"] .crow,
html[data-theme="dark"] .info-row,
html[data-theme="dark"] .call-modal__qr{
  background: #122025;
}
html[data-theme="dark"] .call-modal__backdrop{
  background: rgba(0,0,0,.62);
}
html[data-theme="dark"] .map-wrap{
  background:#132026;
}
@media (max-width: 780px){
  .theme-toggle{ padding:8px 11px; }
}



/* Modal close button inside popup */
.call-modal__content{position:relative;}
.call-modal__close{position:absolute;top:14px;right:14px;z-index:3;}

/* Dark mode contrast fixes */
html[data-theme="dark"] .muted,
html[data-theme="dark"] .logo-txt span,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .hero-card > p,
html[data-theme="dark"] .svc-card p,
html[data-theme="dark"] .abt-card p,
html[data-theme="dark"] .ft-info,
html[data-theme="dark"] .map-ph,
html[data-theme="dark"] .call-modal__hint,
html[data-theme="dark"] .crow-lbl,
html[data-theme="dark"] .info-lbl{color:#bfd0d5 !important;}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong,
html[data-theme="dark"] .logo-txt strong,
html[data-theme="dark"] .crow-val,
html[data-theme="dark"] .info-val,
html[data-theme="dark"] .call-modal__phone a,
html[data-theme="dark"] .call-modal__qr-title{color:#eef7f8 !important;}

html[data-theme="dark"] .nav-links a:hover{color:#ffffff !important;background:#1c2b31;}
html[data-theme="dark"] .btn-s{color:#e8f7f4 !important;border-color:#345059 !important;}
html[data-theme="dark"] .btn-s:hover{background:#1b2a30 !important;}
html[data-theme="dark"] .lang-btn{color:#c9d9dd !important;}
html[data-theme="dark"] .lang-btn[aria-pressed="true"]{color:#ffffff !important;}
html[data-theme="dark"] .call-modal__content,
html[data-theme="dark"] .call-modal__qr-card{background:#18262b !important;}
html[data-theme="dark"] .call-modal__qr{background:#101b1f !important;}
html[data-theme="dark"] .call-modal__close{background:#203138 !important;color:#eef7f8 !important;}


/* Footer readability fix */
.ft{
  background: var(--bg-soft);
}
.ft-info{
  color: var(--text);
}
.ft-info a{
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-theme="dark"] .ft{
  background:#111b1f !important;
}
html[data-theme="dark"] .ft-info{
  color:#d7e6ea !important;
}
html[data-theme="dark"] .ft-info a{
  color:#f0fffc !important;
}

