/* ==========================
   Satol Atelier Creativ — style.css
   Nature_Organic theme with brand alignment
   Mobile-first, Flexbox-only layouts
   ========================== */

/* --------------------------
   1) Reset & Base Normalize
   -------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25rem; }

/* --------------------------
   2) Theme Tokens (CSS Vars)
   -------------------------- */
:root {
  /* Brand */
  --brand-navy: #1F2A44;   /* primary */
  --brand-teal: #2D9C8F;   /* secondary */
  --brand-accent: #F5F7FB; /* accent light */

  /* Nature_Organic extended palette (earth tones, greens) */
  --earth-cream: #F4F1EA;
  --earth-sand: #E9E3D6;
  --earth-stone: #D9D4C7;
  --forest: #2E5E4E;
  --bark: #5B4636;
  --leaf: #6BA58E;
  --moss: #4C7A68;

  /* Text & UI */
  --text: #1F2A44;
  --text-muted: #5F6B7A;
  --bg: #F7F6F3; /* soft neutral background across pages */
  --surface: #FFFFFF;
  --border: #DAD6CC;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(31,42,68,0.08);
  --shadow-softer: 0 3px 12px rgba(31,42,68,0.06);
  --shadow-focus: 0 0 0 3px rgba(45,156,143,0.35);

  /* Spacing scale */
  --sp-4: 4px;  --sp-8: 8px;  --sp-12: 12px;  --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-30: 30px; --sp-32: 32px;
  --sp-40: 40px; --sp-48: 48px; --sp-60: 60px; --sp-80: 80px;
}

/* --------------------------
   3) Base Typography
   -------------------------- */
html { font-size: 16px; }
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', Times, serif; /* brand display */
  color: var(--bark);
  line-height: 1.25;
  margin-bottom: var(--sp-16);
}

h1 { font-size: 32px; letter-spacing: -0.2px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p, li { font-size: 16px; color: var(--text); }
small, [aria-label="breadcrumbs"] { font-size: 14px; color: var(--text-muted); }

strong { color: var(--forest); font-weight: 700; }
em { color: var(--bark); }

/* Links */
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--moss); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 6px; }

/* --------------------------
   4) Layout Primitives (Flex-only)
   -------------------------- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; /* Flex-only requirement */
  flex-direction: column; /* mobile-first */
  gap: var(--sp-24);
}

.content-wrapper { /* used across sections */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-20);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

/* Mandated spacing classes */
.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(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-softer); }
.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; }

/* Generic card styling improvements */
.card > * { padding: var(--sp-16); }

/* Ensure minimum spacing between adjacent sections/cards */
section { margin-bottom: var(--sp-60); }
section > .container > .content-wrapper > * + * { margin-top: var(--sp-16); }

/* --------------------------
   5) Header & Navigation
   -------------------------- */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
header > .container {
  flex-direction: row; /* header row on mobile too */
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
}

.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--sp-20); }
.main-nav a { color: var(--brand-navy); font-weight: 600; padding: 8px 6px; border-radius: 6px; }
.main-nav a:hover { background: var(--earth-cream); color: var(--forest); text-decoration: none; }

.header-cta { display: none; }
.header-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  background: var(--brand-teal);
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-softer);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.header-cta a:hover { transform: translateY(-2px); background: var(--moss); text-decoration: none; box-shadow: var(--shadow-soft); }

/* Mobile menu button */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; font-size: 20px;
  background: var(--earth-cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--brand-navy);
  transition: background .2s ease;
}
.mobile-menu-toggle:hover { background: var(--earth-sand); }

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100vh; width: 86vw; max-width: 360px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(31,42,68,0.12);
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex; flex-direction: column; gap: var(--sp-20);
  padding: var(--sp-20);
  z-index: 100;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--earth-cream);
}
.mobile-nav { display: flex; flex-direction: column; gap: var(--sp-16); }
.mobile-nav a { padding: 12px 10px; border-radius: 8px; background: var(--brand-accent); color: var(--brand-navy); font-weight: 600; }
.mobile-nav a:hover { background: var(--earth-sand); color: var(--forest); text-decoration: none; }

