/* ==================================================  
   SpectraCraft 'Nature_Organic' CSS — style.css
   Design: Modern, organic, responsive, flexbox only
   ================================================== */

/********** 1. RESET & BASE **********/
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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  line-height: 1.5;
  background-color: #FAF9F6;
  color: #2D3325;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after { box-sizing: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; height: auto; border-radius: 6px; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

/********** 2. BRAND TOKEN VARS (fallbacks for custom) **********/
:root {
  --brand-primary: #19223B;      /* deep blue (spectra) */
  --brand-secondary: #4B7DEE;    /* blue accent */
  --brand-accent: #F3F6FB;       /* light background accent */
  --organic-green: #509A5B;
  --earth-brown: #8B6F4E;
  --earth-beige: #EDE9DE;
  --organic-leaf: #B9DCA7;
  --organic-shadow: rgba(120, 144, 116, 0.07);
  --focus-outline: #A3CE7E;
}

/********** 3. TYPOGRAPHY **********/
body { font-family: 'Roboto', Arial, sans-serif; }
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #254220;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 14px; letter-spacing: -0.5px; }
h3 { font-size: 1.38rem; margin-bottom: 10px; letter-spacing: -0.5px; }
h4 { font-size: 1.08rem; margin-bottom: 8px; }
p, li, blockquote { font-size: 1rem; }
p { margin-bottom: 12px; }
blockquote {
  background: var(--organic-leaf);
  border-left: 4px solid var(--organic-green);
  font-style: italic;
  padding: 18px 26px;
  margin: 12px 0 20px 0;
  border-radius: 12px 42px 24px 12px;
  color: #154f25;
}
a:hover, a:focus { color: var(--organic-green); text-decoration: underline; }
strong { font-weight: 600; }

/********** 4. GLOBAL LAYOUT & CONTAINER **********/
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}

/********** 5. HEADER & NAVIGATION **********/
header {
  background: var(--earth-beige);
  border-bottom: 1.5px solid #E2DBC7;
  box-shadow: 0 1px 12px var(--organic-shadow);
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
header img[alt="SpectraCraft"] {
  height: 44px;
  margin-right: 16px;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
nav.main-nav a {
  padding: 6px 18px;
  border-radius: 22px;
  color: #254220;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  transition: background 0.18s, color 0.18s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: var(--organic-leaf);
  color: var(--organic-green);
}
.btn-primary {
  background: linear-gradient(90deg, var(--organic-green) 70%, var(--earth-brown));
  color: white;
  padding: 11px 34px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 28px 42px 20px 38px;
  box-shadow: 0 2px 12px var(--organic-shadow);
  transition: background 0.22s, box-shadow 0.18s, transform 0.16s;
  cursor: pointer;
  letter-spacing: 0.8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--organic-green);
  color: #19223B;
  box-shadow: 0 6px 22px 0 rgba(45, 51, 37, 0.09);
  transform: translateY(-2px) scale(1.04);
  outline: 2px solid var(--focus-outline);
}

/********** 6. MOBILE MAIN MENU **********/
.mobile-menu-toggle {
  display: none;
  background: var(--organic-green);
  color: #fff;
  font-size: 2.2rem;
  padding: 5px 16px 0 16px;
  border-radius: 50%;
  border: none;
  margin-left: 18px;
  transition: background 0.18s;
  cursor: pointer;
  z-index: 1201;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--focus-outline);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(115deg, var(--earth-beige) 86%, var(--organic-leaf) 100%);
  z-index: 1200;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.43,1.31,.54,1.01), box-shadow 0.2s;
  box-shadow: 0 8px 42px 0 var(--organic-shadow);
  min-height: 100vh;
  width: 100vw;
  padding: 42px 0 0 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  color: var(--organic-green);
  border: none;
  margin: 0 28px 18px 0;
  padding: 3px 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--organic-leaf);
  color: #26451c;
  outline: 1.5px solid var(--focus-outline);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--earth-brown);
  background: none;
  border-radius: 24px;
  padding: 10px 12px;
  margin-bottom: 0;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--organic-leaf);
  color: var(--organic-green);
}

/********** 7. HERO SECTIONS **********/
.hero {
  background: linear-gradient(96deg, var(--earth-beige) 85%, var(--organic-leaf) 100%);
  border-radius: 0 0 52px 62px/0 0 12px 38px;
  box-shadow: 0 8px 28px var(--organic-shadow);
  margin-bottom: 60px;
  padding: 56px 0 34px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  gap: 18px;
  max-width: 540px;
}

