/*
Theme Name: DM Brands Dubai
Theme URI: https://dmbrandsdubai.com
Author: DM Brands Dubai
Description: Bespoke premium theme for DM Brands Dubai — home maintenance and repair services. Self-contained SEO (JSON-LD, breadcrumbs, meta control), no SEO plugin required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: dmbrands
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Colour — matched to the reference brand system:
     purple primary + neon-yellow accent, navy as the dark ground. */
  --ink:          #102D50;  /* deep navy */
  --ink-soft:     #1C3A63;
  --slate:        #55657D;
  --slate-light:  #8593A6;
  --paper:        #FFFFFF;
  --sand:         #F5F3F8;  /* faint purple-cast neutral */
  --white:        #FFFFFF;

  /* Purple — primary brand colour */
  --petrol:       #77278B;
  --petrol-deep:  #4E006B;
  --petrol-tint:  #F3E9F6;

  /* Neon yellow — accent / CTA */
  --copper:       #F2EC2E;
  --copper-deep:  #DCD616;
  --copper-tint:  #FDFCE0;

  /* Ink used ON the neon accent — yellow needs dark text for contrast */
  --on-accent:    #1A0A20;

  --line:         rgba(16, 45, 80, .14);
  --line-soft:    rgba(16, 45, 80, .08);
  --shadow-sm:    0 1px 2px rgba(16,45,80,.07), 0 2px 8px rgba(16,45,80,.05);
  --shadow-md:    0 4px 12px rgba(16,45,80,.09), 0 12px 32px rgba(16,45,80,.07);
  --shadow-lg:    0 8px 24px rgba(16,45,80,.11), 0 24px 64px rgba(16,45,80,.09);

  /* Type — Outfit substitutes for the reference site's commercial Pauza */
  --font-display: 'Outfit', 'Segoe UI', Tahoma, sans-serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale */
  --t-xs:   0.78rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   clamp(1.06rem, 0.4vw + 0.98rem, 1.18rem);
  --t-xl:   clamp(1.25rem, 0.7vw + 1.1rem, 1.5rem);
  --t-2xl:  clamp(1.5rem, 1.2vw + 1.2rem, 2rem);
  --t-3xl:  clamp(1.9rem, 2.2vw + 1.35rem, 2.85rem);
  --t-4xl:  clamp(2.35rem, 3.6vw + 1.5rem, 4rem);
  --t-5xl:  clamp(2.75rem, 5vw + 1.5rem, 5rem);

  /* Space — 8pt base */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --measure: 68ch;
  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --header-h: 76px;
  --mobile-bar-h: 64px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
}
/* Reference design sets section headings in caps — h1/h2 follow, h3+ stay
   sentence case so long card titles don't turn into walls of capitals. */
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em; font-weight: 800; }
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-2xl); }
h4 { font-size: var(--t-xl); }
h5, h6 { font-size: var(--t-lg); }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--copper); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.35em; }
li { margin-bottom: var(--s-2); }
strong { font-weight: 600; color: var(--ink); }
blockquote {
  margin: var(--s-6) 0; padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 2px solid var(--copper);
  font-family: var(--font-display); font-size: var(--t-xl); line-height: 1.4; color: var(--ink);
}
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: var(--t-sm); }
th, td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); background: var(--sand); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--sand); padding: .15em .4em; border-radius: var(--radius); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; z-index: 999999;
  background: var(--ink); color: var(--white); padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; top: 0; color: var(--white); }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 780px; }

