/* hair2.co.il — מרכז האפילציה. Rebuild of the 2015 "superstar" look (DECISIONS D8, D9):
   pebbles ground, menu column on the right under the logo, maroon menu / navy current item,
   banner on inner pages, navy bold body text, Anka CLM headings. RTL-first; logical properties. */
@font-face {
  font-family: "Anka CLM";
  src: url("/assets/fonts/anka-clm-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #070072;          /* body text + headings (original) */
  --ink-soft: #2b2a6b;
  --maroon: #800000;       /* menu items (original) */
  --navy: #000175;         /* current menu item ground (original) */
  --plum: #790085;         /* home "35 years" line (original slide colour) */
  --sky: #c5d9ee;          /* the light blue of the pebbles image */
  --panel: rgba(255, 255, 255, .78);
  --rule: #8f9bb0;
  --focus: #b3005f;
  --side: 250px;
  --display: "Anka CLM", "Arial Hebrew", Arial, sans-serif;
  --body: Arial, "Arial Hebrew", "Noto Sans Hebrew", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky) url("/wp-content/uploads/2015/08/רקע.png") top left / cover no-repeat fixed;
  font: 700 18px/1.65 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 8px; color: #fff; }

/* --- layout: menu column on the right (RTL start) ------------------------- */
.site { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh;
        /* menu + 992px banner column, centred: in RTL an uncapped grid hugs the right edge on wide screens */
        max-width: calc(var(--side) + 992px); margin-inline: auto; }
.sidebar {
  background: rgba(197, 217, 238, .55);
  box-shadow: -2px 0 12px rgba(7, 0, 114, .18);
  border-inline-end: 1px solid rgba(255, 255, 255, .6);
}
.sidebar__inner { position: sticky; top: 0; }
.brand { display: block; padding: 16px 48px 8px; }
.brand img { display: block; width: 100%; }
.menu-toggle { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.nav li { border-bottom: 1px solid var(--rule); }
.nav a {
  display: block; padding: 14px 22px; color: var(--maroon); text-decoration: none;
  font: 700 19px/1.6 var(--body);
}
.nav a:hover { background: rgba(255, 255, 255, .5); color: var(--maroon); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.sidebar__contact { padding: 18px 22px; font-size: 16px; line-height: 1.7; }
.sidebar__contact a { color: var(--ink); }

.main { min-width: 0; }
.banner { display: block; width: 100%; max-width: 992px; aspect-ratio: 992 / 243; object-fit: cover; }
.content {
  max-width: 900px; margin: 0; padding: 24px 40px 48px;
  background: var(--panel);
}
.content h1, .content h2, .content h3 { font-family: var(--display); color: var(--ink); line-height: 1.35; text-wrap: balance; }
.content h1 { font-size: 34px; margin: 0 0 12px; }
.content h2 { font-size: 27px; margin: 28px 0 8px; }
.content h3 { font-size: 22px; margin: 22px 0 6px; }
.content p { margin: 0 0 14px; max-width: 70ch; }
.content ul { padding-inline-start: 24px; max-width: 70ch; }
.content img { border-radius: 4px; margin: 8px 0; }
.content strong { font-weight: 700; }
.lead { font-size: 20px; }
.disclaimer { font-size: 16px; font-weight: 400; border-inline-start: 4px solid var(--maroon); padding-inline-start: 12px; }

.video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; margin: 16px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map { width: 100%; max-width: 640px; aspect-ratio: 4 / 3; border: 0; margin: 12px 0; }

/* FAQ (was Pojo tabs) */
.faq details { border-bottom: 1px solid var(--rule); padding: 6px 0; max-width: 70ch; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 21px; padding: 6px 0; }
.faq summary:hover { color: var(--maroon); }

/* certificates */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.gallery a { display: block; background: #fff; padding: 6px; border-radius: 4px; box-shadow: 0 1px 4px rgba(7, 0, 114, .2); }
.gallery img { display: block; margin: 0; width: 100%; height: 220px; object-fit: contain; }

/* testimonials */
.testimonials { list-style: none; padding: 0; display: grid; gap: 14px; max-width: 72ch; }
.testimonials li { background: rgba(255, 255, 255, .7); border-inline-start: 4px solid var(--maroon); padding: 12px 16px; border-radius: 4px; }
.testimonials h2 { font-size: 22px; margin: 0 0 4px; }

/* contact */
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-list li { margin-bottom: 6px; }
.phone { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.lead-form { display: grid; gap: 12px; max-width: 420px; margin: 18px 0; }
.lead-form label { display: grid; gap: 4px; }
.lead-form input { font: 400 17px var(--body); padding: 10px 12px; border: 1px solid #5d6a86; border-radius: 4px; }
.btn {
  display: inline-block; font: 700 18px var(--body); color: #fff; background: var(--navy);
  border: 0; border-radius: 4px; padding: 12px 22px; cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn:hover { background: var(--maroon); color: #fff; }

/* home: the 2015 slide — a cloud with the welcome text */
.hero { display: grid; place-items: center; padding: 32px 16px 12px; }
.cloud {
  width: min(100%, 760px); aspect-ratio: 2485 / 1935;
  background: url("/assets/img/cloud.webp") center / contain no-repeat;
  display: grid; place-content: center; text-align: center; padding: 16% 17%;
}
.cloud h1 { font-family: var(--display); color: var(--plum); font-size: clamp(26px, 4.4vw, 42px); margin: 0 0 10px; }
.cloud p { margin: 0; font-size: clamp(15px, 2vw, 19px); line-height: 1.55; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; max-width: 760px; margin: 12px auto 40px; padding: 0 16px; list-style: none; }
.services a {
  display: block; text-align: center; background: rgba(255, 255, 255, .8); color: var(--maroon);
  font: 700 21px/1.3 var(--display); padding: 16px 10px; border-radius: 6px; text-decoration: none;
  box-shadow: 0 1px 6px rgba(7, 0, 114, .18);
}
.services a:hover { background: var(--navy); color: #fff; }

.footer { padding: 18px 40px; font-size: 15px; font-weight: 400; background: rgba(255, 255, 255, .6); max-width: 900px; }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 6px 0 0; }

/* --- phones ------------------------------------------------------------------ */
@media (max-width: 860px) {
  body { background-attachment: scroll; font-size: 17px; }
  .site { grid-template-columns: 1fr; }
  .sidebar { box-shadow: 0 2px 10px rgba(7, 0, 114, .2); border: 0; }
  .sidebar__inner { position: static; display: grid; grid-template-columns: auto 1fr; align-items: center; }
  .brand { padding: 8px 12px; width: 96px; }
  .menu-toggle {
    display: inline-flex; justify-self: end; align-items: center; gap: 8px; margin-inline-end: 12px;
    font: 700 18px var(--body); color: var(--maroon); background: #fff; border: 1px solid var(--rule);
    border-radius: 4px; padding: 10px 14px; min-height: 44px; cursor: pointer;
  }
  .nav, .sidebar__contact { grid-column: 1 / -1; }
  .js .nav[data-open="false"] { display: none; }
  .sidebar__contact { display: none; }
  .content { padding: 18px 16px 36px; }
  .content h1 { font-size: 28px; }
  .footer { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cloud .years { font-family: var(--display); color: var(--plum); font-size: clamp(26px, 4.4vw, 42px); line-height: 1.2; margin: 0 0 10px; }
.home .content { background: transparent; max-width: none; padding-inline: 16px; }

/* Stage 3 visual check (phone emulation): map rendered at intrinsic size; welcome text ran below the cloud. */
.map { display: block; min-height: 300px; height: auto; }
@media (max-width: 520px) {
  .cloud { aspect-ratio: auto; background-size: 100% 100%; padding: 64px 40px 72px; }
  .cloud .years { font-size: 28px; }
}

/* --- Stage 4: privacy notice, consent, embeds, legal pages ---------------------- */
.privacy-notice {
  font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--ink);
  background: #fff; border: 1px solid #b7c1d6; border-radius: 4px; padding: 10px 12px;
}
.privacy-notice p { margin: 0 0 6px; }
.privacy-notice a { color: var(--maroon); text-decoration: underline; }
.consent { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 700; margin-top: 6px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.embed {
  max-width: 640px; aspect-ratio: 16 / 9; margin: 16px 0; padding: 18px;
  display: grid; align-content: center; gap: 10px; justify-items: start;
  background: rgba(255, 255, 255, .85); border: 1px dashed var(--rule); border-radius: 6px;
  font-size: 15px; font-weight: 400;
}
.embed p { margin: 0; }
.embed a { color: var(--maroon); }
.embed--loaded { padding: 0; border: 0; background: none; display: block; position: relative; }
.embed--loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--map { aspect-ratio: 4 / 3; }
@media (max-width: 520px) { .embed { aspect-ratio: auto; min-height: 220px; } .embed--loaded { aspect-ratio: 4 / 3; } }

.content p a, .content li a { text-decoration: underline; }
.legal { font-weight: 400; }
.legal strong { font-weight: 700; }
.legal .updated { font-size: 15px; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; max-width: 100%; }
.legal table { border-collapse: collapse; background: #fff; font-size: 15px; min-width: 520px; }
.legal caption { text-align: start; font-weight: 700; padding: 6px 0; }
.legal th, .legal td { border: 1px solid #b7c1d6; padding: 6px 10px; text-align: start; vertical-align: top; }
.footer .legal-links a { color: var(--ink); }

/* item 1: table columns restored as side-by-side lists (stacked on phones) */
.hr-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 12px 24px; max-width: 70ch; margin: 8px 0 18px; }
.hr-pair__col { background: rgba(255, 255, 255, .6); border-inline-start: 4px solid var(--maroon); padding: 8px 14px; border-radius: 4px; }
.hr-subhead { font-weight: 700; margin: 0 0 4px; }
.hr-dots, ul.dots { list-style: none; padding-inline-start: 0; margin: 0 0 14px; }
.hr-dots li, ul.dots li { position: relative; padding-inline-start: 18px; margin: 2px 0; }
.hr-dots li::before, ul.dots li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--maroon); }

/* item 3: bugs from the design review */
.home .content { background: rgba(197, 217, 238, .35); }
.content .services a { text-decoration: none; }
@media (max-width: 860px) { .site { grid-template-rows: auto 1fr; } }

/* item 4: tap-to-call in the phone top bar */
.call-btn { display: none; }
@media (max-width: 860px) {
  .sidebar__inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { border: 2px solid var(--maroon); }
  .call-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-inline-end: 12px;
    padding: 8px 12px; border-radius: 4px; background: var(--maroon); color: #fff; font: 700 17px var(--body); text-decoration: none;
  }
  .call-btn:hover, .call-btn:focus-visible { background: var(--navy); color: #fff; }
}
@media (max-width: 380px) { .call-btn { font-size: 15px; padding: 8px; } }
/* item 5: next step at the end of content pages */
.next-step { margin: 28px 0 8px; padding: 14px 16px; background: #fff; border-inline-start: 4px solid var(--maroon); border-radius: 4px; max-width: 70ch; }
.next-step p { margin: 0 0 10px; }
.next-step__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.next-step .btn { text-decoration: none; }
.btn--light { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn--light:hover { background: var(--navy); color: #fff; }
/* item 13: home cards 2x2 + more links; tighter cloud on phones */
@media (min-width: 861px) { .services { grid-template-columns: repeat(2, 1fr); max-width: 560px; } }
.more-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 0; margin: -20px auto 40px; font-size: 18px; }
.more-links a { color: var(--maroon); }
@media (max-width: 520px) { .cloud { padding: 48px 36px 56px; } }

/* item 7: Anka CLM only for short display text */
.content h2.h-long { font: 700 22px/1.45 var(--body); }
.faq summary, .services a, .testimonials h2, .more-links a { font-family: var(--body); }
.faq summary { font-size: 19px; font-weight: 700; }
.services a { font-size: 20px; }
/* item 8: one column edge on desktop (banner 992px) */
.main { max-width: 992px; }
.content, .footer { max-width: none; }

/* item 9: certificates */
.gallery { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); align-items: start; gap: 16px; }
.cert { margin: 0; background: #fff; border: 1px solid #d8ccb0; border-radius: 4px; box-shadow: 0 2px 8px rgba(7, 0, 114, .15); padding: 8px; }
.cert a { display: block; background: none; padding: 0; box-shadow: none; }
.gallery .cert img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.cert figcaption { font: 400 14px/1.4 var(--body); margin-top: 6px; color: var(--ink); }
.zoom { border: 0; border-radius: 6px; padding: 12px; max-width: min(96vw, 900px); max-height: 94vh; background: #fff; }
.zoom::backdrop { background: rgba(7, 0, 114, .6); }
.zoom img { display: block; max-width: 100%; max-height: 80vh; margin: 10px auto 0; }

/* item 10: testimonials in two columns on desktop */
.testimonials { display: block; columns: 2 20rem; column-gap: 16px; max-width: none; }
.testimonials li { break-inside: avoid; margin: 0 0 14px; }
/* item 11: about photos + years badge */
.years-badge { font-family: var(--display); color: var(--plum); font-size: 30px; line-height: 1.2; }
.about-photos { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 20px; }
.about-photos figure { margin: 0; width: 170px; background: #fff; padding: 6px; border-radius: 4px; box-shadow: 0 2px 8px rgba(7, 0, 114, .15); }
.about-photos img { display: block; width: 100%; height: auto; margin: 0; }
.about-photos figcaption { font: 700 15px/1.4 var(--body); text-align: center; margin-top: 4px; }

/* item 12: contact page */
.contact-list { display: grid; gap: 10px; }
.contact-list .btn { font-size: 20px; }
.optional { font-weight: 400; font-size: 15px; }
.lead-form .consent { background: #fff; border: 1px solid #b7c1d6; border-radius: 4px; padding: 10px 12px; margin: 0; }
@media (max-width: 520px) { .lead-form .btn { width: 100%; } }
/* compact click-to-load placeholders; the real frame keeps its ratio once loaded */
.embed { aspect-ratio: auto; min-height: 0; padding: 16px 18px; border-style: solid; }
.embed--loaded { aspect-ratio: 16 / 9; }
.embed--map.embed--loaded { aspect-ratio: 4 / 3; }

/* item 14: disclaimer as a note */
.disclaimer { font: 700 16px/1.6 var(--body); background: #fff; border-inline-start: 4px solid var(--maroon); padding: 10px 14px; border-radius: 4px; max-width: 70ch; }

/* polish after the visual check: buttons inside lists/paragraphs were underlined by `.content li a` */
.content .btn, .content .btn:hover { text-decoration: none; }

/* reviews page (2026-10-09): the date under each reviewer's name */
.testimonials .t-date { margin: 0 0 6px; font-size: 15px; color: #3d3d55; }

/* D15 (2026-10-09): medical disclaimer, small, in every page's footer */
.footer .footer-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }

/* Amendment 13 (2026-10-09): cookie banner + settings dialog. Accept and reject look the same on purpose. */
.consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; background: #fff; color: var(--ink);
           border-top: 3px solid var(--navy); box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
           padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; justify-content: center; }
.consent__text { margin: 0; max-width: 70ch; font-size: 16px; line-height: 1.6; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .btn { min-width: 7.5rem; min-height: 44px; }
html.consent-showing body { padding-bottom: var(--consent-h, 0px); }
html.consent-showing .a11y-trigger { bottom: calc(var(--consent-h, 0px) + 16px) !important; }
.consent-dlg { max-width: min(36rem, calc(100vw - 32px)); border: 3px solid var(--navy); border-radius: 6px; padding: 20px 22px;
               color: var(--ink); background: #fff; font: 400 16px/1.6 var(--body); }
.consent-dlg::backdrop { background: rgba(7, 0, 114, .45); }
.consent-dlg h2 { margin: 0 0 12px; font-size: 22px; }
.consent-opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0 0 14px; }
.consent-opt input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--navy); }
@media (max-width: 520px) {
  .consent { padding: 12px 16px; }
  .consent__text { font-size: 15px; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1 1 0; min-width: 0; }
}
