/* =============================
   Reset & Base (mobile-first)
   ============================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: Verdana, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #2F4858; background-color: #F3F6FA; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0B5E8E; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: #083f5e; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 16px; color: #2F4858; }
:focus-visible { outline: 3px solid rgba(11,94,142,0.35); outline-offset: 2px; border-radius: 6px; }

/* =============================
   Theme Tokens
   ============================= */
:root {
  --primary: #0B5E8E;
  --secondary: #2F4858;
  --accent: #F3F6FA;
  --bg: #FFFFFF;
  --ink: #2F4858;
  --muted: #6E7D8A;
  --border: #E2EAF2;
  --shadow-1: 0 6px 18px rgba(11,94,142,0.15);
  --shadow-2: 0 10px 28px rgba(47,72,88,0.18);
}

/* =============================
   Typography
   ============================= */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #2F4858; margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 18px; margin: 0 0 16px; }
li { margin: 6px 0; }
strong { color: #2F4858; }
blockquote { margin: 0; font-style: italic; color: #2F4858; }

/* =============================
   Layout Containers (Flex Only)
   ============================= */
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
section { margin-bottom: 48px; padding: 32px 16px; background-color: transparent; }

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.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: var(--accent); border: 1px solid var(--border); border-left: 6px solid var(--primary); border-radius: 14px; box-shadow: var(--shadow-1); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =============================
   Header & Navigation
   ============================= */
header { background-color: #FFFFFF; background-image: linear-gradient(180deg, rgba(11,94,142,0.05), rgba(11,94,142,0)); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.header-bar img { width: 160px; height: auto; }
.main-nav { display: none; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--secondary); padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { background: var(--accent); color: var(--primary); }

/* CTA Buttons */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; box-shadow: var(--shadow-1); background-color: #FFFFFF; color: var(--primary); border: 1px solid var(--primary); }
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cta-btn.primary { background-color: var(--primary); background-image: linear-gradient(135deg, #0B5E8E, #2F4858); color: #FFFFFF; border: 1px solid #0B5E8E; }
.cta-btn.primary:hover { background-color: #094a70; }
.cta-btn.secondary { background-color: #FFFFFF; color: var(--primary); border: 1px solid var(--primary); }
.cta-btn.secondary:hover { background-color: #E9F2F8; }

/* =============================
   Mobile Navigation (Hamburger)
   ============================= */
.mobile-menu-toggle { position: fixed; right: 14px; top: 14px; z-index: 110; width: 44px; height: 44px; border-radius: 10px; background-color: #FFFFFF; color: var(--primary); box-shadow: var(--shadow-1); display: flex; align-items: center; justify-content: center; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); background-color: #F8FBFF; }

.mobile-menu { position: fixed; inset: 0; background: #FFFFFF; background-image: linear-gradient(135deg, rgba(11,94,142,0.06), rgba(47,72,88,0.03)); transform: translateX(100%); transition: transform .35s ease; z-index: 100; display: flex; flex-direction: column; padding: 18px; gap: 12px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; background: #FFFFFF; color: var(--secondary); box-shadow: var(--shadow-1); }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mobile-nav a { display: flex; padding: 14px; border-radius: 10px; color: var(--secondary); border: 1px solid var(--border); background: #FFFFFF; transition: background-color .2s ease, color .2s ease; }
.mobile-nav a:hover { background: var(--accent); color: var(--primary); }

/* Hide desktop nav on mobile; show on desktop */
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
  .main-nav { display: flex; }
}

/* =============================
   Hero Section (Gradient Modern)
   ============================= */
.hero { background-color: var(--primary); background-image: linear-gradient(135deg, #0B5E8E 0%, #2F4858 100%); color: #FFFFFF; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hero .content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero h1, .hero p, .hero li { color: #FFFFFF; }
.hero .cta-btn.secondary { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.hero .cta-btn.secondary:hover { background: rgba(255,255,255,0.12); }

/* =============================
   Reusable Content Blocks
   ============================= */
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }

.feature-grid, .service-cards, .milestone-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.feature-grid > div, .service-cards > div, .milestone-cards > div { flex: 1 1 260px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease; }
.feature-grid > div:hover, .service-cards > div:hover, .milestone-cards > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.feature-grid img { width: 40px; height: 40px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.trust-badges img { width: 42px; height: 42px; filter: saturate(0.85); }

.timeline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; box-shadow: var(--shadow-1); }

.comparison-snippet, .mission-statement, .brand-story, .tax-note, .examples-calculations, .info-block { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; box-shadow: var(--shadow-1); }

.rating-summary, .case-snippets, .value-pillars, .languages-supported, .association-memberships { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--border); background: #FFFFFF; box-shadow: var(--shadow-1); }

/* Definition lists */
dl { display: flex; flex-direction: column; gap: 10px; }
dt { font-weight: 700; color: var(--secondary); }
dd { margin: 0 0 6px 0; color: var(--ink); }

/* Contact details block */
.contact-details { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; box-shadow: var(--shadow-1); }
.contact-details img { width: 18px; height: 18px; display: inline-block; vertical-align: middle; margin-right: 6px; }

/* Testimonials (readability requirement: dark text on light bg) */
.testimonial-card blockquote span { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--secondary); }

/* Pricing table */
.pricing-table { display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-1); overflow-x: auto; }
.pricing-table table { border-collapse: collapse; min-width: 560px; width: 100%; }
.pricing-table th, .pricing-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pricing-table thead th { background: #F0F6FB; color: var(--secondary); font-weight: 700; }
.pricing-table tbody tr:nth-child(even) { background: #FAFCFE; }

/* Footer */
footer { background-color: #0B5E8E; background-image: linear-gradient(180deg, #0B5E8E, #2F4858); color: #FFFFFF; }
.footer-wrapper { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 22px 0; }
.footer-nav, .legal-nav, .social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a, .legal-nav a { color: #FFFFFF; opacity: 0.9; padding: 6px 10px; border-radius: 8px; transition: background-color .2s ease, opacity .2s ease; }
.footer-nav a:hover, .legal-nav a:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.address-block { opacity: 0.95; }
.social-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); border-radius: 10px; transition: transform .2s ease, background-color .2s ease; }
.social-links a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.2); }
.newsletter-optin { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,0.08); padding: 12px; border-radius: 12px; }
.newsletter-optin input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); width: 100%; }
.newsletter-optin button { align-self: flex-start; }

/* Forms & Inputs */
input[type="email"], input[type="text"], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #FFFFFF; transition: border-color .2s ease, box-shadow .2s ease; }
input[type="email"]:focus, input[type="text"]:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,94,142,0.12); }

/* =============================
   Cookie Consent Banner & Modal
   ============================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--border); box-shadow: 0 -10px 22px rgba(47,72,88,0.12); padding: 16px; z-index: 1000; transform: translateY(100%); transition: transform .35s ease; display: flex; flex-direction: column; gap: 12px; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 10px; font-weight: 700; border: 1px solid var(--primary); color: var(--primary); background: #FFFFFF; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.cookie-banner .btn:hover { background: #E9F2F8; box-shadow: var(--shadow-1); }
.cookie-banner .btn-accept { background: var(--primary); background-image: linear-gradient(135deg, #0B5E8E, #2F4858); color: #FFFFFF; border-color: #0B5E8E; }
.cookie-banner .btn-accept:hover { background-color: #094a70; }
.cookie-banner .btn-reject { background: #FFFFFF; color: var(--secondary); border-color: var(--secondary); }
.cookie-banner .btn-settings { background: #FFFFFF; color: var(--primary); }

.cookie-modal { position: fixed; inset: 0; background: rgba(47,72,88,0.6); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1100; }
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content { width: 100%; max-width: 640px; background: #FFFFFF; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-2); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; }
.switch { width: 46px; height: 26px; background: #CBD6E2; border-radius: 26px; position: relative; transition: background-color .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform .2s ease; }
.switch.active { background: var(--primary); }
.switch.active::after { transform: translateX(20px); }

/* =============================
   Utility & Micro-interactions
   ============================= */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.muted { color: var(--muted); }
.center { display: flex; align-items: center; justify-content: center; }

/* =============================
   Responsive (Tablet & Desktop)
   ============================= */
@media (min-width: 768px) {
  section { margin-bottom: 60px; padding: 40px 20px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .text-image-section { flex-direction: row; }
  .content-grid { justify-content: space-between; }
  .newsletter-optin { flex-direction: row; align-items: center; }
  .newsletter-optin label { margin-right: 10px; }
  .newsletter-optin button { margin-left: 8px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* =============================
   Alternating Section Backgrounds (subtle)
   ============================= */
main > section:nth-of-type(even) { background: #FFFFFF; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* =============================
   Specific tweaks per page blocks
   ============================= */
.hero ul { margin-top: 6px; }
.feature-grid p, .service-cards p, .milestone-cards p { color: #3b4f5c; }
.red-flag { color: #A61B1B; font-weight: 700; }

/* =============================
   Accessibility & Print
   ============================= */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { color: #000; text-decoration: underline; }
  header, footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =============================
   Compliance: prevent overlapping
   ============================= */
section > .container > .content-wrapper > * + * { margin-top: 4px; }

/* =============================
   Additional Flex Helpers to match HTML classes
   ============================= */
.footer-nav, .legal-nav { align-items: center; }
.case-snippets { flex-direction: column; align-items: flex-start; }

/* =============================
   Ensure only Flexbox is used for layouts
   (No grid/columns properties present)
   ============================= */