/* Demo: Stomatološka ordinacija Vedra (fictional). Bright, rounded, friendly-but-clinical. */
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-normal-400-800-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; 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: "Figtree"; src: url("/fonts/figtree-normal-400-800-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; 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; }

:root {
  --ink: #0C3340; --muted: #4F6A73; --teal: #0E9C96; --teal-deep: #0A7C77;
  --mint: #E1F5F2; --sky: #EAF5FA; --coral: #FF6F51; --coral-deep: #E85A3C;
  --white: #fff; --line: rgba(12, 51, 64, 0.12);
  --maxw: 70rem; --focus: #0E9C96; --dm-ink: #0E9C96; --dm-tint: #E1F5F2;
  --font: Figtree, "Segoe UI", system-ui, sans-serif;
}
body { background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }

.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; margin-right: auto; text-decoration: none; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; }
.brand svg { width: 1.9rem; height: 1.9rem; }
.brand b { color: var(--teal); }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: 0.97rem; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1.7rem; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(255, 111, 81, 0.9); transition: transform 0.2s, background 0.2s; }
.btn:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn--teal { background: var(--teal); box-shadow: 0 14px 28px -14px rgba(14, 156, 150, 0.9); }
.btn--teal:hover { background: var(--teal-deep); }
.btn--small { padding: 0.65rem 1.2rem; font-size: 0.92rem; }

