/*
Theme Name: GoFormed UK
Description: Custom ultra-premium theme for GoFormed — Traditional Corporate Legal Design.
Author: GoFormed
Version: 9.0
*/

/* ==========================================================================
   1. TOKENS & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg-body:      #ffffff;
  --bg-surface:   #ffffff;
  --bg-surface-2: #f4f6f8;
  --bg-surface-3: #eef2f6;
  --cream-alt:    #faf8f5;

  --navy:       #0A192F;
  --navy-dark:  #060f1e;
  --navy-light: #162a4d;
  --navy-mid:   #1B2A4A;
  --gold:       #A88754;
  --gold-glow:  #B99763;
  --gold-light: rgba(168,135,84,0.12);
  --gold-border:rgba(168,135,84,0.45);
  --green:      #2e7d32;
  --burgundy:   #9b1c1c;
  --white:      #ffffff;

  --surface:        #ffffff;
  --brand-primary:  #A88754;
  --r-lg:           2px;

  --text-pure:  #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --text-mid:   #374151;

  --border-subtle: #e5e7eb;
  --border-light:  #d1d5db;
  --border-gold:   #A88754;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius:          0px;
  --radius-sm:       2px;
  --radius-md:       4px;
  --container-width: 1200px;
  --container-pad:   24px;

  --shadow-sm: 0 1px 3px rgba(10,25,47,.06);
  --shadow-md: 0 4px 12px rgba(10,25,47,.10);
  --shadow-lg: 0 12px 32px rgba(10,25,47,.14);

  --transition: all 0.25s cubic-bezier(0.25,1,0.5,1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-pure);
  background-color: var(--bg-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem,5vw,3.75rem); }
h2 { font-size: clamp(1.75rem,4vw,2.75rem); }
h3 { font-size: clamp(1.3rem,3vw,2rem); }
h4 { font-size: 1.05rem; font-weight: 600; }

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

.lead {
  font-size: clamp(1.05rem,2vw,1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
}

blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--cream-alt);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.65;
}

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 6px; color: var(--text-muted); }
strong { color: var(--text-pure); font-weight: 600; }

.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* ==========================================================================
   3. LAYOUT & GRIDS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.page-hero {
  padding: 96px 0 72px;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero h1 { text-align: center; margin-bottom: 16px; }
.page-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 1.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem,4vw,2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-title.centered,
.section-title.text-center { text-align: center; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.section-subtitle.text-center { text-align: center; }

.grid   { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col.align-center { align-items: center; }

.bg-surface   { background-color: var(--bg-surface); }
.bg-surface-2 { background-color: var(--bg-surface-2); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.bg-white     { background-color: #ffffff; }
.bg-cream-alt { background-color: var(--cream-alt); }
.bg-navy      { background-color: var(--navy); }

.sticky-top { position: sticky; top: 100px; align-self: start; }

/* ==========================================================================
   4. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4,.grid-3 { grid-template-columns: repeat(2,1fr); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .sticky-top { position: static; }
}
@media (max-width: 768px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .container { padding: 0 16px; }
  .section   { padding: 52px 0; }
  .section-sm{ padding: 36px 0; }
  .page-hero { padding: 52px 0 44px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  .section-title { font-size: 1.65rem; }
  p.lead { font-size: 1rem; }
  .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .info-box { padding: 18px; }
}

/* ==========================================================================
   5. SCROLL PROGRESS
   ========================================================================== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--gold); z-index: 10000; width: 0%;
}

/* ==========================================================================
   6. HEADER & NAV
   ========================================================================== */
