/* ========================================
   ALTIMERA BEAUTY SALON — STYLESHEET
   Burgundy + Blush | Minimalist | Elegant
======================================== */

/* CSS Custom Properties */
:root {
    --burgundy: #6B1D2A;
    --burgundy-deep: #4A1219;
    --burgundy-light: #8B2E3D;
    --blush: #F5E6E0;
    --blush-light: #FBF5F3;
    --blush-mid: #E8C8BE;
    --cream: #FDF9F7;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-body: #3D3D3D;
    --text-muted: #7A7A7A;
    --text-light: #F5E6E0;
    --line: rgba(107, 29, 42, 0.12);
    --line-strong: rgba(107, 29, 42, 0.25);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(107, 29, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(107, 29, 42, 0.08);
    --shadow-lg: 0 8px 40px rgba(107, 29, 42, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-body);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background-color: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--white);
    border-color: var(--text-dark);
}

.btn-dark:hover {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
    transform: translateY(-1px);
}

.btn-light {
    background-color: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.btn-light:hover {
    background-color: var(--blush);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ========================================
   NAVIGATION
======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--burgundy);
    letter-spacing: 0.02em;
}

.nav-logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-body);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--burgundy);
}

.nav-links a::after:hover {
    width: 100%;
}

.nav-cta {
    background-color: var(--burgundy) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: var(--burgundy-deep) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(253, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-link:hover {
    color: var(--burgundy);
}

.mobile-menu-cta {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--burgundy);
    padding: 14px 32px;
    border: 1.5px solid var(--burgundy);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-light) 100%);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 24px;
    font-weight: 300;
}

.hero-headline {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 0.95;
    color: var(--text-dark);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--burgundy);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Image Stack */
.hero-image-stack {
    position: relative;
    height: 600px;
}

.hero-img {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.hero-img-primary {
    width: 340px;
    height: 440px;
    top: 0;
    right: 0;
    z-index: 2;
}

.hero-img-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-secondary {
    width: 260px;
    height: 340px;
    bottom: 0;
    left: 20px;
    z-index: 1;
}

.hero-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent-line {
    position: absolute;
    bottom: 100px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--burgundy);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

/* Hero Trust Bar */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--burgundy);
    line-height: 1;
}

.trust-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 300;
}

.hero-trust-divider {
    width: 1px;
    height: 40px;
    background: var(--line-strong);
    flex-shrink: 0;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    padding: 120px 0;
    background: var(--white);
}

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

.section-header .section-desc {
    margin: 0 auto;
}

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

.service-card {
    padding: 40px 32px;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--burgundy);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--white);
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    font-weight: 300;
}

.service-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--burgundy);
    transition: var(--transition);
}

.service-link:hover {
    letter-spacing: 0.12em;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    padding: 120px 0;
    background: var(--cream);
}

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

.about-image-col {
    position: relative;
}

.about-image-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--burgundy);
    border-radius: var(--radius-lg);
    opacity: 0.15;
    z-index: 0;
}

.about-text-col {
    padding-left: 20px;
}

.about-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    margin: 36px 0 40px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-body);
}

.about-value-line {
    width: 24px;
    height: 1px;
    background: var(--burgundy);
    flex-shrink: 0;
}

/* ========================================
   GALLERY SECTION
======================================== */
.gallery {
    padding: 120px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(107, 29, 42, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 300;
}

.gallery-item-tall {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 500px;
}

.gallery-item-tall img {
    min-height: 500px;
}

.gallery-item-wide {
    grid-column: span 6;
    min-height: 280px;
}

.gallery-item-wide img {
    min-height: 280px;
}

.gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
    grid-column: span 3;
    min-height: 280px;
}

.gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) img {
    min-height: 280px;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    padding: 120px 0;
    background: var(--burgundy);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    font-weight: 300;
}

.cta-headline {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.cta-body {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
    padding: 120px 0;
    background: var(--cream);
}

.contact-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info-col {
    padding-right: 20px;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--burgundy);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 400;
}

.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 300;
    line-height: 1.6;
}

.contact-link {
    color: var(--burgundy);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.contact-map iframe {
    width: 100%;
    height: 260px;
    border: none;
    display: block;
}

/* Contact Form */
.contact-form-col {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 29, 42, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--burgundy);
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    display: block;
}

.footer-logo-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    font-weight: 300;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-top: 16px;
    font-weight: 300;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-phone,
.footer-email {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--white);
}

