/* ============================================================
   SONJA DE GRAAF — UITVAARTZORG
   Theme stylesheet v1.0.0
   Google Fonts are loaded via wp_enqueue_style() in functions.php
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-merlot:       #741D29;
  --color-merlot-dark:  #5c1620;
  --color-merlot-light: rgba(116, 29, 41, 0.07);
  --color-cta:          #EB785D;
  --color-cta-hover:    #d4614f;
  --color-header-bg:    #F3E0D1;
  --color-light-bg:     #FAF3EE;
  --color-white:        #ffffff;
  --color-text:         #2c2420;
  --color-text-medium:  #4a3830;
  --color-text-light:   #7a6560;
  --color-border:       #e8d5c4;
  --color-border-light: #f0e4d8;
  --color-shadow:       rgba(116, 29, 41, 0.06);
  --color-shadow-md:    rgba(116, 29, 41, 0.13);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, -apple-system, sans-serif;

  --max-width:      1200px;
  --content-width:  800px;
  --radius:         4px;
  --radius-lg:      10px;
  --header-height:  104px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 17px; }
body  {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-light-bg);
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a     { color: var(--color-merlot); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-merlot-dark); }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-merlot);
  margin-bottom: 0.75em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p  { margin-bottom: 1.25em; color: var(--color-text-medium); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.125rem; font-weight: 300; line-height: 1.85; color: var(--color-text-medium); }

strong { font-weight: 600; color: var(--color-text); }

blockquote {
  border-left: 3px solid var(--color-cta);
  padding: 1rem 1.75rem;
  margin: 2rem 0;
  background: var(--color-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--color-merlot); margin: 0; }

/* Prose lists */
.prose ul { margin: 1em 0 1.25em; padding-left: 1.5rem; }
.prose ul li { padding-left: 1.4rem; position: relative; margin-bottom: 0.45em; color: var(--color-text-medium); }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-cta); }
/* Steps inside prose: suppress the prose bullet */
.prose .steps { padding-left: 0; }
.prose .steps li { padding-left: 0; }
.prose .steps li::before { display: none; }

.prose ol { counter-reset: pc; margin: 1em 0 1.25em; }
.prose ol li { padding-left: 2rem; position: relative; margin-bottom: 0.75em; counter-increment: pc; color: var(--color-text-medium); }
.prose ol li::before { content: counter(pc); position: absolute; left: 0; top: 0.12em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--color-merlot); color: #fff; font-size: 0.7rem; font-weight: 700; font-family: var(--font-body); display: flex; align-items: center; justify-content: center; }

/* WordPress editor content alignment classes */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto 1rem; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.78rem; color: var(--color-text-light); font-style: italic; margin-top: 0.4rem; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container       { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container--slim { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

#page-wrapper { padding: 3.5rem 0 4rem; background: linear-gradient(to bottom, var(--color-header-bg) 0%, var(--color-light-bg) 100%); }
.page-home #page-wrapper { background: none; }

/* ============================================================
   5. HEADER & TOP BAR
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
#site-header.is-scrolled {
  box-shadow: 0 2px 18px var(--color-shadow);
}

.header-top {
  background: var(--color-merlot);
  padding: 0.45rem 0;
  max-height: 4rem;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
#site-header.is-scrolled .header-top {
  max-height: 0;
  padding: 0;
}
.header-top__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
}
.header-top__availability--short { display: none; }
.header-top a        { color: var(--color-cta); font-weight: 600; }
.header-top a:hover  { color: #fff; }

.header-main         { background: var(--color-header-bg); border-bottom: 1px solid var(--color-border); position: relative; }
.header-main__inner  { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* Logo */
.site-logo           { display: inline-flex; flex-direction: row; align-items: center; gap: 0.6rem; text-decoration: none; }
.custom-logo-link    { display: flex; align-items: center; justify-content: flex-start; }
.custom-logo-link img.custom-logo { height: 2.8rem; width: auto; display: block; }
.logo-butterfly      { width: 2rem; height: 2rem; fill: var(--color-merlot); flex-shrink: 0; }
.logo-text-wrap      { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.logo-text           { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: var(--color-merlot); line-height: 1; }
.logo-tagline        { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-light); line-height: 1; }

/* ============================================================
   6. NAVIGATION — DESKTOP
   ============================================================ */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-medium);
  border-radius: var(--radius);
  transition: all 0.18s;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover,
.nav-item.is-active > .nav-link {
  color: var(--color-merlot);
  background: var(--color-merlot-light);
}

/* WordPress active menu item classes — map to is-active styles */
.current-menu-item > .nav-link,
.current-menu-ancestor > .nav-link,
.current-menu-parent > .nav-link {
  color: var(--color-merlot);
  background: var(--color-merlot-light);
}

/* CTA link (Contact) */
.nav-link--cta {
  background: var(--color-cta);
  color: #fff !important;
  margin-left: 0.5rem;
  border-radius: var(--radius);
}
.nav-link--cta:hover { background: var(--color-cta-hover) !important; color: #fff !important; }

/* Dropdown arrow */
.nav-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--color-text-light);
  line-height: 1;
}
.nav-item.has-dropdown:hover > .nav-link .nav-arrow { transform: rotate(90deg); }

