/* ============================================================
   DoctorKeyMaster — shared stylesheet for all pages
   Linked from every page with: <link rel="stylesheet" href="style.css">
   ============================================================ */


/* ============================================================
   0. DESIGN TOKENS
   Change colours, fonts and sizes HERE ONLY — they apply site-wide.
   ============================================================ */
:root{
  /* --- Colours --- */
  --c-bg:        #0C111B;   /* Darkest background */
  --c-bg-2:      #111A28;   /* Secondary dark (alternating sections) */
  --c-surface:   #182234;   /* Cards and boxes */
  --c-line:      rgba(255,255,255,.10); /* Borders and dividers */
  --c-text:      #EAF0F8;   /* Body text */
  --c-muted:     #97A5BC;   /* Secondary text */

  --c-yellow:    #FFC53D;   /* Brand colour — yellow */
  --c-orange:    #FF7A18;   /* Brand colour — orange */
  --c-grad:      linear-gradient(135deg, var(--c-yellow), var(--c-orange));

  /* --- Fonts --- */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif; /* Headings */
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* --- Sizing --- */
  --wrap: 1180px;      /* Max content width */
  --radius: 14px;      /* Corner radius */
  --pad-section: 88px; /* Vertical space between sections */
}


/* ============================================================
   1. RESET + BASE
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--c-bg);
  color:var(--c-text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; line-height:1.06; letter-spacing:.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:20px; }

/* Section headings (reused on every page) */
.sec-head{ margin-bottom:44px; max-width:660px; }
.sec-eyebrow{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:var(--c-yellow); margin-bottom:14px;
}
.sec-title{ font-size:clamp(30px,4.6vw,46px); text-transform:uppercase; }
.sec-sub{ color:var(--c-muted); margin-top:14px; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px; justify-content:center;
  padding:15px 26px; border-radius:999px; border:1px solid transparent;
  font-weight:700; font-size:15px; letter-spacing:.02em; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn--primary{ background:var(--c-grad); color:#1A1204; box-shadow:0 10px 26px rgba(255,140,26,.28); }
.btn--ghost{ border-color:var(--c-line); color:var(--c-text); background:rgba(255,255,255,.04); }
.btn--dark{ background:#0C111B; color:var(--c-text); }
.btn--block{ width:100%; }
:focus-visible{ outline:3px solid var(--c-yellow); outline-offset:3px; border-radius:6px; }

/* Hazard stripe — the signature element of this design */
.stripe{
  height:10px;
  background:repeating-linear-gradient(135deg,
    var(--c-yellow) 0 18px, #0C111B 18px 36px);
  opacity:.9;
}


/* ============================================================
   2. HEADER (logo / navigation / hotline)   — on every page
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(12,17,27,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--c-line);
}
.header-inner{ display:flex; align-items:center; gap:24px; height:76px; }

.logo{ display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-size:24px; text-transform:uppercase; }
.logo-mark{
  width:38px; height:38px; border-radius:10px; background:var(--c-grad);
  display:grid; place-items:center; color:#1A1204; flex:none;
}
.logo-name b{ color:var(--c-yellow); font-weight:700; }

.nav{ margin-left:auto; }
.nav-list{ display:flex; gap:26px; }
.nav-list a{ font-size:15px; font-weight:500; color:var(--c-muted); transition:color .15s; }
.nav-list a:hover{ color:var(--c-yellow); }
.nav-list a.is-active{ color:var(--c-yellow); }  /* current page */

/* Hotline in the header */
.header-call-label{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--c-muted); }
.header-call-num{ font-family:var(--font-display); font-size:24px; color:var(--c-yellow); display:block; }

/* Mobile menu button */
.burger{
  display:none; width:44px; height:40px; border-radius:10px; flex:none;
  background:rgba(255,255,255,.06); border:1px solid var(--c-line); cursor:pointer;
}
.burger span, .burger span::before, .burger span::after{
  content:""; display:block; height:2px; width:20px; background:var(--c-text); margin-inline:auto; position:relative;
}
.burger span::before{ top:-6px; } .burger span::after{ top:4px; }


/* ============================================================
   3. HOME HERO (index.html only)
   ============================================================ */
.hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(255,140,26,.20), transparent 60%),
    radial-gradient(700px 420px at 6% 92%, rgba(255,197,61,.10), transparent 60%),
    var(--c-bg);
  padding:78px 0 88px;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }

.hero-badge{
  display:inline-flex; align-items:center; gap:9px; padding:7px 15px; border-radius:999px;
  background:rgba(255,197,61,.12); border:1px solid rgba(255,197,61,.32);
  color:var(--c-yellow); font-size:13px; font-weight:600; margin-bottom:22px;
}
.hero-dot{ width:8px; height:8px; border-radius:50%; background:var(--c-yellow); animation:pulse 1.8s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1 } 50%{ opacity:.25 } }

.hero-title{ font-size:clamp(42px,6.6vw,74px); text-transform:uppercase; }
.hero-title em{ font-style:normal; color:var(--c-yellow); }
.hero-text{ color:var(--c-muted); font-size:18px; margin-top:20px; max-width:520px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }

