/**
 * RestauroUA — об'єднаний стиль для головної та сервісних сторінок.
 *
 * До версії 1.1.0 тут було два окремих файли (css/style.css і
 * services-assets/css/services.css), які на ~80% дублювали один одного
 * і вже почали розходитись (різні кольори іконок, різні фікси для
 * мобільної версії хедера). Тепер це один файл:
 *  - спільні блоки (хедер, hero, кнопки, лайтбокс, слайдери, форма,
 *    футер) без префіксів — застосовуються до всіх сторінок;
 *  - блоки, що стосуються тільки сервісних сторінок, позначені
 *    класом `.service-page` (його ставить inc/core/assets.php);
 *  - блоки, що стосуються тільки головної, позначені
 *    `body:not(.service-page)`.
 */

:root {
  --bg: #f6f0e6;
  --bg-soft: #eee2d1;
  --paper: #fffaf3;
  --text: #1f1a15;
  --muted: #71675c;
  --brand: #cba56c;
  --brand-dark: #7a4e24;
  --dark: #17110c;
  --line: rgba(31, 26, 21, .12);
  --shadow: 0 20px 55px rgba(42, 32, 22, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 26px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo {
  width: auto;
  height: 58px;
  max-width: 190px;
  padding: 8px 12px;
  border-radius: 0;
  background: var(--bg);
  object-fit: contain;
}

.site-logo-h {
  width: auto;
  height: 58px;
  max-width: 190px;
  padding: 8px 12px;
  object-fit: contain;
  background: transparent;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
  padding: 0;
}

/* Якщо навігація прийшла з wp_nav_menu() — це <ul><li><a>, а не плоскі <a>.
   display:contents прибирає <li> з потоку, лишаючи лише <a> у флексі — як і раніше. */
.nav li {
  display: contents;
}

.nav a:hover { color: var(--brand-dark); }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  flex: 0 0 auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #c69542;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(198, 149, 66, .22);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.contact-btn:hover {
  background: #b88735;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(198, 149, 66, .28);
}

.contact-btn svg,
.contact-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.header-socials {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
}

.header-socials .contact-icon,
.contact-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 26, 21, .14);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.contact-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 28px rgba(31, 26, 21, .18);
  filter: brightness(1.04);
}