.site-header,
#site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 8px rgba(10,25,47,.06);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wrapper:hover { color: var(--navy); }
.logo-img,
.logo-wrapper img { height: 42px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text span { font-size: 1.5rem; }

.main-nav,
.nav-links { display: flex; gap: 28px; align-items: center; }

.main-nav a,
.nav-links a {
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.main-nav a:hover,.main-nav a.active,
.nav-links a:hover,.nav-links a.active { color: var(--gold); }

.main-nav a::after,
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0%; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,.main-nav a.active::after,
.nav-links a:hover::after,.nav-links a.active::after { width: 100%; }
.main-nav a.btn::after,
.nav-links a.btn::after { display: none; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--navy);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.mobile-menu-btn svg { display: block; }

@media (max-width: 960px) {
  .main-nav,
  .nav-links {
    display: none;
    position: absolute;
    top: 80px; left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .main-nav a,
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
  }
  .main-nav.is-open,
  .nav-links.is-open { display: flex; }
  .mobile-menu-btn { display: block; }
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25,0.8,0.25,1);
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

.btn-gold { background: var(--gold); color: #fff !important; border-color: var(--gold); }
.btn-gold:hover {
  background: #8f7044; border-color: #8f7044;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(168,135,84,.30);
  transform: translateY(-2px);
}

.btn-navy { background: var(--navy); color: #fff !important; border-color: var(--navy); }
.btn-navy:hover {
  background: var(--navy-light); border-color: var(--navy-light);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(10,25,47,.25);
  transform: translateY(-2px);
}

.btn-outline { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff !important; }

.btn-outline-white { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.85); color: #fff !important; }

.btn-whatsapp { background: #25D366 !important; color: #fff !important; border-color: #25D366 !important; }
.btn-whatsapp:hover { background: #1EBE5D !important; border-color: #1EBE5D !important; color: #fff !important; box-shadow: var(--shadow-md); }

/* ==========================================================================
   8. SERVICE CARDS
   ========================================================================== */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid transparent;
  padding: 36px 28px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-alt);
  border: 1px solid var(--border-subtle);
  color: var(--navy);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.service-icon svg  { width: 26px; height: 26px; }
.service-icon span { font-size: 1.4rem; line-height: 1; }

.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy); }
.service-card p  { font-size: 0.92rem; color: var(--text-muted); flex-grow: 1; margin-bottom: 16px; }

/* ==========================================================================
   9. INFO BOXES
   ========================================================================== */
.info-box {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--navy);
  padding: 24px 28px;
}
.info-gold { border-left-color: var(--gold); background: var(--cream-alt); }
.info-gold h3, .info-gold h4 { color: var(--navy); }
.info-green { border-left-color: var(--green); }
.info-warning { border-left-color: #d97706; background: #fffbeb; }

/* ==========================================================================
   10. SIDEBAR & PACKAGE BOXES
   ========================================================================== */
.sidebar-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--navy);
  padding: 28px;
  margin-bottom: 20px;
}
.sidebar-box h4 {
  color: var(--navy) !important;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-box h4 svg { color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; }
.sidebar-box p { color: var(--text-muted); font-size: 0.92rem; }
.sidebar-box:last-child { margin-bottom: 0; }

.sidebar-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-mid);
}
.sidebar-contact-item:last-child { border-bottom: none; }
.sidebar-contact-item strong { display: block; color: var(--navy); font-size: 0.85rem; margin-bottom: 2px; }
.sidebar-contact-item small  { color: var(--text-light); font-size: 0.8rem; }
.sidebar-contact-item a { color: var(--gold); font-weight: 600; }
.sidebar-contact-item a:hover { color: var(--navy); }
.sidebar-contact-icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  margin-top: 2px;
  flex-shrink: 0;
  min-width: 20px;
}
.sidebar-contact-icon svg { width: 16px; height: 16px; }

.package-box {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--navy);
  padding: 28px;
  transition: var(--transition);
}
.package-box:hover { border-top-color: var(--gold); box-shadow: var(--shadow-md); }
.package-box h3 {
  font-size: 1.15rem; margin-bottom: 16px; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.package-box h3 svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

.package-list { list-style: none; padding: 0; margin: 0; }
.package-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
}
.package-list li:last-child { border-bottom: none; }
.package-list li::before {
  content: '';
  display: inline-block; width: 5px; height: 5px; min-width: 5px;
  border-radius: 50%; background: var(--gold); margin-top: 7px;
}

