/* ========================
   NAPOLI STUDIO SMART - NATURE ORGANIC STYLE
   ======================== */
/* RESET & BASELINE NORMALIZATION */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F7F8FA;
  color: #314336;
  line-height: 1.6;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #265083;
  letter-spacing: .01em;
}
h1 { font-size: 2rem; margin-bottom: 16px; }
h2 { font-size: 1.75rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 6px; }
p, ul, ol {
  margin-top: 0;
  margin-bottom: 1em;
}
ul, ol {
  padding-left: 22px;
}
a {
  color: #265083;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover{
  color: #107231;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

/* SCROLLBAR & SELECTION */
::selection {
  background: #D9E7D7;
}
::-webkit-scrollbar {
  width: 10px;
  background: #E9ECE5;
}
::-webkit-scrollbar-thumb {
  background: #B6CB9A;
  border-radius: 8px;
}

/* COLORS */
:root {
  --c-primary: #265083;
  --c-secondary: #E4973F;
  --c-accent: #F7F8FA;
  --c-bg: #F7F8FA;
  --c-bg-alt: #E9ECE5;
  --c-card: #FAF7F1;
  --c-green-main: #6A9A66;
  --c-green-dark: #43513B;
  --c-brown-light: #E6D8CA;
  --c-brown-dark: #B5916C;
  --c-white: #fff;
  --c-neutral: #314336;
  --c-error: #B6001C;
}

/* =================
   LAYOUT
   ================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 16px;
  padding-left: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
main {
  padding-top: 32px;
  padding-bottom: 32px;
}
/* FLEXBOX patterns per requirements */
.section { 
  margin-bottom: 60px; 
  padding: 40px 20px; 
  background-color: var(--c-bg-alt);
  border-radius: 32px 32px 80px 24px / 32px 80px 24px 32px;
  box-shadow: 0 2px 16px 0 rgba(106,154,102,0.10), 0 1.5px 7px 0 rgba(38,80,131,0.06);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--c-card);
  border-radius: 28px 56px 40px 28px / 32px 60px 32px 28px;
  box-shadow: 0 3px 18px 0 rgba(38,80,131,0.09);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 350px;
  min-width: 260px;
}
.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;
  background: #fff;
  border-radius: 24px 44px 28px 24px / 28px 52px 24px 28px;
  padding: 20px;
  box-shadow: 0 2px 8px 0 rgba(106,154,102,0.11);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Generalized pattern for section spacing */
section {
  margin-bottom: 60px;
}

/* =================
   HEADER & NAV
   ================= */
header {
  background: var(--c-bg);
  box-shadow: 0 2px 14px rgba(38,80,131,0.04);
  border-bottom: 3px solid var(--c-green-main);
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-green-dark);
  background: none;
  border: none;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--c-green-main);
  color: #fff;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  background: var(--c-green-main);
  color: #fff;
  border: none;
  border-radius: 26px 44px 32px 32px / 32px 52px 24px 30px;
  padding: 12px 32px;
  margin-left: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 9px 0 rgba(38,80,131,0.10);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #107231;
  box-shadow: 0 4px 18px 0 rgba(38,80,131,0.13);
  color: #fff;
}
.btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--c-secondary);
  color: #fff;
  border: none;
  border-radius: 18px 30px 24px 24px / 22px 36px 20px 20px;
  padding: 10px 26px;
  margin-left: 12px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1.5px 6px 0 rgba(225,151,63,0.10);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #B26A14;
  color: #fff;
}
/* =================
   MOBILE NAV
   ================= */
.mobile-menu-toggle {
  display: none;
  background: var(--c-green-main);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 104;
  box-shadow: 0 1px 5px 0 rgba(38,80,131,0.11);
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #43513B;
  color: #E4973F;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; 
  width: 100vw;
  height: 100vh;
  background: rgba(233,236,229, 0.97);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.77,0,0.18,1);
  box-shadow: -3px 0 20px rgba(38,80,131,0.08);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 26px 8px 0;
  font-size: 2rem;
  background: var(--c-green-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .17s, color .14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--c-secondary);
  color: #43513B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 34px;
}
.mobile-nav a {
  font-size: 1.2rem;
  padding: 18px 8px;
  color: var(--c-neutral);
  background: none;
  border: none;
  border-radius: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--c-green-main);
  color: #fff;
}
/* Show/hide desktop/mobile nav */
@media (max-width: 900px) {
  header nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none!important; }
}

