/* ============================================================
   GlowInvest Nature Organic Theme
   Modern • Responsive • Flexbox only • Nature-inspired
   ============================================================ */

/* CSS Reset and Normalize */
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, 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, 
menu, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
/* End Reset */

:root {
  --color-primary: #233654;         /* Brand Navy */
  --color-primary-dark: #18233a;
  --color-accent: #159C8E;          /* Brand Green Accent */
  --color-accent-light: #4fd1b2;
  --color-secondary: #E8EAED;       /* Brand Soft Gray */
  --color-bg: #f8f6f3;              /* Light Creamy Earth */
  --color-bg-darker: #edead5;
  --color-text: #203127;            /* Deep Olive Green */
  --color-text-soft: #466a5c;
  --color-card: #fffaf5;
  --color-border: #c9d2c5;
  --color-warning: #B68C3E;         /* Earth gold accent */
  --box-radius: 18px;
  --box-radius-sm: 10px;
  --shadow: 0 2px 24px 0 rgba(60,90,72,0.10);
  --shadow-md: 0 4px 36px 0 rgba(28,44,23,0.12);
  --transition: .22s cubic-bezier(.59,.12,.3,1.37);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: bold;
  letter-spacing: 0;
}
h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 14px; font-weight: 700; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
.subheadline {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-bottom: 18px;
  max-width: 600px;
}
p, li, ul, ol {
  font-size: 1rem;
  color: var(--color-text-soft);
}
.text-section p, .text-section ul, .text-section li { margin-bottom: 14px; }
.text-section h2, .text-section h3, .text-section h4 {
  color: var(--color-text);
  margin-top: 24px;
}
a { transition: color .15s;}
a:focus, a:active { outline: 2px dashed var(--color-accent); }

/* Container & General Layout */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
  background: none;
}
@media (max-width: 900px) {
  section { padding: 28px 6px; }
}

/* Content Wrapper (for central alignment and max-width) */
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* HERO Section special: centralize on desktop */
section:first-of-type .content-wrapper {
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}
section:first-of-type .btn-primary {
  margin-top: 24px;
}

/* ---------------------------------------
   Header & Navigation
------------------------------------------ */
header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 21;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  border-radius: var(--box-radius-sm);
  transition: color .18s, background .14s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  background: var(--color-secondary);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 11px 34px;
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-left: 24px;
  margin-right: 12px;
  outline: none;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #107868;
  box-shadow: 0 2px 20px 0 rgba(21,156,142,0.15);
  transform: translateY(-2px) scale(1.025);
}

/* Hamburger Mobile nav (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  cursor: pointer;
  transition: background .2s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #107868;
}

/* Responsive Nav adjustments */
@media (max-width: 950px) {
  .main-nav { gap: 9px; }
  .btn-primary { padding: 10px 15px; font-size: 1rem; margin-left: 9px; }
  header .container { gap: 4px; }
}
@media (max-width: 768px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ------------------------------------
   Mobile Slide Menu
--------------------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 103;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40, 54, 38, 0.98);
  box-shadow: 0 2px 32px 0 rgba(21, 52, 32, 0.32);
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.77,.01,.17,1.02);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 24px 0 0;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 111;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 60px;
  padding: 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1.5px solid rgba(255,255,255,0.08);
  transition: color .15s, background .1s;
  border-radius: var(--box-radius-sm);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent-light);
  background: rgba(21,156,142,0.10);
}

/* -----------------------------------------
   Section, Card, Grid, Flex Layout Patterns
------------------------------------------ */
.features-grid, .platform-list, .learning-grid, .advantages-list, .certification-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.features-grid { gap: 24px; }
.platform-list { gap: 28px; }
.learning-grid { gap: 24px; }
.advantages-list {
  flex-direction: column;
  gap: 16px;
  margin-left: 0;
}
.certification-logos {
  gap: 32px;
  margin-bottom: 10px;
}

.feature, .platform-feature, .learning-module {
  background: var(--color-card);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 228px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .22s, transform .22s;
  margin-bottom: 20px;
}
.feature img, .platform-feature img, .learning-module img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.feature:hover, .platform-feature:hover, .learning-module:hover {
  box-shadow: 0 4px 36px 0 rgba(34, 80, 61, 0.16);
  transform: translateY(-4px) scale(1.025);
}

.advantages-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f2f9f5;
  border-radius: var(--box-radius-sm);
  padding: 12px 20px;
  color: var(--color-text);
  font-size: 1.03rem;
}
.advantages-list img {
  width: 22px;
  height: 22px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  padding: 20px 26px;
  margin-bottom: 20px;
  gap: 17px;
  max-width: 590px;
  color: var(--color-primary);
  border-left: 5px solid var(--color-accent);
}
.testimonial-card p {
  color: var(--color-text-soft);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
}
.testimonial-card span {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 1.01rem;
  font-style: normal;
}

/* Card and Container Patterns (for future content expansion) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--box-radius);
  box-shadow: var(--shadow-md);
  background: var(--color-card);
  padding: 22px 18px;
  transition: box-shadow .2s, transform .18s;
}
.card:hover {
  box-shadow: 0 4px 36px 0 rgba(21,156,142,0.11);
  transform: scale(1.012);
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Comparison Table Styling */
.comparison-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: var(--color-card);
  border-radius: var(--box-radius);
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 0;
  box-shadow: 0 2px 12px 0 rgba(40, 54, 38, 0.09);
  font-size: 1rem;
}
.comparison-table th, .comparison-table td {
  padding: 18px 10px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.comparison-table th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-text);
  background: #f4f7f2;
  font-weight: 700;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

