/*
Theme Name: Дом у канала
Theme URI: https://example.com/dom-u-kanala
Author: Web Studio
Author URI: https://example.com
Description: Самостоятельная тема ресторана в современном классическом стиле: фотографии 2.5K–4K, локальная кириллическая типографика, адаптивная вёрстка, Gutenberg, галерея, форма заявок и импорт демо-контента.
Version: 1.3.1
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dom-u-kanala
Tags: custom-logo, custom-menu, featured-images, editor-style, wide-blocks, entertainment, one-column, two-columns
*/

:root {
  --color-background: #f1ede9;
  --color-surface: #e6dbd3;
  --color-soft: #e1d3ca;
  --color-text: #494644;
  --color-muted: #756f6a;
  --color-brand: #ab866d;
  --color-brand-dark: #494644;
  --color-deep: #302e2c;
  --color-accent: #ab866d;
  --color-cream: #f1ede9;
  --color-on-dark: #e6dbd3;
  --color-border: #c9c8c7;
  --font-display: "Manrope", "Golos Text", Arial, sans-serif;
  --font-body: "Golos Text", Arial, sans-serif;
  --container: 1280px;
  --narrow: 800px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-text); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--color-brand); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
::selection { background: var(--color-soft); color: var(--color-deep); }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-5);
  color: inherit;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 6vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 4vw, 1.65rem); }
