/* ============================================
   École de Danse Nicola — Main Stylesheet
   ============================================ */

:root {
    --color-dark: #1c1f21;
    --color-dark-alt: #26292b;
    --color-gold: #b18b5d;
    --color-gold-hover: #c9a272;
    --color-white: #ffffff;
    --color-text-light: rgba(255, 255, 255, 0.46);
    --color-text-dark: #000000;
    --color-text-body: #333333;
    --color-border: rgba(0, 0, 0, 0.08);

    --font-heading: 'Ovo', Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    --font-body: 'Lato', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --container-width: 1200px;
    --container-padding: 15px;
    --section-padding: 120px;
    --header-height: 144px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-body);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---- UTILITIES ---- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Left-aligned subtitle with line before (about section) */
.about-text .section-subtitle::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: rgb(136, 111, 83);
    flex-shrink: 0;
}

/* Centered subtitle with lines on both sides (section headers) */
.section-header .section-subtitle {
    justify-content: center;
}

.section-header .section-subtitle::before,
.section-header .section-subtitle::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background-color: rgb(136, 111, 83);
    flex-shrink: 0;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 2px solid var(--color-gold);
}
.btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}
.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 12px;
}

/* ---- TYPOGRAPHY ---- */
h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 1.63px;
    text-transform: uppercase;
    line-height: 1.33;
}

h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.34;
}

h3 {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.57;
}

h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.64;
}

h5 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.78;
}

h6 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.75;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(28, 31, 33, 0.68);
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
    height: var(--header-height);
}

.site-header.scrolled {
    background-color: rgba(28, 31, 33, 0.95);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-white);
    text-transform: uppercase;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-white);
}

.header-phones {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.67;
    text-align: right;
}
.header-phones p {
    margin: 0;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.section-hero {
    margin-top: 0;
}

.hero-bg {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(28, 31, 33, 0.47);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--container-padding);
    max-width: 800px;
}

