/* ============================================== */
/*  CSS RESET & NORMALIZE                         */
/* ============================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
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, main, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; border: 0;}
button { background: none; border: none; cursor: pointer; font: inherit; }
input, button, textarea, select { font: inherit; }

/* ============================================== */
/*  VARIABLES (with fallbacks)                    */
/* ============================================== */
:root {
  --brand-primary: #264653;
  --brand-secondary: #F4A261;
  --brand-accent: #FAF9F6;
  --lux-gold: #C29953;
  --lux-dark: #1a2329;
  --lux-grey: #F2F1EE;
  --lux-border: #d9d6cf;
  --lux-shadow: rgba(38,70,83,0.10);
  --header-height: 72px;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 24px 0 var(--lux-shadow);
  --shadow-hover: 0 8px 32px 0 rgba(38,70,83,0.17);
  --ff-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --ff-body: 'Roboto', Arial, Helvetica, sans-serif;
  --fz-xs: 14px;
  --fz-s: 16px;
  --fz-m: 18px;
  --fz-l: 24px;
  --fz-xl: 32px;
  --fz-xxl: 48px;
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 24px;
  --spacing-l: 32px;
  --spacing-xl: 60px;
  --section-pad: 40px 20px;
  --gold-gradient: linear-gradient(90deg,#e9d7bb,#c29953,#e9d7bb);
}

/* Fallbacks */
.lux-gold { color:#C29953; }
.lux-dark { color:#1a2329; }
.lux-accent { color:#FAF9F6; }

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;600&family=Roboto:wght@400;500&display=swap');

body {
  background: var(--lux-accent);
  color: var(--lux-dark);
  font-family: var(--ff-body);
  font-size: var(--fz-s);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: var(--spacing-s);
  line-height: 1.18;
}
h1 { font-size: var(--fz-xxl); }
h2 { font-size: var(--fz-xl); }
h3 { font-size: var(--fz-l); font-weight: 600; }
h4 { font-size: var(--fz-m); font-weight: 600; }

/* ============================================== */
/*  CONTAINER & SECTION LAYOUTS                   */
/* ============================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--spacing-s);
  padding-right: var(--spacing-s);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
  align-items: flex-start;
}

.section {
  margin-bottom: var(--spacing-xl);
  padding: var(--section-pad);
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-m);
}
.card {
  margin-bottom: var(--spacing-s);
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-l);
  border: 1px solid var(--lux-border);
  transition: var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: var(--lux-gold);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-s);
  justify-content: space-between;
  align-items: flex-start;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--spacing-s);
  border: 1px solid var(--lux-border);
  transition: var(--transition);
}
.testimonial-card p {
  font-size: var(--fz-m);
  color: #111;
  margin-bottom: 0.5em;
  font-family: var(--ff-body);
}
.testimonial-card strong {
  color: var(--brand-primary);
  font-weight: bold;
  font-family: var(--ff-display);
}

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

/* ============================================== */
/*  HEADER, NAVIGATION & MOBILE MENU              */
/* ============================================== */
header {
  background: #fff;
  box-shadow: 0 2px 14px -8px var(--lux-shadow);
  border-bottom: 1px solid var(--lux-border);
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-s);
  min-height: var(--header-height);
  position: relative;
}
.main-nav {
  display: flex;
  gap: var(--spacing-m);
  align-items: center;
}
.main-nav a {
  font-family: var(--ff-display);
  font-size: var(--fz-m);
  color: var(--lux-dark);
  padding: 4px 10px;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--lux-gold);
}
.cta-button {
  background: var(--lux-gold);
  color: #fff;
  font-size: var(--fz-m);
  font-family: var(--ff-display);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: 0 2px 8px 0 rgba(194,153,83,0.09);
  margin-left: var(--spacing-s);
  transition: var(--transition);
  letter-spacing: 0.02em;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #a37a36;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(194,153,83,0.18);
}

.mobile-menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  color: var(--brand-primary);
  border: none;
  padding: 4px 12px;
  margin-left: var(--spacing-s);
  border-radius: 12px;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus {
  background: var(--lux-grey);
  outline: 2px solid var(--lux-gold);
  outline-offset: 2px;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,35,41,0.97);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 30px;
  color: #fff;
  background: none;
  border: none;
  margin: 30px 24px 0 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--lux-gold);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 60px;
  padding: 0 40px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: var(--fz-l);
  color: #fff;
  padding: 16px 0 4px 0;
  border-bottom: 1px solid rgba(224, 203, 145, 0.12);
  width: 100%;
  font-family: var(--ff-display);
  transition: color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--lux-gold);
}

