/*
Theme Name: Kungla Astra
Description: Kungla Graafika kujundus Astra ja WordPressi plokkredaktori jaoks.
Author: Kungla Graafika
Template: astra
Version: 1.0.23
Text Domain: kungla-astra
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
/* Original self-hosted fonts reused only for the same Kungla Graafika site. */
@font-face { font-family:"KG Sofia"; src:url("assets/fonts/sofiapro-light-webfont.woff2") format("woff2"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"KG Gilroy"; src:url("assets/fonts/gilroy-light-webfont.woff2") format("woff2"); font-style:normal; font-weight:300; font-display:swap; }
@font-face { font-family:"KG Gilroy"; src:url("assets/fonts/gilroy-extrabold-webfont.woff2") format("woff2"); font-style:normal; font-weight:800; font-display:swap; }
@font-face { font-family:"KG Marker"; src:url("assets/fonts/permanentmarker.ttf") format("truetype"); font-style:normal; font-weight:400; font-display:swap; }
@font-face { font-family:"KG Marker"; src:url("assets/fonts/permanentmarker-latin-v16.woff2") format("woff2"); font-style:normal; font-weight:400; font-display:swap; 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 {
  --kg-ink:#23242c; --kg-muted:#565862; --kg-paper:#fff; --kg-soft:#f5f6f8;
  --kg-purple:#37235b; --kg-dark:#20203b; --kg-cyan:#47d6e8; --kg-link:#087486;
  --kg-yellow:#fcd63c; --kg-orange:#ed8427; --kg-magenta:#d02b8c; --kg-border:#d8dae1; --kg-width:80rem;
  --kg-gutter:clamp(1.25rem,4vw,4rem); --kg-header-height:112px;
  --kg-heading-font:"KG Gilroy","KG Montserrat",Montserrat,Arial,sans-serif;
  --kg-body-font:"KG Sofia","KG Montserrat",Arial,sans-serif;
  --kg-marker-font:"KG Marker","Comic Sans MS",cursive;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-padding-top:2rem; }
body.kg-site { margin:0; color:var(--kg-ink); background:var(--kg-paper); font:400 1.0625rem/1.75 var(--kg-body-font); letter-spacing:.012em; }
body.kg-site #page { width:100%; min-width:0; background:var(--kg-paper); }
.kg-site :where(img,video,iframe) { max-width:100%; }
.kg-site img { height:auto; }
.kg-site :where(p,ul,ol,dl,blockquote,figure) { margin:0 0 1.5rem; }
.kg-site :where(h1,h2,h3,h4,h5,h6) { margin:0 0 .7em; color:inherit; font-family:var(--kg-heading-font); font-weight:750; line-height:1.15; overflow-wrap:anywhere; }
.kg-site h1 { font-size:clamp(2.3rem,5vw,4.5rem); text-transform:uppercase; }
.kg-site h2 { font-size:clamp(1.9rem,3.8vw,3.5rem); text-transform:uppercase; }
.kg-site h3 { font-size:clamp(1.4rem,2.4vw,2.15rem); }
.kg-site h4 { font-size:1.35rem; }
.kg-site :where(a) { color:var(--kg-link); text-underline-offset:.2em; text-decoration-thickness:.07em; overflow-wrap:anywhere; }
.kg-site :where(a:hover) { color:var(--kg-purple); }
.kg-site :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--kg-link); outline-offset:4px; box-shadow:0 0 0 2px #fff; }
.kg-site :where(button,input,select,textarea) { font:inherit; }
.kg-site :where(button,[type="submit"],.wp-element-button,.wp-block-button__link) { min-height:44px; cursor:pointer; }
.kg-site [hidden] { display:none!important; }
.kg-skip-link { position:fixed; z-index:100001; inset:1rem auto auto 1rem; padding:.8rem 1.2rem; background:#fff; color:#161626; transform:translateY(-180%); font-weight:700; }
.kg-skip-link:focus { transform:none; }
.kg-container { width:min(var(--kg-width),100% - 2 * var(--kg-gutter)); margin-inline:auto; }
.kg-screen-reader,.screen-reader-text { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Header and menus use the real WordPress menu and custom logo. */
.kg-header { position:relative; z-index:30; background:var(--kg-dark); color:#fff; }
.kg-header__inner { display:flex; align-items:center; justify-content:space-between; gap:2rem; min-height:112px; padding-block:1.25rem; }
.kg-brand { display:flex; align-items:center; flex:0 0 auto; max-width:200px; }
.kg-brand .custom-logo-link { display:block; line-height:1; }
.kg-brand img.custom-logo { display:block; width:180px; max-height:90px; object-fit:contain; }
.kg-brand__name { font:800 1.45rem/1.1 var(--kg-heading-font); color:#fff; text-decoration:none; text-transform:uppercase; }
.kg-navigation { flex:1; min-width:0; }
.kg-menu,.kg-menu .sub-menu { margin:0; padding:0; list-style:none; }
.kg-menu { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:.25rem clamp(.7rem,1.6vw,1.8rem); }
.kg-menu > li { position:relative; min-width:0; }
.kg-menu a { display:inline-flex; align-items:center; min-height:44px; padding:.4rem 0; color:#fff; font:750 .82rem/1.3 var(--kg-heading-font); letter-spacing:.02em; text-transform:uppercase; text-decoration:none; }
.kg-menu a:hover,.kg-menu .current-menu-item > a,.kg-menu .current-menu-ancestor > a { color:var(--kg-yellow); }
.kg-header a:focus-visible,.kg-header button:focus-visible { outline-color:var(--kg-yellow); box-shadow:none; }
.kg-menu .sub-menu { min-width:14rem; padding:.5rem 1rem; background:var(--kg-dark); border:1px solid #ffffff40; }
.kg-menu .sub-menu a { display:flex; min-height:44px; font-size:.8rem; text-transform:none; letter-spacing:.01em; }
.kg-menu .sub-menu .sub-menu { margin-block:.5rem; border-width:0 0 0 1px; }
.kg-menu-toggle,.kg-submenu-toggle { display:none; border:1px solid #ffffff70; border-radius:0; background:transparent; color:#fff; padding:.55rem .8rem; font:700 .85rem/1.2 var(--kg-heading-font); }
.kg-submenu-toggle { margin-inline-start:.35rem; width:44px; padding:.5rem; vertical-align:middle; }
.kg-submenu-toggle::before { content:"+"; font:400 1.4rem/1 Arial,sans-serif; }
.kg-submenu-toggle[aria-expanded="true"]::before { content:"−"; }
.kg-menu-toggle { align-items:center; gap:.7rem; flex:0 0 auto; min-height:44px; }
.kg-menu-toggle__icon { width:20px; height:14px; border-block:2px solid; position:relative; }
.kg-menu-toggle__icon::before { content:""; position:absolute; inset:4px 0 auto; border-top:2px solid; }

/* Editable block layout and reusable visual components. */
.kg-main { min-height:45vh; }
.kg-content { width:100%; padding-bottom:clamp(2.5rem,6vw,5rem); }
.kg-content > :not(.alignfull):not(.kg-section):not(.kg-hero) { width:min(var(--kg-width),100% - 2 * var(--kg-gutter)); margin-inline:auto; }
.kg-content > .alignfull { width:100%; max-width:none; margin-inline:0; }
.kg-content > :first-child:not(.kg-hero):not(.kg-section):not(.alignfull) { margin-top:clamp(2.5rem,6vw,5rem); }
.kg-content > .wp-block-group:not(.alignfull):not(.kg-section):not(.kg-hero) { margin-block:clamp(2rem,4vw,4rem); }
.kg-content .wp-block-columns { gap:clamp(1.5rem,4vw,4rem); }
.kg-content .wp-block-column { min-width:0; }
.kg-content .wp-block-image img { display:block; }
.kg-content :where(.wp-block-group,.wp-block-column) > :last-child { margin-bottom:0; }
.kg-section { width:100%; padding-block:clamp(3.5rem,7vw,7rem); }
.kg-section > .kg-container { margin-block:0; }
.kg-section--soft { background:var(--kg-soft); }
.kg-section--purple { color:#fff; background:var(--kg-purple); }
.kg-section--dark { color:#fff; background:var(--kg-dark); }
.kg-section--purple a,.kg-section--dark a { color:var(--kg-cyan); }
.kg-section--purple a:hover,.kg-section--dark a:hover { color:var(--kg-yellow); }
.kg-eyebrow { margin-bottom:.65rem; color:#775c00; font:400 clamp(1.25rem,2.3vw,1.9rem)/1.35 var(--kg-marker-font); letter-spacing:.01em; }
.kg-section--purple .kg-eyebrow,.kg-section--dark .kg-eyebrow,.kg-hero .kg-eyebrow { color:var(--kg-yellow); }
.kg-lead { font-size:clamp(1.15rem,1.6vw,1.4rem); line-height:1.7; }
.kg-narrow { max-width:50rem; margin-inline:auto; }
.kg-centred { text-align:center; }
.kg-site .wp-block-button__link,.kg-button { display:inline-flex; justify-content:center; align-items:center; gap:.6rem; min-height:48px; padding:.85rem 1.5rem; border:2px solid transparent; border-radius:3rem; background:var(--kg-magenta); color:#fff; font:750 .75rem/1.4 var(--kg-heading-font); letter-spacing:.08em; text-transform:uppercase; text-decoration:none; }
.kg-site .wp-block-button__link:hover,.kg-button:hover { background:var(--kg-purple); color:#fff; }
.kg-site .is-style-outline > .wp-block-button__link { border-color:currentColor; background:transparent; color:inherit; }
.kg-link { display:inline-flex; min-height:44px; align-items:center; font-family:var(--kg-heading-font); font-weight:750; text-decoration:underline; }
.kg-hero { position:relative; isolation:isolate; margin:0; color:#fff; background:var(--kg-dark); }
.kg-hero__slide { position:relative; display:grid; align-items:center; min-height:100vh; min-height:100svh; padding-block:6rem; background-position:center; background-size:cover; text-align:center; }
/* Source hero images already contain the original purple treatment. */
.kg-hero__slide > * { position:relative; z-index:1; }
.kg-hero__slide > .kg-container { width:min(var(--kg-width),100% - 2 * var(--kg-gutter)); }
.kg-hero__slide .wp-block-cover__inner-container { position:relative; z-index:1; }
.kg-hero__title { max-width:100%; margin:.35em auto .4em; font-size:clamp(2.7rem,5.2vw,5rem)!important; line-height:1.12!important; letter-spacing:0; }
.kg-hero p:not(.kg-eyebrow) { max-width:72rem; margin-inline:auto; font-size:clamp(1rem,1.3vw,1.15rem); line-height:1.8; }
.kg-hero a:not(.wp-block-button__link) { color:var(--kg-cyan); }
.kg-hero__controls { position:absolute; z-index:3; display:flex; gap:.5rem; bottom:1.5rem; left:50%; transform:translateX(-50%); }
.kg-hero__controls button { width:48px; min-height:48px; padding:.5rem; color:#fff; border:1px solid #ffffffb3; border-radius:50%; background:#20203b66; font-size:1.3rem; }
.kg-hero__controls button:hover { color:var(--kg-dark); background:var(--kg-yellow); }
.kg-hero__controls button:focus-visible { outline-color:var(--kg-yellow); }
.kg-hero__status { align-self:center; margin:0 .5rem; font-size:.9rem; }
.kg-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; }
.kg-card { min-width:0; }
.kg-card img { width:100%; aspect-ratio:4 / 3; object-fit:cover; }
.kg-card h3,.kg-card h2 { margin-top:1.25rem; }
.kg-site .kg-card__title { font-size:1.6rem; }
.kg-testimonial { max-width:58rem; margin-inline:auto; padding:0; border:0; color:inherit; text-align:center; font-size:clamp(1.15rem,2.2vw,1.75rem); line-height:1.65; }
.kg-testimonial cite { display:block; margin-top:1.5rem; font:700 .9rem/1.5 var(--kg-heading-font); letter-spacing:.08em; text-transform:uppercase; }

/* Filters progressively enhance an ordinary editable image grid. */
.kg-gallery__filters { display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem; margin:2.75rem auto 1rem; }
.kg-gallery .kg-gallery__filters button { padding:.55rem 1.15rem; min-height:44px; border:1px solid transparent; background:#fff; color:var(--kg-ink); border-radius:3rem; font:650 .75rem/1.4 var(--kg-body-font); }
.kg-gallery .kg-gallery__filters button:hover,.kg-gallery .kg-gallery__filters button[aria-pressed="true"] { color:var(--kg-ink); background:#fff; border-color:var(--kg-magenta); }
.kg-gallery__items { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; }
.kg-gallery [data-kg-category] { min-width:0; margin:0; }
.kg-gallery [data-kg-category] img { display:block; width:100%; aspect-ratio:4 / 3; object-fit:cover; }
.kg-gallery figcaption,.kg-gallery__caption { margin-top:.75rem; color:var(--kg-muted); font-size:.95rem; }
.kg-gallery__status { min-height:1.7em; margin-bottom:1rem; color:var(--kg-muted); font-size:.9rem; }
.kg-page-heading { padding-block:clamp(3rem,6vw,6rem); background:var(--kg-soft); }
.kg-page-heading h1 { margin:0; max-width:25ch; }
.kg-post-meta { margin-bottom:1rem; color:var(--kg-muted); font-size:.9rem; }
.kg-post-navigation { padding-block:2rem; border-top:1px solid var(--kg-border); }
.kg-post-navigation .nav-links { display:flex; gap:2rem; justify-content:space-between; flex-wrap:wrap; }
.kg-pagination { margin-block:3rem; }
.kg-pagination .page-numbers { display:inline-flex; justify-content:center; align-items:center; min-width:44px; min-height:44px; padding:.4rem; }
.kg-pagination .current { background:var(--kg-purple); color:#fff; }

/* Form plugins provide validation, delivery and consent. This is only styling. */
.kg-site :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),select,textarea) { width:100%; max-width:100%; min-height:48px; border:1px solid #858894; border-radius:0; padding:.8rem 1rem; background:#fff; color:var(--kg-ink); font-size:1rem; }
.kg-site textarea { min-height:10rem; resize:vertical; }
.kg-site :where(input[type="checkbox"],input[type="radio"]) { width:1.25rem; height:1.25rem; margin:.25rem .5rem .25rem 0; vertical-align:middle; }
.kg-site input[type="submit"] { padding:.9rem 2rem; border:0; border-radius:3rem; background:var(--kg-magenta); color:#fff; font-weight:700; }
.kg-site input[type="submit"]:hover { background:var(--kg-purple); }
.kg-site label { display:block; font-weight:650; }
.kg-site .wpcf7-list-item { margin-inline-start:0; }
.kg-site :where(.wpcf7-not-valid-tip,.srfm-error-message) { color:#a6182d; font-weight:600; }
.kg-site .wpcf7 form .wpcf7-response-output { margin:1.5rem 0; padding:1rem; }
.kg-site :where(table) { width:100%; border-collapse:collapse; }
.kg-site :where(th,td) { padding:.75rem; border:1px solid var(--kg-border); text-align:left; overflow-wrap:anywhere; }
.kg-site .wp-block-table { overflow-x:auto; }
.kg-search { max-width:38rem; }

.kg-footer { padding-block:clamp(3rem,6vw,5rem) 1.5rem; background:var(--kg-dark); color:#e8e8ee; }
.kg-footer a { color:#fff; text-decoration:none; }
.kg-footer a:hover { color:var(--kg-cyan); text-decoration:underline; }
.kg-footer a:focus-visible { outline-color:var(--kg-yellow); box-shadow:none; }
.kg-footer__columns { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:clamp(2rem,4vw,4rem); }
.kg-footer__heading { color:#fff; font-size:1.5rem; text-transform:uppercase; }
.kg-footer__contact { display:grid; gap:.65rem; margin:0; font-style:normal; }
.kg-footer__contact a { display:inline-flex; align-items:center; min-height:44px; }
.kg-footer__menu,.kg-footer__social { list-style:none; margin:0; padding:0; }
.kg-footer__menu a,.kg-footer__social a { display:inline-flex; align-items:center; min-height:44px; padding-block:.3rem; }
.kg-footer__social { display:flex; flex-wrap:wrap; gap:.3rem 1.2rem; }
.kg-footer__bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem 2rem; margin-top:3rem; padding-top:1.5rem; border-top:1px solid #ffffff30; font-size:.9rem; }
.kg-footer__bottom p { margin:0; }
.kg-footer .widget { margin-bottom:1.5rem; }
.kg-footer .widget:last-child { margin-bottom:0; }
.kg-footer .widget-title { color:inherit; font-size:1.3rem; }
.kg-footer .wp-block-heading { font-size:1.3rem; }
.kg-footer ul { padding-inline-start:1.2rem; }
.kg-footer :where(.kg-footer__menu,.kg-footer__social) { padding-inline-start:0; }

/* WooCommerce keeps its native templates and real checkout behaviour. */
.kg-site .woocommerce ul.products li.product { min-width:0; }
.kg-site .woocommerce :where(a.button,button.button,input.button) { min-height:44px; padding:.9rem 1.5rem; border-radius:3rem; background:var(--kg-magenta); color:#fff; line-height:1.4; }
.kg-site .woocommerce span.onsale { background:var(--kg-purple); }
.kg-site .woocommerce div.product .product_title { font-size:clamp(1.8rem,3.5vw,3rem); }
.kg-site .woocommerce div.product p.price,.kg-site .woocommerce ul.products li.product .price { color:var(--kg-link); }
.kg-site .woocommerce-message,.kg-site .woocommerce-info,.kg-site .woocommerce-error { background:var(--kg-soft); color:var(--kg-ink); }

@media (min-width:1121px) {
  .kg-js #page:has(> .kg-header--over-hero) { position:relative; }
  .kg-js .kg-header--over-hero { position:absolute; inset:0 0 auto; background:transparent; }
  .kg-js .kg-header--over-hero + .kg-main .kg-content > .kg-hero:not(.kg-hero--offers) { margin-top:0; }
  .kg-js .kg-header--over-hero + .kg-main .kg-content > .kg-hero:not(.kg-hero--offers) .kg-hero__slide { padding-top:calc(4rem + var(--kg-hero-header-space,112px)); padding-bottom:6rem; }
  .kg-js .kg-menu .sub-menu { position:absolute; top:100%; left:0; width:16rem; max-width:75vw; box-shadow:0 12px 24px #0003; }
  .kg-js .kg-menu > li:last-child .sub-menu,.kg-js .kg-menu > li:nth-last-child(2) .sub-menu { left:auto; right:0; }
  .kg-js .kg-menu .sub-menu .sub-menu { position:static; width:auto; max-width:none; box-shadow:none; }
  .kg-js .kg-submenu-toggle { display:inline-flex; align-items:center; justify-content:center; }
}
@media (max-width:1120px) {
  .kg-header__inner { flex-wrap:wrap; gap:1rem; min-height:92px; }
  .kg-brand img.custom-logo { width:150px; max-height:64px; }
  .kg-js .kg-menu-toggle { display:inline-flex; }
  .kg-navigation { flex-basis:100%; }
  .kg-menu { display:block; padding-top:.5rem; }
  .kg-menu > li { border-top:1px solid #ffffff30; }
  .kg-menu a { padding-block:.85rem; font-size:.9rem; }
  .kg-menu > li > a { max-width:calc(100% - 56px); }
  .kg-js .kg-submenu-toggle { display:inline-flex; justify-content:center; align-items:center; float:right; margin-block:.35rem; }
  .kg-menu .sub-menu { clear:both; padding:.25rem 1rem .75rem; border-width:0 0 0 1px; margin-bottom:.75rem; }
  .kg-hero__slide { min-height:max(560px,calc(100svh - var(--kg-header-height))); }
}
@media (max-width:800px) {
  .kg-cards,.kg-gallery__items { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .kg-footer__columns { grid-template-columns:1fr 1fr; }
  .kg-footer__columns > :first-child { grid-column:1 / -1; }
  .kg-content .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap:wrap!important; }
  .kg-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis:100%!important; }
}
@media (max-width:520px) {
  .kg-cards,.kg-gallery__items,.kg-footer__columns { grid-template-columns:1fr; }
  .kg-hero__slide { min-height:max(500px,calc(100svh - var(--kg-header-height))); padding-block:4rem 6rem; }
  .kg-hero__title { font-size:clamp(2.1rem,9vw,3rem)!important; }
  .kg-gallery__filters { justify-content:flex-start; }
  .kg-gallery__filters button { flex:1 1 auto; }
  .kg-footer__bottom { display:block; }
  .kg-footer__bottom > * + * { margin-top:1rem; }
  .kg-site .woocommerce table.shop_table { font-size:.9rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  .kg-site *,.kg-site *::before,.kg-site *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
@media print {
  .kg-header,.kg-footer,.kg-gallery__filters,.kg-hero__controls { display:none!important; }
  .kg-site { color:#000!important; background:#fff!important; }
  .kg-hero__slide,.kg-section { min-height:0; padding-block:1rem; color:#000; background:#fff!important; }
  .kg-hero__slide::before { display:none; }
  .kg-hero__slide[hidden],.kg-gallery [data-kg-category][hidden] { display:block!important; }
}

/* Native Gutenberg image blocks can serve as editable hero backgrounds. */
.kg-hero__slide > .kg-hero__image { position:absolute!important; inset:0; z-index:0!important; width:100%; height:100%; margin:0; overflow:hidden; }
.kg-hero__image img { width:100%; height:100%; object-fit:cover; }
.kg-hero__slide::before { z-index:1; }
.kg-hero__slide > :not(.kg-hero__image) { z-index:2; }
.kg-gallery__items.wp-block-gallery { display:grid; gap:0; max-width:none; }
.kg-gallery__items.wp-block-gallery figure.wp-block-image { width:100%!important; margin:0!important; }
.kg-gallery .kg-gallery-item { min-width:0; }
.kg-gallery .kg-gallery-item img { width:100%; aspect-ratio:4/3; object-fit:cover; }
@media print { .kg-hero__image { display:none; } }

/* Header contacts and social links reuse editable Customizer fields and WP menus. */
.kg-topbar { padding-bottom:1rem; }
.kg-topbar__inner,.kg-topbar__contacts,.kg-topbar__social { display:flex; align-items:center; flex-wrap:wrap; gap:.25rem 1.25rem; }
.kg-topbar__inner { justify-content:flex-end; }
.kg-topbar__contacts a,.kg-topbar__social a { display:inline-flex; align-items:center; min-height:44px; color:#fff; font-size:.82rem; text-decoration:none; }
.kg-topbar__contacts a:hover,.kg-topbar__social a:hover { color:var(--kg-yellow); }
.kg-topbar__social { margin:0; padding:0; list-style:none; }
.kg-container.kg-section { width:min(var(--kg-width),100% - 2 * var(--kg-gutter)); }
.kg-site .kg-footer__heading { font-size:1.5rem; }
.kg-site .kg-footer .wp-block-heading { font-size:1.3rem; }
.kg-gallery .kg-gallery__filters button { padding:.55rem 1.15rem; min-height:44px; font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; }
@media (max-width:1120px) { .kg-topbar { display:none; } }

/* A filter UI is shown only when its behaviour is available. */
.kg-gallery__filters { display:none; }
.kg-js .kg-gallery__filters { display:flex; }

/* Hero and gallery children must not inherit Gutenberg's text column width. */
.kg-hero.is-layout-constrained > .kg-hero__slide { width:100%; max-width:none; margin:0!important; }
.kg-hero__slide.is-layout-constrained > .kg-hero__image { max-width:none; margin:0!important; }
.kg-gallery__items.is-layout-constrained > .kg-gallery-item { width:100%; max-width:none; margin:0!important; }
.kg-lightbox { max-width:min(96vw,1200px); width:fit-content; max-height:94svh; padding:1rem; border:0; color:#fff; background:#20203b; }
.kg-lightbox::backdrop { background:#09091be6; }
.kg-lightbox__controls { display:flex; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.kg-lightbox button { min-width:48px; min-height:48px; padding:.5rem 1rem; border:1px solid #ffffffb3; background:transparent; color:#fff; }
.kg-lightbox button:hover { background:#37235b; }
.kg-lightbox button:focus-visible { outline:3px solid #fcd63c; outline-offset:2px; }
.kg-lightbox__image { display:block; width:auto; max-width:100%; max-height:68svh; margin:auto; object-fit:contain; }
.kg-lightbox__caption { max-width:70ch; margin:1rem 0 0; }

/* Editable source section backgrounds stay behind content at every width. */
.kg-section:has(> .kg-section__image) { position:relative; isolation:isolate; }
.kg-section > .kg-section__image { position:absolute!important; inset:0; z-index:-1; width:100%; max-width:none!important; height:100%; margin:0!important; overflow:hidden; }
.kg-section__image img { display:block; width:100%; height:100%; object-fit:cover; }

/* Match the source's centred hero, pill controls and edge-to-edge portfolio. */
.kg-hero__content { text-align:center; }
.kg-hero__content > * { max-width:none; }
.kg-hero .kg-eyebrow { margin:0 auto 1.5rem; font-size:clamp(1.4rem,2vw,1.9rem); }
.kg-hero .kg-hero__title a { color:#fff; text-decoration:none; }
.kg-hero .kg-hero__title a:hover { color:var(--kg-yellow); }
.kg-hero .kg-hero__actions { justify-content:center; gap:1rem; margin-top:2rem; }
.kg-hero .wp-block-button__link { min-height:54px; padding:1rem 2rem; border-color:#fff; background:transparent; color:#fff; }
.kg-hero .wp-block-button__link:hover { background:#fff; color:var(--kg-purple); }
.kg-hero .wp-block-button__link:focus-visible { outline-color:var(--kg-yellow); }
.kg-hero--offers .kg-hero__slide { min-height:620px; padding-block:6rem; }
.kg-site .wp-block-button__link,.kg-button { padding:1rem 2rem; letter-spacing:.15em; }
.kg-topbar__contacts a { gap:.5rem; }
.kg-topbar__contacts svg { width:22px; height:22px; flex:0 0 auto; fill:none; stroke:var(--kg-yellow); stroke-width:1.8; }
.kg-topbar__social a { justify-content:center; padding:.5rem .8rem; border-radius:2rem; background:var(--kg-cyan); color:#193446; }
.kg-topbar__social a:hover { color:#193446; background:var(--kg-yellow); }
.kg-topbar__social a[href*="facebook.com"],.kg-topbar__social a[href*="instagram.com"] { width:44px; padding:0; font-size:0; }
.kg-topbar__social a[href*="facebook.com"]::before { content:"f"; font:bold 1.4rem/1 Arial,sans-serif; }
.kg-topbar__social a[href*="instagram.com"]::before { content:"◎"; font:bold 1.7rem/1 Arial,sans-serif; }
.kg-section > .kg-container:has(> .kg-gallery) { width:calc(100% - 2rem); max-width:none; text-align:center; }
.kg-section > .kg-container:has(> .kg-gallery) > .kg-gallery { max-width:none; }
.kg-section > .kg-container:has(> .kg-gallery) > .kg-eyebrow { color:var(--kg-purple); }
.kg-section > .kg-container:has(> .kg-gallery) > .wp-block-buttons { justify-content:center; margin-top:3.5rem; }
.kg-gallery__filters button::before { content:""; width:.45rem; height:.45rem; flex:0 0 auto; border-radius:50%; background:#a6a8b1; }
.kg-gallery__filters button[aria-pressed="true"]::before { background:var(--kg-magenta); }
.kg-gallery__items .kg-gallery-item { position:relative; overflow:hidden; }
.kg-gallery__items .kg-gallery-item > a { display:block; width:100%; line-height:0; }
.kg-gallery__items .kg-gallery-item > a:focus-visible { outline-offset:-4px; }
.kg-gallery__items .kg-gallery-item img { display:block; width:100%; height:100%; aspect-ratio:4 / 3; object-fit:cover; }
.kg-gallery__items .kg-gallery-item figcaption { position:absolute; inset:auto 0 0; width:100%; max-height:100%; overflow:auto; margin:0; padding:1rem; color:#fff; background:#20203be6; font-size:.8rem; line-height:1.5; opacity:0; pointer-events:none; }
.kg-gallery__items .kg-gallery-item:hover figcaption,.kg-gallery__items .kg-gallery-item:focus-within figcaption { opacity:1; }
@media (min-width:1121px) {
  .kg-hero:not(.kg-hero--offers) > .kg-hero__controls { top:50%; right:1.5rem; bottom:auto; left:auto; flex-direction:column; transform:translateY(-50%); }
  .kg-hero:not(.kg-hero--offers) .kg-hero__status { margin:.25rem 0; }
}
@media (max-width:1120px) {
  .kg-header__inner { width:calc(100% - 2 * var(--kg-gutter)); }
  .kg-hero--offers .kg-hero__slide { min-height:540px; }
}
@media (max-width:520px) {
  .kg-hero__title { font-size:clamp(2rem,8.5vw,2.75rem)!important; }
  .kg-hero__actions { flex-direction:column; align-items:center; }
  .kg-hero__actions .wp-block-button { width:min(100%,20rem); }
  .kg-hero__actions .wp-block-button__link { width:100%; }
  .kg-hero__description br { display:none; }
  .kg-section > .kg-container:has(> .kg-gallery) { width:calc(100% - 2 * var(--kg-gutter)); }
  .kg-gallery__filters { gap:.5rem; margin-top:2rem; }
}
@media print {
  .kg-hero--offers .kg-hero__slide { min-height:0; padding-block:1rem; }
  .kg-gallery__items .kg-gallery-item figcaption { position:static; opacity:1; color:#000; background:transparent; }
}

/* The child header spans the original desktop width, independent of body containers. */
@media (min-width:1121px) {
  .kg-header .kg-container { width:calc(100% - 4rem); max-width:none; }
}
/* Astra also injects this inline toggle; our adjacent native button owns disclosure. */
#kg-navigation span.dropdown-menu-toggle.ast-header-navigation-arrow[role="button"] { display:none!important; }

/* Native testimonial columns stack without JS and show one review when enhanced. */
.kg-content .kg-testimonials.wp-block-columns { display:block; width:100%; max-width:none; margin-bottom:0; }
.kg-testimonials > .wp-block-column { width:100%; max-width:none; margin:0; }
.kg-testimonials > .wp-block-column + .wp-block-column { margin-top:2.5rem; }
.kg-testimonials.kg-testimonials--ready > .wp-block-column { margin:0; }
.kg-testimonials .kg-testimonial { width:100%; max-width:100%; font-size:clamp(1.125rem,1.5vw,1.375rem); line-height:1.65; }
.kg-testimonials__controls { display:flex; align-items:center; justify-content:center; gap:.75rem; margin-top:2rem; }
.kg-testimonials__controls button { width:48px; min-height:48px; padding:.5rem; border:1px solid currentColor; border-radius:50%; background:transparent; color:inherit; font-size:1.3rem; }
.kg-testimonials__controls button:hover { background:var(--kg-purple); color:#fff; border-color:var(--kg-purple); }
.kg-testimonials__status { min-width:3rem; text-align:center; font-size:.9rem; }
@media print {
  .kg-testimonials__controls { display:none!important; }
  .kg-testimonials > .wp-block-column[hidden] { display:block!important; }
  .kg-testimonials.kg-testimonials--ready > .wp-block-column + .wp-block-column { margin-top:2.5rem; }
}

/* Match the enhanced first frame before the deferred interactions initialize.
   Without JavaScript the head never adds kg-js: all content/navigation stays visible. */
@media screen {
  .kg-js .kg-navigation:not(.kg-navigation--ready) .sub-menu { display:none; }
  .kg-js .kg-hero:not(.kg-hero--ready) > .kg-hero__slide ~ .kg-hero__slide { display:none; }
}
@media screen and (min-width:1121px) {
  :root:has(.kg-header--has-topbar) { --kg-header-height:172px; --kg-hero-header-space:172px; }
}
@media screen and (max-width:1120px) {
  :root { --kg-header-height:92px; }
  .kg-js .kg-navigation:not(.kg-navigation--ready) { display:none; }
}

/* Reserve the wrapped desktop menu before fonts and submenu controls arrive.
   The overlaid header no longer moves the hero image when it is measured. */
@media screen and (min-width:1121px) and (max-width:1600px) {
  .kg-js .kg-header--over-hero .kg-header__inner { min-height:136px; }
  :root { --kg-hero-header-space:136px; }
  :root:has(.kg-header--has-topbar) { --kg-hero-header-space:196px; }
}

/* WCAG review: visible portfolio descriptions, focus and readable service sections. */
.kg-site :where(p,li,td,th,a) { overflow-wrap:anywhere; }
.kg-site :where(a,button,input,select,textarea,summary) { scroll-margin-block:5rem; }
.kg-site .kg-gallery__items .kg-gallery-item { display:flex; flex-direction:column; background:#fff; }
.kg-site .kg-gallery__items .kg-gallery-item > a { flex:none; }
.kg-site .kg-gallery__items .kg-gallery-item img { height:auto; }
.kg-site .kg-gallery__items .kg-gallery-item figcaption { position:static; opacity:1; pointer-events:auto; max-height:none; overflow:visible; padding:.85rem 1rem; color:var(--kg-ink); background:#fff; font-size:.875rem; line-height:1.55; }
.kg-site .kg-gallery__items { gap:1rem; }
.kg-service-hero { padding-block:clamp(2.5rem,5vw,5rem); background:var(--kg-dark); color:#fff; }
.kg-service-hero__grid { display:grid; grid-template-columns:1fr 1.05fr; align-items:center; gap:clamp(2rem,5vw,5rem); }
.kg-breadcrumb { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:2rem; font-size:.875rem; }
.kg-breadcrumb a { color:var(--kg-cyan); min-height:24px; }
.kg-service-hero__eyebrow { margin-bottom:1rem; color:var(--kg-yellow); font:800 .8rem/1.5 var(--kg-heading-font); letter-spacing:.18em; }
.kg-service-hero h1 { font-size:clamp(2rem,3.3vw,3.7rem); max-width:none; }
.kg-service-hero__intro { max-width:43ch; font-size:clamp(1.1rem,1.5vw,1.3rem); }
.kg-service-hero .kg-button { background:var(--kg-yellow); color:var(--kg-dark); letter-spacing:.05em; }
.kg-service-hero .kg-button:hover { background:#fff; color:var(--kg-dark); }
.kg-service-hero a:focus-visible { outline-color:var(--kg-yellow); }
.kg-service-hero__visual { margin:0; min-width:0; background:#fff; color:var(--kg-ink); box-shadow:1rem 1rem 0 #47d6e830; }
.kg-service-hero__visual img { display:block; width:100%; aspect-ratio:3 / 2; object-fit:contain; background:#f5f6f8; }
.kg-service-hero__visual figcaption { margin:0; padding:.85rem 1.25rem; font-size:.875rem; line-height:1.5; }
.kg-service-index { padding-block:2rem; border-bottom:1px solid var(--kg-border); }
.kg-service-index p { font-family:var(--kg-heading-font); font-weight:800; margin-bottom:.75rem; }
.kg-service-index ul { display:flex; flex-wrap:wrap; gap:.5rem; list-style:none; padding:0; margin:0; }
.kg-service-index a { display:inline-flex; align-items:center; min-height:44px; border:1px solid #a0a2ad; padding:.55rem 1rem; border-radius:2rem; font-size:.9rem; color:var(--kg-ink); }
.kg-service-index a:hover { background:var(--kg-dark); color:#fff; }
.kg-service-page .kg-content > .kg-section:first-child { padding-block:clamp(2.5rem,5vw,4rem); }
.kg-service-page .kg-content > .kg-section:first-child > .kg-container { max-width:64rem; }
.kg-service-page .kg-content > .kg-section:first-child h2 { font-size:clamp(1.7rem,3vw,2.8rem); }
.kg-service-panel { padding:clamp(1.5rem,3.5vw,3rem); border-left:4px solid var(--kg-magenta); background:var(--kg-soft); margin-block:0 3rem!important; scroll-margin-top:2rem; }
.kg-service-panel:nth-child(even) { border-color:var(--kg-link); background:#eef5f6; }
.kg-service-panel > :where(h2,h3,h4) { max-width:40ch; }
.kg-service-panel > :where(p,ul,ol) { max-width:75ch; margin-inline-start:0; }
.kg-service-panel > .kg-gallery { margin-top:2rem; max-width:none; }
.kg-service-panel .kg-gallery__items { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:899px) { .kg-service-hero__grid { grid-template-columns:1fr; } .kg-service-hero h1 { max-width:none; } .kg-service-hero__visual { box-shadow:.5rem .5rem 0 #47d6e830; } }
@media (max-width:600px) { .kg-service-panel .kg-gallery__items { grid-template-columns:repeat(2,minmax(0,1fr)); } .kg-service-panel { padding:1rem; } .kg-service-index a { padding:.6rem .8rem; } }
@media (max-width:380px) { .kg-service-panel .kg-gallery__items { grid-template-columns:1fr; } }
@media (forced-colors:active) { .kg-site :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid Highlight; } .kg-service-panel,.kg-service-index a { border-color:CanvasText; } }
@media print { .kg-service-hero { background:#fff; color:#000; } .kg-service-index { display:none; } .kg-service-hero__visual { box-shadow:none; } }

.kg-service-panel:focus-visible { outline:3px solid var(--kg-link); outline-offset:4px; }

/* About page: balanced native content rows, with all original copy editable. */
.kg-service-page .kg-content > .kg-about-intro:first-child > .kg-about-container { max-width:72rem; }
.kg-about-story.wp-block-columns { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); align-items:center; gap:clamp(2rem,5vw,4.5rem); margin-block:0 4.5rem; }
.kg-about-story > .wp-block-column { margin:0!important; min-width:0; }
.kg-about-story .kg-about-copy { margin:0!important; padding:0; border:0; background:transparent; }
.kg-about-copy > p { max-width:58ch; }
.kg-about-photo { margin:0; }
.kg-about-photo img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:.35rem; }
.kg-about-values.kg-service-panel { border:0; padding:clamp(1.5rem,4vw,3.5rem); background:var(--kg-dark); color:#fff; margin:0!important; }
.kg-about-values > h2 { margin-bottom:1.5rem; }
.kg-about-values__columns.wp-block-columns { gap:clamp(2rem,5vw,4rem); margin:0; }
.kg-about-values h3 { color:var(--kg-yellow); font-size:1.25rem; text-transform:none; }
.kg-about-values li { margin-bottom:.5rem; }
.kg-about-mission { padding-block:clamp(3.5rem,6vw,5.5rem); }
.kg-about-mission-copy { max-width:52rem; text-align:center; }
.kg-about-mission-copy > p { max-width:65ch; margin-inline:auto; }
.kg-about-mission-copy > p:last-child { margin-top:1.5rem; font-family:var(--kg-heading-font); font-weight:800; }
.kg-about-reviews > .kg-container { max-width:60rem; }
.kg-about-reviews h2 { text-align:center; margin-bottom:2rem; font-size:clamp(1.8rem,3vw,2.8rem); }
.kg-about-reviews .kg-testimonial { margin-inline:0; }
@media (max-width:781px) {
  .kg-about-story.wp-block-columns { grid-template-columns:minmax(0,1fr); gap:1.5rem; margin-bottom:3rem; }
  .kg-about-values__columns.wp-block-columns { gap:1.5rem; }
}
@media print { .kg-about-values.kg-service-panel { color:#000; background:#fff; border:1px solid; } .kg-about-values h3 { color:inherit; } }
/* Privacy page: readable native blocks, scoped to this legal content group. */
.kg-site .kg-policy { padding-block:clamp(2.5rem,5vw,4.5rem); overflow-wrap:anywhere; }
.kg-site .kg-policy > .kg-container { max-width:52rem; }
.kg-site .kg-policy :where(p,li) { line-height:1.75; }
.kg-site .kg-policy h2 { margin-block:2.75rem .9rem; font-size:clamp(1.5rem,2.5vw,2rem); line-height:1.25; text-transform:none; }
.kg-site .kg-policy h3 { margin-block:2rem .75rem; font-size:1.25rem; line-height:1.35; text-transform:none; }
.kg-site .kg-policy > .kg-container > :first-child { margin-top:0; }
.kg-site .kg-policy :where(h2,h3)[id] { scroll-margin-top:2rem; }
.kg-site .kg-policy :where(ul,ol) { padding-inline-start:1.5rem; }
.kg-site .kg-policy li + li { margin-top:.6rem; }
.kg-site .kg-policy a:not(.wp-element-button):not(.wp-block-button__link) { color:var(--kg-link); text-decoration:underline; text-underline-offset:.2em; text-decoration-thickness:.08em; }
.kg-site .kg-policy a:not(.wp-element-button):not(.wp-block-button__link):hover { color:var(--kg-purple); }
.kg-site .kg-policy .kg-policy-notice { margin-block:1.5rem 2.5rem; padding:clamp(1.125rem,3vw,1.75rem); border-inline-start:4px solid var(--kg-link); border-radius:0 .35rem .35rem 0; background:#eef5f6; color:var(--kg-ink); }
.kg-site .kg-policy .kg-policy-notice > :first-child { margin-top:0; }
.kg-site .kg-policy .kg-policy-notice > :last-child { margin-bottom:0; }
@media (max-width:600px) { .kg-site .kg-policy h2 { margin-top:2.25rem; } }
@media print { .kg-site .kg-policy { padding-block:1rem; } .kg-site .kg-policy .kg-policy-notice { background:#fff; border:1px solid #000; } }

/* Layout cross-check (1.0.17): remove duplicated spacing without changing content. */
.kg-content:has(> :is(.kg-section,.kg-hero):last-child) { padding-bottom:0; }

/* The existing Hinnakiri page is 224. Preserve its editable copy and prices. */
.page-id-224 .kg-page-heading { padding-block:3rem; }
.page-id-224 .kg-content > .kg-section { padding-block:clamp(2rem,4vw,4rem); }
.page-id-224 .kg-content > .kg-section:not(:last-child) { padding-bottom:0; }
.page-id-224 .kg-content > .kg-section:first-child { padding-top:2.5rem; }
.page-id-224 .kg-content > .kg-section:first-child + .kg-section { padding-top:2rem; }
.page-id-224 .kg-columns > .wp-block-column:has(> .kg-price-card) { display:flex; }
.page-id-224 .kg-price-card { display:flex; flex-direction:column; width:100%; min-width:0; padding:clamp(1.5rem,3vw,2.5rem); border:1px solid var(--kg-border); border-top:4px solid var(--kg-purple); border-radius:.4rem; background:var(--kg-soft); }
.page-id-224 .kg-price-card > * { max-width:100%; margin-inline:0; }
.page-id-224 .kg-price-card > .kg-eyebrow { margin-bottom:.75rem; color:var(--kg-muted); font:800 .875rem/1.5 var(--kg-heading-font); }
.page-id-224 .kg-price-card h3 { margin-bottom:1.25rem; font-size:clamp(1.5rem,2.3vw,2.1rem); line-height:1.2; }
.page-id-224 .kg-price-card > .kg-price { margin-bottom:1.5rem; color:var(--kg-purple); font:800 clamp(1.8rem,3vw,2.5rem)/1.2 var(--kg-heading-font); }
.page-id-224 .kg-price-card ul { padding-inline-start:1.25rem; }
.page-id-224 .kg-price-card li + li { margin-top:.5rem; }
.page-id-224 .kg-price-card > .wp-block-buttons { margin-top:auto; padding-top:1.5rem; }

/* Imported post rows can contain another section/container pair. Count it once. */
.single-post .kg-content > .kg-section > .kg-container,
.single-post .kg-content > :is(p,ul,ol,blockquote,.kg-post-image) { max-width:64rem; }
.single-post .kg-content .kg-section .kg-section { padding-block:0; }
.single-post .kg-content .kg-section .kg-section > .kg-container { width:100%; max-width:none; }
.single-post .kg-content .kg-section .kg-section + .kg-section { margin-top:clamp(2rem,4vw,3rem); }
.single-post .kg-post-image img { display:block; margin-inline:auto; }

/* The general service portfolio expands progressively; all images remain in the HTML. */
.kg-service-page .kg-gallery__more { display:flex; margin:2rem auto 0; }
.kg-service-page .kg-gallery__more:disabled { background:#565862; cursor:default; }

/* The FAQ keeps print/file guidance separate from the current privacy policy. */
.kg-faq-content > .kg-container,.kg-faq-privacy > .kg-container { max-width:52rem; }
.kg-faq-content h2,.kg-faq-privacy h2 { font-size:clamp(1.5rem,2.5vw,2rem); line-height:1.25; text-transform:none; }
.kg-faq-content { padding-bottom:2rem; }
.kg-faq-content + .kg-faq-privacy { padding-top:2rem; }
@media print {
  .kg-site .kg-gallery .kg-gallery-item[hidden] { display:block!important; }
  .kg-gallery__more { display:none!important; }
}
