/* =========================
   Reset & Base (Elegant Classic)
   ========================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
button, input, select, textarea { font: inherit; color: inherit; }
:root {
  --primary: #0B2C4D;
  --secondary: #FF6B00;
  --accent: #F2F5F9;
  --ink: #1E2933; /* deep classic text */
  --muted-ink: #495560;
  --line: #E2E6EB;
  --paper: #FAFAF7; /* warm off-white */
  --surface: #FFFFFF;
  --shadow: 0 6px 18px rgba(11,44,77,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}
html { 
  font-size: 16px; 
}
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; /* brand display */
  color: var(--primary);
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
h1 { font-size: 34px; line-height: 1.25; }
h2 { font-size: 28px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.35; }
p { margin: 0 0 14px; color: var(--ink); }
.subtitle { color: var(--muted-ink); font-size: 18px; }
.text-section { color: var(--ink); }
.text-section p { margin-bottom: 12px; }
.text-section ul { margin: 0 0 12px; padding-left: 20px; }
.text-section li { margin-bottom: 8px; }
.tagline { font-style: italic; color: var(--muted-ink); }
strong { color: var(--ink); font-weight: 700; }
em { color: var(--muted-ink); }

/* Links */
a { color: var(--primary); transition: color 0.2s ease, opacity 0.2s ease; }
a:focus { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* Utility Containers & Layout (Flex-only) */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; 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; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 18px; }
.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 #E6E9EE; border-radius: var(--radius-md); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Lists - classic bullets */
ul { list-style: disc; }
ol { list-style: decimal; }
.usp-bullets { padding-left: 20px; }
.usp-bullets li { margin-bottom: 8px; }

