@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --black: #090909;
  --black-soft: #151311;
  --gold: #c9a45c;
  --gold-light: #e5c889;
  --ivory: #f5f0e7;
  --paper: #fffdf8;
  --ink: #211d18;
  --muted: #746d63;
  --line: rgba(32, 27, 20, .14);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }

.brand-mark-img {
    width: 60px;
    height: 68px;
    object-fit: contain;
}

.brand-name {
    color: var(--gold-light);
    font-family: var(--serif);
    font-size: 19px;
}

.brand-name small {
    display: block;
    color: #f4ead7;
    font: 10px var(--sans);
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(9,9,9,.97); color: white; border-bottom: 1px solid rgba(201,164,92,.25); }
.nav-wrap {
  min-height: 78px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.brand-mark { width: 38px; height: 44px; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 25px; transform: rotate(-4deg); }
.brand-name { color: var(--gold-light); font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.brand-name small { display: block; color: #f4ead7; font: 10px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; margin-top: 4px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
    margin-left: auto;
}
.nav-cta {
    margin-left: 25px;
    flex-shrink: 0;
}
.nav-links a { color: #eee9df; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta, .btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); background: var(--gold); color: #17120b; padding: 12px 21px; border-radius: 3px; font: 700 12px var(--sans); letter-spacing: .4px; cursor: pointer; transition: .2s; }
.nav-cta:hover, .btn:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold-light); }
.btn-outline:hover { color: var(--black); }
.menu-toggle { display: none; background: transparent; border: 1px solid #655333; color: white; padding: 8px 11px; font-size: 20px; }
.hero { min-height: 620px; display: grid; align-items: center; color: white; background: linear-gradient(90deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.76) 46%, rgba(8,8,8,.15) 100%), url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1800&q=85') center/cover; }
.hero-content { max-width: 610px; padding-block: 100px; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(48px, 7vw, 78px); margin: 17px 0 20px; }
h1 em, h2 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 500px; color: #e7e0d5; font-size: 17px; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.section { padding: 86px 0; }
.section-heading { max-width: 650px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 48px); margin: 10px 0 13px; }
.section-heading p, .muted { color: var(--muted); }
.feature-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(4,1fr); }
.feature { padding: 27px 15px; text-align: center; border-right: 1px solid var(--line); }
.feature:last-child { border: 0; }
.feature strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.feature span { color: var(--muted); font-size: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.course-card { background: var(--paper); border: 1px solid var(--line); }
.course-card img { width: 100%; height: 225px; object-fit: cover; }
.course-card-body { padding: 23px; }
.course-card h3 { font-size: 25px; margin: 0 0 9px; }
.course-card p { color: var(--muted); font-size: 14px; }
.text-link { color: #98702e; font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.split img { width: 100%; height: 440px; object-fit: cover; }
.split h2 { font-size: clamp(34px, 4vw, 48px); margin: 10px 0 18px; }
.check-list { padding: 0; list-style: none; }
.check-list li { margin: 12px 0; }
.check-list li::before { content: '✦'; color: var(--gold); margin-right: 11px; }
.dark-section { background: var(--black); color: white; }
.dark-section .section-heading p { color: #bcb4a7; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; gap: 20px; }
.stat { border-right: 1px solid rgba(201,164,92,.35); }
.stat:last-child { border: 0; }
.stat strong { display: block; font: 42px var(--serif); color: var(--gold-light); }
.stat span { color: #c8c0b4; font-size: 13px; }
.page-hero { min-height: 280px; display: flex; align-items: center; color: white; background: linear-gradient(90deg,rgba(0,0,0,.86),rgba(0,0,0,.34)), url('https://images.unsplash.com/photo-1539109136881-3be0616acf4b?auto=format&fit=crop&w=1600&q=85') center 42%/cover; }
.page-hero h1 { font-size: clamp(42px,6vw,62px); margin: 0 0 12px; }
.page-hero p { margin: 0; color: #eee5d8; }
.course-detail { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; padding: 24px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 20px; }
.course-detail img { width: 100%; height: 205px; object-fit: cover; }
.course-detail h2 { margin: 0 0 8px; font-size: 29px; }
.course-detail p { color: var(--muted); margin: 0 0 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.gallery-grid img { width: 100%; height: 280px; object-fit: cover; }
.form-card { background: var(--paper); padding: 30px; border: 1px solid var(--line); box-shadow: 0 15px 40px rgba(40,30,10,.05); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1/-1; }
label { font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 13px 14px; background: #fff; border: 1px solid #ddd4c6; border-radius: 2px; font: 14px var(--sans); color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.12); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 17px 0; color: var(--muted); }
.contact-list strong { display: block; color: var(--ink); }
.site-footer { 
  background: #090909; 
  color: #d9d0c2; 
  padding: 55px 0 22px; 
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 1.2fr;
  gap: 30px;
}

.site-footer h3 { 
  color: var(--gold-light); 
  font-size: 21px; 
  margin-bottom: 16px;
}

.site-footer p, 
.site-footer a { 
  color: #bdb4a6; 
  font-size: 13px; 
  text-decoration: none;
}

.footer-links { 
  display: grid; 
  gap: 9px; 
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #30291e;
  background: #14120f;
  color: var(--gold-light);
  font-size: 14px;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  border-color: var(--gold-light);
  background: #241f17;
  transform: translateY(-2px);
}

.copyright {
  border-top: 1px solid #30291e;
  margin-top: 35px;
  text-align: center;
  padding-top: 18px;
  color: #8e867b;
  font-size: 11px;
}

/* =========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================= */
html, body {
  max-width: 100%;
  overflow-x: clip;
}


@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #090909;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(201, 164, 92, 0.25);
  }

  .menu-toggle {
    display: inline-block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  /* Hero section */
  .hero {
    min-height: auto;
    background-position: center;
  }

  .hero-content {
    max-width: 100%;
    padding-block: 64px;
  }

  h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 15px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  /* 4-column feature strip -> 2x2 grid */
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .feature {
    padding: 20px 12px;
    border-bottom: 1px solid var(--line);
  }

  .feature:nth-child(2n) {
    border-right: 0;
  }

  /* Stack homepage & inner grids into 1 column */
  .section {
    padding: 56px 0;
  }

  .split,
  .grid-3,
  .stats,
  .course-detail,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split img {
    height: 300px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(201, 164, 92, 0.35);
    padding-bottom: 16px;
  }

  .stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


.copyright { border-top: 1px solid #30291e; margin-top: 35px; padding-top: 18px; color: #8e867b; font-size: 11px; }
.notice { display:none; margin-top: 15px; padding: 12px; background: #f1e8d5; color: #4c3918; font-size: 13px; }

@media (max-width: 800px) {

  .site-header .nav-wrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  

  .site-header .brand {
    min-width: 0;
    flex-shrink: 0;
  }

  .site-header .menu-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
  }

  .site-header .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 22px;
    background: #090909;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid #3c301c;
  }

  .site-header .nav-links.open {
    display: flex;
  }

  .site-header .nav-cta {
    display: none;
  }

  .grid-3, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split img {
    height: 330px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
    .nav-links {
        margin-left: 0;
    }
}

/* =====================================
   PROFESSIONAL HEADER ALIGNMENT
===================================== */

.site-header .nav-wrap {
    width: min(1480px, calc(100% - 80px));
    min-height: 88px;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Logo alignment */
.site-header .brand {
    flex-shrink: 0;
    min-width: auto;
    margin: 0;
}

/* Navigation towards the right */
.site-header .nav-links {
    margin-left: auto;
    gap: 30px;
    flex-shrink: 0;
}

/* Enroll button */
.site-header .nav-cta {
    margin-left: 15px;
    flex-shrink: 0;
}

/* Mobile alignment */
@media (max-width: 800px) {
    .site-header .nav-wrap {
        width: calc(100% - 30px);
        min-height: 78px;
        gap: 10px;
    }

    .site-header .brand {
        min-width: 0;
    }

    .site-header .menu-toggle {
        margin-left: auto;
        flex-shrink: 0;
    }

    .site-header .nav-links {
        margin-left: 0;
        gap: 18px;
    }
}

/* =====================================
   MOBILE COURSE DETAILS FIX
===================================== */

@media (max-width: 800px) {

    .course-detail {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 18px;
        gap: 22px;
        margin-bottom: 22px;
        align-items: stretch;
    }

    .course-detail img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        order: 1;
    }

    .course-detail > div {
        width: 100%;
        order: 2;
    }

    .course-detail h2 {
        font-size: 32px;
        line-height: 1.2;
        margin: 8px 0 12px;
    }

    .course-detail p {
        font-size: 15px;
        line-height: 1.7;
    }

    .course-detail .check-list {
        padding-left: 0;
    }

    .course-detail .check-list li {
        font-size: 14px;
        margin: 12px 0;
    }

    .course-detail .text-link {
        display: inline-block;
        margin-top: 12px;
    }
}

/* Smaller mobile screens */
@media (max-width: 480px) {

    .course-detail {
        padding: 14px;
        gap: 18px;
    }

    .course-detail img {
        height: 220px;
    }

    .course-detail h2 {
        font-size: 29px;
    }

    .course-detail .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }
}