.footer-address {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
======================================== */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }

    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero-asymmetric {
        gap: 40px;
    }

    .hero-image-stack {
        height: 480px;
    }

    .hero-img-primary {
        width: 280px;
        height: 380px;
    }

    .hero-img-secondary {
        width: 200px;
        height: 280px;
    }

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

    .about-asymmetric {
        gap: 60px;
    }

    .gallery-item-tall {
        grid-column: span 6;
    }

    .gallery-item-wide {
        grid-column: span 6;
    }

    .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
        grid-column: span 3;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 80px;
        min-height: auto;
    }

    .hero-bg-pattern {
        clip-path: polygon(0 85%, 100% 75%, 100% 100%, 0% 100%);
        width: 100%;
        opacity: 0.6;
    }

    .hero-asymmetric {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-right {
        order: -1;
    }

    .hero-image-stack {
        height: 360px;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-img-primary {
        width: 220px;
        height: 300px;
    }

    .hero-img-secondary {
        width: 160px;
        height: 220px;
    }

    .hero-headline {
        font-size: clamp(2.8rem, 10vw, 4rem);
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-trust-divider {
        display: none;
    }

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

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

    .about-text-col {
        padding-left: 0;
    }

    .about-image-accent {
        display: none;
    }

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

    .gallery-item-tall {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 300px;
    }

    .gallery-item-tall img {
        min-height: 300px;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
        grid-column: span 1;
    }

    .contact-asymmetric {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info-col {
        padding-right: 0;
    }

    .contact-form-col {
        padding: 32px 24px;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-image-stack {
        height: 300px;
    }

    .hero-img-primary {
        width: 180px;
        height: 260px;
    }

    .hero-img-secondary {
        width: 140px;
        height: 200px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

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

    .gallery-item-tall,
    .gallery-item-wide,
    .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
        grid-column: span 1;
        min-height: 240px;
    }

    .gallery-item-tall img,
    .gallery-item-wide img,
    .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) img {
        min-height: 240px;
    }
}
</style>
<sm-file path="script.js">
/* ========================================
   ALTIMERA BEAUTY SALON — INTERACTIONS
======================================== */

(function () {
    'use strict';

    // ── Navigation scroll effect ──
    const nav = document.getElementById('nav');
    let lastScroll = 0;

    function handleNavScroll() {
        const currentScroll = window.pageYOffset;
        if (currentScroll > 50) {
            nav.classList.add('scrolled');
        } else {
            nav.classList.remove('scrolled');
        }
        lastScroll = currentScroll;
    }

    window.addEventListener('scroll', handleNavScroll, { passive: true });

    // ── Mobile menu ──
    const navToggle = document.getElementById('navToggle');
    const mobileMenu = document.getElementById('mobileMenu');

    navToggle.addEventListener('click', function () {
        const isOpen = mobileMenu.classList.toggle('open');
        navToggle.classList.toggle('active');
        navToggle.setAttribute('aria-expanded', isOpen);
        document.body.style.overflow = isOpen ? 'hidden' : '';
    });

    // Close mobile menu on link click
    mobileMenu.querySelectorAll('a').forEach(function (link) {
        link.addEventListener('click', function () {
            mobileMenu.classList.remove('open');
            navToggle.classList.remove('active');
            navToggle.setAttribute('aria-expanded', 'false');
            document.body.style.overflow = '';
        });
    });

    // ── Smooth scroll for anchor links ──
    document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
        anchor.addEventListener('click', function (e) {
            const targetId = this.getAttribute('href');
            if (targetId === '#') return;
            const target = document.querySelector(targetId);
            if (target) {
                e.preventDefault();
                const navHeight = nav.offsetHeight;
                const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - navHeight - 20;
                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });

    // ── Scroll reveal (progressive enhancement) ──
    const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;

    if (!prefersReducedMotion && 'IntersectionObserver' in window) {
        const revealElements = document.querySelectorAll('[data-reveal]');

        const revealObserver = new IntersectionObserver(
            function (entries) {
                entries.forEach(function (entry) {
                    if (entry.isIntersecting) {
                        entry.target.classList.add('revealed');
                        revealObserver.unobserve(entry.target);
                    }
                });
            },
            {
                threshold: 0.1,
                rootMargin: '0px 0px -40px 0px'
            }
        );

        revealElements.forEach(function (el) {
            revealObserver.observe(el);
        });
    } else {
        // If JS is disabled or reduced motion preferred, ensure all elements are visible
        document.querySelectorAll('[data-reveal]').forEach(function (el) {
            el.classList.add('revealed');
        });
    }

    // ── Contact form ──
    const contactForm = document.getElementById('contactForm');
    const formSuccess = document.getElementById('formSuccess');

    if (contactForm) {
        contactForm.addEventListener('submit', function (e) {
            e.preventDefault();

            // Simulate form submission
            const submitBtn = contactForm.querySelector('button[type="submit"]');
            const originalText = submitBtn.textContent;
            submitBtn.textContent = 'Sending...';
            submitBtn.disabled = true;

            setTimeout(function () {
                contactForm.style.display = 'none';
                formSuccess.style.display = 'block';
                submitBtn.textContent = originalText;
                submitBtn.disabled = false;
            }, 800);
        });
    }

    // ── Active nav link highlighting ──
    const sections = document.querySelectorAll('section[id]');
    const navLinks = document.querySelectorAll('.nav-links a:not(.nav-cta)');

    function highlightNav() {
        const scrollPos = window.pageYOffset + 150;

        sections.forEach(function (section) {
            const top = section.offsetTop;
            const height = section.offsetHeight;
            const id = section.getAttribute('id');

            if (scrollPos >= top && scrollPos < top + height) {
                navLinks.forEach(function (link) {
                    link.classList.remove('active');
                    if (link.getAttribute('href') === '#' + id) {
                        link.classList.add('active');
                    }
                });
            }
        });
    }

    window.addEventListener('scroll', highlightNav, { passive: true });

})();