/* ============================================== */
/*  HERO AND FEATURE STYLES                       */
/* ============================================== */
.hero, .courses-hero, .blog-hero, .instructors-hero, .testimonials-main, .contact-section, .thank-you-section {
  background: var(--lux-grey);
  border-bottom: 1.5px solid var(--lux-border);
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}
.hero h1, .courses-hero h1, .blog-hero h1, .instructors-hero h1, .testimonials-main h1, .contact-section h1, .thank-you-section h1 {
  font-size: var(--fz-xxl);
  color: var(--brand-primary);
  margin-bottom: var(--spacing-m);
  letter-spacing: -1px;
}
.hero p, .courses-hero p, .blog-hero p, .instructors-hero p, .testimonials-main p, .contact-section p, .thank-you-section p {
  font-size: var(--fz-l);
  color: var(--lux-dark);
  margin-bottom: var(--spacing-m);
}

.features ul, .mission ul, .why-choose-us ul, .courses-list ul, .course-features ul, .blog-list ul, .blog-features ul, .testimonial-features ul, .instructor-team ul, .instructor-features ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  margin-bottom: 0;
  font-size: var(--fz-s);
}
.features ul li, .mission ul li, .why-choose-us ul li, .courses-list ul li, .course-features ul li, .blog-list ul li, .blog-features ul li, .testimonial-features ul li, .instructor-team ul li, .instructor-features ul li {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: var(--spacing-m) var(--spacing-l);
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--lux-gold);
  color: var(--brand-primary);
  margin-bottom: 0;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.features ul li img, .why-choose-us ul li img {
  width: 44px;
  height: 44px;
  margin-bottom: var(--spacing-s);
}

.features ul li:hover, .why-choose-us ul li:hover {
  box-shadow: var(--shadow-hover);
  border-left: 6px solid var(--brand-secondary);
}

/* ============================================== */
/*  COURSE GRID & INSTRUCTOR PROFILES             */
/* ============================================== */
.course-grid, .instructor-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-m);
  margin-bottom: var(--spacing-m);
}
.course-item, .instructor-profile {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-l);
  border: 1px solid var(--lux-border);
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 345px;
  margin-bottom: var(--spacing-s);
  transition: var(--transition);
}
.course-item:hover, .instructor-profile:hover {
  border-color: var(--lux-gold);
  box-shadow: var(--shadow-hover);
}

/* ============================================== */
/*  BLOG LIST & SEARCH INPUT                      */
/* ============================================== */
.blog-list input[type="search"] {
  width: 100%;
  max-width: 360px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--lux-border);
  background: #fff;
  font-size: var(--fz-m);
  margin-bottom: var(--spacing-m);
  transition: border-color var(--transition);
}
.blog-list input[type="search"]:focus {
  outline: none;
  border-color: var(--lux-gold);
}

.blog-list ul li {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: var(--spacing-m) var(--spacing-l);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--brand-secondary);
  margin-bottom: var(--spacing-s);
  transition: box-shadow var(--transition);
}
.blog-list ul li:hover {
  box-shadow: var(--shadow-hover);
}

/* ============================================== */
/*  FOOTER                                       */
/* ============================================== */
footer {
  background: #fff;
  border-top: 1.5px solid var(--lux-border);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-l);
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-s);
  font-size: var(--fz-l);
  font-weight: 700;
  color: var(--brand-primary);
  font-family: var(--ff-display);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
  font-size: var(--fz-s);
  color: var(--lux-dark);
  font-family: var(--ff-body);
  max-width: 340px;
}
.footer-contact img {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  margin-right: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
  font-family: var(--ff-display);
  font-size: var(--fz-s);
  color: var(--lux-dark);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--lux-gold);
}
.footer-nav a {
  transition: color var(--transition);
  width: max-content;
}

/* ============================================== */
/*  COOKIE CONSENT BANNER                        */
/* ============================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1001;
  background: #fff;
  border-top: 2px solid var(--lux-gold);
  padding: 24px 20px 20px 20px;
  box-shadow: 0 -6px 36px 0 rgba(38,70,83,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-s);
  font-size: var(--fz-s);
  font-family: var(--ff-body);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  transform: translateY(0);
}
#cookie-consent-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
}
#cookie-consent-banner p {
  color: var(--brand-primary);
  margin-bottom: 8px;
}
#cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-button {
  padding: 10px 22px;
  font-size: var(--fz-s);
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--lux-gold);
  color: #fff;
  box-shadow: 0 2px 10px 0 var(--lux-shadow);
  margin: 0;
  transition: background var(--transition), color var(--transition);
}
.cookie-button:hover, .cookie-button:focus {
  background: #a37a36;
  color: #fff;
}
.cookie-button.secondary {
  background: #fff;
  color: var(--lux-gold);
  border: 1.5px solid var(--lux-gold);
}
.cookie-button.secondary:hover, .cookie-button.secondary:focus {
  background: var(--lux-gold);
  color: #fff;
}
.cookie-button.outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.cookie-button.outline:hover, .cookie-button.outline:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* Cookie preferences modal */
#cookie-modal {
  position: fixed;
  bottom: 0; right: 0; left: 0; top: 0;
  background: rgba(38,70,83,0.50);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
#cookie-modal.open {
  display: flex;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--spacing-l);
  min-width: 320px;
  max-width: 94vw;
  box-shadow: 0 10px 40px -8px rgba(38,70,83,0.21);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  font-size: var(--fz-m);
  position: relative;
}
#cookie-modal .close-cookie-modal {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 26px;
  color: var(--lux-gold);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
