/* ============================================
   Simply Beautiful Hair Salon — Stylesheet
   ============================================ */

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

:root {
    --terracotta-900: #431607;
    --terracotta-800: #5C200A;
    --terracotta-700: #7A2D0F;
    --terracotta-600: #92400E;
    --terracotta-500: #B5551A;
    --terracotta-400: #C9703A;
    --terracotta-300: #D4916A;
    --terracotta-200: #E8C4AB;
    --terracotta-100: #F2DCD0;
    --terracotta-50:  #FBF3EE;

    --sand-900:  #1C1917;
    --sand-800:  #292524;
    --sand-700:  #373230;
    --sand-600:  #44403C;
    --sand-500:  #57534E;
    --sand-400:  #78716C;
    --sand-300:  #A8A29E;
    --sand-200:  #D6D3D1;
    --sand-100:  #E7E5E4;
    --sand-50:   #F5F4F1;
    --sand-25:   #FAFAF8;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--sand-800);
    background: var(--sand-25);
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--sand-900);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 17px;
    color: var(--sand-500);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta-600);
    color: #fff;
}
.btn-primary:hover {
    background: var(--terracotta-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(146, 64, 14, 0.3);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--terracotta-700);
}
.btn-light:hover {
    background: var(--sand-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-small {
    padding: 10px 20px;
    font-size: 13px;
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sand-100);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--terracotta-600);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--sand-900);
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav a:not(.btn) {
    font-size: 14px;
    font-weight: 500;
    color: var(--sand-600);
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.main-nav a:not(.btn):hover {
    color: var(--terracotta-600);
    background: var(--terracotta-50);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--sand-100);
}

.hamburger {
    position: relative;
    width: 18px;
    height: 14px;
    display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--sand-700);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger::before { top: 0; }
.hamburger span { top: 6px; }
.hamburger::after { top: 12px; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 6px;
}
.nav-toggle[aria-expanded="true"] .hamburger span {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 6px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--sand-900);
    overflow: hidden;
    padding-top: 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28,25,23,0.88) 0%, rgba(28,25,23,0.6) 50%, rgba(28,25,23,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-300);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--terracotta-300);
}

.hero-sub {
    font-size: 17px;
    color: var(--sand-200);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-image {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

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

/* --- Trust Bar --- */
.trust-bar {
    background: var(--sand-50);
    border-top: 1px solid var(--sand-100);
    border-bottom: 1px solid var(--sand-100);
    padding: 28px 0;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sand-700);
}

.trust-item svg {
    color: var(--terracotta-500);
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--sand-25);
}

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

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

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

.service-card {
    background: #fff;
    border: 1px solid var(--sand-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--terracotta-200);
    box-shadow: 0 8px 32px rgba(146, 64, 14, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--terracotta-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-600);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: var(--sand-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: #fff;
}

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    color: var(--sand-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--sand-100);
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--terracotta-600);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--sand-500);
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--sand-200);
}

/* --- Gallery --- */
.gallery {
    padding: 100px 0;
    background: var(--sand-50);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(28,25,23,0.8), transparent);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* --- Testimonial --- */
.testimonial {
    padding: 100px 0;
    background: var(--sand-900);
}

.testimonial-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    color: var(--terracotta-400);
    margin-bottom: 24px;
    opacity: 0.5;
}

.testimonial blockquote {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    font-style: italic;
    color: var(--sand-100);
    line-height: 1.6;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--terracotta-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-200);
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.author-location {
    display: block;
    font-size: 13px;
    color: var(--sand-400);
    margin-top: 2px;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--terracotta-600);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta .section-eyebrow {
    color: var(--terracotta-200);
}

.cta .section-title {
    color: #fff;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 17px;
    color: var(--terracotta-200);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: #fff;
}

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

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 16px;
    color: var(--sand-500);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

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

.contact-row dt {
    width: 36px;
    height: 36px;
    background: var(--terracotta-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta-600);
    flex-shrink: 0;
}

.contact-row dd {
    font-size: 15px;
    color: var(--sand-700);
    line-height: 1.7;
}

.contact-row a {
    color: var(--sand-700);
    transition: color var(--transition);
}

.contact-row a:hover {
    color: var(--terracotta-600);
}

/* --- Form --- */
.contact-form-wrap {
    background: var(--sand-50);
    border: 1px solid var(--sand-100);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 28px;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sand-700);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--sand-900);
    background: #fff;
    border: 1.5px solid var(--sand-200);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta-400);
    box-shadow: 0 0 0 3px rgba(146, 64, 14, 0.1);
}

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

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

.form-note {
    font-size: 13px;
    color: var(--sand-400);
    margin-top: 16px;
    text-align: center;
}

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

.form-success svg {
    color: var(--terracotta-500);
    margin: 0 auto 16px;
}

.form-success p {
    font-size: 16px;
    color: var(--sand-700);
    line-height: 1.6;
}

/* --- Map --- */
.map-section {
    background: var(--sand-100);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 360px;
}

/* --- Footer --- */
.site-footer {
    background: var(--sand-900);
    color: var(--sand-300);
    padding: 72px 0 0;
}

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

.logo-light .logo-mark {
    background: var(--terracotta-500);
}

.logo-light .logo-text {
    color: #fff;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--sand-400);
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-200);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--sand-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--terracotta-300);
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.8;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--sand-800);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--sand-500);
}

.footer-bottom a {
    color: var(--sand-400);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--terracotta-300);
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--terracotta-600);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 90;
    box-shadow: 0 4px 16px rgba(146, 64, 14, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--terracotta-700);
    transform: translateY(-2px);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-image {
        display: none;
    }
    .hero-content {
        text-align: center;
        padding: 100px 0 80px;
    }
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        gap: 40px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid var(--sand-100);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 16px;
    }
    .main-nav a:not(.btn) {
        display: block;
        padding: 12px 16px;
    }
    .main-nav .btn {
        width: 100%;
        justify-content: center;
    }
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider {
        width: 48px;
        height: 1px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 32px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-form-wrap {
        padding: 24px;
    }
}