/* =================
   MAIN PAGE & SECTIONS
   ================= */
.section, .content-wrapper, .card, .testimonial-card, .feature-item, .card-container, .content-grid {
  /* Ensures no elements overlap, enough spacing */
  box-sizing: border-box;
}
.subheadline {
  color: #43513B;
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 0;
}
.feature-list, .service-list, .tips-list, .faq-list, .course-catalog, .resource-list {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-list li, .service-list li, .tips-list li, .faq-list li, .course-catalog li, .resource-list li {
  background: var(--c-card);
  border-radius: 28px 56px 40px 28px / 32px 60px 32px 28px;
  box-shadow: 0 1.5px 8px 0 rgba(38,80,131,0.09);
  flex: 1 1 350px;
  min-width: 230px;
  padding: 24px 20px 20px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  background: #E9ECE5;
  border-radius: 40% 64% 60% 44%;
  padding: 6px;
}
.service-list span, .course-catalog span {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--c-brown-light);
  color: #314336;
  border-radius: 14px;
  font-size: 1rem;
  padding: 5px 13px;
  margin-top: 7px;
  align-self: flex-start;
}

/* FAQ heading styles */
.faq-list h4 {
  color: var(--c-green-dark);
  margin-bottom: 2px;
}
.course-catalog h3 {
  margin-bottom: 4px;
}

/* ============ TESTIMONIALS =========== */
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  margin: 0;
  color: #265083;
}
.testimonial-card footer {
  font-size: 0.95rem;
  color: #314336;
  font-weight: 500;
  margin-left: 20px;
}

/* ========== CONTACT DETAILS ========== */
.contact-details {
  background: var(--c-card);
  border-radius: 20px 48px 32px 24px / 24px 36px 20px 24px;
  box-shadow: 0 2px 10px 0 rgba(38,80,131,0.09);
  padding: 18px 20px 14px 20px;
}
.contact-details ul {
  margin: 6px 0;
  padding-left: 12px;
}
.contact-details li {
  margin-bottom: 9px;
}

/* ========== MAP ========== */
.map-placeholder {
  border: 3px dashed var(--c-green-main);
  background: #E9ECE5;
  border-radius: 18px 44px 24px 16px / 18px 40px 20px 16px;
  padding: 24px 22px;
  color: #4B5F44;
  text-align: center;
}

/* ========== ADDRESS, FOOTER ========== */
footer {
  background: var(--c-green-main);
  color: #fff;
  padding: 48px 0 36px 0;
  box-shadow: 0 -8px 28px -8px rgba(38,80,131,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 12px;
  transition: background 0.16s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--c-secondary);
  color: #265083;
}
footer address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-style: normal;
  color: #FAF7F1;
  margin-bottom: 8px;
}
footer address a {
  color: #FAF7F1;
  border-bottom: 1px dotted #E4973F;
  text-decoration: none;
  transition: color 0.18s;
}
footer address a:hover {
  color: #E4973F;
}

/* =============== TYPOGRAPHY HIERARCHY ============= */
.text-section h2, .text-section h3, .text-section h4 {
  margin-top: 24px;
  margin-bottom: 10px;
  color: #265083;
}
.text-section ul {
  margin-bottom: 18px;
}
.text-section li {
  margin-bottom: 8px;
}

/* =============== BUTTONS/LINKS EFFECTS ============ */
a.btn-primary, .btn-primary, .btn-secondary {
  transition: background 0.2s, color 0.15s, box-shadow 0.18s, transform 0.12s;
  will-change: background, box-shadow, transform;
}
a.btn-primary:active, .btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