/* Buttons */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; letter-spacing: 0.2px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 6px 16px rgba(11,44,77,0.18); }
.btn-primary:hover { background: #0a3a6b; border-color: #0a3a6b; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,0.035); }
.site-header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.brand img { height: 36px; width: auto; }
.main-nav { display: none; gap: 18px; align-items: center; }
.main-nav a { color: var(--ink); padding: 8px 10px; border-radius: 6px; }
.main-nav a:hover { background: var(--accent); }
.header-ctas { display: none; gap: 10px; }

/* Mobile menu toggler */
.mobile-menu-toggle { background: #fff; color: var(--primary); border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 20px; line-height: 1; box-shadow: var(--shadow); }
.mobile-menu-toggle:hover { background: var(--accent); }
.mobile-menu { position: fixed; inset: 0 0 0 0; background: rgba(11,44,77,0.06); display: flex; justify-content: flex-end; transform: translateX(100%); transition: transform 0.3s ease; z-index: 1200; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav { width: 84%; max-width: 360px; background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 22px rgba(0,0,0,0.12); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-close { align-self: flex-start; margin: 14px 16px 0 0; background: #fff; border: 1px solid var(--line); color: var(--primary); padding: 6px 10px; border-radius: 8px; cursor: pointer; position: absolute; right: 10px; top: 10px; }
.mobile-nav a { display: flex; padding: 12px 10px; border-radius: 8px; color: var(--ink); border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--accent); border-color: var(--line); }

/* Hero */
.hero { background: linear-gradient(0deg, var(--surface), var(--surface)); border-bottom: 1px solid var(--line); }
.hero .content-wrapper { padding: 28px 0; }
.hero h1 { margin-bottom: 6px; }
.hero .subtitle { margin-bottom: 6px; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Section patterns */
section { margin-bottom: 48px; }
.trust, .features, .services, .services-detailed, .feature-check, .feature-data, .feature-onsite, .feature-support, .process, .pricing, .stats, .faq, .contact-cta, .packages, .comparison, .cases, .about-mission, .about-team, .reasons, .service-area, .cta, .contact-details, .what-next, .cookie-types, .cookie-consent, .cookie-storage, .legal, .gdpr-rights, .gdpr-legal, .gdpr-transfers, .contact-privacy, .next-steps, .while-waiting {
  padding: 26px 0; 
}

/* Alternating subtle section backgrounds for classic rhythm */
.trust, .services, .feature-data, .feature-support, .stats, .faq, .comparison, .cases, .reasons, .service-area, .contact-details, .what-next, .cookie-types, .cookie-storage, .legal:nth-of-type(even) {
  background: var(--accent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Text blocks & icons */
.text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; height: 18px; width: 18px; opacity: 0.85; }
.review-snapshot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow); }
.city-selector { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; }

/* Testimonials - readability on light surfaces */
.testimonials .content-wrapper { gap: 16px; }
.testimonials .testimonial-card p { margin: 0; color: var(--ink); }
.testimonials .testimonial-card p + p { color: var(--muted-ink); }

/* Pricing & Packages */
.pricing .text-section ul li, .packages .text-section ul li { margin-bottom: 8px; }

/* CTA blocks */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: #0A233C; color: #E8EDF3; padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.site-footer .content-wrapper { flex-direction: column; gap: 18px; }
.site-footer .brand-badge img { height: 32px; filter: brightness(110%); }
.mini-nav, .legal-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.mini-nav a, .legal-links a { color: #E8EDF3; opacity: 0.9; }
.mini-nav a:hover, .legal-links a:hover { opacity: 1; text-decoration: underline; }
.footer-contact a { color: #FFFFFF; text-decoration: underline; }
.footer-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-ctas .btn-secondary { background: transparent; color: #E8EDF3; border-color: #E8EDF3; }
.footer-ctas .btn-secondary:hover { background: rgba(255,255,255,0.06); }

/* Cards & subtle dividers to evoke classic elegance */
hr, .rule { border: none; height: 1px; background: var(--line); width: 100%; }
.card--elevated { box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* Accessibility & focus */
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* Micro-interactions */
.card, .testimonial-card, .review-snapshot, .city-selector { transition: transform 0.15s ease, box-shadow 0.2s ease; }
.card:hover, .testimonial-card:hover, .review-snapshot:hover, .city-selector:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }

/* Cookie Consent Banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; background: #FFFFFF; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,0.06); padding: 14px 16px; display: none; }
.cookie-banner.is-visible { display: block; animation: slideUp 280ms ease forwards; }
.cookie-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cookie-banner .copy { display: flex; flex: 1; align-items: center; gap: 12px; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 14px; }
.cookie-banner .btn-accept { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.cookie-banner .btn-accept:hover { background: #e05f00; border-color: #e05f00; }
.cookie-banner .btn-reject { background: #fff; color: var(--primary); border-color: var(--primary); }
.cookie-banner .btn-settings { background: var(--accent); color: var(--primary); border-color: var(--line); }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(8,18,30,0.55); display: none; z-index: 1400; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.is-visible { display: flex; animation: fadeIn 240ms ease; }
.cookie-modal .modal-shell { background: #fff; width: 100%; max-width: 720px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,0.16); display: flex; flex-direction: column; overflow: hidden; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--accent); border-bottom: 1px solid var(--line); }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.cookie-modal .modal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cookie-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (min-width: 480px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
}
@media (min-width: 768px) {
  .content-wrapper { flex-direction: column; }
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
  .hero .content-wrapper { padding: 40px 0; }
  section { margin-bottom: 60px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .text-image-section { flex-direction: row; }
}
@media (min-width: 992px) {
  .site-header .content-wrapper { flex-direction: row; }
  .container { padding: 0 24px; }
  h1 { font-size: 48px; }
}

/* Page-specific fine-tuning */
/* Trust & Stats blocks */
.trust .text-section, .stats .text-section { display: flex; flex-direction: column; gap: 8px; }
.stats .content-wrapper { align-items: flex-start; }

/* Process ordered lists */
.process ol { padding-left: 20px; }
.process li { margin-bottom: 8px; }

/* Footer grid-like layout via flex (no CSS grid) */
.site-footer .content-wrapper { align-items: flex-start; }
@media (min-width: 992px) {
  .site-footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
  .site-footer .brand-badge { flex: 0 0 auto; }
  .mini-nav { flex: 1 1 280px; }
  .footer-contact { flex: 1 1 320px; }
  .legal-links { flex: 1 1 280px; }
  .footer-ctas { flex: 0 0 auto; }
}

/* Ensure mandated spacing helpers exist and are consistent */
/* Already declared above for: .section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item */

/* Classic separators for headings */
.content-wrapper > h2 { position: relative; padding-bottom: 6px; }
.content-wrapper > h2::after { content: ""; display: block; height: 2px; width: 48px; background: var(--secondary); margin-top: 10px; border-radius: 2px; }

/* Header nav layout (flex only) */
.site-header .container { display: flex; }
.site-header .content-wrapper { width: 100%; display: flex; }
.site-header .brand, .site-header .main-nav, .site-header .header-ctas { display: flex; align-items: center; }
.site-header .main-nav { flex: 1; justify-content: center; }
.site-header .header-ctas { justify-content: flex-end; }

/* Accessibility: high-contrast for testimonials */
.testimonials { background: var(--surface); }
.testimonials .testimonial-card { background: #FFFFFF; color: #111; }

/* Mini improvements for lists inside .text-section */
.text-section a { text-decoration: underline; }

/* Ensure no overlapping and adequate spacing */
.content-wrapper > * { margin-right: 0; }

/* Decorative badges/labels - optional */
.packages .text-section span { color: var(--secondary); font-weight: 700; }

/* Contact details spacing */
.contact-cta .text-section p { display: flex; align-items: center; gap: 8px; }

/* Header link spacing */
.main-nav a + a { margin-left: 4px; }

/* Classic card hover lift for interactive 
   elements while keeping structure stable */
.mini-nav a, .legal-links a { transition: opacity 0.2s ease, color 0.2s ease; }

/* Hide default outline for mouse, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Print adjustments (optional) */
@media print {
  .site-header, .site-footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