/* ==========================================================================
   11. TRUST BAR
   ========================================================================== */
.trust-bar { background: var(--navy); padding: 18px 0; }
.trust-bar-inner {
  display: flex; justify-content: center;
  align-items: center; flex-wrap: wrap; gap: 14px 36px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255,255,255,.88);
}
.trust-icon { color: var(--gold); display: flex; flex-shrink: 0; }
.trust-icon svg { width: 15px; height: 15px; }
.trust-divider { width: 1px; height: 24px; background: rgba(255,255,255,.15); }

@media (max-width: 900px) {
  .trust-divider { display: none; }
  .trust-bar-inner { justify-content: flex-start; gap: 10px 20px; }
}

/* ==========================================================================
   12. STATS BAR
   ========================================================================== */
.stats-bar { background: var(--navy); padding: 48px 0; border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; text-align: center;
}
.stat-item {
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem,4vw,3rem);
  font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 0.75rem; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 20px 8px; }
  .stat-item:last-child,.stat-item:nth-child(4) { border-bottom: none; }
}

/* ==========================================================================
   13. FEATURE LIST
   ========================================================================== */
.feature-list { list-style: none; margin-top: 20px; padding: 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 1rem;
  color: var(--text-pure); line-height: 1.55;
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-check { color: var(--gold); margin-top: 3px; flex-shrink: 0; display: flex; }
.feature-check svg { width: 16px; height: 16px; }

/* ==========================================================================
   14. TABLES
   ========================================================================== */
.company-table-wrapper,
.table-responsive {
  overflow-x: auto; margin-top: 24px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.company-table,
table.widefat {
  width: 100%; border-collapse: collapse; min-width: 700px; font-size: 0.9rem;
}
.company-table th, table.widefat th {
  background: var(--bg-surface-2); color: var(--navy);
  font-family: var(--font-sans); font-weight: 700;
  text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.07em;
  padding: 14px 18px; text-align: left;
  border-bottom: 2px solid var(--border-subtle); white-space: nowrap;
}
.company-table td, table.widefat td {
  padding: 16px 18px; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-pure); vertical-align: middle; line-height: 1.45;
}
.company-table tr:last-child td, table.widefat tr:last-child td { border-bottom: none; }
.company-table tr:hover td, table.widefat tr:hover td { background: var(--bg-surface-2); }

table { width: 100%; border-collapse: collapse; }
table td, table th { padding: 8px 6px; border-bottom: 1px solid var(--border-subtle); font-size: 0.88rem; color: var(--text-muted); }
table th { color: var(--navy); font-weight: 700; }

/* ==========================================================================
   15. TABS
   ========================================================================== */
.tab-group { margin-top: 28px; }
.tab-nav {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 2px solid var(--navy); margin-bottom: 28px;
}
.tab-btn {
  background: transparent; color: var(--text-muted);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.82rem;
  padding: 10px 20px; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.tab-btn:hover { color: var(--navy); background: var(--bg-surface-2); }
.tab-btn.active { background: var(--navy); color: #fff; border-bottom-color: var(--navy); }

.tab-pane { display: none; animation: fadeIn 0.35s ease; }
.tab-pane.active { display: block; }

@keyframes fadeIn {
  from { opacity:0; transform:translateY(5px); }
  to   { opacity:1; transform:translateY(0); }
}
@media (max-width: 768px) {
  .tab-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-btn { flex: 0 0 auto; }
}

/* ==========================================================================
   16. BREADCRUMBS
   ========================================================================== */
.breadcrumb {
  font-size: 0.82rem; color: var(--text-light);
  margin-bottom: 20px; display: flex;
  align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ==========================================================================
   17. DIVIDERS
   ========================================================================== */
.divider, hr.divider { border: none; border-top: 1px solid var(--border-subtle); margin: 28px 0; }
.divider-thick, hr.divider-thick { border: none; border-top: 3px solid var(--border-subtle); margin: 0; }
hr { border: none; border-top: 1px solid var(--border-subtle); margin: 24px 0; }

/* ==========================================================================
   18. FAQ ACCORDION
   ========================================================================== */
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-question {
  width: 100%; background: none; border: none;
  text-align: left; padding: 18px 4px;
  font-family: var(--font-sans); font-size: 0.97rem;
  font-weight: 600; color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; transition: color 0.2s; line-height: 1.45;
}
.faq-question:hover { color: var(--gold); }
.faq-question::after {
  content: ''; display: block; min-width: 10px; width: 10px; height: 10px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform 0.3s ease;
  flex-shrink: 0; margin-top: -3px;
}
.faq-question.open::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer > * { padding-bottom: 18px; padding-top: 4px; color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

/* ==========================================================================
   19. CONTACT FORM
   ========================================================================== */
.contact-form { }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-sans); font-size: 0.76rem;
  font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  font-family: var(--font-sans); font-size: 0.92rem;
  color: var(--text-pure); background: var(--bg-surface-2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10,25,47,.07);
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234b5563' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-message { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.5; margin-top: 12px; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ==========================================================================
   20. SCROLL REVEAL
   ========================================================================== */
.gf-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.gf-revealed { opacity: 1; transform: none; }

/* ==========================================================================
   21. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.85);
  padding: 80px 0 0; border-top: 4px solid var(--gold);
}
.site-footer .grid-4 { gap: 40px; margin-bottom: 56px; }

.site-footer h4,
.footer-heading {
  color: var(--gold) !important;
  font-family: var(--font-sans); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; margin-bottom: 18px;
}

.footer-compliance-wrap {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  padding: 32px; margin-bottom: 52px;
}
.footer-compliance-wrap .grid-4 { gap: 28px; margin-bottom: 0; }
.footer-compliance-wrap h4 {
  color: var(--white) !important;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.footer-compliance-wrap h4 svg { color: var(--gold); flex-shrink: 0; width: 14px; height: 14px; }
.footer-compliance-wrap p { font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin: 0; }

.site-footer p { color: rgba(255,255,255,.70); font-size: 0.9rem; line-height: 1.65; }
.site-footer a { color: rgba(255,255,255,.70); font-size: 0.9rem; }
.site-footer a:hover { color: var(--white); }

.footer-logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--white); font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  text-decoration: none; margin-bottom: 14px;
}
.footer-logo:hover { color: var(--gold); }
.footer-logo-img  { height: 42px; width: auto; }
.footer-logo-name { font-size: 1.4rem; line-height: 1; }

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav li a {
  color: rgba(255,255,255,.70); font-size: 0.88rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.footer-nav li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.footer-contact-icon { color: var(--gold); display: flex; margin-top: 3px; flex-shrink: 0; }
.footer-contact-icon svg { width: 15px; height: 15px; }
.footer-contact-text { font-size: 0.87rem; color: rgba(255,255,255,.80); }
.footer-contact-text strong {
  display: block; color: rgba(255,255,255,.52);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 3px; font-weight: 600;
}
.footer-contact-text a { color: var(--gold) !important; font-weight: 600; }
.footer-contact-text a:hover { color: var(--white) !important; }

.footer-bottom {
  margin-top: 40px; padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(255,255,255,.42);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.42); margin-right: 14px; font-size: 0.8rem; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.85); }

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-badge {
  font-size: 0.7rem; padding: 4px 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; color: rgba(255,255,255,.58);
  font-family: var(--font-sans); transition: border-color 0.2s; white-space: nowrap;
}
.footer-badge:hover { border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.85); }

@media (max-width: 1024px) {
  .footer-compliance-wrap { padding: 24px; }
  .footer-compliance-wrap .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .site-footer { padding-top: 52px; }
  .site-footer .grid-4 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .site-footer .grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .footer-compliance-wrap .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   22. CTA STRIP
   ========================================================================== */
.cta-strip { background: var(--navy); color: var(--white); padding: 72px 0; text-align: center; }
.cta-strip h2 { color: var(--gold); margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,.80); font-size: 1.1rem; max-width: 680px; margin: 0 auto 32px; line-height: 1.7; }
.cta-strip .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   23. BADGES & PILLS
   ========================================================================== */
.pill-gold, a.pill-gold {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-light); color: var(--gold);
  padding: 6px 16px; border: 1px solid var(--gold);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: var(--radius); transition: var(--transition); text-decoration: none;
}
.pill-gold:hover, a.pill-gold:hover { background: var(--gold); color: #fff !important; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; border-radius: 2px;
}

.same-day-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-surface-2); color: var(--navy);
  padding: 6px 14px; border: 1px solid var(--border-subtle);
  font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px;
}
.same-day-badge svg { color: var(--gold); width: 13px; height: 13px; }

