/*
 * artelly.bg. The look is the WordPress theme's (StarKid by ThimPress, with WPBakery rows), rebuilt from the rules
 * the old home page actually used: every size, spacing and colour on the home page is the one the theme computed,
 * so the two render alike at every width. The comments name the WordPress rule a block replaces where that helps.
 * Breakpoints are the theme's: 1300px (wide container), 992px (two columns, the full menu), 768px (three columns),
 * plus its "tablet" (768–1024px) and "mobile" (up to 767px) variants of the rows.
 */

/* Balsamiq Sans (SIL Open Font License 1.1), the theme's self-hosted copies, split by alphabet like Google Fonts */
@font-face { font-family: 'Balsamiq Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/balsamiq-sans-400-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Balsamiq Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/balsamiq-sans-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Balsamiq Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/balsamiq-sans-400-latin-ext.woff2) format('woff2'); 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: 'Balsamiq Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/balsamiq-sans-400-latin.woff2) format('woff2'); 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; }
@font-face { font-family: 'Balsamiq Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/balsamiq-sans-700-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Balsamiq Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/balsamiq-sans-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Balsamiq Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/balsamiq-sans-700-latin-ext.woff2) format('woff2'); 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: 'Balsamiq Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/balsamiq-sans-700-latin.woff2) format('woff2'); 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 {
  /* The logo's four colours, the only colours the site uses: ARTELLY's A and L olive, R and L yellow, T and Y red,
     E teal. Besides them only white, greys, the two tints below (a logo colour mixed with white) and the flags */
  --olive: #b0ba38;          /* the title band, the waves, list bullets */
  --yellow: #f4b843;         /* the ring of the call circle */
  --red: #cf4739;            /* the second menu item, "read" links */
  --teal: #548b9e;           /* headings, links, the first menu item, the call circle, the footer icons, buttons */
  --cream: #fef6e8;          /* the yellow at 12% on white: quotes, the author box */
  --grey-light: #f8f6f3;     /* a light grey, the WordPress page's own: the credentials band */
  --sky: #e5eef1;            /* the teal at 15% on white: the footer */
  --text: #666;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --title-font: 'Balsamiq Sans', var(--body-font);
  /* The wave under headings: the theme drew it with two rows of Ionicons' ios-circle-outline (18px, 5px apart), the
     top halves shifted 10px against the bottom halves; this is the same geometry as one image */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='8'%3E%3Cdefs%3E%3CclipPath id='t'%3E%3Crect x='10' width='80' height='4'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Crect y='4' width='90' height='4'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg fill='none' stroke='%23b0ba38' stroke-width='1'%3E%3Cg clip-path='url(%23t)'%3E%3Ccircle cx='17.313' cy='9' r='7.014'/%3E%3Ccircle cx='36.938' cy='9' r='7.014'/%3E%3Ccircle cx='56.563' cy='9' r='7.014'/%3E%3Ccircle cx='76.188' cy='9' r='7.014'/%3E%3Ccircle cx='95.813' cy='9' r='7.014'/%3E%3C/g%3E%3Cg clip-path='url(%23b)'%3E%3Ccircle cx='7.313' cy='-1' r='7.014'/%3E%3Ccircle cx='26.938' cy='-1' r='7.014'/%3E%3Ccircle cx='46.563' cy='-1' r='7.014'/%3E%3Ccircle cx='66.188' cy='-1' r='7.014'/%3E%3Ccircle cx='85.813' cy='-1' r='7.014'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base (the theme's reset over Bootstrap 4's) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* 1.6em, not 1.6: the theme's line height is a length, inherited as 25.6px by everything that sets none of its own */
body { font-family: var(--body-font); font-size: 16px; line-height: 1.6em; color: var(--text); background: #fff; overflow-x: hidden; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border-style: none; }
p { margin-bottom: 1rem; word-break: break-word; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--title-font); color: var(--teal); font-weight: 700; margin-bottom: 1rem; }
b, strong { font-weight: bolder; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.icon { fill: currentColor; }

.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 1300px) { .container { width: 1200px; padding: 0 20px; } }

/* WPBakery's rows and columns: a column has 15px of padding, its inner box 15px more unless a row says otherwise */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row-top { align-items: flex-start; }
.col { position: relative; display: flex; width: 100%; min-height: 1px; padding: 0 15px; }
.col-inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex-grow: 1; width: 100%; padding: 0 15px; }
.row-middle > .col { align-items: center; }
.row-middle > .col > .col-inner { justify-content: center; }
@media (min-width: 768px) { .col-third { width: 33.33333333%; } }
@media (min-width: 992px) { .col-half { width: 50%; } }

