/* =====================================
   Reset & Base
   ===================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #0B1F3A; background-color: #FFFFFF; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
button { font: inherit; background: transparent; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #2E8BC0; outline-offset: 2px; }

/* =====================================
   Theme (gradient_modern)
   ===================================== */
:root {
  --primary: #0B1F3A;
  --secondary: #2E8BC0;
  --accent: #F2F7FA;
  --text: #0B1F3A;
  --text-muted: #3E5874;
  --surface: #FFFFFF;
  --surface-alt: #F7FAFD;
  --border: #D8E6EF;
  --shadow: 0 8px 24px rgba(11,31,58,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 220ms ease;
}

/* Typography scale */
h1, h2, h3, h4 { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: var(--primary); line-height: 1.25; margin: 0; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0; color: var(--text); }
small, .microcopy { font-size: 14px; color: var(--text-muted); }
.subheadline { font-size: 18px; color: var(--text-muted); }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #1f6e9a; text-decoration: underline; }

/* =====================================
   Layout helpers (Flexbox only)
   ===================================== */
.container { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); color: #0B1F3A; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure min spacing between all content blocks */
section + section { margin-top: 20px; }

/* =====================================
   Header & Navigation (Mobile-first)
   ===================================== */
.site-header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(11,31,58,0.04); }
.site-header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 20px; }
.main-nav a { color: var(--primary); padding: 8px 10px; border-radius: 8px; transition: background var(--transition), color var(--transition); }
.main-nav a:hover { background: var(--accent); color: var(--primary); text-decoration: none; }

.header-cta { display: none; align-items: center; gap: 10px; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--primary); transition: background var(--transition), transform var(--transition); }
.mobile-menu-toggle:hover { background: #E6F2F9; transform: translateY(-1px); }

/* Mobile fullscreen menu */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; padding: 20px; background: #FFFFFF; transform: translateX(100%); opacity: 0; visibility: hidden; transition: transform 280ms ease, opacity 220ms ease, visibility 220ms ease; z-index: 1200; border-left: 1px solid var(--border); }
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open, body.menu-open .mobile-menu { transform: translateX(0); opacity: 1; visibility: visible; }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--primary); }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mobile-nav a { padding: 14px 12px; border-radius: 10px; background: var(--surface-alt); color: var(--primary); font-weight: 600; }
.mobile-nav a:hover { background: var(--accent); text-decoration: none; }

/* =====================================
   Hero Sections (gradient_modern)
   ===================================== */
.hero { background-color: var(--accent); background-image: linear-gradient(135deg, #F2F7FA 0%, #FFFFFF 60%); padding: 56px 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(46,139,192,0.18), rgba(255,255,255,0)); z-index: 0; }
.hero .container { position: relative; z-index: 1; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; }
.breadcrumbs a { color: var(--text-muted); }
.hero h1 { font-size: 28px; }
.hero .subheadline { max-width: 60ch; }

/* =====================================
   Buttons
   ===================================== */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-weight: 700; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #2E8BC0, #1F6E9A); color: #FFFFFF; box-shadow: 0 8px 18px rgba(46,139,192,0.25); border: 1px solid #1F6E9A; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(46,139,192,0.28); text-decoration: none; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: #FFFFFF; color: var(--primary); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-secondary:hover { background: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================================
   Text & Lists
   ===================================== */
.text-section { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.text-section ul, .text-section ol, ul, ol { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; margin: 0; }
.text-section li, li { margin: 0; }
.supporting-points { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; color: var(--text); }
.service-benefits { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; }
.microcopy { color: var(--text-muted); }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 14px; }

/* =====================================
   Testimonials (high contrast requirement)
   ===================================== */
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: var(--primary); }

/* =====================================
   Footer
   ===================================== */
.site-footer { background: linear-gradient(180deg, #0B1F3A 0%, #0A1A31 100%); color: #FFFFFF; padding: 40px 0; margin-top: 40px; }
.site-footer .content-wrapper { align-items: stretch; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; flex: 1 1 220px; min-width: 220px; }
.site-footer h4 { color: #E6F0FA; margin-bottom: 4px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: #C8D7E8; }
.site-footer nav a:hover { color: #FFFFFF; text-decoration: none; }
.site-footer address { font-style: normal; color: #C8D7E8; }
.site-footer p { color: #C8D7E8; }
.site-footer .social { display: flex; align-items: center; gap: 10px; }
.site-footer .social a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); align-items: center; justify-content: center; transition: background var(--transition), transform var(--transition); }
.site-footer .social a:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* =====================================
   Utilities & Elements
   ===================================== */
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.bordered { border: 1px solid var(--border); border-radius: var(--radius-md); }
.surface { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius-md); }
.muted { color: var(--text-muted); }

/* =====================================
   Forms (if any appear later)
   ===================================== */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #FFFFFF; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(46,139,192,0.12); }
label { font-weight: 600; color: var(--primary); margin-bottom: 6px; display: inline-flex; }

/* =====================================
   Page-specific enhancements
   ===================================== */
/* Breadcrumbs spacing in hero of index */
.hero .breadcrumbs { margin-top: 8px; }

/* Index badges list behaves well */
.trust-badges span { background: #FFFFFF; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; }

/* Lists in steps */
ol.text-section { padding-left: 18px; }

/* Social rows in Thank you */
.social { display: flex; align-items: center; gap: 12px; }

/* =====================================
   Tables (legal pages potential)
   ===================================== */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-alt); color: var(--primary); }

/* =====================================
   Mobile Menu visibility rules
   ===================================== */
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
}

/* =====================================
   Responsive Typography & Layout
   ===================================== */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  .hero { padding: 72px 0; }
  .text-image-section { flex-direction: row; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* =====================================
   Cookie Consent (banner + modal)
   ===================================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; background: #FFFFFF; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(11,31,58,0.08); display: flex; }
.cookie-banner .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.cookie-text { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: linear-gradient(135deg, #2E8BC0, #1F6E9A); color: #fff; border: 1px solid #1F6E9A; }
.cookie-actions .btn-reject { background: #FFFFFF; color: var(--primary); border: 1px solid var(--border); }
.cookie-actions .btn-settings { background: var(--accent); color: var(--primary); border: 1px solid var(--border); }
.cookie-actions a, .cookie-actions button { padding: 10px 14px; border-radius: 10px; font-weight: 700; }

/* Cookie preferences modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(11,31,58,0.45); opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; padding: 20px; transform: translateY(20px); transition: transform var(--transition), opacity var(--transition); opacity: 0; }
.cookie-overlay.open, .cookie-overlay.active { opacity: 1; visibility: visible; }
.cookie-overlay.open .cookie-modal, .cookie-overlay.active .cookie-modal { transform: translateY(0); opacity: 1; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface-alt); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =====================================
   Accessibility helpers
   ===================================== */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* =====================================
   Additional Components for consistency
   ===================================== */
.breadcrumbs a:hover { text-decoration: underline; }

/* Cards used for lists/case studies if needed */
.case-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #FFFFFF; box-shadow: var(--shadow); }

/* Ensure no overlap spacing */
.content-wrapper > * { margin: 0; }

/* =====================================
   Print styles (basic)
   ===================================== */
@media print {
  .site-header, .site-footer, .mobile-menu, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: underline; color: #000; }
}
