/* -------------------------
   CSS RESET & 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;
  background: #181D23;
  color: #E1E1E6;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  border-style: none;
  width: auto;
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

/* -------------------------
   CSS VARIABLES (COLORS & FONTS)
--------------------------- */
:root {
  --color-primary: #1A3761;
  --color-secondary: #70A09C;
  --color-accent: #F6F3EC;
  --color-bg: #181D23;
  --color-bg-panel: #23272E;
  --color-text-primary: #E1E1E6;
  --color-text-secondary: #ACB7BD;
  --color-metal: #8B939A;
  --color-highlight: #3B526B;
  --color-btn-bg: #1A3761;
  --color-btn-text: #F6F3EC;
  --color-btn-hover: #70A09C;
  --color-link: #70A09C;
  --color-link-hover: #F6F3EC;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --radius-small: 6px;
  --radius-medium: 14px;
  --radius-large: 24px;
  --shadow-elevated: 0 4px 20px rgba(34,40,49, 0.14);
  --border-metal: 1.5px solid #8B939A;
}

/* -------------------------
   TYPOGRAPHY
--------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
}
strong {
  color: var(--color-secondary);
  font-weight: 600;
}
.subheadline {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* -------------------------
   LAYOUT CLASSES
--------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-panel);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-panel);
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 10px rgba(34,40,49,0.11);
  border: var(--border-metal);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
  flex: 1 1 280px;
  transition: box-shadow 0.3s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(34,40,49,0.14);
  border-color: var(--color-secondary);
  z-index: 2;
}
.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: #F6F3EC;
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 16px rgba(34,40,49,0.08);
  color: #23272E;
  margin-bottom: 20px;
  flex-direction: column;
  border-left: 6px solid var(--color-secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-panel);
  border-radius: var(--radius-medium);
  padding: 28px 20px;
  border: var(--border-metal);
  box-shadow: 0 2px 10px rgba(34,40,49,0.09);
  height: 100%;
  min-width: 220px;
  transition: border-color 0.2s, box-shadow 0.3s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  filter: brightness(0.95) grayscale(50%) contrast(120%);
  margin-bottom: 4px;
}
.feature-item:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 22px rgba(34,40,49, 0.13);
}

/* -------------------------
   HERO AREA & HEADERS
--------------------------- */
.hero {
  background: linear-gradient(110deg, #1A3761 70%, #23272E 100%);
  padding: 64px 0 48px 0;
  display: flex;
  align-items: center;
  min-height: 340px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: #F6F3EC;
}
.hero .cta-btn {
  margin-top: 12px;
}

/* -------------------------
   MAIN NAVIGATION
--------------------------- */
header {
  width: 100%;
  background: var(--color-bg-panel);
  box-shadow: 0 2px 12px rgba(34,40,49,0.1);
  position: relative;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 18px;
}
.main-nav > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 0.01em;
  padding: 8px 4px;
  border-radius: var(--radius-small);
  transition: background 0.22s, color 0.23s;
  position: relative;
  z-index: 1;
}
.main-nav > a:hover {
  background: var(--color-highlight);
  color: var(--color-secondary);
}
.main-nav > a.cta-btn {
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  border-radius: var(--radius-medium);
  padding: 10px 28px;
  margin-left: auto;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(34,40,49, 0.07);
  letter-spacing: 0.03em;
  border: var(--border-metal);
  transition: background 0.18s, color 0.22s, box-shadow 0.22s;
}
.main-nav > a.cta-btn:hover, 
.main-nav > a.cta-btn:focus {
  background: var(--color-btn-hover);
  color: #23272E;
  box-shadow: 0 7px 16px rgba(112,160,156,0.14);
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 12px;
  margin-left: 0;
  filter: grayscale(0%) brightness(1);
  vertical-align: middle;
}

/* Hide mobile nav button by default */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 22px;
  background: var(--color-bg-panel);
  color: var(--color-secondary);
  border: var(--border-metal);
  border-radius: 100%;
  width: 42px;
  height: 42px;
  z-index: 1201;
  font-size: 2rem;
  transition: background 0.18s, color 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-highlight);
  color: var(--color-accent);
  outline: none;
}

