@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,600;0,6..96,800;1,6..96,400;1,6..96,600&family=Josefin+Sans:wght@300;400;600;700&display=swap');

:root {
  --midnight:   #08141E;
  --forest:     #123426;
  --deep-teal:  #0E4441;
  --amber:      #C48E1C;
  --gold:       #DAB03E;
  --ivory:      #F5EEDA;
  --parchment:  #E8DABE;
  --coral:      #D26448;
  --sage:       #6E8C6C;
  --dusty-rose: #B98276;
  --charcoal:   #1A1612;
  --warm-white: #FAF6EE;
  --font-display: 'Bodoni Moda', 'Georgia', serif;
  --font-body:    'Josefin Sans', 'Trebuchet MS', sans-serif;
  --max-w: 1280px;
  --section-pad: 6rem 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--midnight);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { font-size: 16px; line-height: 1.75; color: #4A4035; }

a { color: var(--amber); text-decoration: none; transition: color .25s; }
a:hover { color: var(--coral); }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--midnight);
  border-bottom: 2px solid var(--amber);
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 74px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 800; font-style: italic;
  color: var(--ivory); letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex; gap: 2.8rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(245,238,218,.65); font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.hamburger {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--ivory); transition: .3s; }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--midnight); flex-direction: column;
    padding: 1.5rem 2rem 2rem; gap: 1.5rem;
    border-bottom: 2px solid var(--amber);
  }
  .nav-links.open { display: flex; }
}

/* HERO */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  background: var(--midnight); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center; opacity: 0.5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg,rgba(8,20,30,.90) 0%,rgba(14,68,65,.40) 55%,rgba(18,52,38,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 5rem 2rem;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(196,142,28,.18); border: 1px solid rgba(196,142,28,.45);
  color: var(--gold); font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  padding: .45rem 1.3rem; border-radius: 100px; margin-bottom: 1.8rem;
}
.hero h1 { color: var(--ivory); max-width: 700px; margin-bottom: 1.6rem; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: rgba(245,238,218,.72); font-size: 1.08rem; max-width: 530px; margin-bottom: 2.8rem; }

/* BUTTONS */
.btn-primary {
  display: inline-block; background: var(--amber); color: var(--midnight) !important;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .9rem 2.4rem; border: 2px solid var(--amber); border-radius: 2px;
  cursor: pointer; transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--gold); border-color: var(--gold); color: var(--midnight) !important;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,142,28,.35);
}
.btn-outline {
  display: inline-block; background: transparent; color: var(--ivory) !important;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .9rem 2.4rem; border: 2px solid rgba(245,238,218,.4); border-radius: 2px;
  cursor: pointer; margin-left: 1rem;
  transition: border-color .25s, background .25s, transform .2s;
}
.btn-outline:hover {
  border-color: var(--ivory); background: rgba(245,238,218,.08); transform: translateY(-2px);
}

/* SECTIONS */
.section { padding: var(--section-pad); max-width: var(--max-w); margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--amber); font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; margin-bottom: .6rem;
}
.section-title { margin-bottom: .8rem; }
.section-subtitle { font-size: 1.05rem; color: #6A5E50; max-width: 600px; margin-bottom: 3.5rem; }
.divider { width: 48px; height: 2px; background: var(--amber); border: none; margin: .8rem 0 2rem; }

/* ABOUT */
.about-stripe {
  background: var(--midnight); padding: 6rem 2rem;
  position: relative; overflow: hidden;
}
.about-stripe::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,68,65,.45) 0%, transparent 70%);
  pointer-events: none;
}
.about-stripe-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-stripe h2 { color: var(--ivory); }
.about-stripe .section-tag { color: var(--gold); }
.about-stripe p { color: rgba(245,238,218,.65); }
.about-stripe .divider { background: var(--amber); }
.about-img { position: relative; aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; position: relative; z-index: 1; }
.about-img::before {
  content: ''; position: absolute;
  top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 2px solid var(--amber); border-radius: 3px; z-index: 0;
}
@media (max-width: 768px) { .about-stripe-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

/* STATS */
.stats-bar {
  background: linear-gradient(135deg, var(--deep-teal) 0%, var(--forest) 100%);
  padding: 4rem 2rem;
  border-top: 2px solid rgba(196,142,28,.3);
  border-bottom: 2px solid rgba(196,142,28,.3);
}
.stats-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.stat-item .number {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 800;
  color: var(--gold); line-height: 1; display: block;
}
.stat-item .label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,238,218,.6); display: block; margin-top: .5rem;
}
@media (max-width: 640px) { .stats-bar-inner { grid-template-columns: repeat(2, 1fr); } }

