/* DermatoMetric — hand-written stylesheet */

@font-face { font-family: "Tiro Bangla"; src: url(../fonts/tiro-bangla-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tiro Bangla"; src: url(../fonts/tiro-bangla-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hind"; src: url(../fonts/hind-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind"; src: url(../fonts/hind-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hind"; src: url(../fonts/hind-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kalam"; src: url(../fonts/kalam-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #FCFCF9;
  --ink: #17213D;
  --muted: #4D5872;
  --stamp: #24396E;
  --stamp-dark: #18284F;
  --wash: #EDF2F5;
  --line: #D5DDE6;
  --marigold: #F0A202;
  --marigold-soft: #FFF1CC;
  --leaf: #1F6E48;
  --teal: #3C9D8B;
  --teal-dark: #24705F;
  --error: #A3262A;

  --serif: "Tiro Bangla", Georgia, "Times New Roman", serif;
  --sans: "Hind", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--stamp); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 0.5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }
.lead { font-size: clamp(1.18rem, 1.8vw, 1.32rem); line-height: 1.55; color: var(--ink); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 40em; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--wash { background: var(--wash); }
.section__head { max-width: 40em; margin-bottom: 2.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1.05rem/1 var(--sans); padding: .95rem 1.4rem; border-radius: 8px;
  border: 2px solid var(--stamp); background: var(--stamp); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--stamp-dark); border-color: var(--stamp-dark); color: #fff; text-decoration: none; }
.btn--plain { background: transparent; color: var(--stamp); }
.btn--plain:hover { background: var(--wash); color: var(--stamp-dark); }
.btn--leaf { background: var(--leaf); border-color: var(--leaf); }
.btn--leaf:hover { background: #17573a; border-color: #17573a; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252,252,249,.94); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand picture { display: contents; }
.brand__mark { width: 50px; height: 44px; }
.brand__name { width: 218px; height: 28px; margin-top: 4px; }
@media (max-width: 400px) { .brand__mark { width: 43px; height: 38px; } .brand__name { width: 172px; height: 22px; } }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .5rem .8rem; border-radius: 6px; font-weight: 500; font-size: 1.02rem; }
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { color: var(--stamp); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
.nav .btn { margin-left: .5rem; padding: .7rem 1.1rem; font-size: 1rem; color: #fff; }
.nav .btn:hover { background: var(--stamp-dark); }
.menu-btn { display: none; background: none; border: 2px solid var(--line); border-radius: 8px; width: 46px; height: 46px; padding: 0; cursor: pointer; color: var(--ink); }
.menu-btn svg { margin: auto; width: 22px; height: 22px; }

@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--teal); padding-left: .9rem; }
  .nav .btn { margin: 1rem 0 0; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hero h1 { max-width: 12em; }
.hero .lead { margin-bottom: 2rem; }
.hero__print { position: relative; justify-self: center; width: min(100%, 360px); color: var(--stamp); }
.hero__print .thumbprint { width: 100%; transform: rotate(-9deg); }
.hand-note { font-family: var(--hand); color: var(--ink); font-size: 1.3rem; line-height: 1.3; transform: rotate(-4deg); }
.hero__note { position: absolute; left: -2.5rem; bottom: -1.2rem; max-width: 12em; background: var(--marigold-soft); padding: .7rem .9rem; box-shadow: 0 1px 0 rgba(23,33,61,.08); }
@media (prefers-reduced-motion: no-preference) {
  .hero__print .thumbprint { animation: stamp .9s cubic-bezier(.2,.9,.25,1) .15s both; }
  .hero__note { animation: settle .5s ease-out 1s both; }
}
@keyframes stamp { 0% { opacity: 0; transform: scale(1.18) rotate(-16deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-9deg); } }
@keyframes settle { from { opacity: 0; transform: translateY(6px) rotate(-4deg); } to { opacity: 1; transform: rotate(-4deg); } }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__print { order: -1; width: 200px; justify-self: start; margin-left: .5rem; }
  .hero__note { left: auto; right: -9.5rem; bottom: 1.2rem; font-size: 1.1rem; }
}

/* quick facts under the hero */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 1.3rem 1.5rem 1.3rem 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact__label { display: block; color: var(--muted); font-size: .98rem; }
.fact__value { font-weight: 600; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
a.fact__value:hover { color: var(--stamp); text-decoration: underline; }
@media (max-width: 760px) {
  .facts__row { grid-template-columns: 1fr; }
  .fact { padding: 1rem 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- who comes to us ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem; }
.person { border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.person h3 { margin-bottom: .15em; }
.person__age { color: var(--teal-dark); font-weight: 500; margin-bottom: .6rem; display: block; }
.person a { font-weight: 500; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--teal-dark); margin-bottom: .6rem; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink); font-size: 1.05rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
  .steps li::before { grid-row: span 2; font-size: 2.6rem; }
}

/* ---------- can / can't ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.honest > div { padding: 2rem clamp(1.25rem, 3vw, 2.5rem); }
.honest > div + div { border-left: 1px solid var(--line); }
.honest h3 { margin-bottom: 1rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; background: no-repeat center / contain; }
.ticks--yes li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6E48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E"); }
.ticks--no li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3262A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } .honest > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- fee ---------- */
.fee { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.fee__price { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.5rem); line-height: .95; color: var(--stamp); white-space: nowrap; }
.fee__per { display: block; font-family: var(--sans); font-size: 1.05rem; color: var(--muted); margin-top: .6rem; }
.fee ul { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.fee li { margin-bottom: .35rem; }
@media (max-width: 680px) { .fee { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
.visit dl { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: .9rem 1rem; }
.visit dt { color: var(--muted); }
.visit dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } .visit dl { grid-template-columns: 1fr; gap: .1rem; } .visit dd { margin-bottom: .8rem; } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); max-width: 16em; }

/* ---------- DMIT page ---------- */
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2.5rem 0 1rem; max-width: 760px; }
.patterns figure { margin: 0; }
.patterns svg { width: 100%; max-width: 170px; color: var(--stamp); margin-bottom: .75rem; }
.patterns figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.patterns figcaption { color: var(--muted); font-size: 1rem; line-height: 1.45; }
@media (max-width: 600px) { .patterns { grid-template-columns: 1fr 1fr; } .patterns svg { max-width: 130px; } }
.intel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; margin: 0; }
.intel > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.intel dt { font-family: var(--serif); font-size: 1.3rem; }
.intel dd { margin: .2rem 0 0; color: var(--muted); }
@media (max-width: 700px) { .intel { grid-template-columns: 1fr; } }
.callout { background: var(--marigold-soft); border-left: 4px solid var(--marigold); padding: 1.25rem 1.5rem; border-radius: 0 10px 10px 0; max-width: 40em; }

/* ---------- FAQ ---------- */
.faq-group { max-width: 46rem; margin-bottom: 3rem; }
.faq-group h2 { font-size: 1.7rem; margin-bottom: .6rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--stamp), var(--stamp)) center / 14px 2px no-repeat, linear-gradient(var(--stamp), var(--stamp)) center / 2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--stamp); }
.faq details > div { padding: 0 0 1.3rem; max-width: 40em; }

