/* ===============================
   Silent Growth Studio CSS RESET
   (Mobile First, Flexbox Only)
   =============================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f7f7f7;
  color: #232946;
  font-family: 'Roboto', Arial, sans-serif;
  min-height:100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

/* =============
  FONT IMPORTS
  ============= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #232946;
  --color-secondary: #eebbc3;
  --color-accent: #f7f7f7;
  --color-white: #fff;
  --color-black: #000;
  --radius-geo: 10px;
  --radius-btn: 100px;
  --shadow-l: 0 6px 32px rgba(35,41,70,0.10),
                  0 2px 6px rgba(35,41,70,0.12);
  --shadow-s: 0 2px 8px rgba(35,41,70,0.07);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --font-size-xxl: 2.75rem;
  --font-size-xl: 2rem;
  --font-size-l: 1.5rem;
  --font-size-m: 1.125rem;
  --font-size-s: 1rem;
  --font-size-xs: .875rem;
  --border-width: 2px;
  --border-geo: var(--border-width) solid var(--color-primary);
  --gap-section: 32px;
}

/* ================================
      STRUCTURED GEOMETRIC LAYOUTS
   ================================ */

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section, .text-image-section {
  background: var(--color-accent);
  border-radius: var(--radius-geo);
  box-shadow: var(--shadow-s);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  flex: 1 1 260px;
  background: var(--color-accent);
  margin-bottom: 20px;
  border-radius: var(--radius-geo);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s var(--transition), box-shadow 0.15s var(--transition);
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 32px rgba(35,41,70,0.18), 0 2px 6px rgba(35,41,70,0.14);
  z-index: 1;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 12px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-section ul,
.features-section ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.features-section li {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius-geo);
  background: var(--color-accent);
  box-shadow: var(--shadow-s);
  padding: 20px 24px;
  font-size: var(--font-size-m);
  font-family: var(--font-body);
  font-weight: 500;
  transition: box-shadow var(--transition);
}
.features-section li:hover,
.features-section li:focus {
  box-shadow: 0 6px 22px rgba(35,41,70,.10);
}
.features-section img {
  width: 32px;
  height: 32px;
  filter: grayscale(70%);
  margin-right: 10px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  padding: 20px;
  border-radius: var(--radius-geo);
  box-shadow: var(--shadow-s);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border var(--transition);
  border: var(--border-width) solid #e4e4e7;
  color: #232946;
}
.testimonial-card strong {
  font-family: var(--font-display);
  font-size: var(--font-size-s);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(138,118,131,.09);
  border-color: var(--color-secondary);
}

.cta-section {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: var(--radius-geo);
  box-shadow: var(--shadow-l);
  margin-bottom: 60px;
}
.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta-section h2,
.cta-section p {
  color: var(--color-accent);
}

/* =============
  TYPOGRAPHY
  ============= */
h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-xxl);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--color-primary);
  line-height: 1.15;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--color-primary);
}
h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-l);
  font-weight: 600;
  margin: 16px 0 8px 0;
  color: var(--color-primary);
}
p, li, address {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: var(--font-size-s);
  line-height: 1.6;
}
p {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
.cta-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--font-size-m);
  color: var(--color-secondary);
  text-underline-offset: 4px;
  text-decoration: underline;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-top: 8px;
  transition: color var(--transition);
}
.cta-link:hover,
.cta-link:focus {
  color: #d39aa2;
}

/* =============
  BUTTONS & CTAs
  ============= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 48px;
  line-height: 48px;
  border-radius: var(--radius-btn);
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--font-size-m);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(238,187,195,0.13);
  margin: 16px 0 0 0;
  padding: 0 32px;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: #dd99aa;
  color: var(--color-white);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 24px rgba(238,187,195,0.16);
}

/* =============
  NAVIGATION
  ============= */
header {
  width: 100%;
  padding: 0 0 10px 0;
  background: var(--color-accent);
  box-shadow: 0 2px 12px rgba(35,41,70,0.02);
  z-index: 10;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 0 0;
  width: 100%;
}
nav > a img {
  height: 46px;
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
nav ul li a {
  padding: 6px 18px;
  font-family: var(--font-display);
  font-size: var(--font-size-m);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 2px solid var(--color-secondary);
}
nav .cta-btn {
  /* see cta-btn base styles above */
  margin-left: 16px;
}

/* ==============
  MOBILE NAV
  ============== */
.mobile-menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 16px;
  top: 18px;
  z-index: 99;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 1100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s var(--transition), opacity 0.38s var(--transition);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--color-secondary);
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 18px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition); 
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 32px 0 0 0;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--font-size-l);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Hide desktop nav on mobile */
@media (max-width: 1000px) {
  nav ul { display: none; }
  nav .cta-btn { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none; }
}