.section { padding-block: clamp(var(--s-8), 8vw, var(--s-10)); }
.section--tight { padding-block: clamp(var(--s-7), 5vw, var(--s-8)); }
.section--paper { background: var(--paper); }
.section--sand  { background: var(--sand); }
.section--white { background: var(--white); }
.section--ink   { background: var(--ink); color: rgba(255,255,255,.82); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--petrol { background: var(--petrol-deep); color: rgba(255,255,255,.84); }
.section--petrol h1, .section--petrol h2, .section--petrol h3 { color: var(--white); }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Section heading block */
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: var(--t-xs);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); margin-bottom: var(--s-3);
}
.section--ink .eyebrow, .section--petrol .eyebrow { color: #E8A87C; }
.section-head p { font-size: var(--t-lg); color: var(--slate); }
.section--ink .section-head p, .section--petrol .section-head p { color: rgba(255,255,255,.72); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-body); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .02em; line-height: 1;
  padding: var(--s-4) var(--s-6); min-height: 48px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--copper); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--copper-deep); color: var(--white); box-shadow: var(--shadow-md); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--petrol-deep); color: var(--white); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.btn--ghost-light { background: rgba(255,255,255,.10); color: var(--white); border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--whatsapp { background: #1FA855; color: var(--white); }
.btn--whatsapp:hover { background: #178644; color: var(--white); }

.btn--sm { padding: var(--s-3) var(--s-4); min-height: 40px; font-size: var(--t-xs); }
.btn--lg { padding: var(--s-5) var(--s-7); min-height: 56px; font-size: var(--t-base); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; font-size: var(--t-sm); text-decoration: none;
  color: var(--petrol); letter-spacing: .01em;
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--copper); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: var(--t-xs); letter-spacing: .01em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 40px; }
.topbar a { color: rgba(255,255,255,.86); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: var(--s-5); }
.topbar__item { display: inline-flex; align-items: center; gap: var(--s-2); }
.topbar__item svg { width: 14px; height: 14px; opacity: .7; }
@media (max-width: 900px) { .topbar { display: none; } }

/* Dark header. The brand mark carries neon-yellow elements that measure
   1.2:1 on a light ground — on deep purple they clear 11:1. */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(78, 0, 107, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 2px 16px rgba(16,45,80,.24); }

/* Nav and controls inverted for the dark ground */
.site-header .nav-primary > ul > li > a { color: rgba(255,255,255,.88); }
.site-header .nav-primary > ul > li > a:hover,
.site-header .nav-primary .current-menu-item > a { color: var(--copper); }
.site-header .rating-chip { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.86); }
.site-header .rating-chip strong { color: var(--white); }
.site-header .nav-toggle { border-color: rgba(255,255,255,.28); }
.site-header .nav-toggle span,
.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after { background: var(--white); }
.site-header .nav-toggle[aria-expanded="true"] span { background: transparent; }
.site-header .brand__name { color: var(--white); }
.site-header .brand__tag { color: rgba(255,255,255,.55); }
/* Submenus stay light for readability against long link lists */
.site-header .sub-menu a { color: var(--ink-soft); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: var(--header-h);
}

/* ---- Brand lockup (inline SVG) -------------------------------------------
   Horizontal, so header height is set by the nav rather than by the logo.
   Recolours per surface: white letterforms on dark grounds, purple on light.
   ------------------------------------------------------------------------ */
.brand-svg {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
/* Mark is SVG; the wordmark is real HTML text so it uses the loaded font and
   needs no glyph-width guesswork inside the viewBox. */
.brand-svg__mark { height: 44px; width: auto; display: block; flex-shrink: 0; }

.brand-svg__word {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1; white-space: nowrap;
}
.brand-svg__b { margin-left: .18em; }

/* Default = dark surfaces (header, footer) */
.brand-svg .logo-primary { fill: var(--white); }
.brand-svg .logo-accent  { fill: var(--copper); stroke: var(--copper); }
.brand-svg .logo-accent[fill="none"] { fill: none; }
.brand-svg__a { color: var(--white); }
.brand-svg__b { color: var(--copper); }

/* Light surfaces — neon measures ~1.2:1 on white, so lead with purple here */
.brand-svg.on-light .logo-primary { fill: var(--petrol-deep); }
.brand-svg.on-light .logo-accent  { fill: var(--copper-deep); stroke: var(--copper-deep); }
.brand-svg.on-light .brand-svg__a { color: var(--petrol-deep); }
.brand-svg.on-light .brand-svg__b { color: var(--copper-deep); }

.site-footer .brand-svg__mark { height: 48px; }
@media (max-width: 640px) {
  .brand-svg__mark { height: 34px; }
  .brand-svg__word { font-size: 1.05rem; }
}
@media (max-width: 380px) { .brand-svg__word { display: none; } }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--petrol-deep); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.03em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.brand__tag { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--slate-light); font-weight: 500; }

