/* =====================================
   Pristine Flash Automation - style.css
   Creative Artistic theme + Brand-aligned
   Mobile-first, Flexbox-only layouts
   ===================================== */

/* ------------------------------
   1) Reset & Root Variables
   ------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body, 'Verdana', 'Geneva', sans-serif); color: var(--ink); background: var(--bg); line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--vivid-amber); outline-offset: 2px; }

:root {
  --primary: #0B2D3D;
  --secondary: #1F7A8C;
  --accent: #F2F5F7;
  --ink: #0B2D3D;
  --ink-2: #173D4D;
  --muted: #4F6B77;
  --bg: #F8FBFC;
  --white: #FFFFFF;
  /* Creative vibrant accents (supporting palette) */
  --vivid-pink: #FF4D6D;
  --vivid-amber: #FFB703;
  --vivid-purple: #7B2CBF;
  --vivid-teal: #2EC4B6;
  --shadow: rgba(11, 45, 61, 0.12);
  --shadow-strong: rgba(11, 45, 61, 0.18);
  --radius-s: 10px; --radius-m: 16px; --radius-l: 28px;
  --transition: 220ms ease;
  --font-display: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Verdana', 'Geneva', sans-serif;
}

/* ------------------------------
   2) Typography
   ------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--primary); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 32px; letter-spacing: -0.2px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; color: var(--ink-2); }
p { margin: 0 0 14px; color: var(--ink); }
.subheadline { color: var(--muted); font-size: 16px; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin: 6px 0; }

/* Creative headers underline blocks */
h2::after { content: ''; display: block; width: 64px; height: 6px; background: var(--secondary); border-radius: 4px; margin-top: 10px; }

/* ------------------------------
   3) Containers & Global Layout (Flex-only)
   ------------------------------ */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; }
main { display: flex; flex-direction: column; gap: 40px; }
section { position: relative; padding: 40px 0; }

/* Mandatory spacing pattern class */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Content wrapper behaves as flexible stack that can wrap into columns on larger screens */
.content-wrapper { display: flex; flex-direction: column; gap: 24px; flex-wrap: wrap; }

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

/* Generic text card blocks for visual rhythm */
.text-section { background: var(--white); border: 1px solid #E6EEF2; border-radius: var(--radius-m); padding: 18px 16px; box-shadow: 0 6px 16px var(--shadow); }
.text-section h3 { margin-top: 4px; }

/* Add playful bullets without layout-breaking (decorative only) */
.text-section ul { list-style: none; padding-left: 0; }
.text-section ul li { display: flex; align-items: flex-start; gap: 10px; }
.text-section ul li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; background: var(--vivid-amber); display: inline-block; box-shadow: 0 0 0 2px #fff inset; }

/* Alternate bullet colors for energy */
.text-section ul li:nth-child(2)::before { background: var(--vivid-pink); }
.text-section ul li:nth-child(3)::before { background: var(--vivid-teal); }
.text-section ul li:nth-child(4)::before { background: var(--vivid-purple); }

/* ------------------------------
   4) Header & Navigation
   ------------------------------ */
header { position: sticky; top: 0; background: var(--white); z-index: 1000; border-bottom: 1px solid #E6EEF2; box-shadow: 0 4px 12px rgba(11,45,61,0.06); }
header::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--secondary); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 38px; width: auto; }

/* Desktop nav hidden by default (mobile-first) */
.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: var(--ink); padding: 8px 10px; border-radius: 10px; transition: background var(--transition), color var(--transition), transform var(--transition); }
.main-nav a:hover { background: var(--accent); color: var(--primary); transform: translateY(-1px); text-decoration: none; }

/* Primary CTA in header */
header .button.primary { margin-left: auto; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #D9E5EA; background: var(--white); color: var(--primary); cursor: pointer; transition: box-shadow var(--transition), transform var(--transition); }
.mobile-menu-toggle:hover { box-shadow: 0 6px 14px var(--shadow); transform: translateY(-1px); }

/* ------------------------------
   5) Buttons
   ------------------------------ */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; letter-spacing: 0.2px; transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition); text-decoration: none; }
