@font-face {
    font-family: "Higuen Elegant Serif";
    src: url("./fonts/Higuen-Elegant.woff2") format("woff2"),
        url("./fonts/Higuen-Elegant.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --deep-forest: #2f5848;
    --soft-sky: #79c0bc;
    --sage-green: #a7cbbf;
    --warm-beige: #ede8e5;
    --rich-bark: #261d14;
    --terracotta: #d77a61;
}

/* Base styles - Mobile First */
body {
    font-family: "Lora", sans-serif;
    background-color: var(--warm-beige);
    color: var(--rich-bark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Higuen Elegant Serif", "Abril Fatface", serif;
    color: var(--deep-forest);
    margin-top: 0;
    margin-bottom: 0.5em;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Header & Navigation - Mobile First */
.header {
    background-color: rgba(237, 232, 229, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.3s ease;
    padding-top: 8px;
    min-height: 48px;
    max-height: 56px;
}

.header.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 8px;
    font-family: "Higuen Elegant Serif", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    color: var(--deep-forest);
    text-decoration: none;
}

.header-logo img {
    height: 40px;
    width: 40px;
}

/* Mobile-first navigation - hidden by default */
.main-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.main-nav-link {
    color: var(--rich-bark);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.main-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--soft-sky);
    transition: width 0.3s ease-out;
    transform-origin: left;
}

.main-nav-link:hover::after,
.main-nav-link.active::after {
    width: 100%;
}

.main-nav-link:hover,
.main-nav-link.active {
    color: var(--soft-sky);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Mobile-first header button - hidden by default */
.header-book-button {
    display: none;
    background-color: var(--deep-forest);
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-book-button:hover {
    opacity: 0.9;
}

/* Mobile menu button - visible by default */
.mobile-menu-button {
    display: block;
    margin-left: 16px;
    padding: 8px;
    color: var(--rich-bark);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    background-color: var(--warm-beige);
    border-top: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.show {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu a {
    display: block;
    padding: 12px 24px 16px 24px;
    color: var(--rich-bark);
    text-decoration: none;
    position: relative;
}

.mobile-menu a::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 8px;
    width: 0;
    height: 2px;
    background-color: var(--soft-sky);
    transition: width 0.3s ease-out;
    transform-origin: left;
}

.mobile-menu a:hover::after {
    width: calc(100% - 48px);
}

.mobile-menu .book-button-mobile {
    text-align: center;
    padding: 16px 24px;
    background-color: var(--soft-sky);
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--warm-beige);
    background-image: url("./photos/studio-hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    /* padding-top: 96px; */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: black;
    opacity: 0.4;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.hero-title {
    color: var(--warm-beige);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: bold;
    font-family: "Higuen Elegant Serif", serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5),
        0 6px 18px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
}

.hero-subtitle {
    margin-top: 16px;
    color: var(--warm-beige);
    font-family: "Lora", cursive;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: light;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-button {
    margin-top: 32px;
    display: inline-block;
    background-color: var(--deep-forest);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 16px 32px;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Section Common Styles */
section {
    scroll-margin-top: 64px; /* Adjust based on your header height + 8px */
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.section-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 2px;
}

.section-description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    color: rgba(38, 29, 20, 0.8);
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.about-text {
    text-align: left;
}

.about-img-side {
    text-align: center;
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.about-grid {
    display: grid;
    gap: 48px;
}

.about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.about-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.about-icon-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.about-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-forest);
    margin-top: 8px;
    margin-bottom: 8px;
}

.about-item p {
    color: rgba(38, 29, 20, 0.8);
}

/* Instructor Section */
.instructor-content-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.instructor-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.instructor-header-text {
    text-align: right;
    flex: 1;
}

.instructor-header-text h3 {
    font-size: 2rem;
    margin-bottom: 4px;
    color: var(--deep-forest);
}

.instructor-header-text .subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--soft-sky);
    margin-bottom: 0;
}

.instructor-image-mobile {
    flex-shrink: 0;
}

.instructor-portrait-mobile {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.instructor-image-desktop {
    display: none;
}

.instructor-header-row .instructor-portrait {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.instructor-text-side {
    text-align: left;
}

.instructor-image-side {
    text-align: center;
}

.instructor-portrait {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.instructor-text-side {
    text-align: left;
    width: 100%;
}

.instructor-text-side p {
    color: rgba(38, 29, 20, 0.8);
    margin-bottom: 16px;
}

/* Pricing Section */
.pricing-section {
    background-color: rgba(167, 203, 191, 0.3);
}

.pricing-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background-color: var(--warm-beige);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background-color: var(--deep-forest);
    color: var(--warm-beige);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
}

.pricing-card .popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--soft-sky);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 9999px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--deep-forest);
}

.pricing-card.popular h3 {
    color: var(--warm-beige);
}

.pricing-card .price {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--rich-bark);
}

.pricing-card.popular .price {
    color: var(--terracotta);
}

.pricing-card .per-month {
    color: rgba(38, 29, 20, 0.7);
    margin-bottom: 24px;
}

.pricing-card.popular .per-month {
    color: rgba(237, 232, 229, 0.7);
}

.pricing-card ul {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-card li {
    position: relative;
    padding-left: 20px;
}

.pricing-card li::before {
    content: "✓";
    color: var(--soft-sky);
    position: absolute;
    left: 0;
    top: 0;
}

.pricing-card.popular li::before {
    color: var(--sage-green);
}

.pricing-card .select-plan-button {
    margin-top: auto;
    display: block;
    width: 100%;
    background-color: white;
    border: 1px solid var(--soft-sky);
    color: var(--soft-sky);
    font-weight: 600;
    padding: 12px 0;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pricing-card .select-plan-button:hover {
    background-color: var(--soft-sky);
    color: white;
}

.pricing-card.popular .select-plan-button {
    background-color: var(--soft-sky);
    color: white;
    border-color: var(--soft-sky);
}

.pricing-card.popular .select-plan-button:hover {
    opacity: 0.9;
}

.class-img-container {
    width: 100%;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.class-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Testimonial Section */
.testimonials-grid {
    display: grid;
    gap: 32px;
}

.testimonial-card {
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    padding-top: 60px;
}

.testimonial-card::before {
    content: '"';
    font-family: "Lora", serif;
    font-size: 5rem;
    font-weight: bold;
    color: var(--deep-forest);
    position: absolute;
    top: 5px;
    left: 20px;
    line-height: 1;
}

.testimonial-card p {
    color: rgba(38, 29, 20, 0.8);
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--rich-bark);
}

/* Contact Section */
.contact-section {
    background-color: var(--warm-beige);
}

.contact-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.contact-button {
    display: inline-block;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 16px 32px;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-button.email {
    background-color: var(--soft-sky);
    color: white;
}

.contact-button.email:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.contact-button.text {
    background-color: var(--deep-forest);
    color: white;
}

.contact-button.text:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--deep-forest);
    padding: 24px 0;
    color: var(--warm-beige);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--warm-beige);
    font-family: "Higuen Elegant Serif", serif;
    margin: 0;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-social-links a {
    color: var(--warm-beige);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.instagram-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.footer-social-links a:hover {
    color: var(--soft-sky);
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(237, 232, 229, 0.7);
    margin: 0;
}

/* Mobile First Media Queries */
@media (min-width: 768px) {
    /* Show desktop navigation, hide mobile elements */
    .main-nav {
        display: flex;
    }

    .mobile-menu-button {
        display: none;
    }

    .header-book-button {
        display: inline-block;
    }

    /* Larger section padding */
    .section-padding {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    /* About section side-by-side layout */
    .about-content {
        flex-direction: row;
        gap: 3rem;
        align-items: center;
    }

    .about-text {
        flex: 1;
        text-align: left;
    }

    .about-img-side {
        flex: 1;
    }

    .about-img {
        height: 550px;
    }

    .about-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Instructor layout */
    .instructor-content-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 64px;
    }

    .instructor-text-content {
        flex: 1;
    }

    .instructor-header-row {
        flex-direction: column;
        align-items: flex-end;
        margin-bottom: 24px;
        justify-content: flex-start;
    }

    .instructor-header-text {
        text-align: right;
        width: 100%;
    }

    .instructor-header-text h3 {
        font-size: 2.5rem;
    }

    .instructor-header-text .subtitle {
        font-size: 1.125rem;
    }

    .instructor-image-mobile {
        display: none;
    }

    .instructor-image-desktop {
        display: block;
        flex: 1;
        max-width: 400px;
    }

    .instructor-portrait-desktop {
        width: 100%;
        height: 550px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
            0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .instructor-text-side {
        text-align: left;
        width: 100%;
    }
    /* Pricing grid - 2 columns */
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 800px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Contact buttons horizontal */
    .contact-buttons-container {
        flex-direction: row;
    }

    /* Footer Desktop */
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-main-content {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .footer-contact-info {
        flex-direction: row;
        gap: 8px;
    }

    .footer-contact-info::before {
        content: "•";
        margin: 0 4px;
    }

    .footer-contact-info p:first-child::after {
        content: " •";
        margin-left: 8px;
    }
}

@media (min-width: 1200px) {
    /* 4-column pricing grid for extra large screens */
    .pricing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 1200px;
    }
}