.contact-icon.telegram,
.header-socials .contact-icon.telegram { background: #27a7e7; }
.contact-icon.viber,
.header-socials .contact-icon.viber { background: #7360f2; }
.contact-icon.facebook,
.header-socials .contact-icon.facebook { background: #1877f2; }
.contact-icon.instagram,
.header-socials .contact-icon.instagram {
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.contact-icon.viber svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1180px) {
  .header-socials {
    display: grid;
    grid-template-columns: repeat(2, 35px);
    grid-auto-rows: 35px;
  }

  /* До цього фіксу: іконки соцмереж вже стискались у 2x2 на 1180px,
     а кнопка телефону лишалась з повним текстом до самого 640px —
     у проміжку 640–1180px шапці банально не вистачало ширини, і
     блок з іконками "виштовхувало" з нормального потоку. */
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  .contact-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .contact-btn span {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-socials {
    display: grid;
    grid-template-columns: repeat(2, 31px);
    grid-auto-rows: 31px;
    gap: 5px;
  }

  .header-socials .contact-icon,
  .contact-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .header-socials .contact-icon svg,
  .contact-icon svg {
    width: 17px;
    height: 17px;
  }
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--dark);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-picture,
.hero-picture img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture img {
  object-fit: cover;
  object-position: center 38%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(19, 12, 7, .88), rgba(19, 12, 7, .34)),
    linear-gradient(0deg, rgba(19, 12, 7, .22), rgba(19, 12, 7, .22));
}

.hero-content {
  position: relative;
  max-width: 790px;
  padding: 110px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.035em;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(43px, 7vw, 84px);
}

h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
}

h3 {
  margin: 0;
  line-height: 1.25;
}

.hero-text {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #1e1409;
  box-shadow: 0 14px 30px rgba(203, 165, 108, .36);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.54);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.center {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:not(.eyebrow),
.lead {
  color: var(--muted);
  font-size: 18px;
}

.intro {
  background: linear-gradient(180deg, #fbf7f0, var(--bg));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.benefit,
.work-card,
.review-card,
.process-grid article,
.form {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-link-media {
  display: block;
}

.service-card picture,
.service-card img {
  width: 100%;
  height: 230px;
}

.service-card img {
  object-fit: cover;
  transition: transform .35s ease;
}

.card-link-media:hover img {
  transform: scale(1.04);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.service-card-text-wrap {
  margin-bottom: 16px;
}

.service-card-text {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.service-card-text-wrap.is-expanded .service-card-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}



.service-card-toggle {
  display: inline-flex;
  visibility: hidden;   /* скрыт, но занимает место → карточки одной высоты */
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.service-card-toggle.is-visible {
  visibility: visible;
}
.service-card-toggle:hover {
  color: var(--dark);
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid rgba(31,26,21,.18);
  border-radius: 999px;
  color: var(--dark);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.service-card-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #1e1409;
  transform: translateY(-2px);
}

.benefits,
.works,
.reviews {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.benefit {
  min-height: 150px;
  padding: 28px;
}

.benefit strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
}

.benefit span {
  color: var(--muted);
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.section-row .section-heading {
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--dark);
  box-shadow: 0 12px 26px rgba(31,26,21,.16);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.slider-btn:hover {
  transform: translateY(-2px);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 36px rgba(203, 165, 108, .30);
}

.slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(90,78,64,.48) rgba(90,78,64,.14);
}

.slider-track::-webkit-scrollbar {
  height: 8px;
}

.slider-track::-webkit-scrollbar-track {
  background: rgba(90,78,64,.14);
  border-radius: 999px;
}

.slider-track::-webkit-scrollbar-thumb {
  background: rgba(90,78,64,.48);
  border-radius: 999px;
}

.work-card {
  flex: 0 0 420px;
  overflow: hidden;
  scroll-snap-align: start;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 210px;
}

.before-after figure {
  position: relative;
  margin: 0;
}

.before-after figure + figure {
  border-left: 3px solid #fff;
}

.before-after img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.before-after span {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(20,15,10,.75);
  font-size: 12px;
  font-weight: 900;
}

.work-body {
  padding: 20px;
}

.work-body h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.work-body p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: #fbf7f0;
}

/* Продовжуємо те саме чергування кремовий/бежевий далі по сторінці —
   інакше .seo-content і .faq зливаються з тим, що над ними (особливо
   .reviews, чий градієнт сам вицвітає у базовий колір знизу). На
   сервісних сторінках є власне правило з !important (нижче), яке тут
   не торкається — production-стиль сервісних сторінок лишається яким був. */
.seo-content {
  background: #fbf7f0;
}

.faq {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-grid article {
  padding: 24px;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--brand-dark);
  font-weight: 900;
}

.process-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
}

.review-card {
  flex: 0 0 320px;
  padding: 24px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.stars {
  color: #f0a41a;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-card p {
  margin: 0 0 20px;
  flex: 1;          /* текст занимает всё доступное место */
}

.review-card strong {
  margin-top: auto; /* автор всегда внизу */
  display: block;
}

.review-card footer {
  color: var(--muted);
  font-weight: 800;
}

.contacts {
  padding: 86px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(25, 17, 10, .94), rgba(91, 57, 25, .88)),
    url('../img/hero-restauro.jpg') center/cover no-repeat;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 50px;
  align-items: center;
}

.contacts-info p {
  max-width: 660px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-list a,
.contact-list span {
  font-weight: 900;
  color: #fff;
}

.form {
  padding: 28px;
  color: var(--text);
}

.form label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  outline: 0;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--brand);
}

.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}

.checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 28px 0;
  background: var(--dark);
  color: rgba(255,255,255,.72);
}

.site-footer .site-logo {
  filter: brightness(0) invert(1);
  background: transparent;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 1100px) {
  .service-grid,
  .benefits-layout,
  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 32px, 1220px);
  }

  .site-logo {
    height: 48px;
    max-width: 155px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding: 86px 0;
  }

  h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .section {
    padding: 62px 0;
  }

  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefits-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .review-card {
    flex-basis: 84vw;
  }

  .before-after img {
    height: 190px;
  }

  .service-card-body {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }



  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
  }

  .service-card picture,
  .service-card img {
    height: 200px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .before-after figure + figure {
    border-left: 0;
    border-top: 3px solid #fff;
  }

  .before-after img {
    height: 210px;
  }

  .form {
    padding: 22px;
  }
}

.lightbox-card {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lightbox-card:hover {
  transform: translateY(-4px);
}

.lightbox-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 6, .84);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.lightbox-image {
  width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #1b130a;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  z-index: 3;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  line-height: 1;
  z-index: 2;
}

.lightbox-prev {
  left: -26px;
}

.lightbox-next {
  right: -26px;
}

.lightbox-caption,
.lightbox-counter {
  color: #fff;
  text-align: center;
}

.lightbox-caption {
  font-weight: 800;
}

.lightbox-counter {
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .lightbox { padding: 16px; }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 54px;
    transform: none;
  }

  .lightbox-prev { left: 22px; }
  .lightbox-next { right: 22px; }

  .lightbox-image {
    max-height: calc(100vh - 190px);
  }
}