p { margin: 0 0 var(--space-5); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--space-2); }
figure { margin: 0; }
blockquote {
  margin: var(--space-7) 0;
  padding: 0 0 0 var(--space-5);
  border-left: 1px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.45;
}
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container--narrow { width: min(calc(100% - 40px), var(--narrow)); }
.section { padding-block: 56px; }
.section--muted { background: var(--color-surface); }
.section--dark { background: var(--color-brand-dark); color: var(--color-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: inherit; }
.eyebrow {
  margin-bottom: var(--space-4);
  color: var(--color-brand);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}
.section--dark .eyebrow, .home-hero .eyebrow { color: var(--color-soft); }
.lead { max-width: 66ch; font-size: 1.06rem; line-height: 1.8; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: var(--space-4); }
.section-heading p { max-width: 65ch; color: var(--color-muted); }
.section--dark .section-heading p { color: var(--color-on-dark); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  z-index: 100;
  top: var(--space-4);
  left: var(--space-4);
  width: auto;
  height: auto;
  clip: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--color-background);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 26px;
  border: 1px solid var(--color-brand-dark);
  border-radius: 0;
  background: var(--color-brand-dark);
  color: #fff;
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.button:hover { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.button:active { transform: translateY(1px); }
.button--small { min-height: 42px; padding: 10px 18px; font-size: .65rem; }
.button--light { background: var(--color-background); border-color: var(--color-background); color: var(--color-brand-dark); }
.button--light:hover { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.button--ghost { background: transparent; border-color: rgb(255 255 255 / 65%); color: #fff; }
.button--ghost:hover { background: #fff; border-color: #fff; color: var(--color-brand-dark); }
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--color-brand);
  color: var(--color-text);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease-out, gap 180ms ease-out;
}
.text-link:hover { gap: 18px; color: var(--color-brand); }
.text-link--light { color: #fff; border-color: rgb(255 255 255 / 55%); }
.text-link--light:hover { color: #fff; border-color: #fff; }

.site-header {
  position: relative;
  z-index: 40;
  width: 100%;
  background: var(--color-brand-dark);
  color: #fff;
}
.home .site-header, .page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  background: linear-gradient(180deg, rgb(30 32 29 / 94%) 0%, rgb(30 32 29 / 84%) 100%);
  backdrop-filter: blur(12px);
}
.admin-bar.home .site-header, .admin-bar.page .site-header { top: 46px; }
.site-header__inner {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  min-height: 94px;
  align-items: center;
  padding-top: 10px;
}
.site-branding { grid-column: 2; grid-row: 1; min-width: 0; justify-self: center; text-align: center; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-height: 76px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; }
.wordmark:hover { color: #fff; }
.wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.wordmark__tagline {
  margin-top: 9px;
  font-size: .53rem;
  font-weight: 400;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}
.menu-toggle {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.menu-toggle__lines { display: grid; width: 28px; gap: 6px; }
.menu-toggle__lines i { display: block; height: 1px; background: currentColor; transition: transform 180ms ease-out, opacity 180ms ease-out; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines i:last-child { transform: translateY(-7px) rotate(-45deg); }
.header-contact { display: flex; grid-column: 3; grid-row: 1; align-items: center; justify-self: end; gap: 22px; }
.header-phone, .header-cta { display: none; }
.main-navigation {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  max-height: calc(100dvh - 94px);
  overflow: auto;
  padding: 14px 24px 28px;
  background: var(--color-brand-dark);
  box-shadow: 0 18px 30px rgb(0 0 0 / 16%);
}
.main-navigation.is-open { display: block; }
.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation li { margin: 0; }
.main-navigation a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
  color: #fff;
  font-size: .72rem;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
.main-navigation a:hover { color: var(--color-soft); }
.main-navigation .sub-menu { padding-left: var(--space-4); }
.main-navigation .sub-menu a { color: var(--color-on-dark); font-size: .67rem; }
.main-navigation .current-menu-item > a, .main-navigation .current_page_item > a { color: var(--color-soft); }

.home-hero, .page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-deep);
  color: #fff;
}
.home-hero { min-height: max(640px, 100svh); }
.home-hero__media, .home-hero__shade, .page-hero__media, .page-hero__overlay { position: absolute; inset: 0; }
.home-hero__media img, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.home-hero__media img { object-position: 58% center; }
.home-hero__shade { background: linear-gradient(180deg, rgb(0 0 0 / 36%) 0%, rgb(0 0 0 / 8%) 40%, rgb(0 0 0 / 68%) 100%); }
.home-hero__content { position: relative; z-index: 1; padding-block: 190px 64px; color: #fff; }
.home-hero h1 { max-width: 900px; margin-bottom: 18px; color: #fff; }
.home-hero__lead {
  max-width: 720px;
  margin-bottom: 0;
  font-size: .74rem;
  letter-spacing: .13em;
  line-height: 1.8;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero-scroll { display: none; }
.page-hero { min-height: 500px; }
.page-hero__overlay { background: linear-gradient(180deg, rgb(0 0 0 / 32%) 0%, rgb(0 0 0 / 8%) 38%, rgb(0 0 0 / 68%) 100%); }
.page-hero:not(.page-hero--image) .page-hero__overlay { background: var(--color-brand-dark); }
.page-hero__content { position: relative; z-index: 1; padding-block: 180px 52px; color: #fff; }
.page-hero h1 { max-width: 940px; margin-bottom: 14px; font-size: clamp(2.4rem, 8vw, 3.6rem); color: #fff; }
.page-hero p { max-width: 690px; margin: 0; color: var(--color-on-dark); font-size: .98rem; }

.entry-content > .section:first-child { padding-top: 56px; }
.entry-content > .section:last-child { margin-bottom: 0; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.editorial-grid > p:empty { display: none; }
.editorial-grid__text, .editorial-grid__media { min-width: 0; max-width: 100%; }
.editorial-grid__text { max-width: 68ch; }
.editorial-grid__text > :last-child { margin-bottom: 0; }
.editorial-grid__media { position: relative; }
.editorial-grid__media img { width: 100%; min-height: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.editorial-grid__media--offset::before { display: none; }
.home-content > .section:first-child { background: var(--color-brand-dark); color: var(--color-on-dark); }
.home-content > .section:first-child h2, .home-content > .section:first-child h3 { color: #fff; }
.home-content > .section:first-child .eyebrow { color: var(--color-soft); }
.home-content > .section:first-child .editorial-grid__text p { color: var(--color-on-dark); }
.facts { display: grid; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.home-content > .section:first-child .facts { border-color: rgb(255 255 255 / 22%); }
.fact strong {
  display: block;
  margin-bottom: 7px;
  color: var(--color-brand);
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.fact span { display: block; color: var(--color-muted); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.home-content > .section:first-child .fact strong, .home-content > .section:first-child .fact span { color: var(--color-on-dark); }

.service-grid { display: grid; gap: 40px 24px; }
.service-card { display: flex; min-width: 0; flex-direction: column; border: 0; }
.service-card__image { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-soft); }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease-out; }
.service-card:hover .service-card__image img { transform: scale(1.035); }
.service-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-block: 20px 0; }
.service-card h3 { margin-bottom: 10px; }
.service-card h3 a { color: var(--color-text); text-decoration: none; }
.service-card h3 a:hover { color: var(--color-brand); }
.service-card p { color: var(--color-muted); font-size: .88rem; line-height: 1.7; }
.service-card .text-link { margin-top: auto; }

.occasion-grid { display: grid; gap: 20px; }
.occasion { position: relative; min-height: 380px; overflow: hidden; background: var(--color-brand-dark); }
.occasion__image { position: absolute; inset: 0; display: block; }
.occasion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform 500ms ease-out, opacity 300ms ease-out; }
.occasion:hover img { transform: scale(1.035); opacity: .76; }
.occasion__caption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 70px 24px 24px;
  background: linear-gradient(0deg, rgb(0 0 0 / 82%), transparent);
  color: #fff;
  pointer-events: none;
}
.occasion__caption h3 { margin: 0; color: #fff; }
.occasion__caption a { color: inherit; text-decoration: none; pointer-events: auto; }
.occasion__caption p { margin: 9px 0 0; color: var(--color-on-dark); font-size: .82rem; line-height: 1.6; }

.feature-list { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: features; }
.feature-list li {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0 !important;
  counter-increment: features;
}
.feature-list li::before {
  content: "0" counter(features);
  display: block;
  margin-bottom: 16px;
  color: var(--color-brand);
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
}
.feature-list h3 { margin-bottom: 10px; font-size: 1.5rem; }
.feature-list p { margin: 0; color: var(--color-muted); font-size: .88rem; line-height: 1.75; }
.section--dark .feature-list p { color: var(--color-on-dark); }
.section--dark .feature-list li::before { color: var(--color-soft); }
.process-list { display: grid; gap: 28px; margin: 36px 0; padding: 0; list-style: none; counter-reset: steps; }
.process-list li { position: relative; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--color-border); counter-increment: steps; }
.process-list li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--color-brand);
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
}
.process-list h3 { margin-bottom: 9px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.process-list p { margin: 0; color: var(--color-muted); font-size: .87rem; }
.section--muted .process-list li { border-color: rgb(73 70 68 / 22%); }

.menu-example { display: grid; gap: 32px; margin-top: 40px; }
.menu-example h3 { padding-bottom: 12px; border-bottom: 1px solid var(--color-text); }
.menu-example ul { margin: 0; padding: 0; list-style: none; }
.menu-example li { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 10px; border-bottom: 1px dotted var(--color-border); }
.menu-example li span:last-child { flex: 0 0 auto; color: var(--color-muted); font-size: .82rem; }
.notice { margin-top: 32px; padding: 22px 24px; border-left: 1px solid var(--color-accent); background: var(--color-background); }
.section:not(.section--muted) .notice { background: var(--color-surface); }
.notice p:last-child { margin-bottom: 0; }

.cta-panel { display: grid; gap: 24px; align-items: center; }
.cta-panel h2 { margin-bottom: 12px; }
.cta-panel p { max-width: 62ch; margin-bottom: 0; }
.cta-panel__action { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.section:not(.section--dark) > .container.cta-panel { padding-top: 32px; border-top: 1px solid var(--color-border); }

.wp-block-gallery, .wp-block-gallery.is-layout-flex, .gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.wp-block-gallery .wp-block-image { width: auto !important; margin: 0; }
.wp-block-gallery .wp-block-image a, .gallery-grid a { display: block; height: 100%; }
.wp-block-gallery img, .gallery-grid img { width: 100%; height: 100%; min-height: 150px; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.gallery-note { margin-top: 22px; color: var(--color-muted); font-size: .78rem; }
.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 56px;
  background: rgb(48 46 44 / 97%);
}
.lightbox.is-open { display: flex; }
.lightbox__image { max-width: min(1100px, 100%); max-height: calc(100dvh - 130px); object-fit: contain; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
}
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; bottom: 8px; }
.lightbox__next { right: 12px; bottom: 8px; }
.lightbox__counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .82rem; }

.contact-layout { display: grid; gap: 48px; }
.contact-layout > div { min-width: 0; }
.contact-details { margin: 32px 0 0; }
.contact-details dt { margin-top: 22px; color: var(--color-brand); font-size: .65rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.contact-details dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.contact-details a { color: inherit; text-decoration: none; }
.contact-details a:hover { color: var(--color-brand); }
.map-placeholder { display: flex; min-height: 300px; align-items: center; justify-content: center; padding: 32px; border: 1px solid var(--color-border); background: var(--color-surface); text-align: center; }
.map-placeholder p { max-width: 48ch; margin: 0; color: var(--color-muted); }
.request-form-wrap { scroll-margin-top: 32px; }
.form-grid { display: grid; gap: 0 20px; }
.request-form label { display: block; margin-bottom: 18px; color: var(--color-text); font-size: .72rem; font-weight: 500; letter-spacing: .04em; }
.request-form label > input:not([type="checkbox"]), .request-form label > textarea { margin-top: 7px; }
.request-form input:not([type="checkbox"]), .request-form textarea, .search-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: rgb(255 255 255 / 26%);
  color: var(--color-text);
  font-size: .9rem;
  letter-spacing: normal;
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}
.request-form textarea { min-height: 132px; resize: vertical; }
.request-form input:focus, .request-form textarea:focus, .search-form input:focus { border-color: var(--color-brand); background: rgb(255 255 255 / 48%); }
.request-form .form-consent { display: flex; align-items: flex-start; gap: 12px; font-size: .72rem; font-weight: 400; letter-spacing: normal; line-height: 1.6; }
.form-consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--color-brand); }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin-bottom: 24px; padding: 16px; border: 1px solid; font-size: .85rem; }
.form-notice--success { border-color: var(--color-brand); background: var(--color-surface); }
.form-notice--error { border-color: #9b3d34; color: #792c25; }

.site-footer { padding-top: 64px; background: var(--color-brand-dark); color: var(--color-on-dark); }
.footer-grid { display: grid; gap: 40px; }
.site-footer a { color: var(--color-on-dark); }
.site-footer a:hover { color: #fff; }
.footer-brand p { max-width: 42ch; margin-top: 20px; color: var(--color-on-dark); font-size: .82rem; }
.wordmark--footer { align-items: flex-start; }
.wordmark--footer .wordmark__name { font-size: 2rem; }
.footer-title { margin-bottom: 18px; color: var(--color-soft); font-family: var(--font-body); font-size: .64rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; }
.site-footer .menu a { display: inline-flex; min-height: 34px; align-items: center; font-size: .8rem; text-decoration: none; }
.footer-contacts p { margin-bottom: 10px; font-size: .8rem; }
.footer-contacts a { text-decoration: none; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / 15%); color: var(--color-on-dark); font-size: .68rem; }
.footer-bottom a { text-decoration: none; }

.post-summary { padding-block: 30px; border-bottom: 1px solid var(--color-border); }
.post-summary h2 { font-size: 1.85rem; }
.post-summary h2 a { text-decoration: none; }
.single-header { margin-bottom: 40px; }
.single-header h1 { font-size: clamp(2.25rem, 7vw, 3.6rem); }
.single-featured { margin-bottom: 40px; }
.search-form { display: flex; gap: 10px; margin-block: 28px; }
.search-form label { flex: 1; }
.search-form .search-submit { min-height: 50px; padding-inline: 18px; border: 1px solid var(--color-brand-dark); border-radius: 0; background: var(--color-brand-dark); color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.pagination { margin-top: 32px; }
.error-page { min-height: 55dvh; }

@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .occasion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .occasion { min-height: 420px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-block-gallery, .wp-block-gallery.is-layout-flex, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
  .container { width: min(calc(100% - 64px), var(--container)); }
  .container--narrow { width: min(calc(100% - 64px), var(--narrow)); }
  .section, .entry-content > .section:first-child { padding-block: 80px; }
  .section-heading { margin-bottom: 44px; }
  .home-hero__content { padding-block: 240px 72px; }
  .page-hero { min-height: min(680px, 72svh); }
  .page-hero__content { padding-block: 230px 64px; }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .feature-list li { padding-right: 30px; }
  .feature-list li + li { padding-left: 30px; border-left: 1px solid var(--color-border) !important; }
  .section--dark .feature-list li + li { border-left-color: rgb(255 255 255 / 22%) !important; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .menu-example { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: minmax(0, 1.5fr) minmax(230px, .7fr); }
  .cta-panel__action { justify-content: flex-end; }
  .contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; }
  .footer-grid { grid-template-columns: 1.3fr .7fr 1fr; gap: 56px; }
  .site-footer { padding-top: 80px; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: 20px; }
  .lightbox__next { right: 20px; }
  .lightbox__counter { bottom: 18px; }
}

@media (min-width: 960px) {
  .editorial-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 72px); }
  .editorial-grid--reverse .editorial-grid__text { order: 2; }
  .editorial-grid--reverse .editorial-grid__media { order: 1; }
  .editorial-grid__media { z-index: 0; }
  .editorial-grid__media img { aspect-ratio: 4 / 4.5; }
  .editorial-grid__media--offset::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 18px -18px -18px 18px;
    display: block;
    border: 1px solid var(--color-brand);
    background: transparent;
  }
}

@media (min-width: 1100px) {
  .admin-bar.home .site-header, .admin-bar.page .site-header { top: 32px; }
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 126px; padding-top: 26px; }
  .wordmark__name { font-size: 2.35rem; letter-spacing: -.04em; }
  .wordmark__tagline { margin-top: 11px; font-size: .57rem; }
  .custom-logo { max-height: 94px; }
  .menu-toggle { display: none; }
  .header-phone { display: block; color: #fff; font-size: .72rem; letter-spacing: .025em; text-decoration: none; white-space: nowrap; }
  .header-cta { display: inline-flex; }
  .site-header__nav { padding-bottom: 16px; }
  .main-navigation {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .main-navigation > ul { display: flex; align-items: center; justify-content: center; gap: 36px; }
  .main-navigation > ul > li { position: relative; }
  .main-navigation a { position: relative; min-height: 44px; padding: 10px 0; border: 0; font-size: .67rem; letter-spacing: .16em; white-space: nowrap; }
  .main-navigation > ul > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(.5);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
  }
  .main-navigation > ul > li:hover > a::after, .main-navigation > ul > li:focus-within > a::after,
  .main-navigation > ul > .current-menu-item > a::after, .main-navigation > ul > .current_page_item > a::after { opacity: .7; transform: scaleX(1); }
  .main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: -24px;
    display: block;
    min-width: 250px;
    padding: 10px 24px;
    background: var(--color-brand-dark);
    box-shadow: 0 18px 30px rgb(0 0 0 / 18%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
  }
  .main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-navigation .sub-menu a { min-height: 44px; padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / 13%); white-space: normal; }
  .main-navigation .sub-menu li:last-child a { border-bottom: 0; }
  .home-hero__content { padding-block: 320px 82px; }
  .hero-scroll {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: .58rem;
    letter-spacing: .17em;
    text-decoration: none;
    text-transform: uppercase;
    transform: rotate(90deg);
    transform-origin: right bottom;
  }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .occasion-grid { grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
  .occasion { min-height: 500px; }
  .process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}

@media (min-width: 1440px) {
  .main-navigation > ul { gap: 46px; }
  .main-navigation a { font-size: .7rem; }
}

@media (max-width: 479px) {
  .wordmark__tagline { max-width: 210px; font-size: .46rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .search-form { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
