/* =========================
   Laccacheli Atelier — style.css
   Design system: modern_bold (bold fonts, bright accents, geometric shapes, high contrast)
   Mobile-first, Flexbox-only layouts
   ========================= */

/* -------- CSS RESET / NORMALIZE -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin: 0.25em 0; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: none; background: none; padding: 0; cursor: pointer; }
:focus { outline: 2px solid #C77C5C; outline-offset: 2px; }

/* -------- THEME TOKENS -------- */
:root {
  --color-primary: #1B1F2A;   /* deep ink */
  --color-secondary: #C77C5C; /* terracotta highlight */
  --color-accent: #F6F2EA;    /* soft cream */
  --color-bg: #FFFFFF;
  --color-muted: #E7E3DA;
  --color-text: #1B1F2A;
  --color-success: #1EC28B;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition-base: 200ms ease;
  --container-max: 1200px;
}

/* -------- TYPOGRAPHY -------- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif; /* brand display */
  color: var(--color-primary);
  margin: 0 0 14px 0;
  line-height: 1.2;
}

h1 { font-size: 34px; font-weight: 700; letter-spacing: 0.3px; }
h2 { font-size: 28px; font-weight: 700; letter-spacing: 0.2px; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 14px 0; }
small { font-size: 14px; }
strong { font-weight: 700; }

/* -------- LAYOUT BASICS (Flexbox only) -------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;              /* flex container */
  flex-direction: column;     /* mobile-first column */
  gap: 20px;                  /* spacing between inner groups */
}

.content-wrapper {
  display: flex;              /* flex container */
  flex-direction: column;     /* mobile-first column */
  gap: 20px;
  align-items: flex-start;    /* start-aligned by default */
}

.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; }

/* Ensure minimum spacing between all content blocks */
section { padding: 40px 0; }
section + section { margin-top: 20px; }
.text-section { margin-bottom: 20px; }
.testimonial-card { margin-bottom: 20px; }

/* -------- HEADER -------- */
header {
  border-bottom: 4px solid var(--color-secondary);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 40px; width: auto; }

.main-nav { display: none; gap: 18px; align-items: center; }
.main-nav a {
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.main-nav a:hover { background: var(--color-accent); transform: translateY(-1px); }

.header-cta { display: none; gap: 12px; align-items: center; }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  transition: background var(--transition-base), transform var(--transition-base);
}
.mobile-menu-toggle:hover { background: #111521; transform: translateY(-1px); }

/* -------- MOBILE MENU (burger) -------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 300ms ease;
  z-index: 100;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #2A3040; color: #fff;
}
.mobile-nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a {
  color: #fff;
  font-weight: 700;
  padding: 12px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  transition: background var(--transition-base), transform var(--transition-base);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); }

/* -------- HERO -------- */
.hero { background: var(--color-accent); position: relative; overflow: hidden; }
.hero .content-wrapper { padding: 20px 0; }
.hero h1 { font-size: 36px; }
.hero p { font-size: 18px; max-width: 70ch; }

/* geometric accent bar */
.hero::before {
  content: "";
  position: absolute;
  top: -40px; right: -60px;
  width: 240px; height: 240px;
  background: var(--color-secondary);
  opacity: 0.12;
  transform: rotate(25deg);
  border-radius: 24px;
}

/* -------- BADGES / LISTS -------- */
.value-badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.value-badges li {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-muted);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.value-badges img { width: 18px; height: 18px; }

/* -------- CTA BUTTONS -------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 800; letter-spacing: 0.3px; transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base); }
.btn.primary { background: var(--color-secondary); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn.secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn.secondary:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

/* -------- TEXT BLOCKS -------- */
.text-section { border: 1px solid var(--color-muted); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.text-section h3 { margin-top: 0; }
.text-section ul, .text-section ol { margin: 10px 0 0 18px; }
.text-section li { margin: 6px 0; }

/* -------- TESTIMONIALS (light cards, dark text for readability) -------- */
.testimonial-card {
  background: #fff;            /* light background */
  color: var(--color-primary); /* dark text */
  border: 2px solid var(--color-muted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.9; }

/* -------- FOOTER -------- */
footer { background: var(--color-primary); color: #fff; margin-top: 40px; }
footer .content-wrapper { padding: 24px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #fff; background: rgba(255,255,255,0.08); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.footer-nav a:hover { background: rgba(255,255,255,0.16); }

/* -------- GENERIC CARD (if used) -------- */
.card {
  background: #fff;
  border: 1px solid var(--color-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
}

/* -------- ACCESSIBILITY + LINKS -------- */
a { color: var(--color-primary); }
a:hover { color: #111521; }

/* -------- COOKIE CONSENT (banner + modal) -------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px;
  transform: translateY(120%);
  transition: transform 300ms ease, opacity 300ms ease;
  z-index: 90;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { border-radius: 10px; }
.cookie-actions .btn.accept { background: var(--color-success); color: #072; }
.cookie-actions .btn.reject { background: #fff; color: var(--color-primary); }
.cookie-actions .btn.settings { background: var(--color-secondary); color: #fff; }

/* Modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 110; }
.cookie-backdrop.open { display: flex; }
.cookie-modal {
  background: #fff; color: var(--color-primary);
  width: 100%; max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
}
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .cookie-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--color-muted); border-radius: 10px; padding: 12px; }
.cookie-category .always-on { font-weight: 700; color: #0A7B52; }
.toggle { position: relative; width: 46px; height: 28px; background: #CCC; border-radius: 999px; display: inline-flex; align-items: center; padding: 3px; transition: background var(--transition-base); }
.toggle .knob { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--transition-base); }
.toggle.active { background: var(--color-secondary); }
.toggle.active .knob { transform: translateX(18px); }
.cookie-modal .cookie-actions { justify-content: flex-end; }

/* -------- RESPONSIVE (Desktop ≥ 769px) -------- */
@media (min-width: 769px) {
  .container { padding: 0 24px; }
  .content-wrapper { flex-direction: column; }

  header .content-wrapper { flex-direction: row; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  .hero h1 { font-size: 48px; }
  .hero p { font-size: 18px; }

  .text-image-section { flex-direction: row; }

  /* Spread content groups nicely across the row when needed */
  .content-grid { justify-content: space-between; }
}

/* -------- UTILITIES -------- */
.muted { color: #5E6577; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--color-accent); border: 1px solid var(--color-muted); font-weight: 700; }

/* -------- PAGE-SPECIFIC ENHANCEMENTS (generic selectors used across pages) -------- */
/* Services/steps lists look like bold modern checklists */
.text-section ol { list-style: decimal; }
.text-section ul { list-style: disc; }

/* Contact rows with icons */
.text-section img[alt^=""] + p,
.text-section p img { vertical-align: middle; }
.text-section p img { width: 18px; height: 18px; margin-right: 8px; display: inline-block; }

/* Ensure no overlap; provide consistent gaps */
section .content-wrapper > * { margin-bottom: 20px; }
section .content-wrapper > *:last-child { margin-bottom: 0; }

/* -------- HOVER & MICRO-INTERACTIONS -------- */
.btn, .main-nav a, .footer-nav a, .value-badges li { will-change: transform, box-shadow; }

/* -------- PRINT BASICS -------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-backdrop, footer { display: none !important; }
  a { text-decoration: underline; }
}