.button.primary { background: var(--secondary); color: var(--white); box-shadow: 0 8px 20px var(--shadow); }
.button.primary:hover { background: #156579; box-shadow: 0 10px 22px var(--shadow-strong); transform: translateY(-2px); }
.button.secondary { background: var(--white); color: var(--secondary); border-color: var(--secondary); }
.button.secondary:hover { background: var(--accent); color: #13596A; border-color: #13596A; transform: translateY(-2px); }
.button:active { transform: translateY(0); }

/* ------------------------------
   6) Hero Sections (creative + accessible)
   ------------------------------ */
.hero { background: var(--accent); overflow: hidden; }
.hero .container { position: relative; }
/* Decorative blocks */
.hero::before, .hero::after { content: ''; position: absolute; pointer-events: none; z-index: 0; }
.hero::before { right: -40px; top: -40px; width: 180px; height: 180px; background: var(--vivid-amber); opacity: 0.25; border-radius: 24px; transform: rotate(12deg); }
.hero::after { left: -60px; bottom: -60px; width: 260px; height: 260px; background: var(--vivid-teal); opacity: 0.22; border-radius: 36px; transform: rotate(-8deg); }
.hero .content-wrapper { position: relative; z-index: 1; }
.hero h1 { font-size: 30px; }
.hero p { max-width: 760px; }

/* ------------------------------
   7) Cards & Flexible Layout Helpers (Flex-only)
   ------------------------------ */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: var(--white); border: 1px solid #E6EEF2; border-radius: var(--radius-m); padding: 18px; margin-bottom: 20px; position: relative; box-shadow: 0 6px 16px 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 #E6EEF2; border-left: 8px solid var(--secondary); border-radius: var(--radius-m); box-shadow: 0 8px 18px var(--shadow); color: var(--ink); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Creative accents for testimonials */
.testimonial-card:nth-child(1) { border-left-color: var(--vivid-pink); }
.testimonial-card:nth-child(2) { border-left-color: var(--vivid-amber); }
.testimonial-card:nth-child(3) { border-left-color: var(--vivid-purple); }

/* Ensure readable contrast for quotes */
.testimonial-card p { margin: 0; color: var(--ink); }
.testimonial-card strong { color: var(--primary); }

/* ------------------------------
   8) Footer
   ------------------------------ */
footer { background: var(--primary); color: #D9E6EB; padding: 40px 0 24px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 20px; }
footer a { color: #E7F4F8; }
footer a:hover { color: #FFFFFF; text-decoration: underline; }
footer img { filter: brightness(100%); }
footer p { margin: 0; color: #CFE2E8; }

/* ------------------------------
   9) Mobile Menu (overlay, slide-in)
   ------------------------------ */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 88%; max-width: 360px; background: var(--white); box-shadow: -8px 0 24px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform 300ms ease; z-index: 1200; display: flex; flex-direction: column; padding: 18px; gap: 16px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #D9E5EA; background: var(--white); color: var(--primary); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { padding: 14px 10px; border-radius: 12px; color: var(--ink); background: var(--accent); box-shadow: 0 4px 10px var(--shadow); }
.mobile-nav a:hover { background: #E9F2F5; text-decoration: none; }

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

/* ------------------------------
   10) Cookie Consent Banner & Modal
   ------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 3px solid var(--secondary); box-shadow: 0 -8px 24px rgba(0,0,0,0.12); z-index: 1300; transform: translateY(100%); transition: transform 300ms ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .banner-inner { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; max-width: 1140px; margin: 0 auto; }
.cookie-banner p { margin: 0; color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .button { padding: 10px 16px; }
.cookie-accept { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.cookie-accept:hover { background: #156579; }
.cookie-reject { background: var(--white); color: var(--primary); border-color: var(--primary); }
.cookie-reject:hover { background: var(--accent); }
.cookie-settings { background: var(--white); color: var(--secondary); border-color: var(--secondary); }
.cookie-settings:hover { background: var(--accent); }

/* Modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1400; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-backdrop.show { display: flex; }
.cookie-modal { background: var(--white); border: 1px solid #E6EEF2; border-radius: var(--radius-l); box-shadow: 0 18px 44px rgba(0,0,0,0.22); width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal h3 { margin-bottom: 4px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switches (decorative, accessible with JS) */
.toggle { display: flex; align-items: center; gap: 10px; }
.toggle input { appearance: none; width: 44px; height: 24px; border-radius: 999px; background: #C8D7DE; position: relative; transition: background var(--transition); outline: none; border: 1px solid #9FB6C0; }
.toggle input::after { content: ''; position: absolute; top: 50%; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transform: translateY(-50%); transition: left var(--transition); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.toggle input:checked { background: var(--secondary); border-color: var(--secondary); }
.toggle input:checked::after { left: 23px; }

/* ------------------------------
   11) Artistic Micro-accents & Utilities
   ------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--primary); font-weight: 700; }
.shadow-soft { box-shadow: 0 8px 18px var(--shadow); }
.muted { color: var(--muted); }

/* ------------------------------
   12) Responsiveness (mobile-first)
   ------------------------------ */
@media (min-width: 576px) {
  h1 { font-size: 34px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .subheadline { font-size: 18px; }
  /* Make text sections flow into columns while using flex-wrap */
  .content-wrapper { flex-direction: row; }
  .content-wrapper > .text-section { flex: 1 1 300px; }
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  .container { gap: 20px; }
  .hero h1 { font-size: 46px; }
}

/* Responsive alignment rule for text-image sections on small screens */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ------------------------------
   13) Page-specific soft touches
   ------------------------------ */
/* Provide extra breathing room for ordered lists in process/how-to sections */
ol { padding-left: 22px; }
ol li { margin: 8px 0; }

/* Encourage wrapping and spacing of repeated CTAs at the end of pages */
.content-wrapper > .button { align-self: flex-start; }

/* ------------------------------
   14) Accessibility & Contrast Helpers
   ------------------------------ */
/* Ensure testimonial readability (dark text on light background) */
section .testimonial-card { background: #FFFFFF; color: var(--ink); }

/* ------------------------------
   15) Prevent Overlap & Safe Spacing
   ------------------------------ */
/* Ensure minimum spacing between cards/sections */
section + section { margin-top: 0; }
section .content-wrapper > * { margin: 0; }
section .content-wrapper > * + * { margin-top: 0; }

/* ------------------------------
   16) Link & Icon Tweaks
   ------------------------------ */
nav a { transition: color var(--transition), background var(--transition), transform var(--transition); }
nav a:active { transform: translateY(1px); }

/* ------------------------------
   17) Decorative dividers (no layout impact)
   ------------------------------ */
.section-divider { height: 8px; width: 100px; background: var(--vivid-pink); border-radius: 6px; box-shadow: 24px 0 0 var(--vivid-amber), 48px 0 0 var(--vivid-teal); }

/* End of stylesheet */