/* Primary nav */
.nav-primary { display: flex; align-items: center; gap: var(--s-1); }
.nav-primary ul { list-style: none; display: flex; align-items: center; gap: var(--s-1); margin: 0; padding: 0; }
.nav-primary li { margin: 0; position: relative; }
.nav-primary a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: var(--s-3) var(--s-3); font-size: var(--t-sm); font-weight: 500;
  color: var(--ink-soft); text-decoration: none; border-radius: var(--radius);
}
.nav-primary a:hover, .nav-primary .current-menu-item > a { color: var(--copper); }
.nav-primary .menu-item-has-children > a::after {
  content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
}
/* Dropdown */
.nav-primary .sub-menu {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 260px;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: var(--s-2); flex-direction: column; align-items: stretch; gap: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-primary .sub-menu a { padding: var(--s-3) var(--s-4); border-radius: var(--radius); width: 100%; }
.nav-primary .sub-menu a:hover { background: var(--sand); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

.rating-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: 100px;
  font-size: var(--t-xs); font-weight: 500; color: var(--slate); text-decoration: none; background: var(--white);
}
.rating-chip__stars { color: #E8A020; letter-spacing: -1px; }
.rating-chip strong { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header__actions .rating-chip { display: none; }
  .header__actions .btn--header { display: none; }
  .nav-primary {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: var(--s-5) var(--s-5) calc(var(--mobile-bar-h) + var(--s-8));
    overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease);
    border-top: 1px solid var(--line-soft);
  }
  .nav-primary.is-open { transform: translateX(0); }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-primary a { padding: var(--s-4) 0; font-size: var(--t-lg); border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-primary .menu-item-has-children > a::after { margin-left: auto; }
  .nav-primary .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; padding: 0 0 0 var(--s-4); min-width: 0;
    display: none; background: transparent;
  }
  .nav-primary li.is-expanded > .sub-menu { display: block; }
  .nav-primary .sub-menu a { font-size: var(--t-base); color: var(--slate); }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: rgba(255,255,255,.8); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(194,87,31,.30) 0%, transparent 55%),
    radial-gradient(90% 80% at 8% 92%, rgba(14,78,74,.55) 0%, transparent 60%),
    linear-gradient(155deg, #0E1A1F 0%, #12262B 55%, #0B171B 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(var(--s-8), 9vw, 140px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: center; }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.hero h1 { color: var(--white); font-size: var(--t-5xl); margin-bottom: var(--s-5); max-width: 15ch; }
.hero__lead { font-size: var(--t-lg); color: rgba(255,255,255,.76); max-width: 52ch; margin-bottom: var(--s-6); }
.hero .btn-row { margin-bottom: var(--s-7); }

.hero__badges { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.14); }
.hero__badge { display: flex; flex-direction: column; gap: 2px; }
.hero__badge b { font-family: var(--font-display); font-size: var(--t-2xl); color: var(--white); font-weight: 600; line-height: 1; }
.hero__badge span { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* Hero quote card */
.quote-card {
  background: var(--white); border-radius: var(--radius-lg); padding: var(--s-6);
  box-shadow: var(--shadow-lg); color: var(--ink-soft);
}
.quote-card h2 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.quote-card__sub { font-size: var(--t-sm); color: var(--slate); margin-bottom: var(--s-5); }

/* ==========================================================================
   7. FORMS
   ========================================================================== */
.field { margin-bottom: var(--s-4); }
.field label {
  display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate); margin-bottom: var(--s-2);
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--t-base); color: var(--ink);
  padding: var(--s-3) var(--s-4); min-height: 48px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; padding-top: var(--s-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-tint);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-light); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--t-xs); color: var(--slate-light); margin-top: var(--s-3); margin-bottom: 0; }
.form-status { margin-top: var(--s-3); font-size: var(--t-sm); padding: var(--s-3) var(--s-4); border-radius: var(--radius-md); display: none; }
.form-status.is-ok   { display: block; background: var(--petrol-tint); color: var(--petrol-deep); }
.form-status.is-err  { display: block; background: var(--copper-tint); color: var(--copper-deep); }

/* ==========================================================================
   8. CARDS
   ========================================================================== */
.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: var(--s-6); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }

.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--petrol-tint); color: var(--petrol-deep);
  display: grid; place-items: center; margin-bottom: var(--s-5);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.card p { font-size: var(--t-sm); color: var(--slate); margin-bottom: var(--s-4); }
.card .link-arrow { margin-top: auto; }

/* Service card with stretched link */
.service-card { position: relative; }
.service-card__link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg); }

/* Numbered process steps */
.step { position: relative; padding-left: 0; }
.step__num {
  font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 600;
  color: var(--copper); line-height: 1; display: block; margin-bottom: var(--s-3);
  opacity: .9;
}
.step h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.step p { font-size: var(--t-sm); color: var(--slate); margin-bottom: 0; }

/* Trust strip */
.trust-strip { border-block: 1px solid var(--line-soft); background: var(--white); }
.trust-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
  padding-block: var(--s-6);
}
@media (max-width: 860px) { .trust-strip__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); } }
.trust-item { display: flex; align-items: flex-start; gap: var(--s-3); }
.trust-item svg { width: 22px; height: 22px; color: var(--copper); flex-shrink: 0; margin-top: 2px; }
.trust-item b { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); line-height: 1.3; }
.trust-item span { font-size: var(--t-xs); color: var(--slate-light); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: var(--s-3);
  font-size: var(--t-base); color: var(--ink-soft);
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 16px; height: 9px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}
.section--ink .checklist li, .section--petrol .checklist li { color: rgba(255,255,255,.82); }

