/* ========================================
   Upper Cut Hair Designers — Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    color: #1e293b;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: #1e293b;
}

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

.nav-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.938rem;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #0d9488;
    background: #f0fdfa;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #0d9488;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    color: #fff;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #134e4a;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(19, 78, 74, 0.88) 0%,
        rgba(13, 148, 136, 0.75) 50%,
        rgba(20, 184, 166, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    animation: heroScroll 2s ease-in-out infinite;
}

@keyframes heroScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'DM Sans', system-ui, sans-serif;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
    color: #fff;
}

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.063rem;
}

.btn-full {
    width: 100%;
}

/* --- Section Base --- */
.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0fdfa;
    color: #0d9488;
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.063rem;
    color: #64748b;
    line-height: 1.7;
}

/* --- Services --- */
.services {
    background: #f8fafc;
}

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

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdfa;
    border-radius: 14px;
    color: #0d9488;
    margin-bottom: 20px;
}

.service-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.938rem;
    color: #64748b;
    line-height: 1.7;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
}

.about-img-secondary img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: #0d9488;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: rotate(12deg);
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1.063rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.938rem;
    font-weight: 500;
    color: #334155;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery {
    background: #f8fafc;
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(4) img,
.gallery-item:nth-child(6) img {
    height: 320px;
}

.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img,
.gallery-item:nth-child(5) img {
    height: 260px;
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 148, 136, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

/* --- Reviews --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.review-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.review-text {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author-avatar {
    width: 44px;
    height: 44px;
    background: #0d9488;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.review-author-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.938rem;
}

.review-author-detail {
    font-size: 0.813rem;
    color: #94a3b8;
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
}

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

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

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 78, 74, 0.92) 0%, rgba(13, 148, 136, 0.88) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Contact --- */
.contact {
    background: #f8fafc;
}

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

.contact-info {
    max-width: 480px;
}

.contact-desc {
    font-size: 1.063rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.contact-detail-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdfa;
    border-radius: 12px;
    color: #0d9488;
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.938rem;
    color: #334155;
    line-height: 1.6;
}

.contact-detail-link {
    font-size: 0.938rem;
    color: #0d9488;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-detail-link:hover {
    color: #0f766e;
    text-decoration: underline;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.contact-form-desc {
    font-size: 0.938rem;
    color: #64748b;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.938rem;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-select {
    appearance: none;
    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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    text-align: center;
    color: #0d9488;
}

.form-success-icon {
    width: 56px;
    height: 56px;
    background: #f0fdfa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
}

.form-success p {
    font-size: 1rem;
    color: #334155;
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-logo:hover {
    color: #fff;
}

.footer-tagline {
    font-size: 0.938rem;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.938rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #2dd4bf;
}

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

.footer-contact li {
    display: flex;
    gap: 10px;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    align-items: flex-start;
}

.footer-contact a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #2dd4bf;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: #64748b;
}

/* --- Mobile Menu --- */
@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 96px 32px 32px;
        gap: 8px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-top: 16px;
        justify-content: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-overlay.visible {
        display: block;
    }
}

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

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

    .about-images {
        max-width: 480px;
    }

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

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

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

@media (max-width: 767px) {
    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

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

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img,
    .gallery-item:nth-child(6) img {
        height: 240px;
    }

    .gallery-item:nth-child(2) img,
    .gallery-item:nth-child(3) img,
    .gallery-item:nth-child(5) img {
        height: 200px;
    }

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

    .hero-stats {
        gap: 20px;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .about-img-secondary {
        right: -8px;
        bottom: -20px;
    }

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

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

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

    .contact-form-card {
        padding: 28px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }

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

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-scroll {
        animation: none;
    }
}
