/* ===============================
   TorriinGru Glanzservice – style.css
   Soft Pastel UI – Mobile-first, Flexbox only
   =============================== */

/* ========== CSS RESET & NORMALIZE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; min-height: 100%; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #22324A; background-color: #FAFCFE; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0 0 0 0; list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(11,61,145,0.35); outline-offset: 2px; border-radius: 6px; }

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* ========== THEME TOKENS (Soft Pastel) ========== */
:root {
  --brand-primary: #0B3D91; /* brand blue */
  --brand-secondary: #16A085; /* brand mint */
  --accent: #F5FAFF; /* brand accent */

  --pastel-blue: #E9F2FF; /* dreamy sky */
  --pastel-mint: #EAF8F5; /* soft mint */
  --pastel-lilac: #F3ECFF; /* gentle lilac */
  --pastel-blush: #FFEFF5; /* light rose */
  --pastel-sand: #FFF8E8; /* warm sand */

  --ink: #22324A; /* primary text (dark on light) */
  --muted: #5E6A75; /* secondary text */
  --line: #E6ECF2; /* subtle borders */
  --paper: #FAFCFE; /* page background */
  --white: #FFFFFF;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-xxl: 32px;

  --shadow-sm: 0 2px 8px rgba(11,61,145,0.06);
  --shadow-md: 0 6px 18px rgba(11,61,145,0.08);
  --shadow-lg: 0 12px 30px rgba(11,61,145,0.10);

  --font-display: "Montserrat", Inter, system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: 0.2px; margin: 0 0 12px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 700; margin-top: 8px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 700; }
h4 { font-size: 18px; line-height: 1.4; font-weight: 600; }
p { margin: 0 0 12px; font-size: 16px; color: var(--ink); }
small { font-size: 13px; color: var(--muted); }
em { color: var(--muted); }

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

/* ========== LAYOUT HELPERS (Flex-only) ========== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.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(--white); border: 1px solid #DDE8F5; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Generic section vertical rhythm for all pages */
main > section { padding: 36px 0; border-bottom: 0; }
main > section:last-child { padding-bottom: 56px; }

