/*!
Theme Name: Best Furnitures Buyer
Theme URI: https://bestfurnituresbuyer.com/
Author: Best Furnitures Buyer in UAE
Author URI: https://bestfurnituresbuyer.com/
Description: A custom glassmorphism theme for Best Furnitures Buyer in UAE — a business that buys used furniture from customers across all seven emirates. Mobile-first, accessible, and SEO-ready with a built-in quote form, WhatsApp call-to-actions, and JSON-LD structured data.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: best-furnitures-buyer
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   TABLE OF CONTENTS
   1.  Design tokens (variables)
   2.  Base & reset
   3.  Accessibility (skip link, focus, reduced motion)
   4.  Typography
   5.  Layout utilities
   6.  Glass surfaces
   7.  Buttons
   8.  Header & primary navigation
   9.  Mobile menu
   10. Mobile action bar
   11. Hero
   12. Sections, steps & cards
   13. Category & emirate grids
   14. Forms
   15. FAQ accordion
   16. Footer
   17. 404 & misc pages
   18. Responsive tweaks
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #0b1b33;
  --navy-2: #12294d;
  --navy-3: #1b3a66;
  --charcoal: #23272f;
  --ink: #1f2733;
  --emerald: #0e9f6e;
  --emerald-dark: #0b7a55;
  --emerald-btn: #0a6e4c;
  --emerald-soft: #e2f4ec;
  --wa: #178a4c;
  --wa-dark: #116b3b;
  --cream: #f7f3ec;
  --cream-2: #efe8da;
  --paper: #fffdf9;
  --white: #ffffff;
  --muted: #5d6675;
  --muted-on-dark: #bcc7da;
  --line: rgba(15, 30, 55, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-brd: rgba(255, 255, 255, 0.6);
  --glass-bg-dark: rgba(11, 27, 51, 0.6);
  --glass-brd-dark: rgba(255, 255, 255, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -18px rgba(11, 27, 51, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(11, 27, 51, 0.28);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --mab-h: 68px;
}

/* ---------- 2. Base & reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a { color: var(--emerald-dark); }
a:hover { color: var(--emerald-btn); }

ul, ol { padding-left: 1.25rem; }

/* WordPress image alignment helpers */
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.wp-caption { max-width: 100%; }

/* ---------- 3. Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-header :focus-visible,
.mobile-action-bar :focus-visible,
.hero :focus-visible {
  outline-color: #8fe3b8;
}

.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;
}

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

/* ---------- 4. Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.section-dark h1, .section-dark h2, .section-dark h3,
.hero h1, .site-footer h2, .site-footer h3 { color: #fff; }

.lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .lead, .hero .lead { color: var(--muted-on-dark); }

/* ---------- 5. Layout utilities ---------- */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.section { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.section-alt { background: var(--cream-2); }
/* Links on the darker cream need a deeper green for 4.5:1 contrast (a11y). */
.section-alt a { color: #095c40; }
.section-alt a:hover { color: #07452f; }
.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--charcoal) 100%);
  color: #eef2f8;
}
.section-dark p { color: #d7deeb; }

.section-head { max-width: 720px; margin: 0 auto 2.25rem; text-align: center; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--muted-on-dark); }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--charcoal) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(520px 260px at 12% 20%, rgba(14, 159, 110, 0.28), transparent 60%),
    radial-gradient(620px 320px at 88% 80%, rgba(27, 58, 102, 0.55), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: var(--muted-on-dark); max-width: 640px; }