/* COURSES */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 2rem; }
.course-card {
  background: var(--warm-white); border: 1px solid rgba(196,142,28,.18);
  border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.course-card:hover { transform: translateY(-7px); box-shadow: 0 14px 40px rgba(8,20,30,.12); border-color: var(--amber); }
.course-card-img { aspect-ratio: 16/9; overflow: hidden; }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.course-card:hover .course-card-img img { transform: scale(1.07); }
.course-card-body { padding: 1.7rem; flex: 1; display: flex; flex-direction: column; }
.course-badge {
  display: inline-block; background: rgba(14,68,65,.08); color: var(--deep-teal);
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .2rem .8rem; border: 1px solid rgba(14,68,65,.3);
  border-radius: 100px; margin-bottom: .75rem;
}
.course-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.course-card p { font-size: 0.93rem; flex: 1; margin-bottom: 1.2rem; }
.course-meta {
  display: flex; gap: 1.2rem; font-family: var(--font-body);
  font-size: 0.8rem; color: #8A7A6A;
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--parchment);
}
.course-meta span { display: flex; align-items: center; gap: .4rem; }
.course-meta i { color: var(--amber); }

/* TEACHERS */
.teachers-bg { background: var(--parchment); padding: var(--section-pad); }
.teachers-inner { max-width: var(--max-w); margin: 0 auto; }
.teachers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem; margin-top: 3.5rem;
}
.teacher-card { text-align: center; }
.teacher-photo {
  width: 155px; height: 155px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 1.3rem; border: 4px solid var(--amber);
  box-shadow: 0 0 0 6px rgba(196,142,28,.12);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .3rem; }
.teacher-card .role {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .7rem; display: block;
}
.teacher-card p { font-size: 0.9rem; color: #6A5E50; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { overflow: hidden; border-radius: 3px; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 200px; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.07); }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}

/* TESTIMONIALS */
.testimonials-bg {
  background: var(--midnight); padding: var(--section-pad);
  position: relative; overflow: hidden;
}
.testimonials-bg::after {
  content: ''; position: absolute; bottom: -20%; left: -5%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,52,38,.6) 0%, transparent 70%);
  pointer-events: none;
}
.testimonials-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.testimonials-inner h2 { color: var(--ivory); }
.testimonials-inner .section-tag { color: var(--gold); }
.testimonials-inner .section-subtitle { color: rgba(245,238,218,.5); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem; margin-top: 3.5rem;
}
.testimonial-card {
  background: rgba(245,238,218,.04); border: 1px solid rgba(245,238,218,.1);
  border-radius: 4px; padding: 2.2rem;
  transition: border-color .3s, background .3s;
}
.testimonial-card:hover { background: rgba(245,238,218,.07); border-color: rgba(196,142,28,.4); }
.testimonial-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; display: flex; gap: 3px; }
.testimonial-card blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: var(--ivory); line-height: 1.65; margin: 0 0 1.6rem; padding: 0;
}
.testimonial-author { display: flex; align-items: center; gap: .9rem; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--amber); }
.testimonial-author .name { font-family: var(--font-body); font-weight: 700; font-size: 0.88rem; color: var(--ivory); display: block; }
.testimonial-author .meta { font-size: 0.78rem; color: rgba(245,238,218,.4); }

/* ENROLL FORM */
.enroll-bg { background: var(--parchment); padding: var(--section-pad); }
.enroll-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; text-align: left; }
.form-full { grid-column: span 2; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-full { grid-column: span 1; } }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--charcoal);
}
.form-group input, .form-group select, .form-group textarea {
  background: var(--warm-white); border: 1.5px solid rgba(196,142,28,.3);
  border-radius: 3px; padding: .78rem 1rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  transition: border-color .2s, box-shadow .2s; outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--amber); box-shadow: 0 0 0 3px rgba(196,142,28,.14);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* POPUP */
.popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(8,20,30,.82); z-index: 999;
  align-items: center; justify-content: center; backdrop-filter: blur(6px);
}
.popup-overlay.active { display: flex; }
.popup-box {
  background: var(--warm-white); border-radius: 6px; padding: 3.2rem 2.5rem;
  max-width: 480px; width: 90%; text-align: center; position: relative;
  box-shadow: 0 24px 60px rgba(8,20,30,.4); border-top: 4px solid var(--amber);
  animation: popupIn .35s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes popupIn { from { transform: scale(.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-icon {
  width: 74px; height: 74px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.popup-icon i { color: var(--midnight); font-size: 1.9rem; }
.popup-box h3 { font-size: 1.65rem; margin-bottom: .75rem; }
.popup-box p { font-size: 1rem; margin-bottom: 2rem; }
.popup-close {
  background: none; border: none; position: absolute; top: 1rem; right: 1.2rem;
  font-size: 1.4rem; cursor: pointer; color: #9A8A7A; padding: 4px; line-height: 1;
}
.popup-close:hover { color: var(--charcoal); }

/* FOOTER */
footer {
  background: var(--midnight); color: var(--ivory);
  padding: 4.5rem 2rem 2rem; border-top: 2px solid rgba(196,142,28,.2);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(245,238,218,.08);
}
.footer-brand .logo { font-size: 1.55rem; display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(245,238,218,.45); max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.footer-col ul a { color: rgba(245,238,218,.5); font-size: 0.9rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--ivory); }
.footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .7rem; color: rgba(245,238,218,.5); font-size: 0.9rem; }
.footer-contact-item i { color: var(--amber); margin-top: 3px; flex-shrink: 0; width: 16px; }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(245,238,218,.3); }
.footer-policy-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-policy-links a { font-size: 0.82rem; color: rgba(245,238,218,.35); }
.footer-policy-links a:hover { color: var(--ivory); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--deep-teal); border-top: 2px solid var(--amber);
  z-index: 500; padding: 1.3rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.9rem; color: rgba(245,238,218,.8); margin: 0; max-width: 680px; }
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-accept {
  background: var(--amber); color: var(--midnight); border: none;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: .15em; padding: .55rem 1.5rem; border-radius: 2px; cursor: pointer;
  transition: background .2s;
}
.cookie-accept:hover { background: var(--gold); }
.cookie-decline {
  background: transparent; color: rgba(245,238,218,.55);
  border: 1px solid rgba(245,238,218,.25);
  font-family: var(--font-body); font-size: 0.78rem;
  padding: .55rem 1.2rem; border-radius: 2px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cookie-decline:hover { border-color: rgba(245,238,218,.55); color: rgba(245,238,218,.9); }

/* PAGE HEADER */
.page-header {
  background: var(--midnight); padding: 5.5rem 2rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../images/page-header-bg.jpg');
  background-size: cover; background-position: center; opacity: .22;
}
.page-header::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,20,30,.4), rgba(8,20,30,.7));
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .7rem; }
.page-header p { color: rgba(245,238,218,.6); font-size: 1.08rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; margin-top: 3rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-info-card {
  background: var(--midnight); border-radius: 4px; padding: 2.5rem;
  height: fit-content; border-left: 3px solid var(--amber);
}
.contact-info-card h3 { color: var(--ivory); margin-bottom: 1.5rem; font-size: 1.4rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail-icon {
  width: 46px; height: 46px; background: rgba(196,142,28,.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon i { color: var(--amber); font-size: 1rem; }
.contact-detail-text .dt-label {
  font-family: var(--font-body); font-size: 0.68rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(245,238,218,.4); font-weight: 700; display: block; margin-bottom: .2rem;
}
.contact-detail-text .dt-value { color: rgba(245,238,218,.75); font-size: .97rem; }

/* POLICY */
.policy-content { max-width: 800px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.policy-content h2 { font-size: 1.55rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.policy-content h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.policy-content p, .policy-content li { font-size: 1rem; color: #6A5E50; line-height: 1.8; margin-bottom: .75rem; }
.policy-content ul { padding-left: 1.5rem; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* BACK TO TOP */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; background: var(--amber); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--midnight); font-size: 1rem; cursor: pointer; border: none;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s; z-index: 200;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); transform: translateY(-3px); }