/********** 8. SECTIONS & STANDARD LAYOUTS **********/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: flex-start;
}
.card {
  background: var(--earth-beige);
  border-radius: 28px 44px 28px 20px;
  box-shadow: 0 1px 8px var(--organic-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
}
.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;
  margin-bottom: 12px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/********** 9. CARDS, ARTICLES & FEATURE ELEMENTS **********/
.service-card, .training-module, .article-teaser {
  background: var(--brand-accent);
  border-radius: 28px 30px 22px 34px;
  box-shadow: 0 2px 13px var(--organic-shadow);
  margin-bottom: 20px;
  padding: 32px 24px 24px 24px;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 220px;
  max-width: 440px;
  transition: box-shadow 0.16s, transform 0.18s;
}
.service-card:hover, .article-teaser:hover, .training-module:hover {
  box-shadow: 0 8px 32px 0 var(--organic-shadow);
  transform: translateY(-2px) scale(1.03);
}
.service-card h3, .training-module h3, .article-teaser h3 {
  color: #26543b;
}
.service-price {
  color: var(--organic-green);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 10px;
}
.feature-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.use-case-examples {
  background: var(--earth-beige);
  border-radius: 20px 30px 18px 24px;
  padding: 18px 22px;
  color: #337433;
  box-shadow: 0 1.5px 8px var(--organic-shadow);
}
.levels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.skill-improvements {
  margin-top: 18px;
}
.skill-improvements ul {
  gap: 8px;
}

/********** 10. TESTIMONIALS **********/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--earth-beige);
  border-radius: 26px 40px 22px 12px;
  box-shadow: 0 2px 16px 0 var(--organic-shadow);
  color: #1d2417;
  transition: box-shadow 0.18s;
  border-left: 6px solid var(--organic-green);
}
.testimonial-card p {
  font-size: 1.04rem;
  color: #2d3325;
  margin-bottom: 2px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #42703b;
  font-family: 'Montserrat', sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 var(--organic-shadow);
}

/********** 11. ARTICLE CATEGORY **********/
.category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 22px;
  font-size: 0.92rem;
  color: #fff;
  background: var(--organic-green);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/********** 12. FOOTER **********/
footer {
  background: #EDE9DE;
  border-top: 1.5px solid #dad2c0;
  margin-top: 72px;
  padding: 40px 0 12px 0;
  font-family: 'Roboto', sans-serif;
  color: #2e3122;
}
footer .container {
  gap: 34px;
  align-items: flex-start;
  justify-content: center;
}
nav.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
nav.footer-nav a {
  color: #2d3325;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.98rem;
  transition: background 0.18s, color 0.17s;
}
nav.footer-nav a:hover, nav.footer-nav a:focus {
  background: var(--organic-leaf);
  color: var(--organic-green);
}
footer .text-section {
  max-width: 320px;
  font-size: 0.98rem;
  color: #255924;
}
.social-media-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 0 0;
}
.social-media-icons img {
  width: 28px; height: 28px;
  filter: grayscale(40%) brightness(0.9);
  transition: filter 0.14s;
  cursor: pointer;
}
.social-media-icons img:hover {
  filter: none;
}
.newsletter-signup {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #26543b;
}
.newsletter-signup a {
  color: var(--organic-green);
  font-weight: 500;
}
footer .copyright {
  margin-top: 10px;
  font-size: 0.86rem;
  color: #847861;
}

/********** 13. MODAL & OVERLAYS **********/
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(60,85,60,0.32);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s;
}
.modal.open {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  background: white;
  border-radius: 20px 36px 18px 18px;
  padding: 48px 32px 28px 32px;
  max-width: 410px;
  min-width: 270px;
  box-shadow: 0 6px 40px 0 rgba(108,132,79,0.1);
  color: #214027;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.modal-content .modal-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.8rem;
  color: var(--organic-green);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 3px 10px;
  transition: background-color 0.14s;
}
.modal-content .modal-close:hover, .modal-content .modal-close:focus {
  background: var(--organic-leaf);
  outline: 1.5px solid var(--focus-outline);
}

/********** 14. COOKIE CONSENT BANNER **********/
.cookie-consent-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(97deg, #F3F6FB 84%, var(--organic-leaf) 100%);
  box-shadow: 0 -2px 24px 0 var(--organic-shadow);
  padding: 24px 5vw 20px 5vw;
  font-size: 1rem;
  z-index: 1500;
  border-radius: 18px 18px 0 0;
  color: #31472d;
  transition: transform 0.32s, opacity 0.25s;
  opacity: 1;
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner .banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', sans-serif;
  border: none;
  border-radius: 22px 36px 22px 12px;
  padding: 8px 26px;
  font-size: 1.02rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: var(--organic-green);
  margin-bottom: 0;
  transition: background 0.18s, color 0.16s, box-shadow 0.09s;
  box-shadow: 0 2px 10px var(--organic-shadow);
}
.cookie-consent-banner button.reject {
  background: #C9B59E;
  color: #184d18;
}
.cookie-consent-banner button.settings {
  background: var(--earth-brown);
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #42703b;
  color: #fff;
  outline: 2px solid var(--focus-outline);
}