/* =============
   MAIN LAYOUTS
   ============= */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  min-height: 310px;
  border-radius: var(--radius-geo);
  box-shadow: var(--shadow-s);
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero-section h1 {
  color: var(--color-primary);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* =====================
  FOOTER
  ===================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 46px 20px 20px 20px;
  border-radius: var(--radius-geo) var(--radius-geo) 0 0;
  gap: 16px;
  margin-top: 40px;
}
footer > a img {
  height: 38px;
  margin-bottom: 8px;
  filter: grayscale(100%);
}
footer ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer ul li a {
  color: var(--color-accent);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: var(--font-size-s);
  padding: 5px 14px;
  border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
}
footer ul li a:hover,
footer ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
footer address {
  font-style: normal;
  color: var(--color-accent);
  text-align: center;
  font-size: var(--font-size-xs);
}
footer address a {
  color: var(--color-secondary);
  text-decoration: underline;
}


/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(35,41,70,0.14);
  padding: 16px 8vw 30px 8vw;
  gap: 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  animation: fadein .62s;
}
#cookie-banner p {
  text-align: center;
  margin-bottom: 0;
  color: var(--color-accent);
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
  justify-content: center;
}
.cookie-banner-btns button,
.cookie-banner-btns .btn-cookie-settings {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  height: 40px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
  font-weight: 700;
}
.btn-accept-cookies {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.btn-accept-cookies:hover {
  background: #d39aa2;
  color: var(--color-accent);
}
.btn-reject-cookies {
  background: var(--color-accent);
  color: var(--color-primary);
  border: var(--border-width) solid var(--color-secondary);
}
.btn-reject-cookies:hover {
  background: #e7e7e7;
  color: var(--color-primary);
}
.btn-cookie-settings {
  background: transparent;
  color: var(--color-secondary);
}
.btn-cookie-settings:hover {
  text-decoration: underline;
  color: #f7b3ca;
  background: none;
}

/* Modal Overlay */
#cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,41,70,0.75);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
#cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-geo);
  min-width: 320px;
  max-width: 96vw;
  width: 410px;
  padding: 36px 26px 24px 26px;
  box-shadow: 0 10px 34px rgba(35,41,70,0.19);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#cookie-modal h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-l);
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--color-secondary);
  margin: 0;
}
.cookie-category .always {
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  margin-left: 6px;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
#cookie-modal .modal-actions button {
  min-width: 100px;
}
#cookie-modal .close-modal {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  font-size: 1.7rem;
  position: absolute;
  top: 18px; right: 20px;
  cursor: pointer;
}

/* ========== RESPONSIVE FLEX PATTERNS ========== */
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .content-wrapper { gap: 18px; }
  .features-section li, .testimonial-card {
    flex: 1 1 100%;
    min-width: 220px;
    font-size: var(--font-size-s);
  }
}
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .section, section { padding: 32px 4px; margin-bottom: 36px; }
  .content-wrapper,
  .card-container,
  .card-grid,
  .features-section ul,
  .footer ul {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-section li {
    padding: 16px 12px;
  }
  .card {
    min-width: unset;
  }
  .hero-section {
    min-height: 140px;
    margin-bottom: 32px;
    border-radius: 0 0 var(--radius-geo) var(--radius-geo);
  }
  nav { padding: 14px 0 0 0; }
}

@media (max-width: 540px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.2rem; }
  .cta-btn, .btn-cookie-settings, .btn-accept-cookies, .btn-reject-cookies {
    font-size: 0.95rem;
    min-width: 120px;
    height: 40px;
    padding: 0 12px;
  }
  #cookie-modal { min-width: unset; width: 94vw; }
  .mobile-nav a { font-size: 1rem; }
  footer { padding: 36px 4px 10px 4px; }
}

/* ========== MICRO-INTERACTIONS ========== */
.section, .card, .cta-btn, .features-section li, .testimonial-card, .cta-section {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition), border var(--transition);
}
.card:active, .testimonial-card:active, .features-section li:active, .cta-btn:active {
  transform: scale(.98);
  box-shadow: 0 2px 8px rgba(35,41,70,0.07);
}

/* ========== GEOMETRIC DECORATIONS (OPTIONAL) ========== */
/* Example geometric accent under h2 */
h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 5px;
  background: var(--color-secondary);
  border-radius: 4px 16px 4px 16px;
  margin: 10px 0 0 0;
}
.cta-section h2::after { background: var(--color-accent); }

/* ========== MISC helpers ========== */
.hide { display: none !important; }

/* =====================
  KEYFRAMES & ANIMATION
  ===================== */
@keyframes fadein {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Slide-in for mobile menu */
@keyframes slidein {
  0% {transform: translateX(-100vw);}
  100% {transform: translateX(0);}
}
@keyframes slideout {
  0% {transform: translateX(0);}
  100% {transform: translateX(-100vw);}
}
