/* ClearCraft Rhetorik – Style.css | CREATIVE_ARTISTIC FLEXBOX ONLY | Responsive, Burger Nav, Cookie Banner */

/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F4F6FB;
  color: #183153;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 12px;
  color: #183153;
}
h1 { font-size: 2.5rem; letter-spacing: -1.5px; }
h2 { font-size: 2rem; letter-spacing: -1px; }
h3 { font-size: 1.4rem; letter-spacing: -.5px; }
h4 { font-size: 1.1rem; }
p, ul, ol, li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-bottom: 14px;
  color: #1D2236;
}
strong { color: #00736B; font-weight: 600; }
a { color: #00503d; text-decoration: none; transition: color .18s; }
a:hover, a:focus { color: #00736B; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 20px; }

/* === CUSTOM COLORS/FONTS (FALLBACKS) === */
:root {
  --color-primary: #183153;
  --color-secondary: #F4F6FB;
  --color-bg: #ffffff;
  --color-accent: #00736B;
  --color-accent-dark: #00503d;
  --color-warning: #ffb870;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  background-color: var(--color-secondary);
}

/* === CONTAINER & WRAPPER === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper { width: 100%; }

/* === HEADER === */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 8px 0 rgba(24,49,83,0.04);
  padding-top: 8px;
  padding-bottom: 8px;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img {
  height: 50px;
  width: auto;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
}
.main-nav a {
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 14px;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-accent);
  color: #fff;
}
.cta-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 16px 0 rgba(0,115,107,0.12);
  cursor: pointer;
  transition: background .18s, transform .2s, box-shadow .2s;
  outline: 0;
  margin-left: 14px;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(0,115,107,0.17);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  position: fixed;
  left: 0;top: 0;right: 0;bottom: 0;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.65,.05,.36,1);
  padding: 0;
  flex-direction: column;
  justify-content: flex-start;
  width: 85vw;
  max-width: 400px;
  box-shadow: 2px 0 20px 0 rgba(24,49,83,0.16);
  display: flex;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform .32s cubic-bezier(.65,.05,.36,1);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  margin: 22px 16px 8px 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color .14s;
  outline: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding-left: 32px;
  padding-top: 18px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 9px 24px 9px 0;
  border-radius: 16px;
  width: 100%;
  transition: background .17s, color .16s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 991px) {
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 22px;
    top: 20px;
    z-index: 10001;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 14px 0 rgba(0,115,107,0.17);
    cursor: pointer;
    transition: background .17s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: var(--color-accent-dark); }
  header { position: relative; }
}

@media (min-width: 992px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex !important; }
  .cta-btn { display: inline-block !important; }
}

