/* =============================
   BenefridoGi — style.css
   Playful Dynamic theme (flexbox-only)
   ============================= */
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Verdana, Arial, sans-serif; background: #FFFFFF; color: #1F2A37; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2F6D56; text-decoration: none; }
a:hover { color: #4D96FF; }
:focus { outline: 3px solid #FFD166; outline-offset: 2px; }

/* Color System (Brand + Playful pops) */
:root {
  --primary: #2C3A4B; /* slate */
  --secondary: #2F6D56; /* green */
  --accent: #F5F1EA; /* sand */
  --ink: #1F2A37; /* dark text */
  --bg: #FFFFFF;
  --muted: #E8EEF5;
  --bright1: #FF6B6B; /* coral */
  --bright2: #FFD166; /* sunflower */
  --bright3: #06D6A0; /* mint */
  --bright4: #4D96FF; /* playful blue */
  --shadow-sm: 0 2px 10px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.16);
  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 18px;
}

/* Typography */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); margin: 0 0 8px; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: -0.3px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}
.subheadline { font-size: 18px; color: #334155; max-width: 60ch; }
.microcopy, .notes { font-size: 14px; color: #475569; }
strong { color: var(--primary); }

/* Containers & Layout (Flexbox-only) */
.container { display: flex; width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; width: 100%; }
section { padding: 40px 0; }

/* Mandatory spacing/alignment utility classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* Header */
header { position: sticky; top: 0; z-index: 1000; background: var(--bg); box-shadow: var(--shadow-sm); }
header .container { align-items: center; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.logo img { height: 40px; }
.main-nav { display: none; align-items: center; gap: 12px; }
.main-nav a { color: var(--primary); padding: 10px 12px; border-radius: var(--radius-sm); transition: background 0.2s ease, transform 0.2s ease; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 4px; background: transparent; border-radius: 4px; transition: background 0.2s ease; }
.main-nav a:hover { background: var(--accent); }
.main-nav a:hover::after { background: var(--bright2); }
.header-cta { display: none; align-items: center; gap: 10px; }
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; font-size: 22px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bright4); color: #fff; border: none; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-2px); }
@media (min-width: 992px) { .main-nav, .header-cta { display: flex; } .mobile-menu-toggle { display: none; } }

/* Mobile menu */
.mobile-menu { position: fixed; top: 0; right: 0; height: 100vh; width: 100%; max-width: 340px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.35s ease; z-index: 1200; display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--primary); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { display: flex; padding: 12px 14px; border-radius: var(--radius-md); background: var(--accent); color: var(--primary); box-shadow: var(--shadow-sm); transition: background 0.2s ease, transform 0.2s ease; }
.mobile-nav a:hover { background: #fff; transform: translateX(4px); }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.3s ease; z-index: 1100; display: none; }
.mobile-menu-overlay.show { display: block; opacity: 1; }

/* Hero */
.hero { background: var(--accent); overflow: hidden; position: relative; }
.hero .content-wrapper { padding: 30px 0; align-items: flex-start; }
.hero h1 { position: relative; }
.hero h1::before { content: ''; position: absolute; left: -6px; bottom: 6px; width: 120%; height: 12px; background: var(--bright2); z-index: -1; border-radius: 8px; transform: rotate(-1.5deg); }
.hero .subheadline { max-width: 60ch; }
/* playful floating dots */
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; opacity: 0.2; z-index: 0; }
.hero::before { width: 160px; height: 160px; background: var(--bright3); left: -40px; top: -40px; animation: floaty 8s ease-in-out infinite; }
.hero::after { width: 200px; height: 200px; background: var(--bright1); right: -60px; bottom: -60px; animation: floaty 10s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.03); } }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease; box-shadow: 0 4px 0 rgba(0,0,0,0.08); }
.button.primary { background: var(--bright4); color: #fff; }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(77,150,255,0.35); }
.button.secondary { background: #fff; color: var(--primary); border-color: var(--bright1); box-shadow: 0 4px 0 rgba(0,0,0,0.06); }
.button.secondary:hover { background: var(--bright1); color: #fff; transform: translateY(-2px); }
.button:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,0.12) inset; }

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

/* Lists & badges */
ul { list-style: none; padding-left: 0; margin: 0; }
ul li { position: relative; padding-left: 26px; }
ul li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; background: var(--bright2); border-radius: 50%; }
ol { margin: 0; padding-left: 20px; }

