/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Brand colours */
  --brand-primary:  #44649c;
  --brand-accent:   #0170B9;
  --brand-cta:      #304770;
  --brand-cta-dark: #243454;
  --brand-light:    #f5f5f5;
  --brand-text:     #292d32;

  /* UI colours */
  --color-secondary: #5a6370;
  --color-muted:     #718096;
  --color-border:    #e2e8f0;

  /* Misc */
  --radius:          0.5rem;
  --shadow:          0 4px 16px rgba(0, 0, 0, 0.08);
  --gradient-brand:  linear-gradient(135deg, var(--brand-cta) 0%, var(--brand-primary) 100%);

  /* Type scale */
  --text-xs:   0.8rem;
  --text-sm:   0.875rem;
  --text-base: 1.05rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.625rem;
  --text-2xl:  2.5rem;
}


/* ============================================================
   Base
   ============================================================ */
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Proxima Nova", "proxima-nova", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-base);
  color: var(--brand-text);
}

address { font-style: normal; }


/* ============================================================
   Skip to Content (accessibility)
   ============================================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-to-content:focus { top: 0; color: #fff; }


/* ============================================================
   Top Bar
   ============================================================ */
.top-bar {
  background: var(--brand-primary);
  color: #fff;
  padding: 0.4rem 0;
  font-size: var(--text-sm);
}
.top-bar a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.top-bar a:hover { color: #fff; }


/* ============================================================
   Navbar
   ============================================================ */
.navbar { border-bottom: 1px solid var(--color-border); padding: 0.75rem 0; }
.navbar .dropdown-item { padding: 0.5rem 1.25rem; }
.navbar .dropdown-toggle::after { vertical-align: 0.15em; }
.navbar-brand { color: var(--brand-primary) !important; font-weight: 700; font-size: var(--text-lg); }
.nav-link { color: var(--color-secondary) !important; font-weight: 500; }
.nav-link:hover { color: var(--brand-primary) !important; }

.btn-cta {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff !important;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
}
.btn-cta:hover { background: var(--brand-cta); border-color: var(--brand-cta); }

.navbar .nav-item.active > .nav-link,
.navbar .nav-link.active {
  color: var(--brand-primary) !important;
  font-weight: 700;
}


/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    linear-gradient(135deg, rgba(184, 134, 11, 0.55) 0%, rgba(30, 52, 95, 0.65) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.hero h1 { font-size: var(--text-2xl); font-weight: 700; line-height: 1.2; }
.hero .lead { font-size: var(--text-md); color: rgba(255, 255, 255, 0.9); }

.btn-gold {
  background: var(--brand-cta);
  border-color: var(--brand-cta);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
}
.btn-gold:hover { background: var(--brand-cta-dark); border-color: var(--brand-cta-dark); color: #fff; }

.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--brand-cta);
  color: var(--brand-cta);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
}
.btn-outline-brand:hover { background: var(--brand-cta); color: #fff; }



/* ============================================================
   Section Headings
   ============================================================ */
.section-heading h2 { color: var(--brand-primary); font-weight: 700; }
.section-heading p { color: var(--color-muted); }


/* ============================================================
   Service Cards
   ============================================================ */
.service-card {
  display: block;
  position: relative;
  border: none;
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  height: 100%;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #2c3e5a;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(25, 64, 103, 0.84);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}
.service-card:hover::after { background-color: rgba(25, 64, 103, 0.92); }
.service-card > * { position: relative; z-index: 1; }
.service-card h3 { color: #fff; font-size: var(--text-md); font-weight: 700; margin-bottom: 1rem; }
.service-card hr { border-color: rgba(255, 255, 255, 0.3); margin: 0 0 0.75rem; }
.service-card .learn-more { color: #fff; font-weight: 500; }
.service-icon { width: 56px; height: 56px; margin: 0 auto 1rem; display: block; }


/* ============================================================
   Why Choose Us
   ============================================================ */
.why-us-icon { width: 36px; height: 36px; color: var(--brand-text); margin-bottom: 0.5rem; }
.why-us-item h3 { color: var(--brand-primary); font-size: var(--text-md); font-weight: 600; margin-bottom: 0.25rem; }
.why-us-item p { color: var(--color-secondary); }

.team-photo { border-radius: var(--radius); overflow: hidden; }


/* ============================================================
   FAQ
   ============================================================ */
.faq .accordion-button { color: var(--brand-primary); font-weight: 600; }
.faq .accordion-button:not(.collapsed) { background: var(--brand-light); }
.faq .accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(43, 108, 176, 0.25); }


/* ============================================================
   CTA Section
   ============================================================ */
.cta-section { background: var(--gradient-brand); }


/* ============================================================
   Map & Areas
   ============================================================ */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  min-height: 400px;
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }

.areas-panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.areas-panel h3 {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-accent);
}
.areas-list {
  columns: 2;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
}
.areas-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  color: var(--color-secondary);
  font-size: var(--text-sm);
}
.areas-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}
.areas-footnote {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--text-sm);
}