/* -------------------------
   MOBILE MENU
--------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background:  linear-gradient(110deg, #1A3761 85%, #23272E 100%);
  box-shadow: 0 0 48px rgba(0,0,0,0.21);
  z-index: 2001;
  transform: translateX(-100vw);
  transition: transform 0.28s cubic-bezier(.78,.13,.45,.87);
  padding-top: 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--color-accent);
  margin: 12px 28px 4px 0;
  border-radius: 50%;
  transition: background 0.18s, color 0.16s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-btn-hover);
  color: #23272E;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 28px 0 0 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent);
  letter-spacing: 0.018em;
  border-radius: var(--radius-small);
  padding: 9px 12px;
  transition: background 0.22s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #23272E;
  outline: none;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
    font-size: 0.97rem;
  }
  .main-nav > a.cta-btn {
    margin-left: 0;
    position: relative;
    right: 0;
    font-size: 0.98rem;
  }
}
@media (max-width: 940px) {
  .main-nav > a { font-size: 0.96rem; }
  .main-nav img { height: 37px; }
}
@media (max-width: 900px) {
  .main-nav > a { font-size: 0.90rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* Prevent background scroll when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* -------------------------
   FOOTER
--------------------------- */
footer {
  background: var(--color-bg-panel);
  border-top: var(--border-metal);
  padding: 0;
  margin-top: 80px;
  font-family: var(--font-display);
}
footer section {
  padding: 36px 0 16px 0;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
footer img {
  height: 36px;
  margin-bottom: 10px;
  filter: grayscale(50%) brightness(1.1) contrast(1.25);
}
footer p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* -------------------------
   BUTTONS & CALLS TO ACTION
--------------------------- */
.cta-btn,
.button,
button[type='submit'],
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.025em;
  border-radius: var(--radius-medium);
  border: var(--border-metal);
  box-shadow: 0 2px 12px rgba(26,55,97,0.18);
  padding: 13px 32px;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  cursor: pointer;
  margin-top: 6px;
  min-width: 160px;
  text-align: center;
  outline: none;
  gap: 10px;
}
.cta-btn:hover, .cta-btn:focus,
.button:hover, .button:focus,
button[type='submit']:hover, button[type='submit']:focus,
input[type='submit']:hover, input[type='submit']:focus {
  background: var(--color-btn-hover);
  color: #23272E;
  box-shadow: 0 7px 18px rgba(112,160,156,0.18);
}

/* Link styling */
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: none;
  outline: none;
}

.content-wrapper a.cta-btn {
  margin-top: 12px;
}

/* -------------------------
   SECTIONS & SPACING
--------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-large);
}
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}
.feature-grid {
  padding-top: 16px;
  padding-bottom: 0;
}
.about-preview, .services-preview, .cta, .about, .team, .value-prop, .resource-list, .guide-offer, .contact-info, .faq-preview, .legal, .confirmation {
  background: var(--color-bg-panel);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated);
}

.services,
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-cards {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.service-card {
  background: var(--color-bg-panel);
  border: var(--border-metal);
  border-radius: var(--radius-medium);
  box-shadow: 0 2px 9px rgba(34,40,49, 0.08);
  padding: 26px 20px;
  flex: 1 1 255px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.service-card h3 {
  font-size: 1.18rem;
  margin-bottom: 2px;
  letter-spacing: 0.006em;
}
.service-card h3 span {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-left: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.service-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 7px 18px rgba(112,160,156,0.13);
}

.workshop-list, .team-bios, .course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.workshop-item, .team-member, .course-item {
  flex: 1 1 240px;
  min-width: 210px;
  margin-bottom: 20px;
  background: var(--color-bg-panel);
  border-radius: var(--radius-medium);
  padding: 22px 16px;
  border: var(--border-metal);
  box-shadow: 0 2px 12px rgba(34,40,49,0.07);
  transition: box-shadow 0.2s, border-color 0.16s;
}
.workshop-item:hover, .team-member:hover, .course-item:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 6px 16px rgba(112,160,156,0.13);
}
.course-item h3 span {
  color: var(--color-secondary);
  margin-left: 8px;
  font-size: 1.02rem;
  font-weight: 600;
}

ul, ol {
  list-style: disc inside;
  color: var(--color-text-primary);
  padding-left: 18px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 7px;
}

/* Testimonials */
.testimonials {
  background: var(--color-bg-panel);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-elevated);
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.testimonial-card span.testimonial-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #1A3761;
  font-weight: 500;
  align-self: flex-end;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* Confirmation */
