/* Sultan Style Barbershop: the one shared style file. Every page links to it.
   Look 2 with the first-screen swap (Souhail's pick, Dec 1, 2026).
   Why each value is what it is: blueprint/design-system.md.
   Rules kept here: reading text is dark on light. Green (--act) is for Book only. */

/* Fonts: two files, served from the site itself. Licences sit beside them in fonts/. */
@font-face{font-family:"Cinzel";src:url(fonts/cinzel-latin.woff2) format("woff2");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url(fonts/hanken-grotesk-latin.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  /* colours */
  --page:#FFFFFF;      /* page background */
  --band:#F3F3F2;      /* light grey band behind every other block */
  --ink:#15151A;       /* reading text, outlines of Call and form buttons */
  --muted:#5C5B5F;     /* small grey text, form field outline */
  --line:#C8C8C8;      /* thin silver divider lines (decoration only) */
  --act:#4A5E2F;       /* green: Book, and nothing else */
  --act-ink:#FFFFFF;   /* words on a Book button */
  --black:#000000;     /* logo bar and footer */
  --on-black:#FFFFFF;  /* words on the logo bar and footer */
  --on-black-soft:#D8D8D8; /* footer links */
  /* letters */
  --head:"Cinzel",Georgia,"Times New Roman",serif;
  --body:"Hanken Grotesk",Helvetica,Arial,sans-serif;
  /* sizes and spacing */
  --bar:56px;          /* height of the logo bar */
  --pad:16px;          /* side padding of the page */
  --sec:36px;          /* space above and below a block */
  --tap:48px;          /* smallest height of anything you tap */
  --r:2px;             /* corner radius */
  --measure:70ch;      /* widest a line of reading text gets */
  --narrow:720px;      /* widest a list of rows or cards gets */
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--bar) + 12px);scroll-padding-bottom:84px}
body{margin:0;font:400 17px/1.5 var(--body);color:var(--ink);background:var(--page)}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3,p,ul,ol,blockquote,address,figure{margin:0;padding:0;font-style:normal}
ul,ol{list-style:none}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.bar :focus-visible,.foot :focus-visible{outline-color:var(--on-black)}

/* headings */
h1{font:600 31px/1.2 var(--head);letter-spacing:.02em}
h2{font:600 27px/1.15 var(--head);letter-spacing:.04em;margin-bottom:14px}
h3{font:600 19px/1.3 var(--body)}

/* blocks */
main{text-align:center}
section{padding:var(--sec) var(--pad)}
.band{background:var(--band)}
.muted{color:var(--muted)}
.small{font-size:15px;line-height:1.4}

