/* ============================================
   Danielle Muszynski — Hair & Beauty Salon
   Clean Minimalist | Midnight Blue + Mint
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-midnight: #0a1628;
    --color-midnight-light: #132240;
    --color-mint: #34d4a8;
    --color-mint-light: #a7f3d0;
    --color-mint-pale: #ecfdf5;
    --color-cream: #faf9f7;
    --color-white: #ffffff;
    --color-off-white: #f5f4f1;
    --color-gray-100: #f0efed;
    --color-gray-200: #e2e0dc;
    --color-gray-300: #c4c1bb;
    --color-gray-400: #9e9a93;
    --color-gray-500: #6b6761;
    --color-gray-600: #4a4742;
    --color-gray-700: #2d2a26;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    --max-width: 1200px;
    --nav-height: 72px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-gray-700);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-midnight);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: var(--space-md);
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-mint);
    color: var(--color-midnight);
}

.btn-primary:hover {
    background-color: var(--color-mint-light);
    transform: translateY(-1px);
}

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

.btn-outline-light:hover {
    border-color: var(--color-mint);
    color: var(--color-mint);
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--transition-base);
}

.nav.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    background-color: var(--color-mint) !important;
    color: var(--color-midnight) !important;
    padding: 0.6rem 1.4rem !important;
    letter-spacing: 0.1em !important;
    transition: all var(--transition-base) !important;
}

.nav-cta:hover {
    background-color: var(--color-mint-light) !important;
    color: var(--color-midnight) !important;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--color-midnight);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-white);
    transition: color var(--transition-fast);
}

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

.mobile-menu-cta {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mint);
    border: 1px solid var(--color-mint);
    padding: 0.8rem 2rem;
    transition: all var(--transition-base);
}

.mobile-menu-cta:hover {
    background-color: var(--color-mint);
    color: var(--color-midnight);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-bg-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.75) 50%,
        rgba(10, 22, 40, 0.55) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.3) 0%,
        transparent 40%,
        transparent 70%,
        rgba(10, 22, 40, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    padding-top: var(--nav-height);
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--transition-slow) 0.2s forwards;
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: var(--space-md);
    max-width: 700px;
    opacity: 0;
    animation: fadeUp 0.8s var(--transition-slow) 0.4s forwards;
}

.hero-accent {
    color: var(--color-mint);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.8s var(--transition-slow) 0.6s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeUp 0.8s var(--transition-slow) 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-mint), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- Divider ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: 0;
    color: var(--color-gray-300);
}

.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background-color: var(--color-gray-200);
}

.divider-line:last-child {
    flex: 2;
    max-width: 400px;
}

/* ---------- Services ---------- */
.services {
    padding: var(--space-2xl) 0;
    background-color: var(--color-cream);
}

.services-header {
    margin-bottom: var(--space-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--color-gray-200);
    border: 1px solid var(--color-gray-200);
}

.service-card {
    background-color: var(--color-cream);
    padding: var(--space-lg) var(--space-md);
    transition: all var(--transition-base);
    position: relative;
}

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

.service-card:hover .service-name {
    color: var(--color-mint);
}

.service-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-gray-300);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    border-top: 1px solid var(--color-gray-200);
    padding-top: var(--space-sm);
}

/* ---------- About ---------- */
.about {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

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

.about-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--color-mint);
    z-index: -1;
}

.about-content {
    padding: var(--space-md) 0;
}

.about-text {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-gray-200);
}

.about-detail-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: 0.5rem;
}

.about-detail-value {
    font-size: 0.9rem;
    color: var(--color-gray-700);
    line-height: 1.7;
}

.about-detail-value a {
    color: var(--color-midnight);
    border-bottom: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

.about-detail-value a:hover {
    color: var(--color-mint);
    border-bottom-color: var(--color-mint);
}

/* ---------- Gallery ---------- */
.gallery {
    padding: var(--space-2xl) 0;
    background-color: var(--color-cream);
}

.gallery-header {
    margin-bottom: var(--space-xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) img { height: 100%; min-height: 400px; }
.gallery-item:nth-child(2) img { min-height: 195px; }
.gallery-item:nth-child(3) img { min-height: 195px; }
.gallery-item:nth-child(4) img { min-height: 195px; }
.gallery-item:nth-child(5) img { height: 100%; min-height: 400px; }
.gallery-item:nth-child(6) img { min-height: 195px; }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 22, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item-overlay span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 0.1em;
}

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

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

/* ---------- Testimonial ---------- */
.testimonial {
    padding: var(--space-2xl) 0;
    background-color: var(--color-midnight);
    text-align: center;
}

.testimonial-quote {
    color: var(--color-mint);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.testimonial blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-white);
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto var(--space-md);
}

.testimonial-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-400);
}

/* ---------- Contact ---------- */
.contact {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-text {
    font-size: 1rem;
    color: var(--color-gray-500);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-gray-700);
    transition: color var(--transition-fast);
}

.contact-detail:hover {
    color: var(--color-mint);
}

.contact-detail svg {
    flex-shrink: 0;
    color: var(--color-mint);
}

.contact-detail a {
    color: inherit;
    border-bottom: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

.contact-detail a:hover {
    color: var(--color-mint);
    border-bottom-color: var(--color-mint);
}

/* ---------- Form ---------- */
.contact-form-wrap {
    background-color: var(--color-cream);
    padding: var(--space-lg);
    border: 1px solid var(--color-gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-gray-700);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-gray-200);
    outline: none;
    transition: border-color var(--transition-fast);
    resize: vertical;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-mint);
}

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

.form-group select {
    cursor: pointer;
    color: var(--color-gray-400);
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--space-sm);
    padding: 1rem;
    background-color: var(--color-mint-pale);
    color: var(--color-midnight);
    font-size: 0.85rem;
    border-radius: 0;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    color: var(--color-mint);
    flex-shrink: 0;
}

/* ---------- Map ---------- */
.map-section {
    border-top: 1px solid var(--color-gray-200);
}

.map-section iframe {
    filter: grayscale(0.8) contrast(1.1);
    transition: filter var(--transition-base);
}

.map-section:hover iframe {
    filter: grayscale(0.3) contrast(1);
}

/* ---------- Footer ---------- */
.footer {
    padding: var(--space-xl) 0 var(--space-md);
    background-color: var(--color-midnight);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-name {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-mint);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    font-size: 0.8rem;
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-mint);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.7rem;
    color: var(--color-gray-500);
    letter-spacing: 0.05em;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-row: span 1; }
    .gallery-item img { min-height: 250px !important; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

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

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

    .about-image {
        height: 400px;
    }

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

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

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

    .gallery-item img { min-height: 200px !important; }

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

    .contact-form-wrap {
        padding: var(--space-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
    }

    .map-section iframe {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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