/* Dropdown panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  min-width: 230px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px var(--color-shadow-md);
  border: 1px solid var(--color-border-light);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 200;
}

.nav-item.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

/* Dropdown link */
.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  color: var(--color-text-medium);
  border-radius: var(--radius);
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-link:hover,
.dropdown-link.is-active { color: var(--color-merlot); background: var(--color-light-bg); }

/* Dropdown divider */
.dropdown-divider { height: 1px; background: var(--color-border-light); margin: 0.35rem 0.9rem; }

/* ============================================================
   7. NAVIGATION — MOBILE
   ============================================================ */
.mobile-actions {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-merlot-light);
  color: var(--color-merlot);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-call-btn:hover { background: var(--color-merlot); color: #fff; }
.mobile-call-btn svg   { width: 1.1rem; height: 1.1rem; }
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-merlot);
  border-radius: 2px;
  transition: all 0.28s;
}
.mobile-menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   8. HERO — HOME
   ============================================================ */
.hero-home {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-home__overlay { display: none; }

.hero-home__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-home__content {
  max-width: 700px;
  background: rgba(250, 243, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 3.25rem 2.5rem;
  box-shadow: 0 8px 40px rgba(30,10,15,0.18);
}

.hero-home__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--color-cta);
  margin-bottom: 0.75rem;
}

.hero-home__title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--color-merlot);
  margin-bottom: 1rem;
}

.hero-home__lead {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--color-text-medium);
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.hero-home__actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* ============================================================
   9. PAGE HERO BANNER (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(to bottom, var(--color-header-bg) 0%, var(--color-light-bg) 100%);
  margin-bottom: 1.5rem;
}
.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 200px;
}
.page-hero__content { padding: 1.25rem 0; }

.page-hero__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cta);
  margin-bottom: 0.6rem;
}
.page-hero__title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-merlot); margin-bottom: 0.6rem; line-height: 1.2; }
.page-hero__lead  { font-size: 0.975rem; color: var(--color-text-medium); line-height: 1.75; margin: 0; }

.page-hero__image-wrap { padding: 0.75rem 0; }
.page-hero__image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--color-shadow-md);
  aspect-ratio: 4/3;
}
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Featured-image + text wrap layout */
.page-intro__image {
  float: right;
  width: 46%;
  margin: 0.25rem 0 1.5rem 2.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--color-shadow-md);
}
.page-intro__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.page-intro__title { margin-bottom: 0.5em; }
.page-intro__lead { margin-bottom: 1.25rem; }
.page-intro__lead p { font-size: 0.975rem; color: var(--color-text-medium); line-height: 1.75; margin: 0 0 1rem; }
.page-intro__lead p:last-child { margin-bottom: 0; }
.page-intro::after { content: ''; display: table; clear: both; }

/* Simple text-only page header */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}
.page-header__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cta);
  margin-bottom: 0.4rem;
}

/* ============================================================
   10. CONTENT COMPONENTS
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a         { color: var(--color-text-light); }
.breadcrumb a:hover   { color: var(--color-merlot); }
.breadcrumb-sep       { color: var(--color-border); }

/* Info / white card */
.info-box {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 1.5rem;
  clear: both;
}
.info-box__title { font-size: 0.975rem; font-weight: 600; color: var(--color-merlot); font-family: var(--font-body); margin-bottom: 0.4rem; }

/* Callout */
.callout {
  background: linear-gradient(135deg, var(--color-header-bg), rgba(243,224,209,0.4));
  border-left: 3px solid var(--color-merlot);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}
