/* =============================================
   Silverback Kutz — Classic & Elegant Salon
   Forest Green + Off-White Palette
   ============================================= */

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

:root {
    --forest: #1a3c2a;
    --forest-deep: #0f2419;
    --forest-mid: #2d5a3f;
    --forest-light: #3d7a56;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #e8e0d0;
    --warm: #c8b89a;
    --warm-light: #d4c4a8;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Section Shared --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--forest-light);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--forest);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--warm);
    margin-bottom: 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--forest);
    color: var(--cream-light);
    border-color: var(--forest);
}

.btn-primary:hover {
    background: var(--forest-deep);
    border-color: var(--forest-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 60, 42, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--cream-light);
    border-color: var(--cream-light);
}

.btn-secondary:hover {
    background: var(--cream-light);
    color: var(--forest);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--forest);
    color: var(--cream-light);
    border-color: var(--forest);
}

.btn-dark:hover {
    background: var(--forest-deep);
    border-color: var(--forest-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 60, 42, 0.3);
}

.btn-light {
    background: var(--cream-light);
    color: var(--forest);
    border-color: var(--cream-light);
}

.btn-light:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
    background: transparent;
    color: var(--cream-light);
    border-color: var(--cream-light);
}

.btn-outline-light:hover {
    background: var(--cream-light);
    color: var(--forest);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 60, 42, 0.0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(26, 60, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 184, 154, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cream);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--warm);
    border-radius: 4px;
    transition: all var(--transition);
}

.nav-logo:hover .logo-mark {
    background: var(--warm);
    color: var(--forest);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.85;
    transition: all var(--transition);
    position: relative;
}

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

.nav-link:hover {
    opacity: 1;
}

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

.nav-cta {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    border: 1px solid var(--warm);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--warm);
    color: var(--forest);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--cream);
    transition: all var(--transition);
    transform-origin: center;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--forest-deep);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(15, 36, 25, 0.7) 0%,
        rgba(26, 60, 42, 0.6) 50%,
        rgba(15, 36, 25, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-divider {
    width: 50px;
    height: 2px;
    background: var(--warm);
    margin: 0 auto 2rem;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--warm-light);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--cream-light);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    font-weight: 400;
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--cream-dark);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--warm) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* --- Services --- */
.services {
    padding: 7rem 0;
    background: var(--cream-light);
}

.services .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 60, 42, 0.1);
    border-color: transparent;
}

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

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--forest);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- About --- */
.about {
    padding: 7rem 0;
    background: var(--cream);
}

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

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(26, 60, 42, 0.15);
}

.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 55%;
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid var(--cream);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.about-img-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    background: var(--forest);
    color: var(--cream-light);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    box-shadow: 0 8px 24px rgba(26, 60, 42, 0.3);
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-values {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--forest);
    font-style: italic;
}

.value-line {
    width: 32px;
    height: 1px;
    background: var(--warm);
}

/* --- Gallery --- */
.gallery {
    padding: 7rem 0;
    background: var(--cream-light);
}

.gallery .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    aspect-ratio: auto;
}

.gallery-item:nth-child(1) { aspect-ratio: 4/5; }
.gallery-item:nth-child(2) { aspect-ratio: 5/4; }
.gallery-item:nth-child(3) { aspect-ratio: 1; }
.gallery-item:nth-child(4) { aspect-ratio: 4/5; }
.gallery-item:nth-child(5) { aspect-ratio: 5/4; }
.gallery-item:nth-child(6) { aspect-ratio: 1; }

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 36, 25, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-label {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream-light);
    font-style: italic;
}

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

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

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

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

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

.cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(15, 36, 25, 0.88);
}

.cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: var(--warm-light);
}

.cta-title {
    color: var(--cream-light);
    margin-bottom: 1.25rem;
}

.cta-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--cream-dark);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Contact --- */
.contact {
    padding: 7rem 0;
    background: var(--cream);
}

.contact .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
}

.info-value a {
    color: var(--forest-mid);
    transition: color var(--transition);
    border-bottom: 1px solid transparent;
}

.info-value a:hover {
    color: var(--forest);
    border-bottom-color: var(--forest);
}

.map-wrapper {
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    padding: 2.5rem;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-light);
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--warm);
}

.form-input:focus {
    border-color: var(--forest-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(61, 122, 86, 0.1);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--forest);
    border-radius: 6px;
    margin-top: 1.5rem;
}

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

.form-success svg {
    width: 24px;
    height: 24px;
    color: var(--cream-light);
    flex-shrink: 0;
}

.form-success p {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--cream-light);
}

/* --- Footer --- */
.footer {
    background: var(--forest-deep);
    color: var(--cream);
    padding: 4rem 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(200, 184, 154, 0.15);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo .logo-mark {
    background: transparent;
    border-color: var(--warm);
}

.footer-logo:hover .logo-mark {
    background: var(--warm);
    color: var(--forest);
}

.footer-logo .logo-text {
    color: var(--cream-light);
}

.footer-tagline {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--warm-light);
    line-height: 1.7;
    max-width: 280px;
    opacity: 0.8;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm);
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--cream-dark);
    opacity: 0.75;
    transition: all var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--cream-light);
}

.footer-contact p {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--cream-dark);
    opacity: 0.75;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--warm-light);
    opacity: 0.6;
}

.footer-note {
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 0.85rem;
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(n) {
        aspect-ratio: 4/5;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-top > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--forest-deep);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right var(--transition);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-img-accent {
        right: -1rem;
        bottom: -1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item:nth-child(n) {
        aspect-ratio: 4/5;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .nav-container {
        padding: 0 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        gap: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
