/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --blue:      #0055B3;
  --blue-dark: #003D80;
  --navy:      #0A1628;
  --grey-bg:   #F5F7FA;
  --white:     #FFFFFF;
  --text:      #1A1A2E;
  --text-muted:#6B7280;
  --radius:    8px;
  --max-w:     1200px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --transition:0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Screen reader only ──────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section         { padding: 4rem 0; }
.section--grey   { background: var(--grey-bg); }
.section--blue   { background: var(--blue); color: var(--white); }
.section--navy   { background: var(--navy); color: var(--white); }
.text-center     { text-align: center; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 2rem; }
.section-title { margin-bottom: 0.5rem; }
.section-sub    { color: var(--text-muted); margin-bottom: 2.5rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-primary       { background: var(--blue);  color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.btn-white       { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-white:hover { background: var(--grey-bg); color: var(--blue-dark); }

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

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

.btn-ghost       { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--grey-bg); }

.btn-lg  { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm  { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}
.site-logo img { height: 48px; width: auto; }

/* Nav */
.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list > li > a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] {
  background: var(--grey-bg);
  color: var(--blue);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid #E5E7EB;
  z-index: 200;
  padding: 0.5rem 0;
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.dropdown li a:hover { background: var(--grey-bg); color: var(--blue); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.header-cta { margin-left: 0.5rem; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: 6px;
}
.nav-toggle:focus-visible { outline: 3px solid var(--blue); }
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .hamburger        { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before{ transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.page-hero--short   { min-height: 280px; }
.page-hero--navy    { background-image: none !important; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.page-hero__content h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero__tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}
.breadcrumb li { font-size: 0.85rem; opacity: 0.85; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.25rem; }
.breadcrumb a { color: inherit; text-decoration: underline; }

/* ── Cards grid ──────────────────────────────────────────────────────────── */
.cards-grid { display: grid; gap: 1.5rem; }
.cards-grid--3 { grid-template-columns: repeat(3,1fr); }
.cards-grid--2 { grid-template-columns: repeat(2,1fr); }

/* ── Service cards ───────────────────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid #E5E7EB;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__icon { margin: 0 auto 1.25rem; }
.service-card h3 { margin-bottom: 0.75rem; color: var(--text); }
.service-card p  { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.service-card__image img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.service-card__body { padding: 1.5rem; }

/* ── Why-us / value cards ────────────────────────────────────────────────── */
.why-card, .value-card {
  text-align: center;
  padding: 2rem 1rem;
}
.why-card__icon, .value-card__icon { margin: 0 auto 1rem; }
.why-card h3, .value-card h3 { margin-bottom: 0.5rem; }
.why-card p, .value-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border-left: 4px solid var(--blue);
}
.testimonial-card p { font-size: 1rem; color: var(--text); margin-bottom: 1rem; font-style: italic; }
.testimonial-card cite { font-weight: 600; color: var(--blue); font-style: normal; font-size: 0.9rem; }
.testimonial-single__quote {
  max-width: 680px;
  margin: 0 auto;
}
.testimonial-single__quote p { font-size: 1.25rem; font-style: italic; margin-bottom: 1rem; }
.testimonial-single__quote cite { font-size: 1rem; font-weight: 600; font-style: normal; }

/* ── CTA Banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 5rem 0;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }

/* ── Service areas ───────────────────────────────────────────────────────── */
.service-areas { padding: 3rem 0; }
.areas-list { font-size: 1.1rem; color: var(--text-muted); }
.areas-list strong { color: var(--text); }

/* ── Two column layout ───────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col--img-left  .two-col__image { order: -1; }
.two-col--img-right .two-col__image { order: 1; }
.two-col__image img {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
}
.two-col__content h2 { margin-bottom: 1rem; }

/* ── Included box ────────────────────────────────────────────────────────── */
.included-inner {
  background: #E8F1FB;
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  border-left: 4px solid var(--blue);
}
.included-inner h2 { color: var(--blue); margin-bottom: 1.25rem; }
.included-list li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.included-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Gallery grid ────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item { overflow: hidden; border-radius: var(--radius); }

/* ── Check list ──────────────────────────────────────────────────────────── */
.check-list li {
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ── Mission quote ───────────────────────────────────────────────────────── */
.mission-quote p {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Team cards ──────────────────────────────────────────────────────────── */
.team-card--placeholder {
  padding: 2rem;
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius);
  text-align: center;
}
.team-card__avatar {
  margin: 0 auto 1rem;
  width: 80px; height: 80px;
  background: var(--grey-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.team-card__label { font-weight: 600; margin-bottom: 0.25rem; }
.team-card__note  { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* ── Contact page ────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form-col h2 { margin-bottom: 1.5rem; }
.contact-success {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--light-grey);
  border-radius: var(--radius);
}
.contact-success .quote-thanks__icon { margin: 0 auto 1.25rem; }
.contact-success h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--blue); }
.contact-success p  { color: var(--text-muted); margin-bottom: 0.75rem; }
.contact-success p a { color: var(--blue); font-weight: 600; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,85,179,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group--consent { display: flex; align-items: flex-start; gap: 0.75rem; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }

.contact-cta-panel {
  background: var(--blue);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.contact-cta-panel h3 { color: var(--white); margin-bottom: 0.75rem; }
.contact-cta-panel p  { opacity: 0.9; margin-bottom: 1.5rem; }
.contact-details { margin: 1.5rem 0; }
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.contact-detail-item a { color: var(--white); }
.contact-detail-item svg { opacity: 0.8; flex-shrink: 0; }
.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-social a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.contact-social a:hover { opacity: 1; }
.service-areas-box {
  background: var(--grey-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
}
.service-areas-box h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.service-areas-box p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ── Blog & single ───────────────────────────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card__img-link { display: block; }
.blog-card__image img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.blog-card__cat {
  background: #E8F1FB;
  color: var(--blue);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}
.blog-card__meta time { color: var(--text-muted); }
.blog-card__title { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card__title a { color: var(--text); }
.blog-card__title a:hover { color: var(--blue); }
.blog-card__excerpt { font-size: 0.875rem; color: var(--text-muted); flex: 1; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: 0.875rem; color: var(--blue); margin-top: auto; }
.card-link:hover { color: var(--blue-dark); }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1.5px solid #E5E7EB;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Single post */
.post-featured-image { max-height: 480px; overflow: hidden; }
.post-featured-image img { width: 100%; height: 480px; object-fit: cover; }
.single-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.post-header { margin-bottom: 2rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.post-category {
  background: #E8F1FB; color: var(--blue);
  padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 600; font-size: 0.8rem;
}
.post-meta time, .reading-time { color: var(--text-muted); font-size: 0.875rem; }
.post-title { margin-bottom: 1rem; }
.post-author {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.post-author img { border-radius: 50%; }
.post-content { max-width: 720px; }
.post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--text); }
.post-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
.post-content p  { margin-bottom: 1.25rem; line-height: 1.8; }
.post-content ul,
.post-content ol { margin: 1rem 0 1.25rem 1.5rem; list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; line-height: 1.7; }

/* TOC */
.toc {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.toc__title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; color: var(--text-muted); }
.toc ol { list-style: decimal; padding-left: 1.25rem; }
.toc li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.toc a { color: var(--blue); }
.sidebar-toc { position: sticky; top: 90px; }

/* Social share */
.post-share {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 2.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--grey-bg);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
}
.post-share a { color: var(--text-muted); transition: color var(--transition); }
.post-share a:hover { color: var(--blue); }

/* Author bio */
.author-bio {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.5rem;
  background: var(--grey-bg);
  border-radius: var(--radius);
  margin-top: 2rem;
}
.author-bio img { border-radius: 50%; flex-shrink: 0; }
.author-bio__text strong { display: block; margin-bottom: 0.4rem; }
.author-bio__text p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* Related posts */
.related-posts { margin-top: 3rem; }
.related-posts h2 { margin-bottom: 1.5rem; }

/* No posts */
.no-posts { text-align: center; padding: 3rem 0; }
.no-posts h2 { margin-bottom: 1rem; }
.no-posts p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #E5E7EB;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--text); }
.recent-posts-list li { border-bottom: 1px solid #F3F4F6; padding: 0.5rem 0; }
.recent-posts-list li:last-child { border: none; }
.recent-posts-list a { font-size: 0.875rem; color: var(--text); font-weight: 500; }
.recent-posts-list a:hover { color: var(--blue); }
.recent-posts-list span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.categories-list li { border-bottom: 1px solid #F3F4F6; }
.categories-list a {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0; font-size: 0.875rem; color: var(--text);
}
.categories-list a:hover { color: var(--blue); }
.sidebar-cta { background: var(--grey-bg); }
.sidebar-cta h3 { margin-bottom: 0.5rem; }
.sidebar-cta p  { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── Page content (default page.php) ─────────────────────────────────────── */
.page-content { max-width: 780px; margin: 0 auto; }
.page-content h2 { margin: 2rem 0 1rem; }
.page-content p  { margin-bottom: 1.25rem; line-height: 1.8; }
.page-content ul,
.page-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.error-404 { padding: 6rem 0; }
.error-404__inner { max-width: 560px; margin: 0 auto; }
.error-404__code {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: #E5E7EB;
  line-height: 1;
  margin-bottom: 1rem;
}
.error-404 h1 { margin-bottom: 1rem; }
.error-404 p  { color: var(--text-muted); margin-bottom: 2rem; }
.error-404__actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.error-404__links { margin-top: 2rem; }
.error-404__links p { margin-bottom: 0.75rem; font-weight: 500; }
.error-404__links ul { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; list-style: none; }
.error-404__links li a { color: var(--blue); font-size: 0.9rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #A0AEC0;
  padding: 4rem 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-tagline { font-size: 0.9rem; margin-bottom: 1.25rem; opacity: 0.7; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  color: #A0AEC0;
  transition: color var(--transition);
  line-height: 0;
}
.social-links a:hover { color: var(--white); }
.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: #A0AEC0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-contact a { color: #A0AEC0; }
.footer-contact a:hover { color: var(--white); }
.footer-cta-btn { margin-top: 1.25rem; font-size: 0.875rem; padding: 0.6rem 1.25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}
.footer-bottom p { font-size: 0.8rem; color: #6B7280; margin: 0; }
.footer-bottom a { color: #6B7280; }
.footer-bottom a:hover { color: var(--white); }
.cookie-settings-link { cursor: pointer; }

/* ── Header: company name ────────────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.site-logo__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.2;
}
.site-logo__name span {
  color: var(--blue);
}

/* ── Blog coming soon ────────────────────────────────────────────────────── */
.blog-coming-soon {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 540px;
  margin: 0 auto;
}
.blog-coming-soon__icon { margin: 0 auto 1.5rem; }
.blog-coming-soon h2 { margin-bottom: 0.75rem; }
.blog-coming-soon p  { color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-coming-soon__sub { font-size: 0.9rem; margin-bottom: 2rem !important; }
.blog-coming-soon__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── WhatsApp FAB ────────────────────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1.1rem 0.75rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.whatsapp-fab:hover {
  background: #1da851;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-fab:focus-visible { outline: 3px solid #25D366; outline-offset: 3px; }
.whatsapp-fab svg { flex-shrink: 0; }

/* ── WhatsApp button (in modals) ─────────────────────────────────────────── */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }

/* ── Quote Modal ─────────────────────────────────────────────────────────── */
.quote-modal { position: fixed; inset: 0; z-index: 8000; }
.quote-modal[hidden] { display: none !important; }

.quote-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.quote-modal__box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  animation: qModalIn 0.25s ease;
}
@keyframes qModalIn {
  from { transform: translate(-50%, -47%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}

.quote-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
  color: #6B7280;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.quote-modal__close:hover { background: #F3F4F6; color: #111; }
.quote-modal__close:focus-visible { outline: 3px solid var(--blue); }

.quote-modal__header { margin-bottom: 1.5rem; padding-right: 2rem; }
.quote-modal__header h2 { margin-bottom: 0.4rem; }
.quote-modal__header p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-optional { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }
.form-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  color: #DC2626; border-radius: var(--radius);
  padding: 0.75rem 1rem; font-size: 0.875rem; margin-bottom: 1rem;
}
.quote-submit-btn { width: 100%; margin-top: 0.5rem; }

.quote-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--text-muted); font-size: 0.8rem;
}
.quote-divider::before, .quote-divider::after {
  content: ''; flex: 1; height: 1px; background: #E5E7EB;
}

.quote-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.quote-direct-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center;
}

/* Thank you step */
.quote-thanks {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
}
.quote-thanks__icon { margin: 0 auto 1.25rem; }
.quote-thanks h2 { margin-bottom: 0.75rem; }
.quote-thanks p  { color: var(--text-muted); margin-bottom: 0.75rem; }
.quote-thanks p a { color: var(--blue); font-weight: 600; }
.quote-thanks .btn { margin-top: 1rem; min-width: 140px; }

/* ── Exit Intent Popup ───────────────────────────────────────────────────── */
.exit-popup { position: fixed; inset: 0; z-index: 9500; }
.exit-popup[hidden] { display: none !important; }

.exit-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.exit-popup__box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: min(460px, calc(100vw - 2rem));
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
  animation: exitIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes exitIn {
  from { transform: translate(-50%, -44%) scale(0.92); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

.exit-popup__close {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer;
  color: #9CA3AF; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.exit-popup__close:hover { background: #F3F4F6; color: #111; }
.exit-popup__close:focus-visible { outline: 3px solid var(--blue); }

.exit-popup__badge {
  display: inline-block;
  background: #FEF3C7; color: #92400E;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem; border-radius: 20px;
  margin-bottom: 1rem;
}

.exit-popup__box h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }

.exit-popup__offer {
  font-size: 1.1rem; color: var(--text);
  margin-bottom: 1.75rem; line-height: 1.6;
}
.exit-popup__offer strong { color: var(--blue); font-size: 1.4rem; }

.exit-popup__box .btn-primary { width: 100%; margin-bottom: 0.75rem; }
.exit-popup__terms { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }

.exit-popup__skip {
  background: none; border: none; cursor: pointer;
  font-size: 0.8rem; color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.15s;
}
.exit-popup__skip:hover { color: var(--text); }

/* ── CF7 form overrides ───────────────────────────────────────────────────── */
.wpcf7 .wpcf7-form-control { width: 100%; }
.wpcf7-form p { margin-bottom: 1rem; }

/* ── Services detail (services overview page) ────────────────────────────── */
.services-detail .two-col { padding: 2rem 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .single-post-layout { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }

  /* Header */
  .header-inner { gap: 0.75rem; }
  .primary-nav {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 490;
    flex-direction: column;
    border-top: 1px solid #E5E7EB;
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { padding: 0.85rem 1rem; font-size: 1rem; border-radius: 0; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    display: block;
    background: var(--grey-bg);
    border-radius: 0;
  }
  .has-dropdown:hover .dropdown { display: block; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-logo__name { font-size: 0.85rem; }

  /* Grids */
  .cards-grid--3, .cards-grid--2 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .two-col--img-left  .two-col__image,
  .two-col--img-right .two-col__image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .blog-grid    { grid-template-columns: 1fr; }

  .included-inner { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-slider { min-height: 360px !important; }
  .post-share { flex-wrap: wrap; }
  .error-404__code { font-size: 5rem; }
  .site-logo__name { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .quote-direct { grid-template-columns: 1fr; }
  .whatsapp-fab__label { display: none; }
  .whatsapp-fab { padding: 0.85rem; border-radius: 50%; }
}