/* buttons: Book is green, every other button is an outline */
.btn{display:flex;align-items:center;justify-content:center;min-height:56px;padding:0 24px;border:1.5px solid var(--ink);border-radius:var(--r);background:#FFFFFF;color:var(--ink);font:600 17px/1 var(--head);letter-spacing:.12em;text-transform:uppercase;text-decoration:none;text-align:center;cursor:pointer}
.btn.book{background:var(--act);border-color:var(--act);color:var(--act-ink)}
.plain{display:inline-flex;align-items:center;min-height:var(--tap);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* logo bar */
.bar{position:sticky;top:0;z-index:5;height:var(--bar);display:flex;align-items:center;gap:20px;padding:0 var(--pad);background:var(--black);color:var(--on-black)}
.brand{display:flex;align-items:center;min-height:var(--tap);margin-right:auto}
.bar .nav,.bar .bar-call,.bar .btn{display:none}
.menu summary{display:flex;align-items:center;min-height:var(--tap);padding:0 16px;border:1.5px solid var(--on-black);border-radius:var(--r);font:600 16px/1 var(--body);color:var(--on-black);cursor:pointer;list-style:none}
.menu summary::-webkit-details-marker{display:none}
.menu nav{position:absolute;top:var(--bar);left:0;right:0;display:grid;padding:8px var(--pad) 16px;background:var(--page);color:var(--ink);border-bottom:1px solid var(--line);text-align:center}
.menu nav a{display:flex;align-items:center;justify-content:center;min-height:var(--tap);font-weight:600;text-decoration:none;border-bottom:1px solid var(--line)}
.menu nav a:last-child{border-bottom:0}

/* first screen, base rules: photo, heading, rating, Call and Book, then address, hours, walk-ins.
   The home page's layout since part 6 (rating and a review as one group) is at the end of this file. */
.first{display:flex;flex-direction:column;padding:0}
.photo{overflow:hidden;background:var(--ink)}
.photo img{width:100%;height:auto}
.intro{flex:1;display:grid;gap:12px;justify-items:center;align-content:space-evenly;padding:20px 20px 16px}
.intro h1{width:100%;padding-bottom:18px;border-bottom:1px solid var(--line)}
.acts{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;width:100%}
.facts{width:100%;padding-top:14px;border-top:1px solid var(--line);font-size:18px}
.facts li{padding:2px 0}

/* short phone screens: tighter spacing. Since part 6 the address lines may sit below the first screen;
   when less than half of Call and Book shows, the bottom bar shows. */
@media (max-height:700px) and (max-width:999px){
  .intro{gap:8px;padding:14px 20px 12px}
  .intro h1{padding-bottom:12px}
  .facts{padding-top:10px;font-size:17px}
  .facts li{padding:0}
}

/* price row: the whole row is one link to Square */
.rows{max-width:var(--narrow);margin:0 auto;border-top:1px solid var(--line);text-align:left}
.row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;min-height:64px;padding:8px 0;border-bottom:1px solid var(--line);text-decoration:none}
.svc{font-weight:600}
.svc small{display:block;font:400 15px/1.3 var(--body);color:var(--muted)}
.price{font:600 22px/1 var(--head)}
.go{font:600 14px/1 var(--head);letter-spacing:.12em;text-transform:uppercase;color:var(--act)}
.rows + .plain{margin-top:14px}

/* review: the client's words, 5 drawn stars (.stars, at the end of this file), the name, the source */
.review blockquote{max-width:var(--measure);margin:0 auto;font:400 21px/1.45 var(--body)}
.who{margin-top:10px;color:var(--muted)}

/* barber cards */
.barbers{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:var(--narrow);margin:0 auto}
.card{display:grid;gap:6px;justify-items:center;align-content:start}
.card .name{margin-top:8px;font:600 20px/1.2 var(--head);letter-spacing:.04em}
.card .go{display:inline-flex;align-items:center;min-height:var(--tap);text-decoration:none}

/* question and answer: both always open, nothing to tap */
.q{max-width:var(--measure);margin:0 auto}
.q + .q{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.q h3{margin-bottom:6px}

/* photo box: a phone camera's own shape, so nothing in the frame is cut */
.pic{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--band)}
.pic.tall{aspect-ratio:3/4}
.pic img{width:100%;height:100%;object-fit:cover}
.pic.empty{display:grid;place-items:center;padding:12px;border:1.5px dashed var(--muted);color:var(--muted);font-size:15px;line-height:1.35}
.pics{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:var(--narrow);margin:0 auto}

/* visit block */
.visit{display:grid;gap:18px;max-width:var(--narrow);margin:0 auto}
.visit .lines{display:grid;gap:2px;font-size:18px}
.visit .lines .name{font-weight:700}
.map{display:block;width:100%;height:300px;border:0;background:var(--band)}

/* form */
.form{display:grid;gap:14px;max-width:480px;margin:0 auto;text-align:left}
.field{display:grid;gap:6px}
.field label{font-weight:600}
.field input,.field textarea{width:100%;min-height:52px;padding:0 14px;border:1.5px solid var(--muted);border-radius:var(--r);background:#FFFFFF;color:var(--ink);font:400 17px/1.3 var(--body)}
.field textarea{min-height:120px;padding:12px 14px}
.consent{font-size:15px;line-height:1.4;color:var(--muted)}

/* footer: the four fixed lines, then the links */
.foot{display:grid;gap:16px;justify-items:center;padding:36px var(--pad) 120px;background:var(--black);color:var(--on-black);text-align:center}
.foot .mark{width:120px;height:auto}
.foot address{display:grid;gap:2px}
.foot address .name{font-weight:700}
.foot address a{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);text-decoration:underline;text-underline-offset:3px}
.links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px}
.links a{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tap);min-height:var(--tap);color:var(--on-black-soft);text-decoration:underline;text-underline-offset:3px}

/* phone only: the Call and Book bar at the bottom.
   With the page script it shows whenever the visitor sees less than half of the page's first Call and Book (Souhail, Dec 2).
   Without the script it is always there. */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:10px var(--pad) calc(10px + env(safe-area-inset-bottom,0px));background:#FFFFFF;border-top:1px solid var(--line)}
.dock .btn{min-height:var(--tap)}
.js .dock{display:none}
.js .dock.on{display:grid}