/* === HERO + SECTION LAYOUTS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  box-shadow: 0 4px 32px 0 rgba(24,49,83,0.07);
  background: #fff;
  position: relative;
  overflow: visible;
}
@media (max-width: 768px) {
  .section { padding: 28px 8px; margin-bottom: 34px; border-radius: 20px; }
}

.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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section { flex-direction: column; }
}

/* === FEATURES / CARDS === */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 36px 0 20px 0;
}
.features-grid > div {
  background: var(--color-secondary);
  box-shadow: 0 2px 18px -8px rgba(24,49,83,0.12);
  border-radius: 26px;
  padding: 26px 18px;
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.features-grid > div span {
  font-size: 2.1rem;
  margin-bottom: 12px;
  color: var(--color-accent);
  filter: drop-shadow(0 2px 10px rgba(0,115,107,0.08));
}
.features-grid > div:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 38px -6px rgba(0,115,107,0.20);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 18px -10px rgba(24,49,83,0.13);
  padding: 24px 18px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 250px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 10px 32px -10px rgba(0,115,107,0.19);
  transform: translateY(-3px) scale(1.01);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* === SERVICE LISTS === */
.service-list {
  margin-bottom: 18px;
  list-style: disc inside;
  font-size: 1.12rem;
}
.service-list li strong { color: var(--color-accent-dark); font-family: var(--font-display); }

/* === PRICE INFO === */
.price-info {
  font-weight: 600;
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  margin-bottom: 18px;
  background: #e6f2f1;
  border-radius: 14px;
  padding: 6px 14px;
  display: inline-block;
  font-size: 1rem;
}

/* === TESTIMONIALS === */
.testimonials-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 34px 0 18px 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fafffc;
  border-radius: 22px;
  min-width: 230px;
  box-shadow: 0 2px 16px -6px rgba(24,49,83,0.13);
  margin-bottom: 20px;
  flex: 1 1 280px;
  position: relative;
  border-left: 5px solid var(--color-accent);
  font-family: var(--font-body);
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card p {
  color: #183153;
  font-size: 1.13rem;
  font-style: italic;
  flex: 1;
  margin-bottom: 0;
}
.testimonial-meta {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-top: 4px;
  font-style: normal;
  font-family: var(--font-display);
  opacity: 0.82;
}
.testimonial-card:hover {
  border-left: 5px solid var(--color-accent-dark);
  box-shadow: 0 7px 24px -9px rgba(0,115,107,0.11);
}
.review-summary {
  margin-top: 18px;
  font-size: 1.13rem;
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}

/* === BUTTONS + CTAs === */
.cta-wrapper { margin-top: 20px; display: flex; gap: 14px; }
.cta-btn:active { transform: scale(.97) translateY(2px); }
button, .cta-btn {
  transition: background .18s, color .18s, transform .16s;
}

/* === FORMS & INPUTS === */
input, textarea, select {
  border: 1.8px solid #cfd7e6;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  background: #f6f7fa;
  color: var(--color-primary);
  outline: none;
  width: 100%;
  transition: border .18s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px 0 rgba(0,115,107,0.07);
}
label { font-family: var(--font-display); font-weight: 600; color: var(--color-accent-dark); }

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding-top: 56px;
  padding-bottom: 24px;
  font-size: 0.98rem;
  margin-top: 38px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  flex: 2;
  min-width: 180px;
  margin-bottom: 14px;
}
.footer-brand img {
  height: 38px;
  margin-bottom: 12px;
}
.footer-brand strong { color: #fff; font-size: 1.13rem; }
.footer-brand p, .footer-brand a {
  color: #fff;
  opacity: 0.91;
}
.footer-links, .footer-legal {
  flex: 1;
  min-width: 110px;
  margin-bottom: 12px;
}
.footer-links nav, .footer-legal nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-links a, .footer-legal a {
  color: #fff;
  opacity: 0.8;
  font-family: var(--font-display);
  font-size: 1.04rem;
  transition: color .14s;
}
.footer-links a:hover, .footer-legal a:hover {
  color: var(--color-warning);
  opacity: 1;
}
.footer-credit {
  color: #fff;
  opacity: 0.62;
  font-size: 0.94rem;
  margin-top: 16px;
  text-align: center;
}
@media (max-width: 800px) {
  .footer-flex { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* === ACCESSIBILITY: FOCUS === */
a:focus, button:focus, .cta-btn:focus { outline: 2px solid var(--color-accent-dark); outline-offset: 1.5px; }

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #fffbe7;
  color: #25273a;
  box-shadow: 0 -4px 30px 0 rgba(24,49,83,0.13);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  width: 100%;
  font-size: 1rem;
  font-family: var(--font-body);
  animation: cookie-slidein .9s cubic-bezier(.8,.05,.41,.84);
}
@keyframes cookie-slidein {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 0;
  cursor: pointer;
  transition: background .16s, box-shadow .17s;
}
.cookie-btn.reject {
  background: #e6e3dd;
  color: #183153;
  border: 1px solid #ded6ac;
}
.cookie-btn:hover, .cookie-settings-btn:hover { background: var(--color-accent-dark); }
.cookie-btn.reject:hover { background: var(--color-warning); color: #25273a; }

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 100000;
  background: rgba(24,49,83, 0.43);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .25s cubic-bezier(.8,.05,.41,.88);
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 40px -4px rgba(24,49,83,0.19);
  padding: 38px 30px 33px 30px;
  min-width: 300px; max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-scalein .24s cubic-bezier(.86,.42,.31,1.18);
}
@keyframes modal-scalein {
  from { transform: scale(.91); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  position: absolute;
  right: 22px;
  top: 15px;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent-dark);
}
.cookie-choices {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
.cookie-category .readonly {
  color: #8c9253;
  font-size: .96rem;
  opacity: .65;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* === RESPONSIVE TYPO SCALES === */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.07rem; }
  .container { padding-left: 7px; padding-right: 7px; }
  .features-grid, .testimonials-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-brand, .footer-links, .footer-legal {
    min-width: 0; margin-bottom: 10px;
  }
}
@media (max-width: 450px) {
  .cookie-banner, .cookie-modal-dialog {
    padding: 9px !important;
    font-size: .97rem;
  }
}

/* === SUBHEADLINE / SPECIAL TYPO === */
.subheadline {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  margin: 6px 0 20px 0;
  letter-spacing: -0.5px;
}

/* === ARTISTIC + CREATIVE ELEMENTS === */
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: -28px; left: -22px;
  width: 110px; height: 40px;
  background: var(--color-accent);
  opacity: .09;
  border-radius: 60px 20px 75px 30px/60px 40px 30px 44px;
  z-index: 1;
}
.section:nth-child(2):before {
  left: auto; right: -22px; top: -22px; width: 68px; opacity: .11; height: 32px;
}
.section:nth-child(3):before {
  top: auto; bottom: -20px; left: -27px; width: 70px; height: 25px; opacity: .07;
}
/* Don't overlap real content */
.section > * { position: relative; z-index: 2; }

/* --- Artistic accent lines --- */
h2 {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
h2:after {
  content: "";
  display: block;
  width: 43px;
  height: 4px;
  border-radius: 3px;
  background: var(--color-accent);
  opacity: .44;
  margin-top: 8px;
}

/* === TEXT SECTIONS === */
.text-section {
  margin-bottom: 16px;
}

/* === REVIEW SUMMARY === */
.review-summary { margin-bottom: 8px; }

/* === SPECIAL BADGES ETC. === */
.badge {
  background: var(--color-accent);
  color: #fff;
  font-size: .92rem;
  border-radius: 14px;
  padding: 3px 10px;
  font-family: var(--font-display);
  margin-left: 7px;
}

/* === SELECTED PAGE - ACTIVE NAV === */
.main-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
  pointer-events: none;
}

/* === UTILITY CLASSES === */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* === OVERRIDES FOR SPECIAL PAGE ELEMENTS === */
.cta-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .cta-wrapper { flex-direction: column; gap: 9px; align-items: stretch; }
}

/* === HELPER: SPACING/MARGIN CONSISTENCY === */
.section + .section, .content-wrapper + .content-wrapper {
  margin-top: 20px !important;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* === ARTISTIC FONTS - (Extra) === */
h1, .display-font { font-family: 'Montserrat', Arial, Helvetica, sans-serif !important; }

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: transform .16s, box-shadow .17s, background .17s, color .16s;
}
.cta-btn:active, .cookie-btn:active, .cookie-settings-btn:active {
  transform: scale(.97);
}
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow .18s cubic-bezier(.8,.05,.41,.88), transform .15s cubic-bezier(.8,.09,.67,1.32);
}

::selection {
  background: #b9ede9;
}

/* === MEDIA QUERIES: FLEX DIRECTION ON MOBILE === */
@media (max-width: 768px) {
  .header-flex,
  .features-grid,
  .footer-flex,
  .testimonials-section,
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  .features-grid > div,
  .card,
  .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* == END == */