.faq-list {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  font-size: 20px;
  font-weight: 800;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: var(--brand-dark);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item div {
  padding: 0 28px 24px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .faq-item summary {
    padding: 20px 22px;
    font-size: 18px;
  }

  .faq-item div {
    padding: 0 22px 22px;
  }
}


.faq-item {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 58px 24px 28px;
  font-size: 20px;
  font-weight: 800;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-dark);
  font-size: 30px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item div {
  padding: 0 28px 24px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 820px) {
  .faq-item summary {
    padding: 20px 54px 20px 22px;
    font-size: 18px;
  }

  .faq-item div {
    padding: 0 22px 22px;
  }
}


/* Header phone / hero CTA adjustments */
.btn-hero-main {
  min-height: 62px;
  padding: 18px 34px;
  font-size: 18px;
}

@media (min-width: 821px) {
  .header-contacts span {
    display: block;
    cursor: default;
    color: inherit;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    margin-left: 8px;
  }

  .btn-hero-main {
    width: 100%;
    min-height: 64px;
    font-size: 18px;
  }
}


/* ==========================================================
   CURRENT SERVICE PAGES FIX
   Fixes live pages like:
   /restavraciya-vikon/
   /restavraciya-parketu/
   Uses classes: .content-grid, .card, .side-card,
   .gallery-grid, .related-grid, .related-card
   ========================================================== */

.service-page .section.soft,
.service-page .section.alt,
.service-page #content.section {
  padding: 84px 0;
}

.service-page .section.soft,
.service-page #content.section {
  background: linear-gradient(180deg, #fbf7f0, var(--bg, #f6f0e6));
}

.service-page .section.alt {
  background: #fbf7f0;
}

/* Main archive service content */
.service-page .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: stretch;
}

.service-page .content-grid > .card,
.service-page .content-grid > .side-card {
  min-width: 0;
}

.service-page .card,
.service-page .side-card {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius, 22px);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow, 0 20px 55px rgba(42, 32, 22, .14));
}

.service-page .content-grid .card,
.service-page .content-grid .side-card {
  padding: 28px;
}

.service-page .content-grid .card h3,
.service-page .content-grid .side-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
}

.service-page .content-grid .card p {
  margin: 0 0 14px;
  color: var(--muted, #71675c);
  font-size: 17px;
  line-height: 1.75;
}

.service-page .content-grid .card p:last-child {
  margin-bottom: 0;
}

.service-page .content-grid ul,
.service-page .side-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted, #71675c);
}

.service-page .content-grid li,
.service-page .side-card li {
  margin: 0 0 10px;
  line-height: 1.6;
}

.service-page .content-grid li:last-child,
.service-page .side-card li:last-child {
  margin-bottom: 0;
}

/* Make the first text card wider when there are several cards */
.service-page .content-grid > .card:first-child {
  grid-column: span 1;
}

/* Gallery */
.service-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-page .gallery-grid picture,
.service-page .gallery-grid img {
  width: 100%;
  height: 230px;
}

.service-page .gallery-grid img {
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow, 0 20px 55px rgba(42, 32, 22, .14));
}