/* computer and wide tablet */
@media (min-width:1000px){
  :root{--bar:72px;--pad:40px;--sec:64px}
  body{font-size:18px}
  h1{font-size:54px}
  h2{font-size:34px;margin-bottom:22px}
  .bar{gap:28px}
  .menu{display:none}
  .bar .nav{display:flex;gap:24px;font:500 15px/1 var(--body)}
  .bar .nav a{display:flex;align-items:center;justify-content:center;min-width:var(--tap);min-height:var(--tap);color:#E6E6E6;text-decoration:none}
  .bar .bar-call{display:flex;align-items:center;min-height:var(--tap);font:600 16px/1 var(--body);color:var(--on-black);text-decoration:none}
  .bar .btn{display:flex;min-height:var(--tap)}
  .first{min-height:0;max-width:none}
  .photo{height:450px}
  .photo img{height:100%;object-fit:cover;object-position:50% 42%}
  .intro{flex:none;gap:16px;padding:30px 40px}
  .intro h1{padding:0 60px 22px}
  .rating{font-size:19px}
  .acts{display:flex;justify-content:center;gap:12px;width:auto}
  .acts .btn{min-height:60px;min-width:180px;font-size:19px}
  .acts .btn.book{min-width:260px}
  .facts{display:flex;justify-content:center;width:auto;padding-top:4px;border-top:0;font-size:19px}
  .facts li + li::before{content:"\00B7";margin:0 14px;color:var(--muted)}
  .review blockquote{font-size:24px}
  .barbers{gap:28px}
  .pics{gap:20px}
  .visit{grid-template-columns:1fr 1.3fr;align-items:center;max-width:1100px;text-align:left;gap:40px}
  .map{height:380px}
  .foot{padding-bottom:48px}
  .dock,.js .dock.on{display:none}
}

/* Added in part 4 (home page), Dec 1, 2026. Listed in handoffs/04-home-page.md.
   Only the colours, letters and sizes of blueprint/design-system.md. */

/* logo bar: the logo is one picture file, img/logo.webp, used in the bar and the footer.
   The stand-in is the whole logo, so the bar shows its lower part (the shop's name), as the approved sample did.
   When the real logo file comes, replace img/logo.webp; these two lines may then change. */
.brand img{width:180px;height:38px;object-fit:cover;object-position:50% 99%}
@media (min-width:1000px){.brand img{width:240px;height:48px}}

/* reviews: more than one quote in the block */
.review .who + blockquote{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}

/* one short sentence under a block heading */
.lead{max-width:var(--measure);margin:0 auto 18px}

/* service tiles: a photo, the service page's name under it; the whole tile opens that page (Souhail's pick A, Dec 1) */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:var(--narrow);margin:0 auto}
.tile{display:grid;gap:6px;align-content:start;text-decoration:none}
.tile .lbl{display:flex;align-items:center;justify-content:center;min-height:var(--tap);font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media (min-width:1000px){.tiles{gap:20px}}

/* Added in part 5 (fades page), Dec 1, 2026. Listed in handoffs/05-fades.md.
   Only the colours, letters and sizes of blueprint/design-system.md. */

/* a service page's first screen: no header photo; heading, price and time, rating, Call and Book (Souhail's pick B) */
.first.svc{min-height:0}
.first.svc .intro{flex:none;align-content:start;padding:22px 20px 18px}
.cost{font-size:18px}
@media (min-width:1000px){.first.svc .intro{padding:40px 40px 30px}.cost{font-size:19px}}

/* the photo boxes right under the first screen */
.shots{padding-top:4px}

/* one line under a list of rows */
.under{max-width:var(--measure);margin:14px auto 0}

/* style cards: a photo box, the style's name, one line (Souhail's pick B). An odd last card sits centred */
.styles{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;max-width:var(--narrow);margin:0 auto}
.style{display:grid;gap:6px;align-content:start}
.style h3{margin-top:4px}
.style:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 6px);justify-self:center}
@media (min-width:1000px){.styles{gap:24px 20px}.style:last-child:nth-child(odd){width:calc(50% - 10px)}}

/* three short steps, each a small heading and one line (Souhail's pick A) */
.steps{display:grid;gap:22px;max-width:var(--measure);margin:0 auto}
.steps h3{margin-bottom:4px}

/* Call and Book inside a block near the end of a page */
.end .acts{max-width:420px;margin:0 auto}

/* Added in part 6 (Souhail's changes, Dec 2, 2026, 12:58 AM). Listed in PLAN.md, part 6.
   Home first screen only (.first:not(.svc)): no spread-out space; the heading sits midway between the photo and the line under it;
   between that line and Call and Book, the rating (no date) and a review as one centred group, equal space above and below
   (first built as four equal parts; Souhail asked at 1:19 AM for less space between them). 5 stars drawn under every review,
   on the page only, never in the code. */