.callout p:last-child { margin: 0; }

/* CTA callout — dark merlot panel */
.callout--cta {
  background: var(--color-merlot);
  border-left: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
}
.callout--cta h3 { color: #fff; margin-bottom: 0.6rem; }
.callout--cta p  { color: rgba(255,255,255,0.75); }
.callout--cta a:not(.btn) { color: var(--color-cta); }
.callout--cta a:not(.btn) strong { color: inherit; }
.callout--cta .btn-primary  { background: var(--color-cta); color: #fff; border-color: var(--color-cta); }
.callout--cta .btn-primary:hover  { background: var(--color-cta-hover); border-color: var(--color-cta-hover); box-shadow: none; }
.callout--cta .btn-outline  { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.callout--cta .btn-outline:hover  { background: rgba(255,255,255,0.12); color: #fff; }
.callout--cta .btn-cta      { background: var(--color-cta); color: #fff; border-color: var(--color-cta); }
.callout--cta .btn-cta:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); }

/* Feature grid (3 col) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover { box-shadow: 0 6px 28px var(--color-shadow-md); transform: translateY(-2px); }
.feature-card__icon { width: 44px; height: 44px; background: var(--color-merlot-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; flex-shrink: 0; }
.feature-card__title { font-family: var(--font-heading); font-size: 1.05rem; color: var(--color-merlot); margin-bottom: 0.4rem; }
.feature-card__text  { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }

/* Nav cards (hub pages — 2 col) */
.nav-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 2rem 0; }
.nav-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.nav-card:hover { border-color: var(--color-merlot); box-shadow: 0 6px 28px var(--color-shadow-md); transform: translateY(-2px); color: inherit; }
.nav-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-merlot);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-card__title::after { content: '→'; font-family: var(--font-body); font-size: 1rem; transition: transform 0.2s; }
.nav-card:hover .nav-card__title::after { transform: translateX(4px); }
.nav-card__text { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }
.nav-card__icon { width: 2.25rem; height: 2.25rem; color: var(--color-merlot); margin-bottom: 0.75rem; }
.nav-card__icon svg { width: 100%; height: 100%; }

/* Steps */
.steps { list-style: none; margin: 1.5rem 0; }
.steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; margin-bottom: 1.5rem; align-items: start; }
.step-number { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-merlot); color: #fff; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h4 { font-size: 0.975rem; color: var(--color-merlot); margin-bottom: 0.2rem; font-family: var(--font-body); font-weight: 600; }
.step-content p  { font-size: 0.875rem; margin: 0; }

/* Cost factors */
.cost-factors { list-style: none; margin: 1.5rem 0; padding-left: 0; }
.cost-factor  { display: flex; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border-light); }
.prose .cost-factors li { padding-left: 0; margin-bottom: 0; }
.prose .cost-factors li::before { display: none; }
.cost-factor:last-child { border: none; }
.cost-factor__label { font-weight: 600; color: var(--color-merlot); font-size: 0.875rem; min-width: 160px; flex-shrink: 0; }
.cost-factor__desc  { font-size: 0.875rem; color: var(--color-text-medium); line-height: 1.6; }

/* Trust strip */
.hero-trust { position: relative; z-index: 2; width: 100%; background: var(--color-light-bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.trust-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; max-width: var(--max-width); margin: 0 auto; padding: 1.25rem 1.5rem; }
.trust-item  { display: flex; align-items: center; gap: 0.5rem; font-size: 0.83rem; color: var(--color-text-light); font-weight: 500; }

/* Figure / image */
.figure { margin: 2rem 0; }
.figure img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: 0 4px 24px var(--color-shadow); }
.figure--portrait img { aspect-ratio: 3/4; }
.figure--landscape img { aspect-ratio: 16/9; }
.figure__caption { font-size: 0.78rem; color: var(--color-text-light); margin-top: 0.4rem; font-style: italic; }

/* About layout (wie-is) */
.about-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
.about-layout__image { position: sticky; top: 8rem; }
.about-layout__image img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 3/4; box-shadow: 0 8px 40px var(--color-shadow-md); }

/* Intro split (homepage) */
.intro-layout { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; }
.intro-layout__image img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4/3; box-shadow: 0 8px 40px var(--color-shadow-md); }