/* ==========================================================================
   24. PLATFORM ITEMS
   ========================================================================== */
.platform-item {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: 10px; font-size: 0.8rem; color: rgba(255,255,255,.85);
  font-weight: 600; display: flex; align-items: center; gap: 8px; transition: var(--transition);
}
.platform-item:hover { background: rgba(255,255,255,.12); border-color: rgba(168,135,84,.4); }
.platform-item svg { color: var(--gold); flex-shrink: 0; width: 13px; height: 13px; }

/* ==========================================================================
   25. LEGAL CONTENT
   ========================================================================== */
.legal-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.legal-content h3 { font-size: 1.2rem; margin-bottom: 10px; }
.legal-content p  { font-size: 0.93rem; color: var(--text-mid); line-height: 1.75; }
.legal-content a  { color: var(--gold); text-decoration: underline; }
.legal-content a:hover { color: var(--navy); }

/* ==========================================================================
   26. NAV DROPDOWN
   ========================================================================== */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold); min-width: 220px;
  box-shadow: var(--shadow-lg); padding: 6px 0; z-index: 9500;
  list-style: none; margin: 0; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-has-dropdown:hover > .nav-dropdown,
.nav-has-dropdown:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown li a {
  display: block; padding: 10px 16px; font-size: 0.86rem;
  color: var(--navy); font-weight: 500;
  transition: background 0.15s, color 0.15s, padding 0.15s;
  border-bottom: 1px solid var(--border-subtle);
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover { background: var(--cream-alt); color: var(--gold); padding-left: 20px; }
.nav-dropdown li a::after { display: none; }

/* ==========================================================================
   27. MISC
   ========================================================================== */
.year-nav-bar {
  background: var(--bg-surface-2); padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.visually-hidden {
  position: absolute; 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; top: -100%; left: 0;
  background: var(--navy); color: #fff;
  padding: 8px 16px; z-index: 100000; text-decoration: none;
}
.skip-link:focus { top: 0; }

@media print {
  .site-header, #site-header, .site-footer, .float-whatsapp, .float-email { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   MOBILE OPTIMISATION — Comprehensive overhaul
   ========================================================================== */

/* ── Touch targets ── */
@media (max-width: 768px) {
  /* All clickable elements need at least 44px touch target */
  .btn { min-height: 48px; padding: 13px 20px; font-size: 0.9rem; }
  .btn-sm { min-height: 40px; padding: 10px 16px; }
  .btn-lg { min-height: 52px; padding: 15px 24px; font-size: 0.95rem; }

  .tab-btn { min-height: 44px; padding: 10px 16px; font-size: 0.8rem; }

  .faq-question { padding: 16px 4px; font-size: 0.95rem; }

  .main-nav a, .nav-links a { min-height: 48px; display: flex; align-items: center; }
  .footer-nav li a { min-height: 40px; display: flex; align-items: center; }
}

/* ── Typography scaling ── */
@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 1.55rem; line-height: 1.2; }
  h2 { font-size: 1.35rem; line-height: 1.25; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }
  .lead { font-size: 0.98rem; }
  .section-title { font-size: 1.35rem; }
  p { font-size: 0.93rem; }
}

/* ── Page hero mobile ── */
@media (max-width: 768px) {
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: 1.75rem; margin-bottom: 12px; }
  .page-hero-subtitle { font-size: 1rem; margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero-subtitle { font-size: 0.93rem; }
}

/* ── Hero pill tags ── */
@media (max-width: 480px) {
  .pill-gold { font-size: 0.72rem; padding: 5px 12px; }
  .same-day-badge { font-size: 0.72rem; padding: 5px 10px; }
}

/* ── Trust bar mobile ── */
@media (max-width: 600px) {
  .trust-bar { padding: 16px 0; }
  .trust-bar-inner { gap: 10px 0; flex-direction: column; align-items: flex-start; }
  .trust-item { font-size: 0.78rem; }
  .trust-divider { display: none; }
}

/* ── Stats bar mobile ── */
@media (max-width: 480px) {
  .stats-bar { padding: 36px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { padding: 16px 8px; }
  .stat-number { font-size: 1.9rem; }
  .stat-label { font-size: 0.7rem; }
}

/* ── Two-col mobile ── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .two-col { gap: 20px; }
}

/* ── Cards mobile ── */
@media (max-width: 768px) {
  .service-card { padding: 24px 20px; }
  .package-box  { padding: 20px; }
  .sidebar-box  { padding: 20px; }
  .info-box     { padding: 18px 20px; }
  .footer-compliance-wrap { padding: 20px; }
}
@media (max-width: 480px) {
  .service-card { padding: 20px 16px; }
  .package-box  { padding: 18px; }
  .sidebar-box  { padding: 18px; }
}

/* ── Feature list mobile ── */
@media (max-width: 480px) {
  .feature-list li { font-size: 0.93rem; gap: 10px; margin-bottom: 12px; }
}

/* ── Tables mobile ── */
@media (max-width: 768px) {
  .company-table-wrapper,
  .table-responsive { margin-top: 16px; }
  .company-table td,
  table.widefat td  { padding: 12px 14px; font-size: 0.87rem; }
  .company-table th,
  table.widefat th  { padding: 10px 14px; font-size: 0.73rem; }
}

/* ── Tabs mobile ── */
@media (max-width: 768px) {
  .tab-nav { gap: 0; border-bottom-width: 2px; }
  .tab-btn { padding: 10px 14px; font-size: 0.78rem; }
  .tab-group { margin-top: 16px; }
}

/* ── FAQ mobile ── */
@media (max-width: 480px) {
  .faq-question { font-size: 0.92rem; padding: 14px 0; gap: 12px; }
  .faq-answer > * { font-size: 0.9rem; padding-bottom: 14px; }
}

/* ── Forms mobile ── */
@media (max-width: 600px) {
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 16px; /* Prevent iOS zoom */ padding: 12px 14px; }
  .gf-popup-form input,
  .gf-popup-form textarea,
  .gf-popup-form select { font-size: 16px; }
  .gf-popup-box { padding: 20px 18px; }
  .gf-popup-header h2 { font-size: 1.3rem; }
  .gf-popup-form .gf-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Grid mobile ── */
@media (max-width: 768px) {
  .grid { gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid { gap: 14px; }
}

/* ── Section spacing mobile ── */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .cta-strip { padding: 52px 0; }
  .cta-strip p { font-size: 1rem; }
}
@media (max-width: 480px) {
  .section { padding: 36px 0; }
  .section-sm { padding: 24px 0; }
  .cta-strip { padding: 40px 0; }
  .cta-strip h2 { font-size: 1.4rem; }
}

/* ── Button groups mobile ── */
@media (max-width: 600px) {
  .cta-strip .btn-group,
  [style*="display:flex"][style*="gap:16px"],
  [style*="display: flex"][style*="gap: 16px"] { flex-direction: column; }
  .btn { width: 100%; margin-bottom: 0; }
}

/* ── Breadcrumb mobile ── */
@media (max-width: 480px) {
  .breadcrumb { font-size: 0.78rem; gap: 4px; margin-bottom: 14px; }
}

/* ── Footer mobile ── */
@media (max-width: 768px) {
  .site-footer { padding-top: 44px; }
  .site-footer .grid-4 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { padding: 18px 0; gap: 8px; }
  .footer-logo { font-size: 1.25rem; }
  .footer-logo-img { height: 36px; }
}
@media (max-width: 480px) {
  .site-footer .grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .footer-compliance-wrap .grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-badges { margin-top: 10px; }
}

/* ── Floating buttons mobile ── */
@media (max-width: 480px) {
  .float-whatsapp { bottom: 82px; right: 14px; width: 54px; height: 54px; }
  .float-email     { bottom: 14px; right: 14px; width: 54px; height: 54px; }
  .float-wa-tooltip { right: 10px; bottom: 144px; max-width: 190px; padding: 12px; }
  .float-pulse { width: 54px; height: 54px; }
}

/* ── Info boxes inline-style overrides on mobile ── */
@media (max-width: 768px) {
  /* Fix inline-style padding on package enquiry box */
  [style*="padding:28px"] { padding: 20px !important; }
  [style*="padding: 28px"] { padding: 20px !important; }
}

/* ── Year nav bar mobile ── */
@media (max-width: 600px) {
  .year-nav-bar { padding: 12px 0; }
}

/* ── Sidebar boxes: no sticky on mobile ── */
@media (max-width: 1024px) {
  .sticky-top { position: static !important; top: auto !important; }
}

/* ── Popup overlay mobile ── */
@media (max-width: 600px) {
  .gf-popup-overlay { padding: 0; align-items: flex-end; }
  .gf-popup-box { max-height: 90vh; border-radius: 8px 8px 0 0; padding: 20px 16px; }
}

/* ── Platform grid mobile ── */
@media (max-width: 600px) {
  /* Platform items used in shelf companies section */
  .grid-4.platforms-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Header height mobile ── */
@media (max-width: 600px) {
  .header-wrapper { height: 64px; }
  .logo-text span { font-size: 1.25rem; }
  .logo-img, .logo-wrapper img { height: 34px; }
  .main-nav, .nav-links { top: 64px; }
}

/* ── CTA strip button row ── */
@media (max-width: 600px) {
  .cta-strip > .container > div[style] { flex-direction: column !important; gap: 10px !important; }
}

/* ── Scroll progress thin on mobile ── */
@media (max-width: 480px) {
  #scroll-progress { height: 2px; }
}

/* ── Prevent horizontal overflow ── */
* { max-width: 100%; }
img, video, iframe, table { max-width: 100%; }
pre, code { overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

/* ── Safe area insets for notched phones ── */
@supports (padding: max(0px)) {
  .site-header, #site-header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .site-footer {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* ── Mobile nav better UX ── */
@media (max-width: 960px) {
  .main-nav.is-open,
  .nav-links.is-open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav a.btn,
  .nav-links a.btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    border-bottom: none;
  }
}

/* ── Package list mobile ── */
@media (max-width: 480px) {
  .package-list li { font-size: 0.87rem; padding: 8px 0; }
}

/* ── Inline button groups in PHP templates ── */
@media (max-width: 600px) {
  /* Hero button rows */
  .page-hero .container > div[style*="display:flex"],
  .page-hero .container > div[style*="display: flex"] {
    flex-direction: column;
    gap: 10px !important;
    align-items: stretch !important;
  }
}

/* ── Comparison table mobile ── */
@media (max-width: 640px) {
  .shelf-compare-table { font-size: 0.8rem; }
  .shelf-compare-table th,
  .shelf-compare-table td { padding: 10px 8px; }
}
