/*
 * Clean Cuts Barbershop styles
 *
 * This stylesheet defines the color system, typography and layout for the
 * Clean Cuts Barbershop website. The design uses a luxury blue-and-gold
 * palette inspired by the brand direction: masculine, calm, strong and
 * respectful. Sections alternate dark and light backgrounds to create
 * contrast while maintaining a cohesive high‑end feel. The site is
 * responsive and mobile friendly.
 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: var(--color-secondary);
    color: var(--color-light);
}

/* Color palette */
:root {
    --color-primary: #0a1e3f; /* deep royal blue */
    --color-secondary: #05122b; /* dark navy */
    --color-accent: #c8a14e; /* muted gold */
    --color-accent-light: #d8b563; /* light gold */
    --color-light: #ffffff; /* white */
    --color-dark: #010b1c; /* near black */
    --color-muted: #f5f5f5; /* light grey for contrast */
}

/* Utility classes */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 0;
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.section-light {
    background-color: var(--color-muted);
    color: var(--color-dark);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-light);
    color: var(--color-dark);
}

.btn-secondary {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background-color: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
    text-decoration: none;
}

.logo-script,
.section-script,
.hero-script,
.dark-script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.logo-script {
    font-size: 1.1rem;
    color: var(--color-accent-light);
    margin-left: 0.2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--color-accent);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(5px);
}

.nav-open .hamburger {
    transform: rotate(45deg);
}

.nav-open .hamburger::before {
    transform: rotate(90deg) translateX(0);
}

.nav-open .hamburger::after {
    transform: rotate(90deg) translateX(0);
}

/* Hide nav menu on mobile initially */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--color-secondary);
        flex-direction: column;
        width: 200px;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        padding: 1rem;
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .nav-open .nav-links {
        max-height: 320px;
    }
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-light);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-chair-concept.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5,18,43,0.8) 0%, rgba(10,30,63,0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 720px;
    padding: 0 1rem;
}

.hero-script {
    font-size: 2rem;
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subheadline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-light);
}

.hero .cta-buttons {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .intro-copy {
    font-size: 1rem;
    color: var(--color-light);
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.9;
}

.section-script {
    text-align: center;
    color: var(--color-accent-light);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.dark-script {
    color: var(--color-accent);
}

/* Mission section */
.mission h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-accent-light);
}

.mission p {
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.95;
}

/* About section */
.about-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text,
.about-image {
    flex: 1 1 300px;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.about p {
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.craft-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.craft h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.craft p {
    color: var(--color-dark);
}

.craft-card {
    background: linear-gradient(180deg, #0a1e3f 0%, #05122b 100%);
    color: var(--color-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    border: 1px solid rgba(200,161,78,0.28);
}

.craft-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-accent-light);
    margin-bottom: 1rem;
}

.craft-card ul {
    padding-left: 1.2rem;
}

.craft-card li {
    margin-bottom: 0.75rem;
}

.tool-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding-top: 0;
}

.tool-shot img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.18);
    border: 1px solid rgba(200,161,78,0.22);
    object-fit: cover;
    min-height: 280px;
}

/* Services section */
.services h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--color-accent-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-light);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-light);
    opacity: 0.9;
}

/* Booking section */
.booking {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.booking-background {
    position: absolute;
    inset: 0;
    background-image: url('assets/clipper-2.jpg');
    background-size: cover;
    background-position: center;
    filter: saturate(0.95) brightness(0.34);
    z-index: -3;
}

.booking-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(200,161,78,0.24), transparent 28%),
        linear-gradient(180deg, rgba(5,18,43,0.78) 0%, rgba(10,30,63,0.86) 100%);
    z-index: -2;
}

/* Pattern using subtle diagonal stripes reminiscent of clipper blades */
.booking-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(200,161,78,0.05) 0 10px, rgba(200,161,78,0.0) 10px 20px);
    z-index: -1;
}

.booking h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--color-light);
    margin-bottom: 1rem;
}

.booking p {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--color-light);
}

.booking .book-btn {
    display: block;
    margin: 0 auto;
    margin-bottom: 0.5rem;
}

.booking .note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-light);
    opacity: 0.75;
}

.calendly-placeholder {
    margin-top: 2rem;
    min-height: 300px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px dashed var(--color-accent-light);
    border-radius: 8px;
}


.booking-form {
    max-width: 860px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(10,30,63,0.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(10,30,63,0.12);
}

.booking-glass-card {
    background: rgba(7, 18, 40, 0.72);
    border: 1px solid rgba(200,161,78,0.24);
    box-shadow: 0 22px 50px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    color: var(--color-secondary);
}

.form-field input,
.form-field select,
.form-field textarea,
.admin-auth-card input,
.admin-notes {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(10,30,63,0.2);
    border-radius: 12px;
    font: inherit;
    color: var(--color-dark);
    background: #fff;
}

.form-field textarea,
.admin-notes {
    resize: vertical;
}

.honeypot-field {
    display: none;
}

.booking-status {
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5rem;
    font-weight: 600;
}

.booking-status.success {
    color: #0d7a38;
}

.booking-status.error {
    color: #a12222;
}

.admin-body {
    background: var(--color-muted);
    color: var(--color-dark);
}

.admin-page {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.admin-header {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.admin-auth-card,
.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(10,30,63,0.08);
    border: 1px solid rgba(10,30,63,0.08);
}

.admin-auth-card {
    display: grid;
    gap: 0.75rem;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-dark);
}

.admin-status {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.admin-grid {
    display: grid;
    gap: 1rem;
}

.admin-card-top,
.admin-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-card h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-secondary);
}

.admin-card p {
    text-align: left;
    margin: 0.4rem 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pending {
    background: rgba(200,161,78,0.18);
    color: #7a5a15;
}

.status-confirmed {
    background: rgba(13,122,56,0.14);
    color: #0d7a38;
}

.status-declined {
    background: rgba(161,34,34,0.12);
    color: #a12222;
}

/* Need to Talk section */
.need h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--color-accent-light);
}

.need p {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0.9;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.support-card {
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.support-card:hover {
    transform: translateY(-4px);
}

.support-card i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.support-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-light);
}

.support-card p {
    font-size: 0.95rem;
    color: var(--color-light);
    opacity: 0.9;
}

.faith-banner .container {
    text-align: center;
}

.faith-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-accent-light);
    max-width: 760px;
    margin: 0 auto 0.75rem;
}

.faith-reference {
    color: var(--color-light);
    opacity: 0.82;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Contact section */
.contact-content {
    text-align: center;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.contact p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.contact a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover,
.contact a:focus {
    color: var(--color-accent);
}

/* Footer */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-light);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
}

.footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer a:hover,
.footer a:focus {
    color: var(--color-accent-light);
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--color-accent);
}

.footer-tagline {
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subheadline {
        font-size: 0.95rem;
    }

    .mission h2,
    .services h2,
    .booking h2,
    .need h2,
    .contact h2 {
        font-size: 2rem;
    }

    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .craft-grid,
    .tool-gallery,
    .form-grid,
    .admin-header {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .services .service-card,
    .support-card {
        padding: 1.5rem;
    }
}