#cookie-modal .close-cookie-modal:hover {
  color: var(--brand-primary);
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
#cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--lux-gold);
  width: 20px;
  height: 20px;
  margin: 0 0 0 2px;
}
#cookie-modal .cookie-category label {
  font-size: var(--fz-s);
  color: var(--brand-primary);
  font-family: var(--ff-display);
}
#cookie-modal .cookie-category .always-on {
  color: var(--lux-gold);
  background: #faf7ee;
  font-size: var(--fz-xs);
  border-radius: 8px;
  padding: 1px 6px;
  margin-left: 8px;
  border: 1px solid var(--lux-gold);
}

#cookie-modal .modal-actions {
  display: flex;
  gap: var(--spacing-s);
  margin-top: var(--spacing-m);
}

/* ============================================== */
/*  SPACING AND RESPONSIVE UTILITIES              */
/* ============================================== */
.section + .section { margin-top: 0; }

/* Spacing: 20px or larger between all cards/sections */
section, .section, .card, .card-container > *, .testimonial-card, .content-wrapper > *, .feature-item, .container > * {
  margin-bottom: 0;
}
.card-container > * + *, .course-grid > * + *, .instructor-profiles > * + *, .content-wrapper > * + *, .features ul > li + li, .why-choose-us ul > li + li, .testimonial-card + .testimonial-card {
  margin-left: 0;
  margin-top: 20px;
}

/**** ========== RESPONSIVE DESIGN ========== ****/
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .content-wrapper { gap: var(--spacing-m); }
  .main-nav { display: none; }
  .cta-button { font-size: 16px; padding: 10px 16px; margin-left: 0; }
  .mobile-menu-toggle { display: block; }
  .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card-container, .content-grid, .course-grid, .instructor-profiles {
    flex-direction: column;
    gap: var(--spacing-s);
  }
  .footer-brand, .footer-contact, .footer-nav {
    align-items: flex-start;
    padding-bottom: var(--spacing-s);
  }
  .footer-contact, .footer-nav {
    max-width: 94vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: var(--spacing-s);
  }
  .card, .testimonial-card, .feature-item, .course-item, .instructor-profile {
    padding: var(--spacing-m);
    max-width: 100%;
  }
}
@media (max-width: 500px) {
  .container { padding-left: 6px; padding-right: 6px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .cta-button { font-size: 15px; padding: 8px 12px; }
}

/* ============================================== */
/*  MICROLEVEL INTERACTIONS, EFFECTS              */
/* ============================================== */
a, button, .cta-button, .cookie-button {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border var(--transition);
}
.card:focus-within, .testimonial-card:focus-within {
  box-shadow: var(--shadow-hover);
  border-color: var(--lux-gold);
}

.cta-button:active, .cookie-button:active {
  transform: scale(0.97);
}

input:focus {
  outline: 2px solid var(--lux-gold);
  outline-offset: 2px;
}

/* ============================================== */
/*  SPECIAL COMPONENTS                            */
/* ============================================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fz-m);
  color: var(--brand-primary);
}
.contact-details img { width: 22px; }

/* List styles */
ul { padding-left: 0; }
ul li {
  margin-bottom: 0;
}

/* Typography for policies */
.privacy-policy-section, .gdpr-section, .cookies-policy-section, .terms-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-l) var(--spacing-m);
  font-size: var(--fz-m);
  color: var(--lux-dark);
}
.privacy-policy-section h1, .gdpr-section h1, .cookies-policy-section h1, .terms-section h1 {
  padding-bottom: 10px;
}
.privacy-policy-section ul, .gdpr-section ul, .cookies-policy-section ul, .terms-section ul {
  padding-left: var(--spacing-m);
  gap: 8px;
}

/**** FOCUS STATES (Accessibility) ***/
a:focus, button:focus, .cta-button:focus, input:focus, .cookie-button:focus {
  outline: 2px solid var(--lux-gold);
  outline-offset: 2px;
}

/* ============================================== */
/*  GOLD ACCENTS & PREMIUM LUXURY EFFECTS         */
/* ============================================== */
h1 span.gold, h2 span.gold, h3 span.gold, .gold-accent {
  color: var(--lux-gold);
  font-weight: bold;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card, .testimonial-card, .course-item, .instructor-profile {
  border-top: 4px solid var(--lux-gold);
}

hr {
  border: none;
  border-top: 2px solid var(--lux-border);
  margin: var(--spacing-xl) 0;
}

/* ============================================== */
/*  HIDE/SHOW - UTILITY CLASSES                   */
/* ============================================== */
.hide { display: none !important; }
.show { display: block !important; }

/* ============================================== */
/*  PRINT MINIMUM-LENGTH MARGIN USING FLEX        */
/* ============================================== */
/* For all .card-container etc: Already using flex with gap. */

/* ---------------------------------------------- */
/* END OF LUXURY PREMIUM FLEXBOX CSS              */
/* ---------------------------------------------- */
