/* Dr. Ionuț V. Filip — cabinet stomatologic, Târgu Frumos */

:root {
  --text: #1d1f1e;
  --text-2: #565b59;
  --line: #e2e0db;
  --bg: #ffffff;
  --bg-alt: #f5f4f1;
  --green: #1f4a43;
  --green-dark: #163731;
  --wa: #0e8644;
  --wa-dark: #0b6f38;
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 40px);
  --font: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid #7fb3a8; outline-offset: 2px; }

.wrap { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -50px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; color: #fff; }
.small { font-size: 15.5px; color: var(--text-2); }
.ico { width: 20px; height: 20px; flex: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 18px; border-radius: 6px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-big { padding: 14px 24px; font-size: 17.5px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-plain { background: #fff; color: var(--text); border-color: #c9c6bf; }
.btn-plain:hover { border-color: var(--text); color: var(--text); }

/* info bar + header */
.infobar { background: var(--green); color: #e6eeec; font-size: 15px; }
.infobar-in { display: flex; justify-content: space-between; gap: 20px; padding-top: 7px; padding-bottom: 7px; }
.infobar p { margin: 0; }
.infobar a { color: #fff; font-weight: 600; text-decoration: none; }
.infobar strong { color: #fff; }

.header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.name { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; color: var(--text); }
.name strong { font-size: 21px; }
.name span { font-size: 15px; color: var(--text-2); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 16.5px; }
.nav a:hover { color: var(--green); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-bottom: 1px solid var(--line); }
.hero-text {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 64px) max(var(--pad), calc((100vw - var(--wrap)) / 2));
  align-self: center;
}
.hero h1 { font-size: clamp(36px, 4.4vw, 54px); max-width: 13em; }
.lead { margin-top: 18px; font-size: 20px; color: var(--text-2); max-width: 30em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { position: relative; min-height: 360px; background: var(--bg-alt); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hours { width: 100%; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " (azi)"; font-weight: 400; color: var(--text-2); }
.hours-short { max-width: 360px; margin-top: 36px; }
.hours-short caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.hours-short tr:first-child th, .hours-short tr:first-child td { border-top: 1px solid var(--line); }

/* sections */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(28px, 3vw, 36px); }
.section-intro { margin-top: 12px; max-width: 46em; color: var(--text-2); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--bg-alt); }
.service h3 { font-size: 21px; margin-top: 18px; }
.service p { margin-top: 8px; color: var(--text-2); font-size: 17px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.two-col-wide { grid-template-columns: 1.3fr .7fr; }
.hours-week { margin-top: 24px; max-width: 460px; }
.hours-week tr:first-child th, .hours-week tr:first-child td { border-top: 1px solid var(--line); }
.hours-week th, .hours-week td { padding: 10px 0; }
.hours-week + .small { margin-top: 12px; }
.address-title { font-size: 18px; margin-top: 28px; margin-bottom: 6px; }
.links { margin-top: 6px; }
.tel { font-size: 24px; font-weight: 700; text-decoration: none; }
.map { border-radius: 4px; overflow: hidden; background: #e9e7e2; min-height: 420px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; }

/* booking */
.booking { margin-top: 28px; }
.booking fieldset + fieldset { margin-top: 22px; }
.booking legend, .message-label { display: block; padding: 0; margin-bottom: 8px; font-weight: 700; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options label {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid #c9c6bf; border-radius: 6px; background: #fff; cursor: pointer; font-size: 16.5px; line-height: 1.3;
}
.options label:hover { border-color: var(--text); }
.options label:has(input:checked) { border-color: var(--green); background: #eaf1ef; }
.options input { accent-color: var(--green); margin: 0; }
.options-days label { flex-direction: column; align-items: flex-start; gap: 0; position: relative; padding-left: 36px; min-width: 132px; }
.options-days input { position: absolute; left: 13px; top: 12px; }
.options-days small { color: var(--text-2); font-size: 14.5px; }
.message-label { margin-top: 22px; }
.booking textarea {
  display: block; width: 100%; padding: 12px 14px; border: 1px solid #c9c6bf; border-radius: 6px;
  font: 17px/1.5 var(--font); color: var(--text); background: #fff; resize: vertical;
}
.booking textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px #d4e5e1; }
.booking .btn { margin-top: 16px; }
.side-photo { margin: 0; }
.side-photo img { width: 100%; border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.review { margin: 0; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.review p { font-size: 22px; font-weight: 600; }
.review footer { margin-top: 10px; color: var(--text-2); font-size: 16px; }

/* faq */
#intrebari h2 { margin-bottom: 20px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 19px; }
summary::marker { color: var(--green); }
details p { padding: 0 0 18px; color: var(--text-2); }

/* footer */
.footer { background: #1b1d1c; color: #c9ccca; padding: 48px 0 0; font-size: 16px; }
.footer a { color: #fff; }
.footer-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 32px; }
.footer-name { color: #fff; font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.footer-small { border-top: 1px solid #333634; padding-top: 16px; padding-bottom: 20px; font-size: 14px; color: #8f9391; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #1fb959; color: #fff; }
.js .wa-float:not(.is-on) { display: none; }

.js .js-only { display: block; }
html:not(.js) .js-only { display: none; }

/* responsive */
@media (max-width: 1000px) {
  .nav { gap: 18px; }
  .nav a { font-size: 16px; }
}

@media (max-width: 900px) {
  .infobar-right { display: none; }
  .header-in { min-height: 64px; gap: 12px; }
  .name strong { font-size: 19px; }
  .name span { font-size: 14px; }
  .header-actions { margin-left: auto; }
  .js .menu {
    display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid #c9c6bf; border-radius: 6px;
    background: #fff; font: 600 16px/1.2 var(--font); color: var(--text); cursor: pointer;
  }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--pad) 12px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a:last-child { border-bottom: 0; }
  .js .nav:not(.is-open) { display: none; }
  html:not(.js) .nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; padding: 0; border: 0; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 32px var(--pad) 36px; }
  .hero-photo { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .services { grid-template-columns: 1fr; gap: 36px; }
  .two-col, .two-col-wide { grid-template-columns: 1fr; }
  .side-photo { display: none; }
  .map, .map iframe { min-height: 340px; }
  .reviews { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .header-actions .btn-wa span { display: none; }
  .header-actions .btn-wa { padding: 9px 11px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 18.5px; }
  .hero-buttons .btn { width: 100%; }
  .hours-short { max-width: none; }
  .options label { flex: 1 1 100%; }
  .options-days label { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .booking .btn { width: 100%; }
}