/* Related services */
.service-page .related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-page .related-card {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius, 22px);
  background: rgba(255,255,255,.82);
  color: var(--brand-dark, #7a4e24);
  font-weight: 900;
  line-height: 1.35;
  box-shadow: var(--shadow, 0 20px 55px rgba(42, 32, 22, .14));
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-page .related-card:hover {
  transform: translateY(-3px);
}

/* Hero safety for service pages */
.service-page .hero {
  min-height: 620px;
}

.service-page .hero-content {
  max-width: 850px;
}

.service-page .hero .btn-primary {
  min-height: 58px;
  padding: 16px 30px;
  font-size: 17px;
}

/* Headings */
.service-page .section-heading.center {
  max-width: 880px;
}

.service-page .section-heading .eyebrow:empty {
  display: none;
}

/* Contacts on service pages */
.service-page .contacts .form textarea {
  min-height: 110px;
}

/* Mobile */
@media (max-width: 1100px) {
  .service-page .content-grid {
    grid-template-columns: 1fr;
  }

  .service-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .service-page .section.soft,
  .service-page .section.alt,
  .service-page #content.section {
    padding: 62px 0;
  }

  .service-page .hero {
    min-height: 590px;
  }

  .service-page .content-grid .card,
  .service-page .content-grid .side-card {
    padding: 22px;
  }

  .service-page .gallery-grid,
  .service-page .related-grid {
    grid-template-columns: 1fr;
  }

  .service-page .gallery-grid picture,
  .service-page .gallery-grid img {
    height: 250px;
  }

  .service-page .related-card {
    min-height: 74px;
  }

  .service-page .hero .btn-primary {
    width: 100%;
  }

}
/* Fix only: service gallery arrows moved to the sides and images open popup */
.service-page .service-gallery {
  position: relative;
}
.service-page .service-gallery-row {
  position: absolute;
  left: -18px;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
  margin: 0;
}
.service-page .service-gallery-row > div:first-child {
  display: none;
}
.service-page .service-gallery-row .slider-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.service-page .service-gallery-row .slider-btn {
  pointer-events: auto;
}
.service-page .service-gallery .service-gallery-item,
.service-page .service-gallery .service-gallery-item img {
  cursor: zoom-in;
}

/* Fix only: lightbox styles for service page */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 6, .78);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
}
.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f1a15;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.lightbox-close {
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 38px;
  line-height: 1;
}
.lightbox-prev { left: -24px; }
.lightbox-next { right: -24px; }
.lightbox-caption,
.lightbox-counter {
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.lightbox-caption { font-weight: 700; }
.lightbox-counter { font-size: 14px; color: rgba(255,255,255,.72); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .service-page .service-gallery-row {
    left: 4px;
    right: 4px;
  }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { right: 6px; }
}


/* Mobile menu dropdown — спільний для головної і сервісних сторінок */
@media (max-width: 820px) {
  .site-header .header-inner {
    position: relative !important;
  }

  .site-header .nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(220px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 18px 45px rgba(42,32,22,.18) !important;
    z-index: 1000 !important;
  }

  .site-header .nav.is-open {
    display: flex !important;
  }

  .site-header .nav a {
    display: block !important;
    padding: 11px 8px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* Fix: service gallery two-up slider on mobile */
  .service-page .service-gallery .gallery-grid.slider-track,
  .service-page .service-gallery #service-gallery-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .service-page .service-gallery .service-gallery-item {
    display: block !important;
    flex: 0 0 calc((100% - 16px) / 2) !important;
    width: calc((100% - 16px) / 2) !important;
    min-width: calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2) !important;
    scroll-snap-align: start !important;
  }

  .service-page .service-gallery .service-gallery-item img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
  }
}

/* Fix 1.0.11: ONLY service gallery scrollbar hidden + home-like dots */
.service-page .service-gallery .gallery-grid.slider-track,
.service-page .service-gallery #service-gallery-slider {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.service-page .service-gallery .gallery-grid.slider-track::-webkit-scrollbar,
.service-page .service-gallery #service-gallery-slider::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.service-page .service-gallery .slider-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.service-page .service-gallery .slider-dot {
  display: block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  min-height: 9px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(31,26,21,.14) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
}

.service-page .service-gallery .slider-dot.is-active {
  width: 28px !important;
  min-width: 28px !important;
  background: var(--brand) !important;
}