/* ==========================================================================
   9. TESTIMONIALS
   ========================================================================== */
.testimonial {
  background: var(--white); border-radius: var(--radius-lg); padding: var(--s-6);
  border: 1px solid var(--line-soft); display: flex; flex-direction: column; height: 100%;
}
.testimonial__stars { color: #E8A020; font-size: var(--t-sm); letter-spacing: 1px; margin-bottom: var(--s-4); }
.testimonial__quote {
  font-family: var(--font-display); font-size: var(--t-lg); line-height: 1.5;
  color: var(--ink); margin-bottom: var(--s-5); flex-grow: 1;
}
.testimonial__meta { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line-soft); }
.testimonial__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--petrol-tint); color: var(--petrol-deep);
  display: grid; place-items: center; font-weight: 600; font-size: var(--t-sm); flex-shrink: 0;
}
.testimonial__name { font-weight: 600; font-size: var(--t-sm); color: var(--ink); line-height: 1.3; }
.testimonial__loc { font-size: var(--t-xs); color: var(--slate-light); }

/* ==========================================================================
   10. FAQ ACCORDION
   ========================================================================== */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4);
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: var(--s-5) 0; font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600;
  color: var(--ink); line-height: 1.35;
}
.faq__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--copper); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after  { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: var(--s-5); color: var(--slate); margin-bottom: 0; max-width: 70ch; }

/* ==========================================================================
   11. BREADCRUMBS
   ========================================================================== */
.breadcrumbs { padding-block: var(--s-4); font-size: var(--t-xs); color: var(--slate-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: var(--s-2); }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--line); }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--copper); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }
.hero .breadcrumbs, .page-hero .breadcrumbs { color: rgba(255,255,255,.5); }
.hero .breadcrumbs a, .page-hero .breadcrumbs a { color: rgba(255,255,255,.72); }
.hero .breadcrumbs a:hover, .page-hero .breadcrumbs a:hover { color: var(--white); }
.hero .breadcrumbs [aria-current="page"], .page-hero .breadcrumbs [aria-current="page"] { color: var(--white); }
.hero .breadcrumbs li:not(:last-child)::after, .page-hero .breadcrumbs li:not(:last-child)::after { color: rgba(255,255,255,.3); }

/* ==========================================================================
   12. PAGE HERO (interior pages)
   ========================================================================== */
.page-hero { position: relative; background: var(--ink); color: rgba(255,255,255,.78); overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(100% 100% at 88% 0%, rgba(194,87,31,.24) 0%, transparent 58%),
    linear-gradient(150deg, #0E1A1F 0%, #12262B 60%, #0B171B 100%);
}
.page-hero__inner { position: relative; z-index: 1; padding-block: var(--s-7) clamp(var(--s-8), 6vw, var(--s-9)); }
.page-hero h1 { color: var(--white); max-width: 20ch; margin-bottom: var(--s-4); }
.page-hero__lead { font-size: var(--t-lg); color: rgba(255,255,255,.74); max-width: 58ch; margin-bottom: var(--s-6); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s-8); align-items: start; }
@media (max-width: 1000px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   13. CONTENT / ARTICLE
   ========================================================================== */
.prose { font-size: var(--t-lg); line-height: 1.72; color: var(--ink-soft); }
.prose > * { max-width: var(--measure); }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--s-8); margin-bottom: var(--s-4); }
.prose h3 { font-size: var(--t-xl); margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: var(--s-5); }
.prose li { margin-bottom: var(--s-3); }
.prose img, .prose figure, .prose .wp-block-table { max-width: 100%; }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { font-size: var(--t-sm); color: var(--slate-light); margin-top: var(--s-3); }
.prose a { color: var(--petrol); font-weight: 500; }

/* Callout */
.callout {
  background: var(--petrol-tint); border-left: 3px solid var(--petrol);
  padding: var(--s-5); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: var(--s-6) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--petrol-deep); }

/* Table of contents */
.toc {
  background: var(--sand); border-radius: var(--radius-md); padding: var(--s-5);
  margin-bottom: var(--s-7); max-width: var(--measure);
}
.toc h2 { font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-body); color: var(--slate); margin-bottom: var(--s-3); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: var(--s-2); font-size: var(--t-sm); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--copper); text-decoration: underline; }