.hero-trust{ display:flex; flex-wrap:wrap; gap:14px 30px; margin-top:38px; padding-top:26px; border-top:1px solid var(--c-line); }
.hero-trust li{ font-size:14px; color:var(--c-muted); }
.hero-trust b{ display:block; font-family:var(--font-display); font-size:26px; color:var(--c-text); }

.hero-media{ position:relative; }
.hero-media img{ width:100%; height:440px; object-fit:cover; border-radius:22px; border:1px solid var(--c-line); }
.hero-card{
  position:absolute; left:-18px; bottom:-22px;
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--radius);
  padding:16px 20px; box-shadow:0 18px 40px rgba(0,0,0,.42);
}
.hero-card b{ font-family:var(--font-display); font-size:30px; color:var(--c-yellow); display:block; }
.hero-card span{ font-size:13px; color:var(--c-muted); }


/* ============================================================
   4. PAGE HERO (all inner pages: repairs, pricelist, blog, contact)
   ============================================================ */
.page-hero{
  padding:56px 0 52px;
  background:radial-gradient(800px 400px at 15% 0%, rgba(255,140,26,.16), transparent 62%), var(--c-bg);
  border-bottom:1px solid var(--c-line);
}
.crumbs{ font-size:13px; color:var(--c-muted); margin-bottom:16px; }
.crumbs a:hover{ color:var(--c-yellow); }
.page-title{ font-size:clamp(34px,5.4vw,58px); text-transform:uppercase; }
.page-lead{ color:var(--c-muted); font-size:18px; margin-top:16px; max-width:620px; }


/* ============================================================
   5. CARD GRIDS (services, repairs)
   ============================================================ */
.services{ background:var(--c-bg-2); padding:var(--pad-section) 0; }
.section{ padding:var(--pad-section) 0; }                 /* plain dark section */
.section--alt{ background:var(--c-bg-2); }                 /* alternating section */

.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:44px; }

.card{
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--radius);
  padding:30px 26px; transition:border-color .18s, transform .18s;
}
.card:hover{ transform:translateY(-4px); border-color:rgba(255,197,61,.45); }
.card-icon{
  width:52px; height:52px; border-radius:13px; background:rgba(255,197,61,.12);
  display:grid; place-items:center; color:var(--c-yellow); margin-bottom:20px;
}
.card-title{ font-size:23px; text-transform:uppercase; margin-bottom:10px; }
.card-text{ color:var(--c-muted); font-size:15px; }
.card-link{ display:inline-block; margin-top:16px; font-size:14px; font-weight:600; color:var(--c-yellow); }


/* ============================================================
   6. FEATURES / STEPS
   ============================================================ */
.feature{ padding:28px 22px; border-radius:var(--radius); background:linear-gradient(180deg, rgba(255,255,255,.05), transparent); border:1px solid var(--c-line); }
.feature-num{ font-family:var(--font-display); font-size:15px; letter-spacing:.16em; color:var(--c-orange); }
.feature h3{ font-size:21px; text-transform:uppercase; margin:12px 0 8px; }
.feature p{ color:var(--c-muted); font-size:15px; }


/* ============================================================
   7. PROSE (text blocks and checklists on inner pages)
   ============================================================ */
.prose p{ color:var(--c-muted); margin-bottom:16px; }
.prose h3{ font-size:26px; text-transform:uppercase; margin:34px 0 14px; }
.check li{ position:relative; padding-left:30px; margin-bottom:12px; color:var(--c-muted); }
.check li::before{
  content:""; position:absolute; left:0; top:9px; width:16px; height:9px;
  border-left:2px solid var(--c-yellow); border-bottom:2px solid var(--c-yellow);
  transform:rotate(-45deg);
}


/* ============================================================
   8. PRICING TABLES (pricelist.html)
   ============================================================ */
.price-block{ margin-bottom:40px; }
.price-block h3{
  font-size:24px; text-transform:uppercase; margin-bottom:16px;
  padding-left:14px; border-left:4px solid var(--c-yellow);
}
.price-list{ border:1px solid var(--c-line); border-radius:var(--radius); overflow:hidden; background:var(--c-surface); }
.price-row{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:20px 26px; border-bottom:1px solid var(--c-line);
}
.price-row:last-child{ border-bottom:none; }
.price-name{ font-weight:600; }
.price-name small{ display:block; font-weight:400; color:var(--c-muted); font-size:13px; }
.price-value{ font-family:var(--font-display); font-size:26px; color:var(--c-yellow); white-space:nowrap; }
.price-note{ margin-top:18px; font-size:14px; color:var(--c-muted); }

/* FAQ (accordion built from <details>) */
.faq details{
  border:1px solid var(--c-line); border-radius:var(--radius);
  background:var(--c-surface); padding:18px 22px; margin-bottom:12px;
}
.faq summary{ cursor:pointer; font-weight:600; list-style:none; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; float:right; color:var(--c-yellow); font-size:22px; line-height:1; }
.faq details[open] summary::after{ content:"–"; }
.faq p{ color:var(--c-muted); margin-top:12px; font-size:15px; }