/* ============================================================
   Image Placeholders (dev only  replace with real images)
   ============================================================ */
.img-placeholder {
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius);
}


/* ============================================================
   Footer
   ============================================================ */
.footer-bar { background: #fff; border-top: 1px solid var(--color-border); }
.footer-brand { color: var(--brand-primary); font-weight: 700; font-size: var(--text-lg); }
.footer-heading { color: var(--brand-primary); font-weight: 600; font-size: var(--text-md); }
.footer-bar p { color: var(--color-secondary); }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--color-secondary);
}
.footer-contact-list svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--brand-primary); }
.footer-contact-list a { color: var(--color-secondary); text-decoration: none; }
.footer-contact-list a:hover { color: var(--brand-primary); }

.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-list li { margin-bottom: 0.4rem; }
.sitemap-list a { color: var(--brand-primary); text-decoration: none; font-size: 0.925rem; }
.sitemap-list a:hover { text-decoration: underline; }
.footer-nav-list { list-style: none; padding: 0; margin: 0; }
.footer-nav-list li { margin-bottom: 0.5rem; }
.footer-nav-list a { color: var(--color-secondary); text-decoration: none; }
.footer-nav-list a:hover { color: var(--brand-primary); }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { color: var(--brand-primary); text-decoration: none; transition: color 0.2s; }
.footer-social a:hover { color: var(--brand-accent); }

.footer-bottom { background: var(--brand-light); border-top: 1px solid var(--color-border); }
.footer-bottom p { color: var(--color-muted); font-size: var(--text-xs); margin: 0; }
.footer-bottom a { color: var(--color-muted); text-decoration: underline; }
.footer-bottom a:hover { color: var(--brand-primary); }


/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  --hero-bg-image: none;
  background:
    linear-gradient(135deg, rgba(48, 71, 112, 0.92) 0%, rgba(68, 100, 156, 0.88) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.page-hero .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
}
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.75); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.page-hero h1 { font-size: var(--text-xl); font-weight: 700; margin: 0.25rem 0 0.5rem; line-height: 1.25; }
.page-hero-lead { color: rgba(255,255,255,0.85); font-size: var(--text-md); margin: 0; }


/* ============================================================
   Service Content (article body)
   ============================================================ */