/* Article layout */
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--s-8); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: flex; flex-direction: column; gap: var(--s-5); }
@media (max-width: 1000px) { .sidebar { position: static; } }
.widget { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: var(--s-5); }
.widget h3 { font-size: var(--t-base); margin-bottom: var(--s-4); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: var(--s-3); font-size: var(--t-sm); }
.widget a { color: var(--ink-soft); text-decoration: none; }
.widget a:hover { color: var(--copper); }

.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-size: var(--t-sm); color: var(--slate-light); margin-bottom: var(--s-6); }
.article-meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Post cards */
.post-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--petrol-tint), var(--sand)); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex-grow: 1; }
.post-card__cat { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--copper); font-weight: 600; margin-bottom: var(--s-2); }
.post-card h3 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--copper); }
.post-card p { font-size: var(--t-sm); color: var(--slate); margin-bottom: var(--s-4); }
.post-card__date { margin-top: auto; font-size: var(--t-xs); color: var(--slate-light); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-8); }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none;
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-soft);
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ==========================================================================
   14. CTA BAND
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: var(--petrol-deep); }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 85% 15%, rgba(194,87,31,.34) 0%, transparent 60%);
}
.cta-band__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .7fr;
  gap: var(--s-7); align-items: center; padding-block: clamp(var(--s-8), 6vw, var(--s-9));
}
@media (max-width: 900px) { .cta-band__inner { grid-template-columns: 1fr; gap: var(--s-6); } }
.cta-band h2 { color: var(--white); margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255,255,255,.76); font-size: var(--t-lg); margin-bottom: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--s-3); }
@media (max-width: 900px) { .cta-band__actions { flex-direction: row; flex-wrap: wrap; } }

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); font-size: var(--t-sm); }
.site-footer__top { padding-block: var(--s-8) var(--s-7); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s-6) var(--s-5); }
@media (max-width: 1080px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px)  { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-4); } }
@media (max-width: 460px)  { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer h3 {
  font-family: var(--font-body); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-3); }
.site-footer a { color: rgba(255,255,255,.62); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: rgba(255,255,255,.6); }

.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__tag { color: rgba(255,255,255,.45); }
.footer-brand p { font-size: var(--t-sm); margin: var(--s-4) 0 var(--s-5); max-width: 34ch; }

.footer-contact li { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; opacity: .5; flex-shrink: 0; margin-top: 4px; }

.social-row { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.social-row a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.social-row svg { width: 17px; height: 17px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--s-5);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-size: var(--t-xs); color: rgba(255,255,255,.45);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.site-footer__bottom li { margin: 0; }

/* Footer trust badges */
.footer-badges {
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  padding-block: var(--s-5); border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--t-xs); color: rgba(255,255,255,.55);
}
.footer-badges span { display: inline-flex; align-items: center; gap: var(--s-2); }
.footer-badges svg { width: 15px; height: 15px; color: var(--copper); }

/* ==========================================================================
   16. MOBILE ACTION BAR
   ========================================================================== */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 16px rgba(14,26,31,.10);
  /* Notch-safe: 64px of touch target ABOVE the home indicator */
  height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bar__inner { display: grid; grid-template-columns: repeat(3, 1fr); height: var(--mobile-bar-h); }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; border-right: 1px solid var(--line-soft);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar a.is-accent { background: var(--copper); color: var(--white); }
.mobile-bar a.is-whatsapp { color: #178644; }

@media (max-width: 1080px) {
  .mobile-bar { display: block; }
  body { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   17. PLACEHOLDER MARKERS (removed once real data is entered)
   ========================================================================== */
.is-placeholder {
  background: repeating-linear-gradient(45deg, #FFF4D6, #FFF4D6 8px, #FFE9B0 8px, #FFE9B0 16px);
  color: #7A5200 !important; border-radius: 3px; padding: 0 .3em;
  font-style: normal; font-weight: 600;
}

/* ==========================================================================
   18. UTILITIES
   ========================================================================== */
.u-center { text-align: center; }
.u-mb-0 { margin-bottom: 0; }
.u-mt-5 { margin-top: var(--s-5); }
.u-mt-6 { margin-top: var(--s-6); }
.u-muted { color: var(--slate); }
.u-small { font-size: var(--t-sm); }
.u-flow > * + * { margin-top: var(--s-4); }
.u-hide-mobile { display: initial; }
@media (max-width: 640px) { .u-hide-mobile { display: none; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* WordPress core alignment classes */
.alignleft  { float: left;  margin: 0 var(--s-5) var(--s-4) 0; }
.alignright { float: right; margin: 0 0 var(--s-4) var(--s-5); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--t-sm); color: var(--slate-light); }
.sticky, .gallery-caption, .bypostauthor { display: block; }