.first:not(.svc){min-height:0}
.first:not(.svc) .intro{flex:none;gap:0;align-content:start;padding:0 20px 20px}
.first:not(.svc) .intro h1{padding:20px 0}
.mid{display:grid;gap:14px;justify-items:center;width:100%;padding:26px 0}
.quote blockquote{max-width:var(--measure);margin:0 auto;font:400 18px/1.45 var(--body)}
.stars{margin-top:8px;font:700 22px/1 var(--body);letter-spacing:.12em;color:var(--ink)}
.quote .who{margin-top:8px}
.first:not(.svc) .facts{margin-top:18px}
@media (max-height:700px) and (max-width:999px){
  .first:not(.svc) .intro h1{padding:14px 0}
  .mid{gap:10px;padding:16px 0}
  .quote blockquote{font-size:17px}
  .first:not(.svc) .facts{margin-top:12px}
}
@media (min-width:1000px){
  .first:not(.svc) .intro{padding:0 40px 30px}
  .first:not(.svc) .intro h1{padding:28px 60px}
  .mid{max-width:var(--measure);padding:30px 0}
  .quote blockquote{font-size:20px}
  .first:not(.svc) .facts{margin-top:20px}
}
/* Added in prompt 7c (visit and privacy pages), Dec 3, 2026. Listed in handoffs/07c-visit-privacy.md.
   Only the colours, letters and sizes of blueprint/design-system.md. Nothing here changes Home, /fades or /prices. */
/* the seven days' hours: one row a day, the day on the left, the hours on the right, thin silver lines between */
.hours{max-width:var(--narrow);margin:0 auto;border-top:1px solid var(--line);text-align:left}
.hours li{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.hours li span:first-child{font-weight:600}
/* privacy draft: the draft line on its first screen, plain text blocks, and every gap marked in a dashed box */
.draft{font-size:15px;line-height:1.4;color:var(--muted)}
.text{display:grid;gap:12px;max-width:var(--measure);margin:0 auto}
.gap{padding:12px 14px;border:1.5px dashed var(--muted);color:var(--ink)}
/* Added Dec 3, 2026 for the "page not found" page (site/404.html; Souhail's stop 1 pick A: Home as a button).
   Only the class .home, used on no other page. The button's look is the shared .btn (white, ink border), as Call. */
.first .btn.home{width:100%}
@media (min-width:1000px){.first .btn.home{width:auto;min-width:180px}}
/* Added Dec 3, 2026 for the facials page (site/mens-facial.html; Souhail's stop 1 pick A: one block for the three facials).
   Only the class .what, used on no other page: the one line saying what a service includes, inside its price row, under the minutes. */
.svc .what{display:block;margin-top:4px;font-weight:400}
/* Added Dec 3, 2026 for the beard article (site/articles/beard-trim-or-line-up.html; Souhail's stop 1 picks: one photo box under the
   first screen, and text set B: a small table, numbered steps, a bullet list). Listed in handoffs/07g-article-beard.md.
   Only the colours, letters and sizes of blueprint/design-system.md. Used on no other page. Lists and the table sit to the left so they read as lists. */
.pics.one{grid-template-columns:1fr;max-width:480px}
.cmp{width:100%;max-width:var(--narrow);margin:6px auto 0;border-collapse:collapse;text-align:left}
.cmp th,.cmp td{padding:12px 10px 12px 0;border-bottom:1px solid var(--line);vertical-align:top;font-weight:400}
.cmp thead th,.cmp thead td{border-top:1px solid var(--line)}
.cmp th{font-weight:600}
.cmp th:last-child,.cmp td:last-child{padding-right:0}
.num{counter-reset:n;display:grid;gap:10px;text-align:left}
.num li{counter-increment:n;display:grid;grid-template-columns:28px 1fr}
.num li::before{content:counter(n) ".";font-weight:600}
.dots{display:grid;gap:8px;text-align:left}
.dots li{display:grid;grid-template-columns:20px 1fr}
.dots li::before{content:"\2022"}
/* /careers (Dec 4): the tick box, the form's own button, the message after sending */
.tick{display:grid;grid-template-columns:48px 1fr;gap:6px;align-items:center}
.tick input{-webkit-appearance:none;appearance:none;width:48px;height:48px;min-height:0;margin:0;cursor:pointer;color:var(--ink);font-size:17px;background:#FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='12' y='12' width='24' height='24' rx='3' fill='%23FFFFFF' stroke='%2315151A' stroke-width='2'/%3E%3C/svg%3E") center/48px 48px no-repeat}
.tick input:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='12' y='12' width='24' height='24' rx='3' fill='%2315151A'/%3E%3Cpath d='M17 24.5l5 5 9-11' fill='none' stroke='%23FFFFFF' stroke-width='3'/%3E%3C/svg%3E")}
.tick input:focus-visible{outline:2px solid var(--ink);outline-offset:-6px}
.band .tick input{background-color:var(--band)}
.form .btn{width:100%}
.form .lead{margin:0}
.sent{display:none;max-width:var(--measure);margin:0 auto 18px;font-weight:600}
.sent:target{display:block}
/* Part 8 (Souhail, Dec 4: "Yes, hide them"): a photo box with no photo does not show, and comes back by itself once its photo is in; a photo row with no photo at all does not show */
.pic.empty{display:none}
.pic.empty:has(img){display:block}
.shots:not(:has(img)){display:none}