.trust-badges ul, .service-highlights ul, .highlight-stats ul, .quality-points, .service-crosslinks, .bundle-offers-list, .faq-list, .values { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.trust-badges li, .service-highlights li, .highlight-stats li, .quality-points li, .values li, .bundle-offers-list li { background: #fff; border: 1px solid var(--muted); border-radius: var(--radius-md); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.trust-badges img, .rating-summary img { width: 18px; height: 18px; margin-right: 8px; display: inline-block; vertical-align: middle; }

/* Cards & sections */
.service-cards ul, .testimonials, .case-studies, .materials-techniques ul { display: flex; flex-wrap: wrap; gap: 20px; }
.service-cards li { flex: 1 1 260px; background: #fff; border: 1px solid var(--muted); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.service-cards li:hover { transform: translateY(-4px) rotate(-0.2deg); box-shadow: var(--shadow-md); }

.testimonials { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card { flex: 1 1 280px; background: #fff; color: var(--ink); border: 1px solid var(--muted); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; }

.rating-summary p { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--accent); border-radius: var(--radius-sm); border: 1px dashed var(--bright2); }

.text-section { display: flex; flex-direction: column; gap: 16px; }
.supporting-text { color: #475569; }
.link-list a { color: var(--bright4); font-weight: 700; }

/* Columns (services) */
.columns { display: flex; flex-wrap: wrap; gap: 20px; }
.columns > div { flex: 1 1 260px; background: #fff; border: 1px solid var(--muted); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.columns h3 { margin-bottom: 8px; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
thead th { background: var(--secondary); color: #fff; text-align: left; padding: 14px; font-weight: 700; }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--muted); }
tbody tr:nth-child(even) td { background: #FAFBFF; }
tbody tr:hover td { background: #F1F7FF; }

/* Process & checklists */
.process-steps { display: flex; flex-direction: column; gap: 10px; counter-reset: step; padding-left: 0; }
.process-steps li { list-style: none; padding-left: 42px; position: relative; }
.process-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bright3); color: #073B4C; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.quality-checklist { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.quality-checklist li { background: #fff; border: 1px solid var(--muted); border-radius: 999px; padding: 8px 12px; }

/* Contact details */
.contact-details { display: flex; flex-direction: column; gap: 10px; }
.contact-details p { display: flex; align-items: center; gap: 10px; margin: 0; }
.contact-details img { width: 18px; height: 18px; }

/* Footer */
footer { background: #0F172A; color: #E2E8F0; padding: 40px 0; margin-top: 20px; }
footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; flex: 1 1 220px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-menu { display: flex; flex-direction: column; gap: 8px; flex: 1 1 180px; }
.footer-menu a { color: #E2E8F0; opacity: 0.9; }
.footer-menu a:hover { color: #FFD166; }
.footer-contact, .newsletter, .social, .copyright { flex: 1 1 260px; }
.social a { color: #93C5FD; }
.social a:hover { color: #06D6A0; }
footer a { text-decoration: none; }
footer p { margin: 0; }

/* Utility spacing */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; }

/* Playful accents for links within content */
.text-section a { position: relative; font-weight: 700; }
.text-section a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--bright2); border-radius: 4px; opacity: 0.6; transition: opacity 0.2s ease; }
.text-section a:hover::after { opacity: 1; }

/* Page-specific small tweaks */
.materials { background: #fff; border: 1px solid var(--muted); border-radius: var(--radius-md); padding: 14px; }
.policy-highlights, .policies-links, .contact-prompt { background: var(--accent); border-left: 6px solid var(--bright3); padding: 12px 14px; border-radius: var(--radius-sm); }
.response-times { color: #0F766E; }

/* Cookie Consent Banner */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; background: #ffffff; color: var(--ink); border: 1px solid var(--muted); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; z-index: 1500; transform: translateY(140%); transition: transform 0.35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-text { flex: 1 1 260px; font-size: 14px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .button { padding: 10px 14px; }
.cookie-buttons .accept { background: var(--bright3); color: #073B4C; }
.cookie-buttons .reject { background: #fff; color: var(--primary); border-color: var(--bright1); }
.cookie-buttons .settings { background: var(--bright4); color: #fff; }

/* Cookie Preferences Modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); opacity: 0; transition: opacity 0.25s ease; z-index: 1600; display: none; }
.cookie-overlay.show { display: block; opacity: 1; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.95); background: #fff; width: 96%; max-width: 620px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; z-index: 1700; opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; display: none; }
.cookie-modal.show { display: flex; flex-direction: column; gap: 16px; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent); border-radius: var(--radius-md); padding: 10px 12px; }
.cookie-tag { font-size: 12px; background: #fff; border: 1px dashed var(--bright2); padding: 2px 8px; border-radius: 999px; }
/* Toggle */
.cookie-toggle { display: flex; align-items: center; gap: 8px; }
.cookie-switch { position: relative; width: 44px; height: 26px; background: #CBD5E1; border-radius: 999px; transition: background 0.2s ease; }
.cookie-switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.cookie-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.cookie-checkbox:checked + .cookie-switch { background: var(--bright3); }
.cookie-checkbox:checked + .cookie-switch::after { transform: translateX(18px); }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Accessibility in testimonials and review sections */
.testimonials, .rating-summary, .testimonial-card { color: var(--ink); }
.testimonial-card { background: #FFFFFF; }

/* Tables in dark sections (fallback) */
footer table, footer thead th, footer tbody td { color: #E2E8F0; }

/* Responsive rules */
@media (min-width: 768px) {
  .hero .content-wrapper { padding: 50px 0; }
}
@media (min-width: 992px) {
  .content-wrapper.row { flex-direction: row; }
}

/* Additional page blocks */
.case-study { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--muted); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.materials-techniques { display: flex; flex-direction: column; gap: 10px; }
.form-fields-list, .usp-list { display: flex; flex-direction: column; gap: 8px; }
.social-links a { color: var(--bright4); }
.next-steps { display: flex; flex-direction: column; gap: 8px; }

/* Images inside text as inline icons */
p > img, li > img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* Decorative tags/chips */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--accent); border: 1px dashed var(--bright2); font-size: 12px; }

/* Ensure minimum gaps between blocks */
section + section { margin-top: 10px; }
.testimonials > * { margin: 0; }

/* Prevent overlapping by adding safe spacing */
.hero, header, footer, section, .cookie-banner, .mobile-menu { isolation: isolate; }

/* Print tweaks */
@media print { .mobile-menu-toggle, .header-cta, .main-nav, .mobile-menu, .cookie-banner, .cookie-overlay, .cookie-modal { display: none !important; } }