/* ============================================================
   9. BLOG (blog.html + post pages)
   ============================================================ */
.post-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.post-card{
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition:transform .18s, border-color .18s;
}
.post-card:hover{ transform:translateY(-4px); border-color:rgba(255,197,61,.45); }
.post-card img{ width:100%; height:190px; object-fit:cover; }
.post-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.post-date{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--c-orange); }
.post-card h3{ font-size:22px; text-transform:uppercase; margin:10px 0; }
.post-card p{ color:var(--c-muted); font-size:15px; }
.post-card .card-link{ margin-top:auto; padding-top:14px; }

/* Single article layout */
.article{ max-width:760px; margin-inline:auto; }
.article img{ border-radius:var(--radius); border:1px solid var(--c-line); margin:28px 0; }
.article h2{ font-size:32px; text-transform:uppercase; margin:38px 0 14px; }
.article p{ color:#C9D4E4; margin-bottom:18px; }


/* ============================================================
   10. CONTACT
   ============================================================ */
.info-list li{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--c-line); }
.info-ico{ width:42px; height:42px; border-radius:11px; background:rgba(255,197,61,.12); color:var(--c-yellow); display:grid; place-items:center; flex:none; }
.info-list h4{ margin:0 0 2px; font-size:14px; color:var(--c-muted); font-weight:500; font-family:var(--font-body); }
.info-list p{ font-size:17px; font-weight:600; }

.form{ background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--radius); padding:30px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--c-muted); margin-bottom:7px; }
.field input, .field textarea, .field select{
  width:100%; padding:13px 15px; border-radius:10px; background:var(--c-bg);
  border:1px solid var(--c-line); color:var(--c-text); font-family:inherit; font-size:15px;
}
.field textarea{ min-height:112px; resize:vertical; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--c-yellow); }
.map-box{ width:100%; height:300px; border:0; border-radius:var(--radius); margin-top:26px; background:var(--c-surface); }

/* Service-area chips */
.areas{ display:flex; flex-wrap:wrap; gap:10px; }
.areas li{
  padding:8px 16px; border-radius:999px; font-size:14px;
  background:rgba(255,255,255,.05); border:1px solid var(--c-line); color:var(--c-muted);
}


/* ============================================================
   11. CTA BAND (bottom of every page)
   ============================================================ */
.cta-band{ background:var(--c-grad); color:#1A1204; padding:44px 0; }
.cta-inner{ display:flex; align-items:center; justify-content:space-between; gap:26px; flex-wrap:wrap; }
.cta-band h2{ font-size:clamp(26px,3.6vw,38px); text-transform:uppercase; }
.cta-band p{ font-weight:500; opacity:.8; margin-top:6px; }


/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer{ background:#080C14; border-top:1px solid var(--c-line); padding:52px 0 34px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; }
.footer-about p{ color:var(--c-muted); font-size:15px; margin-top:16px; max-width:320px; }
.footer-col h4{ font-family:var(--font-display); font-size:19px; text-transform:uppercase; margin:0 0 16px; }
.footer-col li{ margin-bottom:10px; }
.footer-col a, .footer-col span{ color:var(--c-muted); font-size:15px; }
.footer-col a:hover{ color:var(--c-yellow); }
.footer-bottom{
  margin-top:38px; padding-top:22px; border-top:1px solid var(--c-line);
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
  color:var(--c-muted); font-size:14px;
}

/* Sticky call bar on mobile */
.call-bar{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:70;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:rgba(12,17,27,.96); border-top:1px solid var(--c-line); gap:10px;
}


/* ============================================================
   13. RESPONSIVE (tablet / mobile)
   ============================================================ */
@media (max-width:1000px){
  .hero-grid{ grid-template-columns:1fr; gap:44px; }
  .hero-media img{ height:320px; }
  .grid-3, .post-grid{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:760px){
  :root{ --pad-section:64px; }
  .burger{ display:block; margin-left:auto; }
  .header-call{ display:none; }
  .nav{ position:absolute; left:0; right:0; top:76px; margin:0; background:var(--c-bg-2);
        border-bottom:1px solid var(--c-line); display:none; }
  .nav.is-open{ display:block; }
  .nav-list{ flex-direction:column; gap:0; padding:8px 20px 18px; }
  .nav-list a{ display:block; padding:13px 0; border-bottom:1px solid var(--c-line); }
  .grid-2{ grid-template-columns:1fr; gap:32px; }
  .footer-grid{ grid-template-columns:1fr; }
  .price-row{ flex-direction:column; align-items:flex-start; gap:6px; }
  .call-bar{ display:flex; }
  body{ padding-bottom:74px; }
}
@media (max-width:480px){
  .grid-3, .grid-4, .post-grid{ grid-template-columns:1fr; }
  .hero-card{ position:static; margin-top:14px; }
  .btn{ width:100%; }
  .call-bar .btn{ width:auto; flex:1; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}