/* ========== HEADER & NAV ========== */
header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(11,61,145,0.04); }
header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { padding: 10px 12px; color: #33465A; border-radius: 999px; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--pastel-blue); color: var(--brand-primary); transform: translateY(-1px); }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--pastel-blue); color: var(--brand-primary); font-size: 22px; line-height: 1; box-shadow: var(--shadow-sm); }
.mobile-menu-toggle:hover { background: #DDEAFF; }

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

/* ========== MOBILE MENU OVERLAY ========== */
.mobile-menu { position: fixed; inset: 0; background: rgba(34,50,74,0.1); backdrop-filter: blur(3px); display: flex; align-items: stretch; justify-content: flex-end; transform: translateX(100%); transition: transform .35s ease; z-index: 1200; }
.mobile-menu .mobile-nav { width: 86vw; max-width: 380px; background: var(--white); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 4px; padding: 72px 20px 24px; position: relative; }
.mobile-menu .mobile-menu-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; background: var(--pastel-mint); color: #0E6655; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu .mobile-nav a { padding: 14px 12px; border-radius: 12px; color: var(--ink); font-size: 18px; }
.mobile-menu .mobile-nav a:hover { background: var(--pastel-blue); color: var(--brand-primary); }
/* Open states supported for JS toggling */
.mobile-menu.open, .mobile-menu.is-open, .mobile-menu.active { transform: translateX(0); }

/* ========== HERO ========== */
.hero { background: var(--pastel-blue); }
.hero .container { display: flex; flex-direction: column; gap: 16px; }
.hero .content-wrapper { padding: 18px 0; gap: 14px; }
.subheadline { font-size: 18px; color: #3A4A60; opacity: 0.9; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: #3E6BB5; text-decoration: underline; text-underline-offset: 3px; }

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

/* ========== BUTTONS & LINKS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-weight: 600; letter-spacing: 0.2px; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease; text-align: center; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand-primary); color: white; box-shadow: 0 6px 16px rgba(11,61,145,0.22); }
.btn-primary:hover { background: #0A357F; box-shadow: 0 8px 20px rgba(11,61,145,0.28); }

.btn-secondary { background: var(--brand-secondary); color: white; box-shadow: 0 6px 16px rgba(22,160,133,0.22); }
.btn-secondary:hover { background: #118D76; box-shadow: 0 8px 20px rgba(22,160,133,0.28); }

.link-secondary { color: #0B5ED7; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; border-radius: 8px; }
.link-secondary:hover { color: #0949A7; background: #E9F1FF; }

/* ========== LISTS WITH SOFT PASTEL BULLETS ========== */
.content-wrapper ul li, .content-wrapper ol li { position: relative; padding-left: 26px; margin: 6px 0; }
.content-wrapper ul li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; position: absolute; left: 6px; top: 0.6em; background: #C9DFFF; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
.content-wrapper ol { counter-reset: step; }
.content-wrapper ol li { counter-increment: step; }
.content-wrapper ol li::before { content: counter(step) "."; position: absolute; left: 0; top: 0; color: #667DA0; font-weight: 600; }

/* ========== TRUST BADGES & USP ========== */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); color: #2E4255; }
.trust-badges img { width: 18px; height: 18px; }

.usp-bullets h2 { margin-bottom: 6px; }
.usp-bullets ul { display: flex; flex-direction: column; gap: 6px; }

/* ========== TEXT BLOCKS ========== */
.text-section { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.rating-summary { padding: 12px 16px; border-radius: 14px; background: var(--pastel-mint); color: #0E6655; border: 1px solid #D4EFEA; display: inline-flex; }

/* ========== TESTIMONIALS (Readability on light bg) ========== */
.testimonial-card p { margin: 0; color: #2A3947; }
.testimonial-card p + p { color: #1F2D3A; }
.testimonial-card strong { font-weight: 700; }

/* ========== FOOTER ========== */
footer { background: var(--accent); border-top: 1px solid var(--line); margin-top: 20px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; padding: 28px 0; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 34px; }
.footer-contact, .footer-nav, .footer-cta, .footer-meta { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p, .footer-meta p { color: #3C4C5B; }
.footer-nav a { color: #315B9D; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.footer-nav a:hover { color: #173C78; }
.footer-cta .btn-primary { align-self: flex-start; }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .footer-brand { flex: 1 1 280px; }
  .footer-contact { flex: 1 1 280px; }
  .footer-nav { flex: 0 1 220px; }
  .footer-cta { flex: 0 1 220px; align-items: flex-start; justify-content: center; }
  .footer-meta { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
}

/* ========== PAGE SPECIFICS ========== */
/* Alternate gentle backgrounds for long pages for a dreamy rhythm */
main > section:nth-of-type(2n) { background: var(--white); }
main > section:nth-of-type(3n) { background: var(--pastel-mint); }
main > section:nth-of-type(5n) { background: var(--pastel-sand); }
/* Keep hero dedicated */
.hero + section { background: var(--white) !important; }

/* Price/FAQ/Lists spacing */
.content-wrapper > ul, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; }

/* Cards variant (if needed) */
.card.soft { background: var(--pastel-lilac); border-color: #E7DFFD; }

/* ========== RESPONSIVE FLEX ALIGNMENTS ========== */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
}

/* ========== FORMS & INPUTS (If used later) ========== */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); box-shadow: inset 0 1px 0 rgba(11,61,145,0.03); transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus { border-color: #93B5FF; box-shadow: 0 0 0 4px rgba(147,181,255,0.25); }
label { font-weight: 600; color: #2A3E52; margin-bottom: 6px; display: inline-block; }

/* ========== ACCESSIBLE STATES ========== */
a:focus-visible, .btn:focus-visible, .mobile-menu-toggle:focus-visible { outline: 3px solid rgba(22,160,133,0.35); outline-offset: 2px; }

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 14px; transform: translateY(110%); transition: transform .35s ease; }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; max-width: 1100px; width: 100%; margin: 0 14px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 16px; padding: 16px; }
.cookie-banner p { margin: 0; color: #2D3B49; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-actions .btn-accept { background: var(--brand-primary); color: #fff; border-radius: 999px; padding: 10px 16px; }
.cookie-actions .btn-accept:hover { background: #0A357F; }
.cookie-actions .btn-reject { background: #E7F0FF; color: #0B3D91; border-radius: 999px; padding: 10px 16px; }
.cookie-actions .btn-reject:hover { background: #D9E7FF; }
.cookie-actions .btn-settings { background: var(--pastel-mint); color: #0E6655; border-radius: 999px; padding: 10px 16px; }
.cookie-actions .btn-settings:hover { background: #D9F1EC; }
/* Show banner when JS adds .show/.open/active */
.cookie-banner.show, .cookie-banner.open, .cookie-banner.active { transform: translateY(0); }

/* ========== COOKIE SETTINGS MODAL ========== */
.cookie-modal { position: fixed; inset: 0; z-index: 1600; background: rgba(17, 25, 40, 0.28); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cookie-modal.open, .cookie-modal.active, .cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal .modal-box { background: var(--white); width: 100%; max-width: 760px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal .modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.cookie-modal .modal-content { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-radius: 14px; background: var(--accent); border: 1px solid var(--line); }
.cookie-row .desc { color: var(--muted); font-size: 14px; }
.cookie-row .always { color: #0E6655; background: var(--pastel-mint); border: 1px solid #D4EFEA; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle input[type="checkbox"] { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #D9E7FF; position: relative; transition: background-color .2s ease; border: 1px solid #BCD2FF; }
.toggle input[type="checkbox"]::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; top: 50%; left: 3px; transform: translateY(-50%); box-shadow: var(--shadow-sm); transition: left .2s ease; }
.toggle input[type="checkbox"]:checked { background: #ACECE1; border-color: #87E0D1; }
.toggle input[type="checkbox"]:checked::after { left: 21px; }

.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .btn-save { background: var(--brand-secondary); color: #fff; padding: 10px 16px; border-radius: 999px; }
.cookie-modal .btn-cancel { background: #EFF6FF; color: #173C78; padding: 10px 16px; border-radius: 999px; }

/* ========== TABLE-LIKE FLEX UTILITIES (no grid/columns) ========== */
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.col { flex: 1 1 260px; }

/* ========== MEDIA QUERIES FOR SPACING/TYPE SCALE ========== */
@media (min-width: 768px) {
  .hero .content-wrapper { padding: 28px 0 38px; gap: 16px; }
  main > section { padding: 48px 0; }
}
@media (min-width: 1200px) {
  main > section { padding: 56px 0; }
}

/* ========== ACCESSIBLE COLOR CONTRAST FOR REVIEWS ========== */
/* Ensure text is dark on light backgrounds inside testimonials and rating areas */
section .testimonial-card, .rating-summary { color: #1D2A36; }

/* ========== MISC MICRO-INTERACTIONS ========== */
.card, .testimonial-card, .trust-badges li { transition: transform .15s ease, box-shadow .2s ease; }
.card:hover, .testimonial-card:hover, .trust-badges li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ========== NAV LINK STATES ========== */
.main-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--brand-primary); font-weight: 700; }

/* ========== BREADTH & CONSISTENCY FOR ALL PAGES ========== */
/* Headline blocks spacing harmony */
.content-wrapper > h2 + .text-section { margin-top: 4px; }
.content-wrapper > h2 + ul, .content-wrapper > h2 + ol { margin-top: 2px; }

/* ========== SPECIFIC CLASS REINFORCEMENTS (pages) ========== */
/* Index highlights */
.hero .cta-group .link-secondary { background: var(--white); color: #0B5ED7; border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; }
.hero .cta-group .link-secondary:hover { background: #ECF3FF; }

/* Lists inside footer-contact with icons */
.footer-contact p { display: flex; align-items: center; gap: 10px; }
.footer-contact img { width: 18px; height: 18px; }

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

/* ========== STRICT FLEXBOX RULES VALIDATION ========== */
/* No grid or columns used anywhere. All layout containers use flexbox. */