/* A heading with the wave under it (BuilderPress "heading", kindergarten layout 1) */
.heading { text-align: center; padding-bottom: 16px; }
.heading-title { font-size: 40px; font-weight: 400; line-height: 1.1; letter-spacing: 1.5px; margin: 0; word-break: break-word; }
.wave { display: inline-block; width: 90px; height: 8px; overflow: hidden; background: var(--wave) no-repeat; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; }
.header-bar { display: flex; align-items: center; min-height: 50px; background: #fff; transition: all .3s; }
.header-row { display: flex; align-items: center; }
/* The logo's box reaches below the bar; on a phone its white scalloped edge shows over the title band */
.header-logo { flex: 1 1 0%; min-width: 150px; margin: 0 0 -25px -20px; padding: 0 0 25px 20px; background: url(images/logo-scallop.webp) left bottom no-repeat; }
.header-logo .logo { display: inline-block; }
.header-logo img { max-width: 200px; }
.main-nav { text-align: right; }
.main-nav .menu { list-style: none; margin: 0 -22px; font-weight: 700; }
.main-nav .menu > li { display: inline-block; position: relative; padding: 45px 15px 22px; text-align: left; }
.main-nav .menu > li > a { display: block; position: relative; padding: 2px 10px; font-size: 17.5px; font-weight: 400; line-height: 1.5; white-space: nowrap; transition: all .2s; }
.main-nav .menu > li > a::after { content: ""; display: block; position: absolute; bottom: 1px; left: 50%; width: 0; height: 1px; background: currentColor; transform: translateX(-50%); transition: all .2s; }
.main-nav .menu > li.is-current > a::after, .main-nav .menu > li:hover > a::after { width: calc(100% - 15px); }
/* The icon above each item, at the theme's 22px */
.main-nav .menu-icon { position: absolute; bottom: 100%; left: 0; right: 0; display: block; margin: 0 auto; font-size: 22px; }
/* Each item its own logo colour, as the theme gave each its own: the two that read well as text, teal and red */
.main-nav .menu > li:nth-child(odd) > a { color: var(--teal); }
.main-nav .menu > li:nth-child(even) > a { color: var(--red); }
/* The language switch: both flags, the page's language in colour, the other greyed out until pointed at */
.lang-switch { display: flex; align-items: center; gap: 8px; margin-left: 26px; }
.lang-flag { display: block; width: 27px; height: 18px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.lang-flag .flag { display: block; width: 100%; height: 100%; }
a.lang-flag { filter: grayscale(1); opacity: .5; transition: filter .2s, opacity .2s; }
a.lang-flag:hover, a.lang-flag:focus-visible { filter: none; opacity: 1; }
/* Seven sections fit one row on a small desktop only a little closer together */
@media (min-width: 992px) and (max-width: 1199px) {
  .main-nav .menu { margin: 0 -10px; }
  .main-nav .menu > li { padding-left: 5px; padding-right: 5px; }
  .main-nav .menu > li > a { padding: 2px 6px; font-size: 16px; }
  .lang-switch { margin-left: 14px; }
}
.menu-toggle { display: none; align-items: center; margin-left: 10px; padding: 7px 5px 5px; font-size: 30px; line-height: 1; color: #282828; }
.menu-toggle:hover { color: var(--red); }
.menu-toggle .icon { display: block; }
@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-logo { min-width: 0; margin-bottom: -20px; padding-right: 30px; }
  .lang-switch { margin-left: 0; }
}
/* The narrowest phones: the logo gives way to the flags and the menu button */
@media (max-width: 359px) {
  .header-logo { padding-right: 15px; }
  .header-logo .logo { display: block; }
  .header-logo img { max-width: 100%; }
}
/* Past the top the bar is fixed; the script hides it while scrolling down and brings it back while scrolling up */
.site-header.is-fixed .header-bar { position: fixed; top: 0; left: 0; z-index: 200; width: 100%; box-shadow: 0 1px 5px 0 rgb(0 0 0 / .1); }

/* The phone menu: a dark panel from the left */
.mobile-menu { position: fixed; top: 0; bottom: 0; left: 0; z-index: 999; width: 270px; height: 100%; padding-top: 65px; overflow: auto; background: #222; visibility: hidden; transform: translateX(-270px); transition: all .5s; }
.menu-open .mobile-menu { visibility: visible; transform: none; box-shadow: 0 1px 5px -2px rgba(42, 42, 42, .4); }
.mobile-menu-inner { padding: 0 15px; border-top: 1px solid #2b2b2b; }
.mobile-menu-title { position: relative; margin-bottom: 15px; padding-left: 15px; font-family: var(--title-font); font-size: 16px; line-height: 1.75; color: #fff; text-transform: uppercase; }
.mobile-menu-title::before { content: ""; position: absolute; top: 7px; left: 0; width: 3px; height: calc(100% - 15px); background: var(--teal); }
.mobile-menu-list { list-style: none; margin-bottom: 50px; padding-left: 15px; border-left: 1px solid #666; }
.mobile-menu-list li { position: relative; padding: 7px 0; font-size: 20px; font-weight: 300; line-height: 1.5; }
.mobile-menu-list li::before { content: ""; position: absolute; top: 20px; left: -15px; width: 10px; height: 1px; background: #666; }
.mobile-menu-list a { font-size: 15px; color: #999; }
.mobile-menu-list a:hover { color: #fff; }
.mobile-menu-list .is-current a { color: var(--teal); }
.mobile-menu-list .menu-icon { width: 20px; padding-right: 7px; vertical-align: -2px; }

/* ---------- The title band ---------- */
.page-title { position: relative; background: var(--olive) url(images/page-title-pattern.webp) center / cover no-repeat; }
.page-title .container { padding-top: 35px; padding-bottom: 35px; text-align: center; }
.page-title h1 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 40px; line-height: 1.2; color: #fff; word-break: break-word; }
@media (max-width: 1024px) { .page-title .container { padding-top: 37px; } }
/* An article's title may be long: it wraps instead of clipping, and its breadcrumbs sit under it */
.page-title-long h1 { display: block; max-width: 900px; margin-left: auto; margin-right: auto; font-size: clamp(28px, 4.2vw, 40px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; font-size: 15px; line-height: 1.5; color: #fff; }
.breadcrumbs li + li::before { content: "›"; padding: 0 8px; opacity: .8; }
.breadcrumbs a { color: #fff; opacity: .9; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* On a phone the H1 above already names the page */
@media (max-width: 600px) { .breadcrumbs li:last-child { display: none; } }

/* ---------- About page: about (first row; the home page reuses it) ---------- */
.about { padding: 72px 0 49px; }
.about-photo { margin-top: 38px; padding: 0; }
.about-intro { padding: 63px 0 0 30px; }
.single-image { margin-bottom: 35px; text-align: center; }
.single-image img { vertical-align: top; }
.text-block { margin-bottom: 35px; text-align: center; }
.about-text p { margin-bottom: 26px; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- About page: credentials (BuilderPress "icon box", kindergarten layout 1, without its flower) ---------- */
.credentials { margin: 25px 0 75px; padding-bottom: 35px; background: var(--grey-light); }
.credentials .col-inner { padding-top: 35px; }
.credential { text-align: center; }
.credential-title { margin: 0 0 7px; font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: 1.5px; word-break: break-word; }
.credential .wave { margin-bottom: 7px; }
.credential-text { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.5; }

/* ---------- About page: the path to change (third row) ---------- */
.change { position: relative; z-index: 1; padding-bottom: 75px; background: #fff; }
.change-intro { padding-top: 105px; }
.change-text { margin-bottom: 0; }
.change-photo { padding: 35px 0 0 25px; }
/* "Call now" (BuilderPress "icon box", kindergarten layout 8) */
.call-box { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; width: 100%; min-height: 143px; padding: 47px 20px 35px; border-radius: 71px; background: hsl(0 0% 100% / .9); }
.call-circle { display: flex; justify-content: center; align-items: center; width: 59px; height: 59px; margin-right: 25px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgb(244 184 67 / .6); color: #fff; font-size: 40px; transition: all .2s; }
.call-circle:hover { background-color: rgb(84 139 158 / .9); box-shadow: 0 0 0 8px rgb(244 184 67 / .6); }
.call-circle .icon { display: block; }
.call-content { display: flex; flex-direction: column; }
.call-title { margin: 4px 0; font-size: 16px; font-weight: 300; line-height: 1.5; letter-spacing: 1.5px; word-break: break-word; }
.call-number { font-size: 18px; line-height: 1.1; word-break: break-word; }

/* The theme's tablet and phone variants of the rows. Where its circle sat flush against the words (992–1200px and
   under 500px), it now keeps 15px from them */
@media (min-width: 992px) and (max-width: 1200px) {
  .call-circle { margin-right: 15px; margin-bottom: 25px; }
  .call-content { text-align: center; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .about-intro { padding-top: 35px; padding-left: 0; }
}
@media (max-width: 1024px) {
  .change-intro { padding-top: 0; }
}
@media (max-width: 767px) {
  .about { padding: 0; }
  .about-intro { padding-top: 0; padding-left: 0; }
  .change { padding-top: 50px; padding-bottom: 50px; }
  .change-photo { padding-left: 0; }
  .call-box { padding-left: 0; padding-right: 0; }
  .call-circle { margin-right: 15px; margin-bottom: 25px; }
  .call-content { text-align: center; }
}
@media (min-width: 500px) and (max-width: 765px) {
  .call-circle { margin-bottom: 0; margin-right: 25px; }
}

/* ---------- Home page ---------- */
/* The band grows into the page's opening: its H1, a line about the practice and the two ways in */
.page-title-hero .container { padding-top: 64px; padding-bottom: 72px; }
.page-title-hero h1 { display: block; max-width: 900px; margin: 0 auto 14px; font-size: clamp(32px, 4.6vw, 46px); text-shadow: 0 1px 12px rgb(0 0 0 / .18); }
.hero-text { max-width: 620px; margin: 0 auto 28px; font-size: 19px; line-height: 1.6; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .22); }
.hero-actions { margin: 0; }
.button-icon { margin-right: 9px; vertical-align: -2px; }
/* The second button is white: on the olive band the red one of .button + .button would not read */
.hero-actions .button.button-light { background: #fff; color: var(--teal); }
.home-about { padding-bottom: 70px; }
.home-about .about-intro { padding-top: 40px; }
.home-about .text-block { margin-bottom: 0; }
.home-section { padding: 75px 0; }
.home-band { padding: 70px 0 80px; background: var(--grey-light); }
.home-reviews { background: var(--cream); }
.section-lede { max-width: 640px; margin: 0 auto 40px; font-size: 18px; line-height: 1.6; text-align: center; }
.section-more { margin: 34px 0 0; text-align: center; }
.home-cta { padding-bottom: 0; }
.home-cta .call-box, .listing-call .call-box, .service-call .call-box { max-width: 520px; margin: 0 auto; box-shadow: 0 6px 24px rgb(84 139 158 / .15); }

/* Three of the gallery's photos, square, each a way into the gallery */
.home-gallery { padding-bottom: 20px; }
.home-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 24px); }
.home-gallery-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 18px; box-shadow: 0 6px 24px rgb(84 139 158 / .15); }
.home-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-gallery-photo:hover img { transform: scale(1.04); }

/* The questions: each opens on a click (a plain <details>, no script), one under the other */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { margin-bottom: 14px; border-radius: 18px; background: #fff; box-shadow: 0 4px 18px rgb(84 139 158 / .13); }
.faq-item summary { position: relative; display: block; padding: 18px 58px 18px 24px; cursor: pointer; list-style: none; font-family: var(--title-font); font-size: 19px; line-height: 1.4; color: var(--teal); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 22px; font-size: 28px; line-height: 1; color: var(--red); transform: translateY(-50%); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 24px 20px; font-size: 16px; line-height: 1.65; }
.faq-answer p { margin-bottom: .6em; }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .faq-item summary { padding: 16px 50px 16px 18px; font-size: 17px; } .faq-answer { padding: 0 18px 18px; } }

/* ---------- Services: cards (home page, services page, a service's "other services") ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .service-grid-pair { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; } }
.service-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 38px clamp(16px, 2vw, 26px) 30px; border-radius: 24px; background: #fff; box-shadow: 0 6px 24px rgb(84 139 158 / .15); text-align: center; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgb(84 139 158 / .22); }
/* Each card's circle in its own logo colour, as the menu gives each item its own */
.service-icon { display: flex; justify-content: center; align-items: center; width: 84px; height: 84px; margin-bottom: 22px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgb(84 139 158 / .18); color: #fff; font-size: 36px; }
.service-card:nth-child(3n+2) .service-icon { background: var(--red); box-shadow: 0 0 0 6px rgb(207 71 57 / .16); }
.service-card:nth-child(3n+3) .service-icon { background: var(--olive); box-shadow: 0 0 0 6px rgb(176 186 56 / .22); }
.service-card-title { margin: 0 0 7px; font-size: 24px; font-weight: 400; line-height: 1.3; letter-spacing: .5px; }
.service-card-title a::after { content: ""; position: absolute; inset: 0; }
.service-card .wave { margin-bottom: 12px; }
.service-card-text { flex-grow: 1; font-size: 16px; font-weight: 300; line-height: 1.55; }
.service-card-more { margin-top: 14px; font-size: 15px; color: var(--red); }
.listing-call, .service-call { margin-top: 60px; }

/* ---------- Reviews (home page) ---------- */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review { display: flex; flex-direction: column; margin: 0; padding: 32px 28px 26px; border-radius: 24px; background: #fff; box-shadow: 0 6px 24px rgb(84 139 158 / .12); }
.review-quote { margin-bottom: 14px; font-size: 30px; color: var(--yellow); }
.review-text { flex-grow: 1; margin: 0 0 18px; font-size: 16px; line-height: 1.65; }
.review-text p { margin-bottom: .8em; }
.review-text p:last-child { margin-bottom: 0; }
.review-author { font-family: var(--title-font); font-size: 18px; line-height: 1.4; color: var(--teal); }
.review-date { display: block; font-family: var(--body-font); font-size: 13px; color: #999; }

/* ---------- The review form (/review) ---------- */
.review-page { max-width: 700px; padding-top: 50px; }
.review-intro { margin-bottom: 30px; font-size: 18px; line-height: 1.6; text-align: center; }
.review-form { position: relative; padding: 34px 30px 26px; border-radius: 24px; background: var(--cream); }
@media (max-width: 600px) { .review-form { padding: 26px 18px 20px; } }
.form-field { margin-bottom: 24px; }
.form-field label { display: block; margin-bottom: 6px; font-family: var(--title-font); font-size: 19px; color: var(--teal); }
.form-optional { font-family: var(--body-font); font-size: 14px; color: var(--text); }
.form-field input, .form-field textarea { display: block; width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 14px; background: #fff; font: inherit; font-size: 16px; line-height: 1.5; color: #444; }
.form-field textarea { min-height: 170px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form-note { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.form-check { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-start; margin-bottom: 14px; }
.form-check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); }
.form-check label { flex: 1 1 200px; font-size: 16px; line-height: 1.6; }
.form-check .form-error { flex-basis: 100%; }
.form-error { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--red); }
.form-error-box { margin: 0 0 20px; padding: 12px 18px; border: 1px solid var(--red); border-radius: 12px; background: #fff; text-align: center; }
.review-form [aria-invalid="true"] { border-color: var(--red); }
/* The field bots fill and people never see */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin: 24px 0 0; text-align: center; }
.form-actions .button { margin: 0; padding: 13px 44px; font-size: 17px; }
.review-done { padding: 20px 0; text-align: center; }
.review-done .wave { margin-bottom: 20px; }

/* ---------- The parents' corner: a reflection's questions, in their own box under the text ---------- */
.reflection-questions { margin-top: 44px; padding: 34px 36px 30px; border: 2px dashed var(--teal); border-radius: 24px; background: var(--sky); text-align: center; }
.reflection-questions-title { margin: 0 0 6px; font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: 1px; }
.reflection-questions .wave { margin-bottom: 18px; }
.reflection-questions ol { max-width: 600px; margin: 0 auto; padding: 0; list-style: none; counter-reset: question; text-align: start; }
.reflection-questions li { position: relative; margin-bottom: 16px; padding-left: 48px; font-size: 18px; line-height: 1.6; color: #555; counter-increment: question; }
.reflection-questions li::before { content: counter(question); position: absolute; top: -1px; left: 0; display: flex; justify-content: center; align-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--title-font); font-size: 17px; }
.reflection-note { max-width: 560px; margin: 22px auto 0; font-size: 15px; line-height: 1.6; font-style: italic; }
.reflection-support { margin-top: 30px; font-size: 15px; line-height: 1.6; text-align: center; }
.reflection-byline { margin-top: 10px; font-size: 14px; color: #999; text-align: center; }
@media (max-width: 600px) { .reflection-questions { padding: 26px 18px 22px; } .reflection-questions li { padding-left: 42px; font-size: 17px; } }

/* ---------- Gallery ---------- */
/* Columns keep each photo's own shape; a photo never splits across two */
.gallery-page { padding-top: 60px; }
.gallery-grid { columns: 3 280px; column-gap: 24px; }
.gallery-item { break-inside: avoid; margin: 0 0 24px; }
.gallery-link { display: block; overflow: hidden; border-radius: 18px; box-shadow: 0 6px 24px rgb(84 139 158 / .15); }
.gallery-link img { display: block; width: 100%; transition: transform .3s; }
.gallery-link:hover img { transform: scale(1.03); }
/* The lightbox: the large copy over a darkened page, the buttons around it */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 50px 80px; border: 0; background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(25 32 36 / .9); }
.lightbox-image { max-width: 100%; max-height: calc(100vh - 100px); width: auto; height: auto; border-radius: 12px; }
.lightbox button { position: absolute; display: flex; justify-content: center; align-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 40px; line-height: 1; transition: background .2s; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgb(255 255 255 / .28); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
@media (max-width: 600px) {
  .lightbox { padding: 70px 12px 90px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-prev { left: calc(50% - 66px); }
  .lightbox-next { right: calc(50% - 66px); }
}

/* ---------- Footer ---------- */
.site-main { display: block; padding-bottom: 50px; }
/* `clip` keeps the 1900px flower strip from widening the page, while it still rises above the footer's top edge */
.site-footer { position: relative; z-index: 1; margin-top: 75px; overflow-x: clip; background: var(--sky) url(images/footer-clouds.webp) center 0 / cover no-repeat; }
.footer-flowers { position: absolute; bottom: calc(100% - 58px); left: 50%; width: 100%; min-width: 1900px; transform: translateX(-50%); }
.footer-flowers img { display: block; width: 100%; }
.footer-widgets { padding: 152px 0 44px; }
.footer-cols { display: flex; flex-wrap: wrap; margin: 0 -20px; }
.footer-col { width: calc((100% - 120px) / 3); margin: 0 20px 40px; }
.footer-logo img { width: 200px; }
.footer-col .footer-tagline { margin-bottom: 35px; }
.footer-title { position: relative; margin-bottom: 2px; padding-bottom: 13px; font-size: 18px; font-weight: 400; line-height: 1.5; text-transform: uppercase; word-break: break-word; }
.footer-links { list-style: none; }
.footer-links li { position: relative; margin-bottom: 11px; font-size: 16px; font-weight: 300; line-height: 2; word-break: break-word; }
.footer-links li:last-child { margin-bottom: 0; }
.footer-links a { color: var(--text); transition: all .2s; }
.footer-links .is-current a, .footer-links a:hover { color: var(--teal); }
.contact-list { list-style: none; }
.contact-list li { position: relative; margin-bottom: 10px; padding-left: 35px; font-size: 16px; font-weight: 300; line-height: 1.625; word-break: break-word; }
.contact-list .icon { position: absolute; top: 6px; left: 0; color: var(--teal); }
.contact-list a { color: var(--text); transition: all .2s; }
.contact-list a:hover { color: var(--teal); }
.copyright { padding: 29px 0; border-top: 1px solid rgb(255 255 255 / .4); }
.copyright-text { font-size: 16px; font-weight: 300; line-height: 1.625; text-align: center; word-break: break-word; }
.copyright-text a { color: var(--text); transition: all .2s; }
.copyright-text a:hover { color: var(--teal); }
@media (max-width: 991px) { .footer-col { width: calc((100% - 80px) / 2); } }
@media (max-width: 768px) { .footer-widgets { padding-bottom: 0; } }
@media (max-width: 767px) { .footer-col { width: calc(100% - 40px); } }

/* ---------- Articles and games (an index, a page) ---------- */
.listing-page, .article-layout { padding-top: 60px; }
.listing-lede { max-width: 640px; margin: 0 auto 45px; font-size: 18px; line-height: 1.6; text-align: center; }
/* The articles' search, under the index's lede */
.search-form { display: flex; gap: 10px; max-width: 580px; margin: -15px auto 40px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 20px; border: 1px solid #ddd; border-radius: 30px; background: #fff; font: inherit; font-size: 16px; color: #444; }
.search-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.search-form .button { margin: 0; padding: 12px 24px; }
.search-summary { max-width: 640px; margin: -18px auto 36px; font-size: 16px; text-align: center; }
.search-summary a { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.age-badge { display: inline-block; padding: 2px 12px; border-radius: 20px; background: var(--sky); color: var(--teal); font-size: 14px; }
/* A section's subtitle under its heading (a game's „Препоръчителна възраст“) */
.article-body .section-kicker { margin: -.2em 0 1em; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #999; }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 6px 24px rgb(84 139 158 / .15); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgb(84 139 158 / .22); }
.article-card-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px 24px 26px; text-align: center; }
.article-card-title { margin: 6px 0 7px; font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: .5px; }
.article-card-title a::after { content: ""; position: absolute; inset: 0; }
.article-card-body .wave { align-self: center; margin-bottom: 12px; }
.article-card-text { flex-grow: 1; font-size: 16px; font-weight: 300; line-height: 1.5; }
.article-card-more { margin-top: 14px; font-size: 15px; color: var(--red); }
.article-meta { font-size: 14px; line-height: 1.5; color: #999; }

.article { max-width: 800px; margin: 0 auto; }
.article > .article-meta { margin-bottom: 24px; text-align: center; }
.notice { margin-bottom: 24px; padding: 12px 18px; border: 1px solid var(--yellow); border-radius: 12px; background: var(--cream); font-size: 15px; text-align: center; }
.article-cover { margin: 0 0 36px; }
.article-cover img, .article-body figure img { display: block; width: 100%; border-radius: 24px; }
/* Every cover in the same landscape frame, whatever the photo's shape */
.article-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { font-size: 17px; line-height: 1.75; color: #555; }
.article-body > p:first-child { font-size: 19px; color: var(--text); }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote, .article-body figure, .article-body .table-scroll { margin-bottom: 1.25em; }
.article-body h2 { margin: 1.6em 0 .6em; font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: 1px; }
.article-body h3 { margin: 1.4em 0 .5em; font-size: 22px; font-weight: 400; line-height: 1.3; letter-spacing: .5px; }
.article-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.6em; }
.article-body li { margin-bottom: .45em; }
.article-body ul { list-style: none; }
.article-body ul > li { position: relative; }
.article-body ul > li::before { content: ""; position: absolute; top: .72em; left: -1.1em; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.article-body ol > li::marker { color: var(--teal); font-weight: 700; }
.article-body blockquote { padding: 18px 24px; border-left: 4px solid var(--olive); border-radius: 0 18px 18px 0; background: var(--cream); color: var(--text); font-size: 18px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figcaption { margin-top: 10px; font-size: 14px; color: #999; text-align: center; }
.article-body hr { margin: 2em auto; width: 90px; height: 8px; border: 0; background: var(--wave) no-repeat; }
.article-body code { padding: 2px 5px; border-radius: 4px; background: #f1f1f1; font-size: .9em; }
.table-scroll { overflow-x: auto; }
.article-body table { border-collapse: collapse; min-width: 100%; font-size: 15px; }
.article-body th, .article-body td { padding: 8px 12px; border: 1px solid #e5e5e5; text-align: start; }
.article-body th { background: var(--cream); color: var(--teal); }

.author-box { display: flex; gap: 26px; align-items: center; margin-top: 50px; padding: 30px; border-radius: 24px; background: var(--cream); }
.author-photo { flex-shrink: 0; width: 120px; height: 120px; padding: 5px; border: 2px dashed var(--teal); border-radius: 50%; }
.author-label { margin-bottom: 2px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #999; }
.author-name { margin-bottom: 0; font-family: var(--title-font); font-size: 22px; line-height: 1.3; }
.author-role { margin-bottom: 8px; font-size: 15px; color: #999; }
.author-links { margin-top: 8px; }
@media (max-width: 600px) { .author-box { flex-direction: column; text-align: center; } }

.related { margin-top: 70px; }
.related .heading { margin-bottom: 30px; }

/* ---------- Status pages ---------- */
.status-page { padding-top: 60px; text-align: center; }
.status-page .heading-title { margin-bottom: 10px; font-size: 32px; }
.status-page .wave { margin-bottom: 20px; }
.status-actions { margin-top: 30px; }
.button { display: inline-block; margin: 0 6px 12px; padding: 12px 26px; border-radius: 30px; background: var(--teal); color: #fff; transition: all .2s; }
.button:hover { filter: brightness(110%); }
.button + .button { background: var(--red); }
.error-detail { max-width: 800px; margin: 30px auto 0; padding: 16px; overflow-x: auto; border-radius: 12px; background: #f6f6f6; font-size: 13px; text-align: left; white-space: pre-wrap; }

/* ---------- Cookie banner (only once Google Analytics is switched on) ---------- */
.consent { position: fixed; left: 50%; bottom: 20px; z-index: 1000; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: center; width: calc(100% - 30px); max-width: 720px; padding: 18px 22px; border-radius: 20px; background: #fff; box-shadow: 0 8px 30px rgb(0 0 0 / .15); font-size: 15px; line-height: 1.5; transform: translateX(-50%); }
.consent p { flex: 1 1 320px; }
.consent-actions { display: flex; gap: 10px; }
.consent button { padding: 9px 18px; border-radius: 24px; border: 1px solid var(--teal); color: var(--teal); }
.consent button[data-consent="granted"] { background: var(--teal); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .mobile-menu, .footer-flowers, .consent, .related { display: none !important; }
  .page-title { background: none; }
  .page-title h1, .breadcrumbs ol, .breadcrumbs a { color: #000; }
  .site-footer { margin-top: 30px; background: none; }
}