/***** Cookie settings modal popup *****/
.cookie-modal {
  background: rgba(47,74,44,0.28);
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  padding: 40px 26px 25px 26px;
  border-radius: 22px 38px 16px 16px;
  max-width: 380px;
  min-width: 250px;
  box-shadow: 0 6px 48px 0 rgba(102,130,88,0.13);
  color: #214027;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal .cookie-modal-content .close-modal {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: var(--organic-green);
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 7px;
}
.cookie-modal .cookie-modal-content .close-modal:hover, .cookie-modal .cookie-modal-content .close-modal:focus {
  background: var(--organic-leaf);
  outline: 1.5px solid var(--focus-outline);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted #bfdac0;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: 0;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 21px;
  background: #cbecc7;
  border-radius: 15px;
  position: relative;
  outline: none;
  transition: background 0.15s;
  vertical-align: middle;
  box-shadow: inset 0 2px 4px rgba(160,176,137,0.14);
}
.cookie-modal .cookie-toggle input[type="checkbox"]:checked {
  background: var(--organic-green);
}
.cookie-modal .cookie-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1.5px 4px rgba(112,128,80,0.10);
  transition: transform 0.16s;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:checked::before {
  transform: translateX(15px);
}
.cookie-modal .essential {
  font-size: 1.01rem;
  color: #1b3111;
  font-weight: 700;
}

/********** 15. UTILITY FLEX PATTERNS **********/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-short {
  background: var(--organic-leaf);
  border-radius: 19px 22px 12px 18px;
  padding: 16px 24px;
  margin-top: 14px;
  color: #2a4820;
  box-shadow: 0 1px 8px var(--organic-shadow);
  font-size: 1rem;
}
.contact-details, .hours, .phone, .map-placeholder {
  margin-top: 9px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
}
.map-placeholder span {
  margin-left: 9px; color: #42703b; font-size: 0.93rem;
}
.use-case-examples ul, .benefit-descriptions ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details, .map-placeholder { gap: 14px; }
.social-links ul {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-links img {
  width: 28px; height: 28px;
}

/********** 16. LEGAL/CONFIRMATION **********/
section.legal {
  background: var(--earth-beige);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 16px 32px 18px 12px;
}
section.confirmation {
  background: var(--organic-leaf);
  margin-bottom: 60px;
  padding: 56px 20px 44px 20px;
  border-radius: 22px 38px 16px 16px;
  box-shadow: 0 2px 13px var(--organic-shadow);
  text-align: center;
}
section.confirmation .btn-primary {
  margin-top: 16px;
}

/********** 17. FAQ **********/
.faq h3 { margin-top: 16px; font-size: 1.08rem; }
.faq p { margin-bottom: 12px; }

/********** 18. ACCESSIBILITY & FOCUS **********/
:focus { outline: 2px solid var(--focus-outline); outline-offset: 2px; }
::-webkit-input-placeholder, ::placeholder { color: #b8bca8; opacity: 1; }

/********** 19. RESPONSIVE (Mobile first!) **********/
@media (max-width: 1080px) {
  .container { max-width: 96vw; padding: 0 10px; }
  .footer-nav { gap: 8px; }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 58px;
    gap: 12px;
  }
  nav.main-nav { display: none; }
  .btn-primary {
    padding: 10px 22px;
    font-size: 1rem;
  }
  .mobile-menu-toggle { display: inline-block; }
  .hero { padding: 34px 0 18px 0; border-radius: 0 0 38px 26px/0 0 10px 22px; }
  .section, section.legal, section.confirmation { padding: 24px 9px; margin-bottom: 30px; }
  .content-wrapper, .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-card, .service-card, .training-module, .article-teaser {
    padding: 18px 12px 13px 14px;
    border-radius: 18px 18px 12px 14px;
  }
  .footer-nav { gap: 6px; }
  .footer .container { gap: 20px; }
  .social-media-icons img, .social-links img { width: 26px; height: 26px; }
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .container { padding: 0 2vw; }
  .hero h1 { font-size: 1.25rem; }
  .hero { padding: 20px 0 8px 0; }
  footer { padding: 18px 0 8px 0; }
  .footer .container { gap: 10px; }
  .cookie-consent-banner { flex-direction: column; gap: 14px; padding: 18px 10px 18px 10px; font-size: 0.94rem; }
}

/********** 20. INTERACTIONS & ANIMATIONS **********/
.btn-primary, .btn-primary:focus {
  transition: background 0.21s, color 0.18s, box-shadow 0.15s, transform 0.14s;
}
.testimonial-card, .service-card, .training-module, .article-teaser {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .service-card:hover, .training-module:hover, .article-teaser:hover {
  box-shadow: 0 8px 34px 0 var(--organic-shadow);
  transform: translateY(-1.5px) scale(1.028);
  z-index: 3;
}
nav.main-nav a, nav.footer-nav a, .mobile-nav a {
  transition: color 0.18s, background 0.16s;
}
.mobile-menu,
.mobile-menu.open,
.modal,
.modal.open,
.cookie-modal,
.cookie-modal.open,
.cookie-consent-banner {
  transition: transform 0.32s, opacity 0.25s;
}

/********** 21. PRINT IMPROVEMENTS **********/
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu, .modal, .cookie-modal { display: none !important; }
  body { color: #1D2417; background: #fff; }
}
.service-wrapper {
    display: flex;
    gap: 16px;
}