.intro-layout__steps {
  background: #F3E0D1;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 24px rgba(116, 29, 41, 0.08), 0 1px 4px rgba(116, 29, 41, 0.06);
}

.intro-steps__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-merlot);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.intro-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--color-merlot);
}
.intro-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 2px solid var(--color-merlot);
}
.intro-step__num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-merlot);
  min-width: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.intro-step__text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.55;
}
.intro-step__phone {
  display: block;
  font-weight: 600;
  color: var(--color-merlot);
  text-decoration: none;
}
.intro-step__phone:hover { text-decoration: underline; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; margin: 1.5rem 0; }
.photo-grid img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 1; box-shadow: 0 2px 12px var(--color-shadow); }

/* Section divider */
hr.divider { border: none; border-top: 1px solid var(--color-border-light); margin: 2.5rem 0; }
.content-section { margin-bottom: 3rem; }
.content-section:last-child { margin-bottom: 0; }

/* ============================================================
   11. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--color-merlot); color: #fff; }
.btn-primary:hover { background: var(--color-merlot-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(116,29,41,0.25); }
.btn-cta     { background: var(--color-cta); color: #fff; }
.btn-cta:hover { background: var(--color-cta-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(235,120,93,0.35); }
.btn-outline { border-color: var(--color-merlot); color: var(--color-merlot); background: transparent; }
.btn-outline:hover { background: var(--color-merlot); color: #fff; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.825rem; }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 0.95rem; }
.mt-sm  { margin-top: 1rem; display: inline-block; }

/* ============================================================
   12. FORMS
   ============================================================ */
.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 2px 18px var(--color-shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-text-medium); margin-bottom: 0.45rem; }
.form-label .req { color: var(--color-cta); }
.form-input,
.form-textarea,
.form-select {
  width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem;
  color: var(--color-text); background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s; line-height: 1.5; -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus { outline: none; border-color: var(--color-merlot); box-shadow: 0 0 0 3px rgba(116,29,41,0.1); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-light); opacity: 0.7; }
.form-textarea { min-height: 160px; resize: vertical; }
.form-note  { font-size: 0.78rem; color: var(--color-text-light); margin-top: 0.3rem; }
.form-error { font-size: 0.78rem; color: #c0392b; margin-top: 0.3rem; display: none; }
.form-error.visible { display: block; }
.form-input.has-error, .form-textarea.has-error { border-color: #c0392b; }
.form-success { display: none; background: rgba(116,29,41,0.05); border: 1px solid var(--color-merlot); border-radius: var(--radius); padding: 1.25rem 1.5rem; color: var(--color-merlot); font-weight: 500; margin-bottom: 1.5rem; }
.form-success.visible { display: block; }

/* ============================================================
   13. BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }

.blog-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px var(--color-shadow); display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: 0 6px 28px var(--color-shadow-md); transform: translateY(-3px); }
.blog-card__image { aspect-ratio: 16/9; overflow: hidden; display: block; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__title-link { text-decoration: none; }
.blog-card__title-link:hover .blog-card__title { color: var(--color-cta); }
.blog-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { font-size: 0.75rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 0.6rem; }
.blog-card__title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; color: var(--color-merlot); line-height: 1.3; margin-bottom: 0.75rem; }
.blog-card__excerpt { font-size: 0.9rem; color: var(--color-text-medium); line-height: 1.7; margin-bottom: 1.25rem; flex: 1; }
.blog-card__link { font-size: 0.85rem; font-weight: 600; color: var(--color-merlot); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.blog-card__link:hover { color: var(--color-cta); }
.blog-card__link::after { content: '›'; font-size: 1rem; }

/* Blog detail */
.blog-article { max-width: 740px; }
.blog-article__meta { font-size: 0.8rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 1.5rem; }
.blog-article__cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 2.5rem; box-shadow: 0 4px 24px var(--color-shadow-md); }
.blog-back { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--color-text-light); margin-bottom: 2rem; }
.blog-back:hover { color: var(--color-merlot); }
.blog-back::before { content: '‹'; font-size: 1rem; }

