/* ========================
   ClearFrost Rhetorik - NATURE ORGANIC STYLE
   ======================== */

/* ====== CSS Variables ====== */
:root {
  /* Brand Colors */
  --primary: #13446b;
  --secondary: #e5e9ed;
  --accent: #8a6b2e;
  --accent-light: #b39b6b;
  --background: #f6f5f0;
  --earth-brown: #a68b5b;
  --leaf-green: #4e7c59;
  --moss-green: #b7c9a8;
  --clay: #e5d8c3;
  --text-dark: #2d2d2d;
  --text-light: #ffffff;
  --shadow: 0 4px 24px rgba(52, 73, 61, 0.10);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.4,1,.4,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ====== Reset & Base ====== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
}

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 1.1rem;
  line-height: 1.3;
}
p, ul, ol {
  margin-top: 0;
  margin-bottom: 1.1em;
}
ul, ol {
  padding-left: 1.2em;
}
strong {
  color: var(--leaf-green);
  font-weight: 700;
}

/* ====== Container & Layout ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

/* Organic section backgrounds */
.section:nth-child(even) {
  background: linear-gradient(120deg, var(--clay) 80%, var(--moss-green) 100%);
}
.section:nth-child(odd) {
  background: linear-gradient(120deg, var(--secondary) 80%, var(--leaf-green) 100%);
}

/* ====== Header & Navigation ====== */
header {
  background: var(--background);
  box-shadow: 0 2px 12px rgba(52, 73, 61, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
}
header img {
  height: 48px;
  width: auto;
  border-radius: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.btn-primary {
  background: linear-gradient(90deg, var(--leaf-green) 60%, var(--accent) 100%);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(52, 73, 61, 0.10);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-left: 18px;
  letter-spacing: 0.03em;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--accent) 60%, var(--leaf-green) 100%);
  box-shadow: 0 4px 16px rgba(52, 73, 61, 0.18);
  transform: translateY(-2px) scale(1.03);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 16px;
  transition: color var(--transition);
  z-index: 120;
}
.mobile-menu-toggle:focus {
  color: var(--accent);
}

/* ====== Mobile Menu Overlay ====== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(19, 68, 107, 0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,1,.4,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 2.2rem;
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin: 60px 0 0 40px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
}

/* ====== Main Content Layouts ====== */
.feature-grid, .team-grid, .course-list, .blog-list, .project-gallery, .coaching-types {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div, .team-grid > div, .course-list > div, .blog-list > div, .project-gallery > div, .coaching-types > div {
  background: var(--clay);
  border-radius: var(--radius-md) 48px 24px var(--radius-sm) / 32px 32px 48px 24px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 360px;
  margin-bottom: 0;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 6px solid var(--leaf-green);
}
.feature-grid > div:hover, .team-grid > div:hover, .course-list > div:hover, .blog-list > div:hover, .project-gallery > div:hover, .coaching-types > div:hover {
  box-shadow: 0 8px 32px rgba(52, 73, 61, 0.16);
  transform: translateY(-4px) scale(1.03);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--clay);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(52, 73, 61, 0.16);
  transform: translateY(-4px) scale(1.03);
}

.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: var(--moss-green);
  border-radius: var(--radius-md) 48px 24px var(--radius-sm) / 32px 32px 48px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  color: var(--text-dark);
  font-style: italic;
  border-left: 6px solid var(--leaf-green);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(52, 73, 61, 0.16);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-style: normal;
  margin-left: 12px;
}

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

.coaching-process, .benefits-list {
  margin-top: 24px;
  background: var(--clay);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

/* ====== Footer ====== */
footer {
  background: linear-gradient(120deg, var(--leaf-green) 80%, var(--clay) 100%);
  color: var(--text-light);
  padding: 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 18px 18px 18px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent-light);
}
.footer-contact p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
}
.footer-legal {
  flex-basis: 100%;
  margin-top: 18px;
  color: var(--clay);
  font-size: 0.95rem;
  text-align: center;
}

/* ====== Cookie Consent Banner ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--clay);
  color: var(--text-dark);
  box-shadow: 0 -2px 16px rgba(52, 73, 61, 0.12);
  padding: 24px 18px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: slideUp 0.6s cubic-bezier(.4,1,.4,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  flex: 1 1 auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin: 0;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, var(--leaf-green) 60%, var(--accent) 100%);
  color: var(--text-light);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, var(--accent) 60%, var(--leaf-green) 100%);
}
.cookie-btn.reject {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--leaf-green);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--leaf-green);
  color: var(--text-light);
}
.cookie-btn.settings {
  background: var(--accent-light);
  color: var(--text-light);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(19, 68, 107, 0.75);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,1,.4,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(52, 73, 61, 0.18);
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 90vw;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.5s cubic-bezier(.4,1,.4,1);
  position: relative;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: var(--primary);
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--clay);
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
  border: 2px solid var(--leaf-green);
}
.cookie-modal .cookie-toggle:checked {
  background: var(--leaf-green);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border-radius: 50%;
  transition: transform var(--transition);
}
.cookie-modal .cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--accent);
}

/* ====== Forms & Inputs ====== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--leaf-green);
  background: var(--secondary);
  color: var(--text-dark);
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(52, 73, 61, 0.10);
}

/* ====== Responsive Design ====== */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  .feature-grid > div, .team-grid > div, .course-list > div, .blog-list > div, .project-gallery > div, .coaching-types > div {
    min-width: 180px;
    max-width: 100%;
  }
  footer .container {
    gap: 20px;
    padding: 32px 10px 10px 10px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
    margin-top: 8px;
    padding: 12px 18px;
    font-size: 1rem;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: var(--radius-md);
  }
  .feature-grid, .team-grid, .course-list, .blog-list, .project-gallery, .coaching-types {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .team-grid > div, .course-list > div, .blog-list > div, .project-gallery > div, .coaching-types > div {
    min-width: 0;
    max-width: 100%;
    padding: 18px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    padding: 24px 8px 8px 8px;
    align-items: flex-start;
  }
  .footer-legal {
    text-align: left;
    margin-top: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .btn-primary {
    font-size: 0.98rem;
    padding: 10px 12px;
  }
  .footer-logo img {
    height: 36px;
  }
}

/* ====== Organic Shapes & Details ====== */
.section, .card, .testimonial-card, .feature-grid > div, .team-grid > div, .course-list > div, .blog-list > div, .project-gallery > div, .coaching-types > div {
  /* Subtle organic shadow */
  box-shadow: 0 4px 24px rgba(52, 73, 61, 0.10), 0 1.5px 0.5px 0 rgba(180,155,107,0.04);
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -32px; left: -32px;
  width: 120px; height: 80px;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, var(--moss-green) 60%, transparent 100%);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -24px; right: -24px;
  width: 80px; height: 60px;
  background: radial-gradient(ellipse 50% 30% at 50% 50%, var(--accent-light) 60%, transparent 100%);
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
  border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
}

/* ====== Micro-interactions ====== */
.btn-primary, .cookie-btn {
  will-change: transform, box-shadow;
}
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* ====== Utility Classes ====== */
.hide {
  display: none !important;
}

/* ====== Accessibility ====== */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ====== Prevent Overlapping ====== */
.section, .card, .testimonial-card, .feature-grid > div, .team-grid > div, .course-list > div, .blog-list > div, .project-gallery > div, .coaching-types > div {
  margin-bottom: 20px;
}

/* ====== End of CSS ====== */