.confirmation {
  min-height: 220px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
}


/* -------------------------
   COOKIE CONSENT BANNER
--------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #242A30;
  color: #F6F3EC;
  box-shadow: 0 -2px 18px rgba(26,55,97,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 18px 16px;
  z-index: 5000;
  font-size: 1rem;
  gap: 18px;
  animation: banner-fade-in 0.7s cubic-bezier(.68,.04,.53,1) both;
}
@keyframes banner-fade-in {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  padding: 9px 18px;
  border-radius: var(--radius-small);
  border: var(--border-metal);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.18s, color 0.12s, box-shadow 0.25s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-btn-hover);
  color: #23272E;
}
.cookie-banner a {
  color: var(--color-link);
  text-decoration: underline;
  font-size: 0.96rem;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 325px;
  max-width: 96vw;
  width: 410px;
  background: #23272E;
  color: #F6F3EC;
  border-radius: var(--radius-medium);
  box-shadow: 0 10px 44px rgba(26,55,97,0.23);
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 5002;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.36s cubic-bezier(.78,.14,.4,1.08) both;
}
@keyframes cookie-modal-in {
  from { opacity:0; transform: translate(-50%,-54%) scale(0.80); }
  to   { opacity:1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h3 {
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.cookie-modal .category-label {
  font-size: 1rem;
  color: #F6F3EC;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  color: #8B939A;
  font-size: 1.35rem;
  align-self: flex-end;
  position: absolute;
  right: 22px; top: 18px;
  transition: color 0.16s;
}
.cookie-modal .cookie-modal-close:hover {
  color: #F6F3EC;
}

/* Cookie modal overlay */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(30, 43, 62, 0.38);
  z-index: 5001;
  animation: modal-fade-in 0.3s both;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -------------------------
   RESPONSIVE DESIGN
--------------------------- */
@media (max-width: 990px) {
  .section, section {
    padding: 30px 10px;
  }
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero {
    padding: 46px 0 36px 0;
    min-height: 180px;
  }
  .main-nav { padding: 14px 5px; }
  .section, section {
    padding: 22px 2px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card-container, .content-grid, .feature-grid, .workshop-list, .team-bios, .course-list, .service-cards {
    gap: 10px;
  }
  .feature-item, .workshop-item, .course-item, .team-member, .service-card {
    padding: 14px 10px;
    min-width: 90vw;
    max-width: 100vw;
  }
  .testimonial-card {
    padding: 15px 9px;
    gap: 11px;
    font-size: 0.97rem;
    min-width: 90vw;
  }
}
@media (max-width: 600px) {
  footer section { padding: 14px 0 5px 0; }
  .footer-nav { gap: 10px; font-size: 0.91rem; }
}
@media (max-width: 480px) {
  .cookie-modal { min-width: 90vw; max-width: 99vw; padding: 18px 8px; font-size: 0.95rem; }
}

/* RESPONSIVE FLEX-DIRECTION */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .content-grid, .card-container, .feature-grid, .workshop-list, .team-bios, .course-list, .service-cards {
    flex-direction: column;
    align-items: stretch;
  }
}

/* -------------------------
   MISCELLANEOUS
--------------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #23272E;
}
::-webkit-scrollbar-thumb {
  background: #333b44;
  border-radius: 6px;
}

/* Input and Form Styles */
input, textarea, select {
  border-radius: var(--radius-small);
  border: var(--border-metal);
  padding: 10px;
  background: #23272E;
  color: #F6F3EC;
  font-family: var(--font-body);
  margin-bottom: 9px;
  width: 100%;
  transition: border-color 0.18s, background 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  background: #23272E;
  outline: none;
}

/* Overlay for modal menu (optional for darken effect)
.mobile-menu.open::before {
  content: '';
  position: fixed;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(30,43,62,0.27);
  z-index: -1;
}
*/

/* Hide visually but still accessible */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

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