/* Fix 1.0.12: ONLY service gallery responsive slider 4 -> 3 -> 2 -> 1 */
.service-page .service-gallery {
  overflow: hidden !important;
}

.service-page .service-gallery .gallery-grid.slider-track,
.service-page .service-gallery #service-gallery-slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.service-page .service-gallery .gallery-grid.slider-track::-webkit-scrollbar,
.service-page .service-gallery #service-gallery-slider::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.service-page .service-gallery .service-gallery-item {
  display: block !important;
  flex: 0 0 calc((100% - 54px) / 4) !important;
  width: calc((100% - 54px) / 4) !important;
  min-width: calc((100% - 54px) / 4) !important;
  max-width: calc((100% - 54px) / 4) !important;
  scroll-snap-align: start !important;
}

.service-page .service-gallery .service-gallery-item img {
  width: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 1180px) {
  .service-page .service-gallery .service-gallery-item {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    width: calc((100% - 36px) / 3) !important;
    min-width: calc((100% - 36px) / 3) !important;
    max-width: calc((100% - 36px) / 3) !important;
  }
}

@media (max-width: 900px) {
  .service-page .service-gallery .service-gallery-item {
    flex: 0 0 calc((100% - 18px) / 2) !important;
    width: calc((100% - 18px) / 2) !important;
    min-width: calc((100% - 18px) / 2) !important;
    max-width: calc((100% - 18px) / 2) !important;
  }
}

@media (max-width: 560px) {
  .service-page .service-gallery .service-gallery-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

/* Fix 1.0.15: ONLY service gallery arrows fully visible */
.service-page .service-gallery {
  position: relative !important;
  overflow: visible !important;
}
.service-page .service-gallery .gallery-grid.slider-track,
.service-page .service-gallery #service-gallery-slider {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
.service-page .service-gallery .service-gallery-row {
  position: absolute !important;
  left: -24px !important;
  right: -24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  margin: 0 !important;
  pointer-events: none !important;
}
.service-page .service-gallery .service-gallery-row > div:first-child {
  display: none !important;
}
.service-page .service-gallery .service-gallery-row .slider-controls {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
  pointer-events: none !important;
}
.service-page .service-gallery .service-gallery-row .slider-btn {
  pointer-events: auto !important;
  flex: 0 0 auto !important;
  transform: none !important;
}
@media (max-width: 640px) {
  .service-page .service-gallery .service-gallery-row {
    left: -10px !important;
    right: -10px !important;
  }
}


/* RestauroUA 1.0.3: hide slider arrows when there is nothing to slide */
.slider-controls.is-hidden,
.slider-controls[hidden],
.slider-controls:has(.slider-btn[hidden]) {
  display: none !important;
}
.slider-btn[hidden] {
  display: none !important;
}


/* RestauroUA 1.0.4: service template only - gallery tight to cards, seo text white card */
.service-page #content.section {
  padding-bottom: 48px !important;
}
.service-page .service-gallery {
  margin-top: 16px !important;
}
.service-page .content-grid + .service-gallery {
  margin-top: 16px !important;
}
/* RestauroUA 1.0.6: service SEO block back to production style */
.service-page .seo-content {
  background: var(--bg) !important;
}
.service-page .seo-content > .container {
  max-width: 1180px !important;
  margin: 0 auto !important;
}
.service-page .seo-content h2 {
  margin: 0 0 22px !important;
}
.service-page .seo-content h3 {
  margin: 28px 0 12px !important;
}
.service-page .seo-content p {
  margin: 0 0 18px !important;
}
.service-page .seo-content p:last-child {
  margin-bottom: 0 !important;
}

/* ==========================================================
   Merged from css/style.css (home-only pieces that the
   service stylesheet never had, even though .works-carousel
   markup is rendered on service pages too — this used to be
   unstyled there).
   ========================================================== */

.works .slider-section {
  overflow: visible;
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -8px 0 24px;
}