/* Optional backdrop when menu open */
body.menu-open::before {
  content: ""; position: fixed; inset: 0; background: rgba(31,42,68,0.3);
  z-index: 90; pointer-events: auto;
}

/* --------------------------
   6) Hero Section (organic look)
   -------------------------- */
.hero {
  background: var(--earth-cream);
  position: relative;
  overflow: hidden;
}
.hero .container { padding-top: var(--sp-40); padding-bottom: var(--sp-40); }
.hero h1 { color: var(--bark); }
.hero p { color: var(--text); }

/* Organic decorative shapes */
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  background: var(--leaf);
  opacity: 0.12; filter: blur(0.2px);
  border-radius: 46% 54% 61% 39% / 41% 34% 66% 59%;
}
.hero::before { width: 360px; height: 360px; top: -120px; left: -80px; }
.hero::after  { width: 420px; height: 420px; bottom: -160px; right: -140px; background: var(--brand-teal); opacity: 0.10; }
.hero .content-wrapper { position: relative; z-index: 1; }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.cta-group a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--forest); color: #fff; font-weight: 700;
  box-shadow: var(--shadow-softer);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta-group a:hover { transform: translateY(-2px); background: var(--moss); text-decoration: none; box-shadow: var(--shadow-soft); }
.cta-group a:nth-child(2) { background: var(--surface); color: var(--forest); border: 1px solid var(--leaf); }
.cta-group a:nth-child(2):hover { background: var(--earth-sand); }

/* Breadcrumbs styling */
[aria-label="breadcrumbs"] { display: inline-flex; align-items: center; gap: 8px; opacity: .9; }

/* --------------------------
   7) Lists & Text Blocks
   -------------------------- */
.text-section ul, .text-section ol {
  display: flex; flex-direction: column; gap: var(--sp-8);
}
.text-section li {
  color: var(--text);
}
/* Icon rows inside contact lists */
.text-section ul li img { width: 18px; height: 18px; margin-right: 8px; }
.text-section ul li { display: flex; align-items: center; gap: 8px; }

/* Inline action links in paragraphs */
.text-section p a { color: var(--brand-teal); font-weight: 700; }
.text-section p a:hover { color: var(--moss); }

/* --------------------------
   8) Cards & Testimonials
   -------------------------- */
.testimonial-card {
  background: #FAF8F3; /* light, warm for readability */
  border: 1px solid var(--border);
  border-left: 6px solid var(--leaf);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-softer);
}
.testimonial-card p { margin: 0; }
.testimonial-card p:first-child { color: var(--text); }
.testimonial-card p + p { color: var(--bark); }

/* Decorative quote mark */
.testimonial-card::before {
  content: "\201C"; position: absolute; left: 14px; top: -8px; font-family: Georgia, serif; font-size: 60px; line-height: 1; color: rgba(91,70,54,0.18);
}

/* Generic feature items */
.feature-item h3 { color: var(--bark); }
.feature-item p { color: var(--text-muted); }

/* --------------------------
   9) Price/Portfolio/Service blocks using flexible rows
   -------------------------- */
/* Provide a reusable row layout without grid */
.row-flex { display: flex; flex-wrap: wrap; gap: var(--sp-20); align-items: stretch; }
.col { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-20); box-shadow: var(--shadow-softer); }

/* Content groups often inside text-section */
.text-section > div { display: flex; flex-direction: column; gap: var(--sp-12); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--sp-16); }
.text-section > div h3 { margin-bottom: 2px; }

/* --------------------------
   10) Buttons & Controls
   -------------------------- */
button { cursor: pointer; }
.btn, .button, .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--brand-teal); color: #fff; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover, .button:hover, .btn-primary:hover { background: var(--moss); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-outline { background: var(--surface); color: var(--forest); border: 1px solid var(--leaf); }
.btn-outline:hover { background: var(--earth-sand); }

/* --------------------------
   11) Footer
   -------------------------- */