/* Hero: a question, not a pitch */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky), var(--white) 96%); }
.hero__blob { position: absolute; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; animation: blob 16s ease-in-out infinite alternate; pointer-events: none; }
.hero__blob--a { left: -8rem; top: -6rem; width: 26rem; height: 26rem; background: var(--mint); }
.hero__blob--b { right: -7rem; top: 8rem; width: 22rem; height: 22rem; background: #FFE3DB; animation-delay: -6s; }
@keyframes blob { to { border-radius: 58% 42% 45% 55% / 55% 58% 42% 45%; transform: rotate(8deg) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hero__blob { animation: none; } }
.hero__in { position: relative; display: grid; justify-items: center; text-align: center; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.95rem; border-radius: 999px; background: #fff; color: var(--teal-deep); font-size: 0.85rem; font-weight: 800; box-shadow: 0 8px 20px -12px rgba(12, 51, 64, 0.4); }
.pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--teal); }
.hero h1 { margin-top: 1.3rem; font-size: clamp(3.4rem, 1.4rem + 8vw, 7.4rem); letter-spacing: -0.05em; line-height: 0.95; }
.hero h1 mark { position: relative; background: none; color: var(--teal); }
.hero h1 mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.1em; height: 0.2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C40 2 70 2 100 6S160 10 198 3' fill='none' stroke='%23FF6F51' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero__lead { max-width: 34rem; margin-top: 1.3rem; font-size: 1.2rem; color: var(--muted); }

.choose { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; width: 100%; margin-top: 2.4rem; }
.opt { display: grid; justify-items: start; gap: 0.15rem; padding: 1.3rem 1.3rem 1.2rem; border: 2px solid transparent; border-radius: 22px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 20px 36px -24px rgba(12, 51, 64, 0.5); transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.opt:hover { transform: translateY(-4px); }
.opt svg { width: 2.6rem; height: 2.6rem; margin-bottom: 0.7rem; padding: 0.6rem; border-radius: 14px; background: var(--mint); fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background 0.2s, stroke 0.2s; }
.opt b { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; }
.opt span { color: var(--muted); font-size: 0.9rem; }
.opt[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); }
.opt[aria-pressed="true"] svg { background: var(--teal); stroke: #fff; }

.result { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem 2.5rem; width: 100%; margin-top: 1.2rem; padding: 2rem; border-radius: 26px; background: var(--ink); color: #fff; text-align: left; box-shadow: 0 40px 70px -40px rgba(12, 51, 64, 0.8); animation: rise 0.45s cubic-bezier(.2, .8, .2, 1); }
.result[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.result__lbl { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #6FE0D9; }
.result h2 { margin-top: 0.5rem; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.result__main p:not(.result__lbl):not(.result__price) { margin-top: 0.7rem; color: #B8D2D6; max-width: 30rem; }
.result__price { display: inline-block; margin-top: 1rem; padding: 0.4rem 1rem; border-radius: 999px; background: rgba(111, 224, 217, 0.16); color: #6FE0D9; font-weight: 800; }
.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1.2rem; }
.slot { padding: 0.65rem 1rem; border: 2px solid rgba(255, 255, 255, 0.22); border-radius: 14px; background: transparent; color: #fff; font-weight: 700; font-size: 0.95rem; text-align: left; cursor: pointer; transition: all 0.15s; }
.slot small { display: block; font-weight: 500; font-size: 0.78rem; color: #9FC0C6; }
.slot:hover { border-color: #6FE0D9; }
.slot[aria-pressed="true"] { border-color: #6FE0D9; background: #6FE0D9; color: var(--ink); }
.slot[aria-pressed="true"] small { color: var(--ink); }
.hero__hint { margin-top: 1.4rem; color: var(--muted); font-size: 0.85rem; }

/* Sections */
.sec { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sec--sky { background: var(--sky); }
.sec--mint { background: var(--mint); }
.sec--ink { background: var(--ink); color: #fff; }
.eyebrow { margin-bottom: 0.9rem; color: var(--teal); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sec--ink .eyebrow { color: #6FE0D9; }
.sec h2 { max-width: 18ch; font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.8rem); }
.sec__lead { max-width: 36rem; margin-top: 1rem; color: var(--muted); font-size: 1.12rem; }
.sec--ink .sec__lead { color: #B8D2D6; }
.note { margin-top: 1.4rem; color: var(--muted); font-size: 0.92rem; }

/* Price list as a table */
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 2rem; }
.search { position: relative; width: min(100%, 22rem); }
.search svg { position: absolute; left: 1rem; top: 50%; width: 1.2rem; height: 1.2rem; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; padding: 0.85rem 1rem 0.85rem 2.9rem; border: 2px solid #D5E2E6; border-radius: 999px; background: #F7FBFC; color: var(--ink); font-size: 1rem; }
.search input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(14, 156, 150, 0.16); }
.table { margin-top: 2rem; border-top: 2px solid var(--ink); }
.grp[hidden] { display: none; }
.grp__h { display: flex; margin: 0; padding: 1.4rem 0 0.5rem; color: var(--teal-deep); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 0.95rem 0.8rem; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background 0.2s; }
.row:hover { background: var(--mint); }
.row[hidden] { display: none; }
.row b { display: block; font-size: 1.15rem; letter-spacing: -0.015em; }
.row i { display: block; font-style: normal; color: var(--muted); font-size: 0.93rem; }
.price { flex: none; font-size: 1.1rem; font-weight: 800; text-align: right; }
.none { padding: 2rem 0; color: var(--muted); }

/* Shade slider */
.shade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
.shade__art { display: grid; place-items: center; aspect-ratio: 1; max-width: 26rem; margin-inline: auto; width: 100%; border-radius: 50%; background: radial-gradient(closest-side, #1B5566, #0F3F4D); }
.shade__art svg { width: 56%; height: auto; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.35)); }
.tooth { transition: fill 0.25s; }
.shade__ctl { margin-top: 2rem; }
.shade__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; font-weight: 700; }
.shade__row output { font-size: 1.5rem; font-weight: 800; color: #6FE0D9; }
.range { width: 100%; height: 0.5rem; border-radius: 99px; background: linear-gradient(90deg, #D9BE6E, #FFFFFF); -webkit-appearance: none; appearance: none; outline-offset: 6px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--coral); border: 4px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); cursor: grab; }
.range::-moz-range-thumb { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--coral); border: 4px solid #fff; cursor: grab; }
.shade__marks { display: flex; justify-content: space-between; margin-top: 0.6rem; font-size: 0.8rem; color: #8FB4BB; }
.shade .note { color: #8FB4BB; }
.shade .btn { margin-top: 1.4rem; }

/* First visit: a vertical timeline next to a sticky heading */
.visit { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem 5rem; align-items: start; }
.visit__head { position: sticky; top: 6.5rem; }
.line { position: relative; display: grid; gap: 0; padding-left: 0; }
.line::before { content: ""; position: absolute; left: 4.7rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: repeating-linear-gradient(180deg, var(--teal) 0 6px, transparent 6px 12px); }
.line li { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0 2.2rem; padding: 0 0 2.4rem; }
.line li:last-child { padding-bottom: 0; }
.line li::before { content: ""; position: absolute; left: 4.2rem; top: 0.4rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.line__t { padding-top: 0.15rem; color: var(--teal-deep); font-size: 0.85rem; font-weight: 800; text-align: right; line-height: 1.3; }
.line h3 { font-size: 1.45rem; letter-spacing: -0.025em; }
.line p { margin-top: 0.35rem; color: var(--muted); }

.ph { margin: 1.8rem 0 0; overflow: hidden; border-radius: 26px; box-shadow: 0 30px 60px -36px rgba(12, 51, 64, 0.55); }
.ph img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.ph:hover img { transform: scale(1.03); }
.ph--wide img { aspect-ratio: 3 / 2; }
.ph--tall img { aspect-ratio: 5 / 4; object-position: 50% 30%; }

/* Team: one panel, three columns */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.4rem; border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -40px rgba(12, 51, 64, 0.5); overflow: hidden; }
.dr { display: grid; justify-items: start; gap: 0.15rem; padding: 2rem 1.8rem; border-left: 1px solid var(--line); }
.dr:first-child { border-left: 0; }
.dr__av { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin-bottom: 0.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #6FE0D9); color: #fff; font-size: 1.4rem; font-weight: 800; }
.dr:nth-child(2) .dr__av { background: linear-gradient(135deg, var(--coral), #FFB199); }
.dr:nth-child(3) .dr__av { background: linear-gradient(135deg, var(--ink), #4E8798); }
.dr b { font-size: 1.2rem; letter-spacing: -0.015em; }
.dr__s { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }

/* FAQ, light */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem 5rem; }
.faq__list { display: grid; gap: 0.8rem; align-content: start; }
.faq details { border: 2px solid var(--line); border-radius: 20px; background: #fff; transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: var(--teal); background: var(--mint); }
.faq summary { position: relative; padding: 1.2rem 3.4rem 1.2rem 1.4rem; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; transform: translateY(-50%); border-radius: 50%; background: var(--mint); color: var(--teal-deep); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; background: #fff; }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* Booking */
.book { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem 4rem; align-items: start; }
.hours { margin-top: 2rem; border-top: 1px solid rgba(12, 51, 64, 0.18); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(12, 51, 64, 0.18); }
.hours b { font-weight: 700; }
.hours span { color: var(--muted); }
.sos { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: var(--coral); color: #fff; }
.sos svg { width: 2rem; height: 2rem; flex: none; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sos b { display: block; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.1; }
.sos span { font-size: 0.9rem; opacity: 0.92; }
.card { padding: 2rem; border-radius: 26px; background: #fff; box-shadow: 0 40px 70px -40px rgba(12, 51, 64, 0.55); }
.card h3 { font-size: 1.8rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.4rem; }
.fld { display: grid; gap: 0.35rem; }
.fld--wide { grid-column: 1 / -1; }
.fld label { font-size: 0.85rem; font-weight: 800; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 0.85rem 1rem; border: 2px solid #D5E2E6; border-radius: 14px; background: #F7FBFC; color: var(--ink); font-size: 1rem; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(14, 156, 150, 0.16); }
.fld textarea { min-height: 6.5rem; resize: vertical; }
.card .btn { width: 100%; margin-top: 1.2rem; }

.foot { padding: 2rem 0; background: var(--ink); color: #9FC0C6; font-size: 0.92rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.foot a { color: #fff; }

@media (max-width: 62rem) {
  .choose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result, .shade, .visit, .faq, .book { grid-template-columns: minmax(0, 1fr); }
  .visit__head { position: static; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .dr { border-left: 0; border-top: 1px solid var(--line); }
  .dr:first-child { border-top: 0; }
}
@media (max-width: 52rem) {
  .menu-btn { display: block; }
  .top__row { position: relative; }
  .top .btn { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: 0 24px 30px -20px rgba(12, 51, 64, 0.4); }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0.8rem; font-size: 1.05rem; }
}
@media (max-width: 36rem) {
  .choose, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .card, .result { padding: 1.4rem; }
  .row { flex-direction: column; gap: 0.2rem; }
  .price { text-align: left; }
  .line::before { left: 3.55rem; }
  .line li { grid-template-columns: 3rem minmax(0, 1fr); gap: 0 1.8rem; }
  .line li::before { left: 3.05rem; }
}