.works-filter {
  border: 1px solid rgba(31, 26, 21, .08);
  border-radius: 999px;
  padding: 12px 22px;
  background: rgba(255,255,255,.82);
  color: var(--dark);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(31,26,21,.08);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.works-filter:hover,
.works-filter.is-active {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(203, 165, 108, .28);
}

.works-track {
  gap: 26px;
}

.work-card {
  position: relative;
  flex: 0 0 min(560px, calc(100vw - 40px));
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(203, 165, 108, .55);
  box-shadow: 0 28px 70px rgba(42, 32, 22, .18);
}

.work-card[hidden] {
  display: none;
}

.work-card .before-after img {
  cursor: zoom-in;
}

.work-card:hover .before-after img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.before-after img {
  transition: transform .35s ease, filter .35s ease;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(31,26,21,.14);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.slider-dot.is-active {
  width: 28px;
  background: var(--brand);
}

.slider-dots[hidden] {
  display: none !important;
}

.slider-controls.is-hidden {
  display: none;
}

.slider-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.service-description {
  grid-column: 1 / -1;
  margin-top: 20px;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Paged "works" carousel (До/Після), used on home AND service pages */
.works-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border-radius: 24px;
  padding-bottom: 20px;
  margin-bottom: -8px;
}

.works-carousel .works-track {
  overflow: visible !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  scrollbar-width: none;
  transition: transform .35s ease;
  will-change: transform;
  width: max-content;
  padding: 0 0 18px;
  align-items: stretch;
}

.works-carousel .work-card {
  flex: 0 0 calc((min(1220px, 100vw - 40px) - 26px) / 2);
  max-width: calc((min(1220px, 100vw - 40px) - 26px) / 2);
  box-shadow: 0 18px 45px rgba(42, 32, 22, .12);
}

.works-carousel .work-card:hover {
  transform: none;
}

.works-dots {
  margin-top: 2px;
}

.reviews .slider-dots:empty,
.reviews .slider-dots[hidden] {
  display: none !important;
}

.reviews .slider-controls.is-hidden {
  display: none !important;
}

@media (max-width: 820px) {
  .works-carousel {
    padding-bottom: 16px;
  }

  .works-carousel .work-card {
    flex-basis: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .works-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .works-filters::-webkit-scrollbar {
    display: none;
  }

  .works-filter {
    flex: 0 0 auto;
    padding: 10px 16px;
  }
}

/* Compact header at narrow phone widths */
@media (max-width: 640px) {
  .header-inner {
    min-height: 60px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .logo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .site-logo,
  .site-logo-h {
    width: auto !important;
    height: 42px !important;
    max-width: 118px !important;
    padding: 5px 7px !important;
    border-radius: 12px !important;
  }

  .nav-toggle {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin-left: 0 !important;
    font-size: 17px !important;
  }

  .header-contacts {
    flex: 0 0 auto !important;
    gap: 4px !important;
    margin-left: 0 !important;
  }

  .contact-btn,
  .contact-icon {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    gap: 0 !important;
  }

  .contact-btn span {
    display: none !important;
  }

  .contact-btn svg,
  .contact-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  .nav {
    top: 60px !important;
  }
}

@media (max-width: 360px) {
  .site-logo,
  .site-logo-h {
    max-width: 104px !important;
    height: 40px !important;
    padding: 4px 6px !important;
  }

  .contact-btn,
  .contact-icon,
  .nav-toggle {
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  .contact-btn svg,
  .contact-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Mobile lightbox: swipe instead of arrow buttons */
@media (max-width: 820px) {
  .lightbox-image {
    touch-action: pan-y !important;
    cursor: grab !important;
  }

  .lightbox-image:active {
    cursor: grabbing !important;
  }

  .lightbox-nav {
    display: none !important;
  }
}

/* Home-only layout (reviews fill width, SEO card, FAQ full width) —
   service pages have their own .seo-content / .service-gallery instead. */
body:not(.service-page) .reviews .reviews-track.slider-track,
body:not(.service-page) #reviews .reviews-track.slider-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
}

body:not(.service-page) .reviews .review-card,
body:not(.service-page) #reviews .review-card {
  flex: 0 0 calc((100% - 48px) / 3) !important;
  width: calc((100% - 48px) / 3) !important;
  min-width: calc((100% - 48px) / 3) !important;
  max-width: calc((100% - 48px) / 3) !important;
  box-sizing: border-box !important;
}

@media (max-width: 980px) {
  body:not(.service-page) .reviews .review-card,
  body:not(.service-page) #reviews .review-card {
    flex-basis: calc((100% - 24px) / 2) !important;
    width: calc((100% - 24px) / 2) !important;
    min-width: calc((100% - 24px) / 2) !important;
    max-width: calc((100% - 24px) / 2) !important;
  }
}

@media (max-width: 620px) {
  body:not(.service-page) .reviews .review-card,
  body:not(.service-page) #reviews .review-card {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
}

body:not(.service-page) .seo-content > .container {
  border: 1px solid rgba(255,255,255,.75) !important;
  border-radius: var(--radius, 22px) !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: var(--shadow, 0 20px 55px rgba(42,32,22,.14)) !important;
  padding: 34px 42px !important;
  box-sizing: border-box !important;
}

body:not(.service-page) .seo-content h1,
body:not(.service-page) .seo-content h2,
body:not(.service-page) .seo-content h3 {
  margin-top: 0 !important;
}

body:not(.service-page) .seo-content p:last-child {
  margin-bottom: 0 !important;
}

body:not(.service-page) .faq .faq-list,
body:not(.service-page) #faq .faq-list {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 720px) {
  body:not(.service-page) .seo-content > .container {
    padding: 26px 22px !important;
  }
}

/* Honeypot field for the contact form — invisible to people, traps bots. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================
   Blog: post list (home.php / archive.php) + single post.
   ========================================================== */

.blog-list {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(42, 32, 22, .18);
}

.blog-card-link {
  display: block;
  color: inherit;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-card-body h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.blog-card-body p {
  margin: 0;
  color: var(--muted);
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31,26,21,.1);
}

.blog-pagination .page-numbers.current {
  background: var(--brand);
  color: #fff;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid rgba(31,26,21,.18);
  border-radius: 999px;
  color: var(--dark);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}

.btn-outline-dark:hover {
  background: rgba(31,26,21,.06);
  transform: translateY(-2px);
}

.single-post {
  padding: 70px 0;
}

/* .single-post-container — uses full .container width (1220px) */

.single-post-header {
  margin-bottom: 28px;
}

.single-post-header h1 {
  font-size: clamp(32px, 4.5vw, 52px);
}

.single-post-image {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.single-post-image img {
  width: 100%;
  display: block;
}

.single-post-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius, 22px);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow, 0 20px 55px rgba(42,32,22,.14));
  padding: 32px;
  margin-top: 32px;
}