.service-content h2 {
  color: var(--brand-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}
.service-content h2:first-child { margin-top: 0; }
.service-content h3 {
  color: var(--brand-primary);
  font-size: var(--text-md);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.service-content p { color: var(--color-secondary); line-height: 1.75; }
.service-content .lead { color: var(--brand-text); font-size: var(--text-md); line-height: 1.7; margin-bottom: 1.75rem; }
.service-content ul,
.service-content ol { color: var(--color-secondary); padding-left: 1.4rem; line-height: 1.75; }
.service-content li { margin-bottom: 0.4rem; }

/* Feature items — "Why choose" style lists */
.feature-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.feature-item {
  padding: 0.9rem 1.1rem;
  background: var(--brand-light);
  border-left: 3px solid var(--brand-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-secondary);
  line-height: 1.7;
}
.feature-item p { margin: 0; }
.feature-item p strong {
  display: block;
  color: var(--brand-text);
  font-size: var(--text-md);
  margin-bottom: 0.2rem;
}

/* Scenario items — "Common situations" style cards */
.scenario-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.scenario-item {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-secondary);
  line-height: 1.7;
}
.scenario-item p { margin: 0; }
.scenario-item p strong {
  display: block;
  color: var(--brand-primary);
  margin-bottom: 0.2rem;
}

/* Compare grid — BFA vs consent orders */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (max-width: 576px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-block {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--brand-light);
  color: var(--color-secondary);
  line-height: 1.7;
}
.compare-block strong {
  display: block;
  color: var(--brand-primary);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--brand-accent);
}

/* Inline CTA callout */
.inline-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  margin: 1.25rem 0;
}
.inline-cta a { color: var(--brand-accent); font-weight: 600; white-space: nowrap; }
.inline-cta span { color: var(--color-muted); font-size: var(--text-sm); }


.service-disclaimer {
  background: var(--brand-light);
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
}
.service-disclaimer p { color: var(--color-muted); font-size: var(--text-sm); margin: 0; }


/* ============================================================
   Sidebar
   ============================================================ */
.sidebar { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.sidebar-card--cta {
  background: linear-gradient(160deg, #3a567f 0%, var(--brand-cta) 100%);
  border-color: transparent;
  border-top: 3px solid var(--brand-accent);
  color: #fff;
  text-align: center;
}
.sidebar-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  color: #fff;
}
.sidebar-card--cta h3 {
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sidebar-card--cta > p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  margin-bottom: 1.4rem;
  line-height: 1.55;
}
.sidebar-card--cta .btn-gold {
  font-size: var(--text-base);
  background: #fff;
  border-color: #fff;
  color: var(--brand-cta) !important;
  font-weight: 700;
}
.sidebar-card--cta .btn-gold:hover {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.88);
}

.sidebar-reply-note {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  text-align: center;
  margin: 0.9rem 0 0;
}

.sidebar-card--nav h3 {
  color: var(--brand-primary);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--brand-accent);
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav-list li { border-bottom: 1px solid var(--color-border); }
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  color: var(--color-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.15s;
}
.sidebar-nav-list a::after {
  content: '→';
  color: var(--brand-accent);
  font-size: 0.9em;
}
.sidebar-nav-list a:hover { color: var(--brand-primary); }


/* ============================================================
   Contact Page
   ============================================================ */
.contact-section-heading {
  color: var(--brand-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-border);
}

.form-embed-placeholder {
  background: var(--brand-light);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-muted);
}
.form-embed-placeholder svg { margin-bottom: 1rem; opacity: 0.4; }
.form-embed-placeholder p { font-weight: 600; margin-bottom: 0.25rem; color: var(--color-secondary); }
.form-embed-placeholder span { font-size: var(--text-sm); }

.contact-details-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-details-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-details-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-primary);
}
.contact-details-list .contact-details-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}
.contact-details-list a,
.contact-details-list span:not(.contact-details-label) {
  color: var(--color-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  line-height: 1.4;
}
.contact-details-list a:hover { color: var(--brand-primary); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 220px;
}
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }


/* ============================================================
   404 Page
   ============================================================ */
.not-found-wrap { max-width: 520px; padding: 3rem 0; }
.not-found-code {
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-border);
  margin-bottom: 0.25rem;
}
.not-found-heading { color: var(--brand-primary); font-weight: 700; margin-bottom: 0.75rem; }
.not-found-body { color: var(--color-secondary); margin-bottom: 2rem; }


/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .areas-list { columns: 1; }
  .map-embed,
  .map-embed iframe { min-height: 300px; }
}
