/* ORTTO Barbershop Shared Styles - extracted from index.html */

:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --gold: #c9a961;
    --light-gold: #d4b76a;
    --text-light: #ffffff;
    --text-gray: #888888;
    --bg-light: #fafafa;
    --bg-cream: #f5f2ed;
    --transition: all 0.3s ease;
}

body {
    margin: 0; /* remove browser default whitespace around the page */
    padding: 0;
    font-family: 'Didot', 'Bodoni MT', 'Georgia', serif;
    line-height: 1.6;
    color: var(--secondary-black);
    overflow-x: hidden;
    background: var(--text-light);
}

section {
    position: relative;
    z-index: 1;
}

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

header {
    background: var(--primary-black);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 2px solid var(--gold);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    position: relative;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
}

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

.book-btn {
    background: transparent;
    color: var(--gold);
    padding: 0.8rem 2rem;
    border: 1px solid var(--gold);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.book-btn:hover {
    background: var(--gold);
    color: var(--primary-black);
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23000" width="1200" height="800"/><path fill="%23111" d="M0 400L50 425L100 400L150 425L200 400L250 425L300 400L350 425L400 400L450 425L500 400L550 425L600 400L650 425L700 400L750 425L800 400L850 425L900 400L950 425L1000 400L1050 425L1100 400L1150 425L1200 400V800H0V400Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 120px;
    text-align: center;
    margin-top: 85px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: #B9903B;
}

.hero .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 300;
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.book-btn.btn-primary {
    padding: 1.8rem 4rem;
    font-size: 1.8rem;
    letter-spacing: 4px;
    min-width: 400px;
    font-weight: 400;
    text-transform: uppercase;
    background: white;
    color: var(--primary-black);
    border: none;
}

.book-btn.btn-primary:hover {
    background: var(--gold);
    color: var(--primary-black);
    border: none;
}

.book-btn.btn-secondary {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* About, Services, Staff, Gallery, Testimonials, Contact, Footer, Responsive, Animations, etc. */

/* About Section */
.about {
    padding: 100px 0;
    background: var(--text-light);
    scroll-margin-top: 85px;
    position: relative;
}

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

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    font-weight: 300;
    letter-spacing: 4px;
}

.about-text h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin-top: 20px;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--secondary-black);
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    margin-bottom: 1rem;
    color: var(--secondary-black);
    position: relative;
    padding-left: 25px;
}

.about-text li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.about-image {
    height: 500px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.about-image::after {
    content: "EXCELLENCE IN GROOMING";
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-black);
    color: var(--gold);
    padding: 15px 25px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    border: 1px solid var(--gold);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-cream);
    scroll-margin-top: 85px;
}

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

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 5px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.service-card {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    position: relative;
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
    font-weight: 300;
    letter-spacing: 2px;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-price {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

/* Staff Section */
.staff {
    /* increase top padding so staff section sits further below the fixed header */
    padding: 160px 0 100px;
    background: var(--primary-black);
    scroll-margin-top: 85px;
}

.staff .section-header h2,
.staff .section-header p {
    color: var(--text-light);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}


.staff-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #333 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.staff-member:hover .staff-photo {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.staff-photo::before {
    content: "👤";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.1;
    color: var(--gold);
}

.staff-photo::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}

.staff-photo-1 {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #404040 100%);
}

.staff-photo-2 {
    background: linear-gradient(225deg, #333 0%, #1a1a1a 50%, #2a2a2a 100%);
}

.staff-photo-3 {
    background: linear-gradient(45deg, #2a2a2a 0%, #222 50%, #3a3a3a 100%);
}

.staff-photo-4 {
    background: linear-gradient(315deg, #404040 0%, #1a1a1a 50%, #333 100%);
}

.staff-name {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-weight: 300;
}

.staff-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.staff-experience {
    font-size: 0.85rem;
    color: var(--light-gold);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.staff-specialties {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
    opacity: 0.8;
}

.staff-social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.staff-social a {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.8rem;
    transition: var(--transition);
    text-decoration: none;
    opacity: 0.7;
}

.staff-social a:hover {
    background: var(--gold);
    color: var(--primary-black);
    opacity: 1;
}

/* Gallery Section */
.gallery {
    /* increase top padding so gallery sits further below the fixed header */
    padding: 160px 0 100px; /* top right/bottom: larger top spacing */
    background: var(--text-light);
    scroll-margin-top: 85px;
}

.gallery .section-header h2,
.gallery .section-header p {
    color: var(--primary-black);
}

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

.gallery-item {
    position: relative;
    height: 400px;
    background: var(--primary-black);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

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

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

.gallery-item:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

.gallery-item::after {
    content: "VIEW";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 3px;
    opacity: 0;
    transition: var(--transition);
    padding: 10px 20px;
    border: 1px solid var(--gold);
}

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

/* Lightbox / modal for gallery view */
.gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    padding: 2rem;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal .modal-content {
    width: 100%;
    max-width: 1100px;
    position: relative;
}

.gallery-modal img.modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--gold);
    color: var(--primary-black);
    border: none;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-weight: 700;
    border-radius: 4px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-nav button {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    pointer-events: auto;
}


/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-cream);
    scroll-margin-top: 85px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border: 1px solid #e0e0e0;
    position: relative;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 5px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--secondary-black);
    padding-top: 20px;
}

.testimonial-author {
    font-weight: 300;
    color: var(--primary-black);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--text-light);
    scroll-margin-top: 85px;
}

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

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.contact-info h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 15px auto 0;
}

.contact-info p {
    margin-bottom: 0.8rem;
    color: var(--secondary-black);
    line-height: 1.8;
}

.hours-table {
    margin-top: 1.5rem;
}

.hours-table div {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
    max-width: 300px;
    margin: 0 auto;
}

.contact .book-btn {
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--primary-black);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--gold);
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-gray);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--primary-black);
}

/* Mobile Responsive */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-black);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--gold);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .logo-text .ortto {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .logo-text .barbershop {
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 3px;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
        max-width: 90%;
        margin: 0 auto 2rem;  /* increased bottom margin from 1rem to 2rem */
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        padding-top: 1rem;    /* added top padding for more space */
    }

    .hero .tagline {
        font-size: 0.9rem;
        margin-bottom: 2.5rem; /* increased bottom margin */
    }

    /* Mobile: reduce book button sizes drastically to avoid layout issues */
    .book-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .book-btn.btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        min-width: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2,
    .section-header h2 {
        font-size: 2rem;
    }

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

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .staff-photo {
        width: 180px;
        height: 180px;
    }

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

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.staff-member {
    animation: fadeInUp 0.8s ease-out;
}

.staff-photo {
    animation: rotateIn 0.6s ease-out;
}

/* Additional Refinements */
::selection {
    background: var(--gold);
    color: var(--primary-black);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gold);
}