.single-post-content h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 40px 0 18px;
}

.single-post-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  margin: 32px 0 14px;
}

.single-post-content p {
  margin: 0 0 20px;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--muted);
}

.single-post-content li {
  margin-bottom: 8px;
}

.single-post-content img {
  max-width: 100%;
  border-radius: 18px;
  margin: 12px 0;
}

.single-post-content a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.single-post-back {
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .single-post {
    padding: 48px 0;
  }
}

/* ============================================================
   Image loading shimmer
   ============================================================ */
img:not([src=""]):not(.no-shimmer):not(.site-logo-h):not([src*=".svg"]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: img-shimmer 1.4s ease infinite;
}
img.img-loaded, img[src=""], img.site-logo-h, img[src*=".svg"] {
    animation: none;
    background: transparent;
}
@keyframes img-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================
   Work card — blog link button
   ========================================================== */

.work-blog-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
}

/* ==========================================================
   Single post — before/after galleries
   ========================================================== */

.post-galleries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.post-gallery-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted, #888);
  margin: 0 0 12px;
}

.post-gallery-section {
  padding: 0 0 32px;
}

.post-slider-item {
  flex: 0 0 calc((100% - 54px) / 4) !important;
  width: calc((100% - 54px) / 4) !important;
  min-width: calc((100% - 54px) / 4) !important;
  max-width: calc((100% - 54px) / 4) !important;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow, 0 20px 55px rgba(42,32,22,.14));
}

.post-slider-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.post-gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(20,15,10,.75);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

@media (max-width: 820px) {
  .post-slider-item {
    flex: 0 0 calc((100% - 18px) / 2) !important;
    width: calc((100% - 18px) / 2) !important;
    min-width: calc((100% - 18px) / 2) !important;
    max-width: calc((100% - 18px) / 2) !important;
  }
  .post-slider-item img {
    height: 180px;
  }
}

.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.post-gallery-grid figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.post-gallery-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .post-galleries {
    grid-template-columns: 1fr;
  }
}