.faq-section h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--color-primary);
  margin: 20px 0 5px 0;
}
.faq-section p {
  margin-bottom: 0;
}

/* Certification Logos */
.certification-logos img {
  height: 42px;
  width: auto;
  filter: grayscale(30%);
}

/* Contact Info */
.contact-info {
  background: var(--color-card);
  padding: 20px 28px;
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}
.contact-info img {
  height: 20px; width: 20px; margin-right: 5px;
}
.contact-map-placeholder {
  width: 100%;
  min-height: 120px;
  background: repeating-linear-gradient(120deg, #e6e6db 0 7px, #faf8f2 7px 22px);
  border-radius: var(--box-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #807460;
  font-style: italic;
  margin-top: 12px;
  margin-bottom: 12px;
}

/* Footer */
footer {
  background: var(--color-bg-darker);
  border-top: 2px solid var(--color-border);
  color: var(--color-primary-dark);
  padding: 36px 0 18px 0;
  margin-top: 32px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  padding: 4px 0;
  position: relative;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: var(--color-primary-dark);
  font-size: 0.97rem;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 4px;
}

/* --------------------------------------
   Cookie Consent Banner & Modal
------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -7px 18px 0 rgba(37,54,34,0.07);
  z-index: 201;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 6vw;
  transition: transform .31s cubic-bezier(.59,.12,.3,1.37), opacity .18s;
  opacity: 1;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 16px;
  }
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-text {
  color: var(--color-text);
  font-size: 1rem;
  max-width: 420px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.btn-cookie {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--box-radius-sm);
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, box-shadow .17s, color .14s;
  box-shadow: 0 2px 6px 0 rgba(20,100,60,0.10);
}
.btn-cookie:hover, .btn-cookie:focus {
  background: #107868;
}
.btn-cookie.btn-reject {
  background: #b83d3d;
  color: #fff;
}
.btn-cookie.btn-reject:hover, .btn-cookie.btn-reject:focus {
  background: #952d2d;
}
.btn-cookie.btn-settings {
  background: #eae9e2;
  color: var(--color-primary);
  border: 1.2px solid var(--color-accent);
}
.btn-cookie.btn-settings:hover,
.btn-cookie.btn-settings:focus {
  background: #dde8e1;
  color: #0d463a;
}

/* Cookie Modal Styles */
.cookie-modal {
  position: fixed;
  z-index: 3001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,54,84,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .24s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--box-radius);
  padding: 36px 32px 32px 32px;
  box-shadow: 0 6px 42px 0 rgba(40, 54, 38, 0.18);
  width: 95vw;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: pop-in-modal .28s cubic-bezier(.66,1.22,.51,1.1);
}
@keyframes pop-in-modal {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal-header h3 {
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 19px; height: 19px;
  margin: 0 6px 0 0;
}
.cookie-category-label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category-desc {
  font-size: 0.96rem;
  color: var(--color-text-soft);
  margin-left: 7px;
}
.cookie-category.disabled {
  opacity: 0.62;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ----------- Responsive Styles ----------- */
@media (max-width: 1050px) {
  .features-grid, .content-grid, .platform-list, .learning-grid {
    gap: 16px;
  }
  .feature, .platform-feature, .learning-module {
    min-width: 180px;
  }
}
@media (max-width: 900px) {
  .features-grid, .platform-list, .learning-grid { gap: 10px; }
  .feature, .platform-feature, .learning-module { padding: 18px 11px; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .content-wrapper, .footer-contact {
    padding: 0 2px;
    gap: 9px;
  }
  .features-grid, .platform-list, .learning-grid {
    flex-direction: column;
    gap: 13px;
  }
  .feature, .platform-feature, .learning-module { min-width: unset; width: 100%; }
  .advantages-list { padding-left: 0; }
  .testimonial-card { max-width: unset; }
}
@media (max-width: 575px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.15rem; }
  .btn-primary, .btn-cookie { font-size: 0.96rem; padding: 9px 19px; }
}
@media (max-width: 410px) {
  .content-wrapper, .cookie-modal-content { padding: 4px !important; }
}

/* ----------- Microinteractions ----------- */
.btn-primary, .btn-cookie, .feature, .platform-feature, .learning-module, .card, .mobile-menu {
  will-change: transform, box-shadow;
}

/* Organic Shapes (decorative, not absolute for content) */
section {
  border-radius: var(--box-radius);
  overflow: visible;
  background: linear-gradient(110deg, var(--color-bg) 90%, #e4ece4 100%);
}
/* Add nature-inspired texture image or SVG overlays with before/after if assets are available. */

/* Subtle Divider for sections */
section + section {
  border-top: 1px solid var(--color-border);
}

/* Scrollbar (Nature Organic) */
::-webkit-scrollbar { width: 10px; background: #e8eadf; }
::-webkit-scrollbar-thumb { background: #b2d5b8; border-radius: 6px; }

/* Accessibility - Focus outline */
:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

/* ------------------------------
   Utility / Helper Classes
------------------------------ */
.text-center { text-align: center !important; align-items: center !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/***** END OF CSS ****/ 