/* =============== CARDS HOVER================== */
.card-container .card:hover,
.feature-list li:hover,
.service-list li:hover,
.course-catalog li:hover,
.resource-list li:hover,
.testimonial-card:hover {
  box-shadow: 0 8px 34px -4px rgba(38,80,131,0.13), 0 5px 17px 0 rgba(106,154,102,0.08);
  background: #f6fbe9;
  transition: box-shadow 0.19s, background 0.13s;
}

/* =================== COOKIE BANNER ================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--c-brown-light);
  color: #314336;
  border-top: 3px solid var(--c-green-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 18px;
  z-index: 1000;
  box-shadow: 0 -6px 28px -8px rgba(38,80,131,0.11);
  font-size: 1rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.37s cubic-bezier(0.77,0,0.18,1), opacity 0.17s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-msg {
  max-width: 650px;
  flex: 1 1 auto;
}
.cookie-banner .cookie-controls {
  display: flex;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .btn-cookie {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
}
.cookie-banner .btn-accept {
  background: var(--c-green-main);
  color: #fff;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #107231;
}
.cookie-banner .btn-reject {
  background: #faf2f0;
  color: #B6001C;
  border: 1.3px solid #B6001C;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #f2d5d8;
}
.cookie-banner .btn-settings {
  background: var(--c-secondary);
  color: #fff;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #B26A14;
  color: #fff;
}

/* =============== COOKIE MODAL =============== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(49,67,54,0.21);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 34px 70px 32px 18px / 32px 50px 20px 10px;
  padding: 42px 32px 26px 32px;
  color: #314336;
  box-shadow: 0 4px 40px -4px rgba(225,151,63,0.15);
  min-width: 330px;
  max-width: 94vw;
}
.cookie-modal-content h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  margin-top: 0;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-modal-content .cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: var(--c-green-dark);
}
.cookie-modal-content .cookie-category input[type="checkbox"] {
  accent-color: var(--c-green-main);
  width: 18px;
  height: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 26px;
  width: 32px; height: 32px;
  background: var(--c-green-main);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.13s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #B26A14;
  color: #fff;
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 1020px) {
  .container { max-width: 98vw; }
  .card-container, .feature-list, .service-list, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .section {
    margin-bottom: 36px; padding: 26px 8px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
  .container {
    padding-right: 8px;
    padding-left: 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .content-grid,
  .card-container,
  .feature-list,
  .service-list,
  .course-catalog,
  .resource-list {
    flex-direction: column;
    gap: 16px;
  }
  .card, .feature-list li, .service-list li, .course-catalog li, .resource-list li, .testimonial-card {
    min-width: 0;
    width: 100%;
    padding: 16px 12px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .footer .content-wrapper {
    gap: 18px;
  }
  footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 20px; }
  footer .container { padding-right: 10px; padding-left: 10px; }
}
@media (max-width: 520px) {
  .section { padding: 18px 3px; margin-bottom: 22px; }
  .card { padding: 12px 6px; }
  .cookie-banner { flex-direction: column; gap: 14px; padding: 17px 6px; }
  .cookie-banner .cookie-controls { justify-content: flex-end; gap: 7px; }
  .cookie-modal-content {
    padding: 18px 8px 12px 8px;
    min-width: 0;
  }
}

/* =============== ORGANIC DECORATIVE SHAPES =============== */
.card, .feature-list li, .service-list li, .course-catalog li, .resource-list li, .testimonial-card {
  /* Simulate organic edges using border-radius */
  border-radius: 28px 56px 40px 28px / 32px 60px 32px 28px;
  border-left: 3px solid #E4973F25;
}
.section {
  border-radius: 32px 32px 80px 24px / 32px 80px 24px 32px;
}

/* =============== MICRO-INTERACTIONS =============== */
.card, .btn-primary, .btn-secondary, .feature-list li, .testimonial-card {
  transition: background 0.22s, box-shadow 0.17s, transform 0.12s;
}
.card:active, .feature-list li:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* =============== ACCESSIBILITY =============== */
:focus {
  outline: 2px dashed var(--c-secondary);
  outline-offset: 2px;
}

/* =============== PRINT STYLES =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, main, .container { box-shadow: none !important; background: #fff !important; }
}