.breadcrumb { font-size: 0.9rem; color: var(--muted-on-dark); margin-bottom: 1rem; }
.breadcrumb a { color: #fff; }

/* ---------- 6. Glass surfaces ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: #ffffff; }
}

.glass-dark {
  background: var(--glass-bg-dark);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-brd-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: #eef2f8;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-dark { background: #12294d; }
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-btn), var(--emerald-dark));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(10, 110, 76, 0.7);
}
.btn-primary:hover { color: #fff; }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(23, 138, 76, 0.7);
}
.btn-whatsapp:hover { color: #fff; }

.btn-light {
  background: var(--cream);
  color: var(--navy);
  border-color: rgba(11, 27, 51, 0.15);
}
.btn-light:hover { color: var(--navy); background: #fff; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ---------- 8. Header & primary navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.2s ease;
}
/* Frosted-glass layer lives on a pseudo-element (not the header itself):
   backdrop-filter on the header would make it the containing block for the
   fixed mobile nav panel, collapsing the panel to zero height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 51, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: var(--navy); }
}
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.site-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  display: inline-flex;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 6px 16px -6px rgba(14, 159, 110, 0.8);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.brand-text small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.04em;
}

.primary-nav { margin-left: auto; }

.primary-nav .menu,
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 961px) {
  .site-header .nav-toggle { display: none; }
  .primary-nav .menu { display: flex; align-items: center; gap: 0.15rem; }
  .primary-nav .menu > li { position: relative; }
  .primary-nav .menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #eef2f8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
  }
  .primary-nav .menu > li > a:hover,
  .primary-nav .menu > li:focus-within > a { background: rgba(255, 255, 255, 0.1); color: #fff; }

  .has-children { display: inline-flex; align-items: center; }
  .sub-toggle {
    background: none; border: 0; cursor: pointer;
    color: #cdd7e8; padding: 0.7rem 0.4rem 0.7rem 0;
    display: inline-flex;
  }
  .sub-toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }

  .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    max-height: 70vh;
    overflow: auto;
    background: rgba(18, 41, 77, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .has-children:hover > .sub-menu,
  .has-children:focus-within > .sub-menu,
  .has-children.sub-open > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .has-children.sub-open .sub-toggle svg,
  .has-children:hover .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu a {
    display: block;
    color: #dbe3f1;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    padding: 0.55rem 0.8rem;
    border-radius: 9px;
  }
  .sub-menu a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

  .header-quote { margin-left: 0.5rem; }
}

/* ---------- 9. Mobile menu ---------- */
.nav-toggle {
  margin-left: auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .header-quote { display: none; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    background: rgba(11, 27, 51, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.25s ease;
    z-index: 190;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .primary-nav .menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .primary-nav .menu > li > a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.9rem 0.4rem;
  }
  .has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .has-children > a { flex: 1; }
  .sub-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 10px;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .sub-toggle svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
  .has-children.sub-open .sub-toggle svg { transform: rotate(180deg); }
  .sub-menu {
    flex-basis: 100%;
    display: none;
    padding: 0 0 0.75rem 0.75rem;
  }
  .has-children.sub-open > .sub-menu { display: block; }
  .sub-menu a {
    display: block;
    color: #cdd7e8;
    text-decoration: none;
    padding: 0.55rem 0.4rem;
    font-size: 0.95rem;
  }
  .sub-menu a:hover { color: #fff; }
}

/* ---------- 10. Mobile action bar ---------- */
html, body { overflow-x: clip; }
.mobile-action-bar {
  display: none;
}
@media (max-width: 860px) {
  body { padding-bottom: calc(var(--mab-h) + 12px); }
  .mobile-action-bar {
    display: flex;
    gap: 0.5rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 210;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(11, 27, 51, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .mab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 0.4rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
  }
  .mab-btn svg { width: 18px; height: 18px; flex: none; }
  .mab-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @media (max-width: 400px) {
    .mab-btn { font-size: 0.8rem; padding: 0.7rem 0.2rem; gap: 0.28rem; }
    .mab-btn svg { width: 15px; height: 15px; }
  }
  .mab-call { background: rgba(255, 255, 255, 0.1); }
  .mab-wa { background: linear-gradient(135deg, var(--wa), var(--wa-dark)); border-color: transparent; }
  .mab-quote { background: linear-gradient(135deg, var(--emerald-btn), var(--emerald-dark)); border-color: transparent; }
}

/* ---------- 11. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 55%, var(--charcoal) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(560px 300px at 10% 15%, rgba(14, 159, 110, 0.32), transparent 62%),
    radial-gradient(700px 380px at 90% 85%, rgba(27, 58, 102, 0.6), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2rem; }
.hero-media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 22px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(2,8,23,.45); }
@media (min-width: 960px) {
	.hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
.page-featured { margin: 0 auto 1.5rem; max-width: 1080px; padding: 0 1.25rem; }
.page-featured img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 20px; border: 1px solid rgba(15,23,42,.08); box-shadow: 0 18px 44px rgba(2,8,23,.14); }
.cat-thumb { display: block; margin: -0.25rem -0.25rem 0.9rem; }
.cat-thumb img { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; display: block; }
.split-thumb { display: block; margin-bottom: 1rem; }
.split-thumb img { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; display: block; }
.hero-panel { padding: clamp(1.5rem, 4vw, 2.75rem); }
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #dbe3f1; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.5rem 0 1.25rem; }
.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  color: var(--muted-on-dark); font-size: 0.95rem; font-weight: 600;
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points li::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.22);
  flex: none;
}

/* ---------- 12. Sections, steps & cards ---------- */
.steps-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform 0.18s ease;
}
.step-card:hover { transform: translateY(-4px); }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px -8px rgba(14, 159, 110, 0.8);
}
.step-card h3 { margin-bottom: 0.4rem; }
.step-card p { color: var(--muted); margin: 0; }

.split-grid {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-card { padding: 2rem 1.75rem; }
.split-card p { color: var(--muted); }
.split-card .btn { margin-top: 0.75rem; }

.factor-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .factor-list { grid-template-columns: 1fr 1fr; } }
.factor-list li {
  padding: 1.35rem 1.4rem;
}
.factor-list h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.factor-list p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.cta-panel {
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  background: linear-gradient(135deg, rgba(11,27,51,0.82), rgba(35,39,47,0.82));
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: var(--muted-on-dark); max-width: 620px; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- 13. Category & emirate grids ---------- */
.cat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  padding: 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(150deg, var(--navy-3), var(--navy));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(220px 140px at 85% 10%, rgba(14, 159, 110, 0.4), transparent 65%);
  pointer-events: none;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.cat-card:nth-child(3n+2) { background: linear-gradient(150deg, #134b3a, var(--navy)); }
.cat-card:nth-child(3n) { background: linear-gradient(150deg, var(--charcoal), var(--navy-2)); }
.cat-card h3 { color: #fff; font-size: 1.02rem; margin: 0 0 0.25rem; position: relative; z-index: 1; }
.cat-card .cat-link { font-size: 0.88rem; font-weight: 700; color: #9fe8c6; position: relative; z-index: 1; }
.cat-card .cat-icon { position: relative; z-index: 1; margin-bottom: auto; }
.cat-card .cat-icon svg { width: 34px; height: 34px; opacity: 0.9; }

.emirate-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .emirate-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .emirate-grid { grid-template-columns: repeat(4, 1fr); } }

.emirate-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.emirate-card:hover { transform: translateY(-3px); }
.emirate-pin {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}
.emirate-pin svg { width: 22px; height: 22px; }
.emirate-card h3 { margin: 0; font-size: 1.02rem; }
.emirate-card small { color: var(--muted); font-size: 0.85rem; }

/* ---------- 14. Forms ---------- */
.bfb-form { display: grid; gap: 1.1rem; }
.bfb-form .form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bfb-form .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.field .req { color: #b4232a; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald);
  outline: 3px solid rgba(14, 159, 110, 0.25);
  outline-offset: 0;
}
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.field .field-error { display: none; font-size: 0.87rem; color: #b4232a; font-weight: 600; margin-top: 0.35rem; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #b4232a; }
.field.invalid .field-error { display: block; }

.check-field { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-field input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--emerald-dark); flex: none; }
.check-field label { font-weight: 500; font-size: 0.95rem; }

.honeypot { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-errors {
  background: #fdecec;
  border: 1.5px solid #f3b7bb;
  color: #8f1d24;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.form-errors p { font-weight: 700; margin-bottom: 0.4rem; }
.form-errors ul { margin: 0; }

.form-success {
  background: var(--emerald-soft);
  border: 1.5px solid #9fd8bb;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.form-success h2 { color: var(--emerald-btn); }
.form-success .summary {
  text-align: left;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin: 1.25rem auto;
  max-width: 560px;
  border: 1px solid var(--line);
}
.form-success .summary dt { font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.form-success .summary dd { margin: 0 0 0.6rem; }

.form-panel { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-panel > h2 { text-align: center; }
.form-panel > p.form-intro { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 1.75rem; }

/* ---------- 15. FAQ accordion ---------- */
.faq-list { display: grid; gap: 0.85rem; max-width: 820px; margin-inline: auto; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  text-align: left;
}
.faq-q .faq-icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a-inner { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--navy) 0%, var(--charcoal) 100%);
  color: #dbe3f1;
  padding: 3.5rem 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.footer-about p { color: var(--muted-on-dark); font-size: 0.95rem; }
.footer-contact-list { list-style: none; margin: 1rem 0 0; padding: 0; font-size: 0.95rem; }
.footer-contact-list li { margin-bottom: 0.55rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact-list svg { width: 17px; height: 17px; flex: none; margin-top: 0.25rem; color: #8fe3b8; }
.footer-contact-list a { color: #fff; text-decoration: none; }
.footer-contact-list a:hover { text-decoration: underline; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: #c6d0e2; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.2); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--muted-on-dark);
  text-align: center;
}
.footer-bottom p { margin: 0; }
.footer-bottom p + p { margin-top: 0.35rem; }
.design-credit { font-size: 0.82rem; opacity: 0.85; }
.design-credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.design-credit a:hover { color: var(--emerald-light, #9fe8c6); }

/* ---------- 17. 404 & misc pages ---------- */
.error-404 { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.error-404 .code {
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--emerald), var(--navy-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-404 .search-form { max-width: 440px; margin: 1.5rem auto; display: flex; gap: 0.5rem; }
.error-404 .search-form input[type="search"] {
  flex: 1; padding: 0.8rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); font: inherit;
}
.quick-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.5rem 0; }

.post-list { display: grid; gap: 1.25rem; }
.post-card { padding: 1.75rem; }
.post-card h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.75rem; }

.single-post .post-hero { margin-bottom: 2rem; }
.post-content { max-width: 760px; }
.post-content > *:first-child { margin-top: 0; }

/* ---------- 18. Responsive tweaks ---------- */
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  .brand-text { font-size: 0.92rem; }
  .cta-row .btn { width: 100%; }
}