/* ---------- forms ---------- */
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.form { display: grid; gap: 1.2rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; font-size: 1.02rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 1.05rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid #BFCAD6; border-radius: 8px; padding: .8rem .9rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--marigold); outline-offset: 0; border-color: var(--stamp); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label { font-weight: 500; margin: 0; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-block; padding: .6rem 1rem; border: 1.5px solid #BFCAD6; border-radius: 8px; cursor: pointer; background: var(--paper); }
.choices input:checked + span { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.choices input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 10px; font-weight: 500; }
.notice--ok { background: #E3F2EA; color: #134D31; }
.notice--err { background: #FBE7E6; color: var(--error); }
[hidden] { display: none !important; }

/* ---------- pay ---------- */
.pay-qr { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: center; }
.qr { width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.qr svg, .qr img { width: 100%; height: 100%; }
.total { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--stamp); }
.upi-id { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .4rem 0 1rem; }
.upi-id code { font: 600 1.12rem/1.2 var(--sans); background: var(--wash); padding: .4rem .65rem; border-radius: 6px; color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; font: 500 1rem var(--sans); color: var(--stamp); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #BFCAD6; border-radius: 8px; overflow: hidden; }
.qty button { width: 2.6rem; height: 2.6rem; border: 0; background: var(--wash); font: 600 1.3rem/1 var(--sans); color: var(--stamp); cursor: pointer; }
.qty output { min-width: 2.6rem; text-align: center; font-weight: 600; }
.only-mobile, .only-mobile-note { display: none; }
@media (hover: none) and (pointer: coarse) { .only-mobile { display: inline-flex; } .only-mobile-note { display: block; } }
@media (max-width: 560px) { .pay-qr { grid-template-columns: 1fr; } .qr { width: 200px; height: 200px; } }
.pay-steps { margin: 0; padding-left: 1.3rem; }
.pay-steps li { margin-bottom: .5rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--wash); color: var(--ink); padding: 3.5rem 0 2rem; font-size: 1rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--stamp); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { margin-bottom: 1rem; display: inline-block; }
.brand__full { width: 207px; height: 150px; }
.site-footer p { color: var(--muted); max-width: 24em; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .7rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: .95rem; color: var(--muted); }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } .brand__full { width: 166px; height: 120px; } }

/* floating WhatsApp on small screens */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--leaf); color: #fff; display: none; place-items: center; box-shadow: 0 4px 14px rgba(23,33,61,.25); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 880px) { .wa-float { display: grid; } }

@media print { .site-header, .site-footer, .wa-float { display: none; } }