.hero-subtitle {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.hero-heading {
    color: var(--color-white);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   ABOUT
   ============================================ */
.section-about {
    background-color: var(--color-dark);
    padding: var(--section-padding) 0;
    color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-subtitle {
    margin-bottom: 12px;
}

.about-text h2 {
    color: var(--color-white);
    margin-bottom: 8px;
}

.about-subheading {
    color: var(--color-white);
    margin-bottom: 32px;
}

.about-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.about-media {
    border-radius: 4px;
    overflow: hidden;
}

.about-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* ============================================
   SERVICES
   ============================================ */
.section-services {
    background-color: var(--color-dark);
    padding: var(--section-padding) 0;
    color: var(--color-white);
    position: relative;
    z-index: 0;
}

.section-services h2 {
    color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: transparent;
    position: relative;
}

.service-image {
    position: relative;
    margin-right: 20px;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    aspect-ratio: 0.787;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    z-index: 0;
    border-radius: 4px;
    background-image: linear-gradient(
        to left,
        rgba(136, 111, 83, 0.5),
        rgba(136, 111, 83, 0.5) 1px,
        transparent 1px,
        transparent 8px
    );
    background-size: 9px 100%;
    background-position: calc(100% + 1px) 0;
    background-repeat: repeat;
}

.service-content {
    padding: 24px 0;
}

.service-content h4 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.service-content p {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.75;
}

/* ============================================
   PRICING
   ============================================ */
.section-pricing {
    background-color: var(--color-white);
    padding: var(--section-padding) 0;
    color: var(--color-text-dark);
}

.pricing-heading {
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.pricing-table-block {
    margin-bottom: 50px;
}

.pricing-subtitle {
    color: rgba(28, 31, 33, 0.61);
    text-align: center;
    margin-bottom: 24px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    display: block;
}

table {
    width: 100%;
    min-width: 700px;
}

thead th {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    padding: 16px 32px;
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
    color: var(--color-dark);
}

tbody td {
    padding: 16px 32px;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.row-label {
    font-family: var(--font-body);
    font-weight: 400;
    white-space: nowrap;
}

.price-cell {
    text-align: right;
    white-space: nowrap;
}

.price {
    display: inline-block;
    font-family: var(--font-heading);
    background-color: var(--color-gold);
    color: var(--color-white);
    font-weight: 400;
    font-size: 16px;
    padding: 8px 30px;
    border-radius: 0px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--color-gold);
}

.pricing-notes {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   TEACHERS
   ============================================ */
.section-teachers {
    background-color: var(--color-white);
    padding: var(--section-padding) 0;
    color: var(--color-text-dark);
    position: relative;
    z-index: 0;
}

.section-teachers h2 {
    color: var(--color-text-dark);
}

.section-teachers .section-subtitle {
    color: rgba(0, 0, 0, 0.3);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.teacher-card {
    text-align: center;
    position: relative;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    padding: 0;
    margin-right: 20px;
    margin-bottom: 20px;
    overflow: visible;
}

.teacher-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    z-index: -1;
    border-radius: 4px;
    background-image: linear-gradient(
        to left,
        rgba(136, 111, 83, 0.5),
        rgba(136, 111, 83, 0.5) 1px,
        transparent 1px,
        transparent 8px
    );
    background-size: 9px 100%;
    background-position: calc(100% + 1px) 0;
    background-repeat: repeat;
}

.teacher-image {
    width: 100%;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.teacher-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.teacher-card-content {
    padding: 32px 40px;
}

.teacher-card h4 {
    color: rgb(28, 31, 33);
    margin-bottom: 0;
}

.teacher-card p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(28, 31, 33, 0.62);
    text-align: left;
    margin-top: 20px;
}

.teacher-card p a {
    color: var(--color-gold);
    text-decoration: underline;
}

/* ============================================
   TRAINING
   ============================================ */
.section-training {
    background-color: var(--color-dark-alt);
    padding: var(--section-padding) 0;
    color: var(--color-white);
}

.training-inner {
    max-width: 770px;
    margin: 0 auto;
}

.training-inner h2 {
    color: var(--color-white);
    text-align: center;
    margin-bottom: 0;
}

.training-image {
    margin-top: 48px;
}

.training-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.training-intro {
    color: var(--color-white);
    margin-top: 48px;
    margin-bottom: 0;
}

.training-content p {
    color: rgba(255, 255, 255, 0.48);
    margin-top: 20px;
    line-height: 1.75;
}

/* ============================================
   CTA
   ============================================ */
.section-cta {
    position: relative;
}

.cta-bg {
    position: relative;
    background-size: cover;
    background-position: center center;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(28, 31, 33, 0.5);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 var(--container-padding);
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-dark);
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: normal;
    color: rgb(158, 137, 112);
    text-transform: none;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    transition: color 0.2s ease;
}
.footer-nav a:hover {
    color: var(--color-gold);
}

.footer-phones {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.46);
}

.footer-email a {
    color: rgb(158, 137, 112);
    transition: color 0.2s ease;
}
.footer-email a:hover {
    color: var(--color-gold-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: left;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.46);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
        --header-height: 80px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 32px; }
    h3 { font-size: 22px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* training is already single column */

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

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .footer-nav ul {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header-phones {
        font-size: 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .header-right {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: rgba(28, 31, 33, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .header-right.open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .header-phones {
        text-align: center;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 26px; }

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

    .hero-bg {
        min-height: 80vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-media img {
        height: auto;
    }

    thead th,
    tbody td {
        padding: 12px 16px;
        font-size: 14px;
    }

    .pricing-notes {
        flex-direction: column;
        align-items: center;
    }

    .pricing-notes .btn {
        font-size: 11px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; letter-spacing: 1px; }
    h2 { font-size: 22px; letter-spacing: 1px; }
    h4 { font-size: 18px; }

    .btn {
        font-size: 12px;
        padding: 12px 20px;
        letter-spacing: 1.5px;
    }

    .teacher-image {
        max-width: 200px;
    }

    .cta-bg {
        padding: 60px 0;
    }
}