/* WordPress pagination */
.nav-links { display: flex; gap: 0.5rem; margin-top: 3rem; }
.page-numbers { padding: 0.5rem 0.875rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; color: var(--color-text-medium); background: var(--color-white); border: 1px solid var(--color-border-light); }
.page-numbers.current { background: var(--color-merlot); color: #fff; border-color: var(--color-merlot); }
.page-numbers:hover:not(.current) { color: var(--color-merlot); border-color: var(--color-merlot); }

/* ============================================================
   14. FOOTER
   ============================================================ */
#site-footer { background: var(--color-merlot); margin-top: 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 4rem 1.5rem 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo-text { color: #fff; font-size: 1.2rem; }
.footer-brand .logo-butterfly { fill: #fff; width: 1.8rem; height: 1.8rem; }
.footer-logo-img { height: 2.8rem; width: auto; display: block; }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.7; }
.footer-heading { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.38); margin-bottom: 0.875rem; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a  { color: rgba(255,255,255,0.68); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { font-size: 0.85rem; color: rgba(255,255,255,0.68); margin-bottom: 0.35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); max-width: var(--max-width); margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.38); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.38); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; gap: 0.6rem; align-items: center; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Top loading bar ────────────────────────────────────────────── */
#page-loader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 3px;
  background: var(--color-cta);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.25s ease, opacity 0.3s ease;
  opacity: 0;
}
#page-loader.is-loading {
  opacity: 1;
  animation: loader-progress 1.8s ease-out forwards;
}
#page-loader.is-done {
  transform: scaleX(1);
  opacity: 0;
  transition: transform 0.15s ease, opacity 0.4s ease 0.15s;
}
@keyframes loader-progress {
  0%   { transform: scaleX(0); }
  60%  { transform: scaleX(0.75); }
  100% { transform: scaleX(0.92); }
}

/* ── Butterfly divider ──────────────────────────────────────────── */
.footer-butterfly {
  display: flex; justify-content: center;
  padding: 0.25rem 0 0;
}
.footer-butterfly svg { fill: var(--color-merlot); opacity: 0.15; width: 40px; height: 40px; }

/* ── Footer social icons ────────────────────────────────────────── */
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.footer-social__link {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.68);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.footer-social__link:hover { background: rgba(255,255,255,0.2); color: #fff; }
.footer-social__link svg { width: 1rem; height: 1rem; fill: currentColor; }

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mobile-actions { display: flex; }

  #primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 40px var(--color-shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    z-index: 200;
    max-height: 80vh;
    overflow-y: auto;
  }
  #primary-nav.is-open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item  { border-bottom: 1px solid var(--color-border-light); }
  .nav-item:last-child { border: none; }

  .nav-link  { padding: 0.75rem 0.5rem; justify-content: space-between; border-radius: 0; }
  .nav-link--cta { margin: 0.75rem 0 0; border-radius: var(--radius); justify-content: center; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--color-light-bg);
    padding: 0 0 0 1rem;
    display: none;
  }
  .nav-item.has-dropdown.is-open > .dropdown-menu { display: block; }

  .dropdown-link { border-radius: 0; }
  .dropdown-divider { display: none; }

  .hero-home {
    min-height: auto;
    display: block;
  }
  .hero-home__bg {
    position: static;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center center;
  }
  .hero-home__inner {
    position: static;
    padding: 1.5rem 1.25rem 0;
  }
  .hero-home__content {
    max-width: 100%;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-light-bg);
    box-shadow: none;
  }

  .page-hero__inner { grid-template-columns: 1fr; gap: 0; min-height: auto; }
  .page-hero__content { padding: 2rem 0 1rem; }
  .page-hero__image-wrap { padding: 0 0 2rem; order: -1; }
  .page-hero__image { aspect-ratio: 16/9; }

  .page-intro__image { float: none; width: 100%; margin: 0 0 1.5rem 0; }

  .feature-grid { grid-template-columns: 1fr; }
  .nav-cards    { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-layout__image { position: static; }
  .intro-layout { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .cost-factor  { flex-direction: column; gap: 0.2rem; }

  .footer-inner  { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-top__availability { display: none; }
  .header-top__availability--short { display: inline; }
  .header-main__inner { height: 60px; }
  .logo-text  { font-size: 1.1rem; }
  .hero-home__actions { flex-direction: column; }
  .contact-form-wrap  { padding: 1.5rem; }
  .btn-lg { padding: 0.8rem 1.75rem; }
  .page-header, .breadcrumb { padding-left: 1rem; padding-right: 1rem; }
  .trust-strip { display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 0; }
  .trust-item  { font-size: 0.8rem; }
}
