/*
Theme Name: Elit Frisör
Description: Ett redigerbart blocktema för Elit Frisör i Uppsala. Mörk och ljus stil med lokala typsnitt.
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.4
Author: Elit Frisör
Text Domain: elitfrisor
License: GPL-2.0-or-later
*/
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }
figure, .wp-block-group, p, h1, h2, h3 { margin-block-start: 0; }
.wp-block-group > * { min-width: 0; }
.wp-site-blocks { padding: 0; }
.ef-link-wrap { display: contents; }
a { text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 5px; }
/* All links have a generous touch target, including rich text contact links. */
a { min-height:44px; display:inline-flex; align-items:center; }
p a { vertical-align: middle; }
.ef-service { display:grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items:baseline; text-align:left; }
.ef-service > p { margin:0; }
.ef-header { max-width:1320px; margin:auto; padding:28px 24px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 40px; border-bottom:1px solid var(--wp--preset--color--line); }
.ef-logo { margin:0; }
.ef-logo img { height:92px; width:auto; max-width:100%; }
.ef-logo-dark { display:var(--wp--custom--logo-dark); }
.ef-logo-light { display:var(--wp--custom--logo-light); }
.ef-header .wp-block-navigation { font-size:13px; font-weight:400; letter-spacing:.16em; text-transform:uppercase; }
.ef-header .wp-block-navigation__container { gap:4px 28px; flex-wrap:wrap; }
.ef-header .wp-block-navigation-item__content { padding-block:10px; }
.ef-header .ef-book a { border:1px solid var(--wp--preset--color--accent); color:var(--wp--preset--color--accent); padding-inline:24px; }
.ef-footer { padding:40px 24px; border-top:1px solid var(--wp--preset--color--line); text-align:center; color:var(--wp--preset--color--muted); font-size:12px; letter-spacing:.15em; }
.ef-footer p { margin:0; }
@media (max-width: 700px) {
 .ef-header { padding:20px; gap:20px; }
 .ef-logo img { height:72px; }
 .ef-header .wp-block-navigation { font-size:11px; letter-spacing:.08em; width:100%; }
 .ef-header .wp-block-navigation__container { gap:4px 20px; }
 .wp-site-blocks section { padding-left:20px; padding-right:20px; }
 .wp-site-blocks section > .wp-block-group { padding-left:0; padding-right:0; }
 .wp-site-blocks section { padding-top:56px; padding-bottom:56px; }
 .wp-site-blocks h1, .wp-site-blocks .ef-hero h1 { font-size:clamp(46px,12vw,64px); }
 .wp-site-blocks h2 { font-size:44px; margin-bottom:28px; }
 .wp-site-blocks section > .wp-block-group { padding-top:0; padding-bottom:0; }
 .ef-hero p { font-size:17px; }
 .ef-service { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; }
 .ef-service > p:first-child { grid-column:1; font-size:23px; }
 .ef-service > p:nth-child(2) { grid-column:1; grid-row:2; }
 .ef-service > p:last-child { grid-column:2; grid-row:1 / 3; align-self:center; white-space:nowrap; }
 .wp-site-blocks .ef-collage { padding-top:0; padding-bottom:0; }
 .ef-collage > div { min-height:280px; aspect-ratio:1.2; }
 .ef-collage figure:first-child { width:70%; height:72%; }
 .ef-collage figure:nth-child(2) { display:none; }
 .ef-collage figure:last-child { left:48%; width:52%; height:88%; }
 #hitta-hit figure { flex-basis:100%; height:360px; }
 #hitta-hit > div { gap:36px; }
 #frisorer article { flex-basis:250px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
.ef-product-photo { display:var(--wp--custom--light-content); margin:0 0 28px; }
.ef-product-photo img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:18px; }
.ef-visit-dark { display:var(--wp--custom--dark-content); }
.ef-visit-light { display:var(--wp--custom--light-content); }
a { min-width:44px; }
/* Clip the photo itself to the editable image block's silhouette. */
.ef-collage figure, .ef-section-frisorer figure, .ef-section-hitta-hit figure { overflow:hidden; }
.ef-section-behandlingar .ef-service { grid-template-columns:auto auto minmax(20px,1fr) auto; }
.ef-section-behandlingar .ef-service::before { content:""; grid-column:3; grid-row:1; border-bottom:1px dotted var(--wp--preset--color--line); align-self:end; transform:translateY(-10px); }
.ef-section-behandlingar .ef-service > p:first-child { grid-column:1; grid-row:1; }
.ef-section-behandlingar .ef-service > p:nth-child(2) { grid-column:2; grid-row:1; }
.ef-section-behandlingar .ef-service > p:last-child { grid-column:4; grid-row:1; }
@media(max-width:700px) {
 .ef-section-behandlingar .ef-service { grid-template-columns:minmax(0,1fr) auto; }
 .ef-section-behandlingar .ef-service::before { display:none; }
 .ef-section-behandlingar .ef-service > p:nth-child(2) { grid-column:1; grid-row:2; }
 .ef-section-behandlingar .ef-service > p:last-child { grid-column:2; grid-row:1 / 3; }
}