footer { background: var(--earth-sand); border-top: 1px solid var(--border); }
footer .content-wrapper { display: flex; flex-direction: column; gap: var(--sp-24); padding-top: var(--sp-24); padding-bottom: var(--sp-24); }
footer h3 { color: var(--bark); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
footer nav a { color: var(--brand-navy); padding: 2px 0; }
footer nav a:hover { color: var(--forest); text-decoration: underline; }
footer p, footer a { color: var(--text); }

/* --------------------------
   12) Cookie Consent (banner + modal)
   -------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--earth-cream);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(31,42,68,0.08);
  padding: var(--sp-16);
  z-index: 60;
  display: flex; flex-direction: column; gap: var(--sp-12);
}
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: var(--sp-12); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
.cookie-buttons .btn-accept { background: var(--brand-teal); color: #fff; border-radius: var(--radius-pill); padding: 10px 16px; }
.cookie-buttons .btn-accept:hover { background: var(--moss); }
.cookie-buttons .btn-reject { background: var(--surface); color: var(--forest); border: 1px solid var(--leaf); border-radius: var(--radius-pill); padding: 10px 16px; }
.cookie-buttons .btn-settings { background: transparent; color: var(--brand-navy); border: 1px dashed var(--brand-navy); border-radius: var(--radius-pill); padding: 10px 16px; }

/* Modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(31,42,68,0.35); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90; }
.cookie-overlay.show { opacity: 1; pointer-events: auto; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 12px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: min(92vw, 680px); padding: var(--sp-24);
  box-shadow: var(--shadow-soft);
  z-index: 95; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  display: flex; flex-direction: column; gap: var(--sp-16);
}
.cookie-modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.cookie-modal .cookie-groups { display: flex; flex-direction: column; gap: var(--sp-12); }
.cookie-modal .group { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--brand-accent); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--sp-12); justify-content: flex-end; }

/* --------------------------
   13) Utilities & Helpers
   -------------------------- */
.hide { display: none !important; }
.muted { color: var(--text-muted); }
.center { text-align: center; }

/* Ensure no element overlaps: provide default margins/gaps */
.content-grid > * { flex: 1 1 280px; }
.card-container > * { flex: 1 1 280px; }
.text-image-section > * { flex: 1 1 320px; }

/* Micro-interactions */
.hover-raise { transition: transform .2s ease, box-shadow .2s ease; }
.hover-raise:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

/* --------------------------
   14) Responsive Rules
   -------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .brand img { height: 36px; }
  .hero .container { padding-top: var(--sp-60); padding-bottom: var(--sp-60); }
}

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

  /* Align text-image sections horizontally */
  .text-image-section { flex-direction: row; align-items: center; }

  /* Footer columns */
  footer .content-wrapper { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  footer .text-section { flex: 1 1 280px; }
}

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

  /* Wider section layouts */
  .content-wrapper { gap: var(--sp-24); }
}

/* --------------------------
   15) Accessibility & Contrast tweaks
   -------------------------- */
/* Ensure testimonial/read sections are always dark text on light bg */
.testimonial-card, .review-card { background: #FAF8F3; color: var(--text); }
.testimonial-card a { color: var(--forest); text-decoration: underline; }

/* --------------------------
   16) Additional Organic Details
   -------------------------- */
/* Subtle organic borders on surfaces */
.surface-organic { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-softer); }

/* Organic section wrapper option */
.section-organic { background: var(--earth-cream); border-radius: 28px; padding: var(--sp-32); border: 1px solid var(--earth-stone); }

/* --------------------------
   17) Page-specific small touches
   -------------------------- */
/* Pricing highlight suggestion */
.text-section strong { color: var(--forest); }

/* Portfolio case blocks alignment */
.text-section > div > p { margin: 0; }

/* Contact callout links */
.text-section a[href^="tel:"], .text-section a[href^="mailto:"] {
  font-weight: 700; color: var(--forest);
}
.text-section a[href^="tel:"]:hover, .text-section a[href^="mailto:"]:hover { color: var(--moss); }

/* --------------------------
   18) Compliance with mandatory spacing
   -------------------------- */
/* Guarantee minimum spacing between all direct children in content-wrapper */
.content-wrapper > * { margin: 0; }
.content-wrapper { row-gap: var(--sp-20); }

/* --------------------------
   19) Prevent absolute on content (only decorative)
   -------------------------- */
/* No absolute rules for .card content; only decorative ::before/::after are used above */

/* End of file */
