/* ===================================
   Barberia Cinco Tijeras
   Classic Barbershop Website
   =================================== */

/* === Root Variables === */
:root {
    --primary-black: #1a1a1a;
    --secondary-black: #2d2d2d;
    --barbershop-red: #c41e3a;
    --cream-white: #f5f5f0;
    --gold-accent: #d4af37;
    --text-light: #f5f5f0;
    --text-dark: #1a1a1a;
}

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--cream-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Navigation Bar === */
.navbar {
    background-color: var(--primary-black);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    height: 70px;
    width: auto;
    background: transparent;
}

.nav-logo-text {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--barbershop-red);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--barbershop-red);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    color: var(--text-light);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(196, 30, 58, 0.1) 2px, rgba(196, 30, 58, 0.1) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(196, 30, 58, 0.1) 2px, rgba(196, 30, 58, 0.1) 4px);
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    background: transparent;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--barbershop-red);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border: 2px solid var(--barbershop-red);
}

.cta-button:hover {
    background-color: transparent;
    border-color: var(--barbershop-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

/* === Section Styles === */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '✂';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--barbershop-red);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
    font-style: italic;
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--barbershop-red);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--barbershop-red);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--barbershop-red);
    margin-top: 1rem;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-black);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

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

.gallery-placeholder {
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

/* === Booking Form === */
.booking-form {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-black);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--barbershop-red);
}

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

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.time-slot {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.time-slot:hover {
    border-color: var(--barbershop-red);
    background-color: #fff5f7;
}

.time-slot.selected {
    background-color: var(--barbershop-red);
    color: white;
    border-color: var(--barbershop-red);
}

.time-slot.unavailable {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--barbershop-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* === Confirmation Message === */
.confirmation-message {
    display: none;
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 10px;
    text-align: center;
}

.confirmation-message.show {
    display: block;
}

.confirmation-message h2 {
    color: #155724;
    margin-bottom: 1rem;
}

.confirmation-message p {
    color: #155724;
    font-size: 1.1rem;
}

/* === About & Contact === */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

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

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-color: var(--secondary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 4rem;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.team-member-role {
    color: var(--barbershop-red);
    font-style: italic;
    margin-bottom: 1rem;
}

.team-member p {
    color: #666;
    line-height: 1.6;
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    color: var(--barbershop-red);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.contact-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-card a {
    color: var(--barbershop-red);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 3rem;
    height: 400px;
    background-color: #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

/* === Footer === */
.footer {
    background-color: var(--primary-black);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--barbershop-red);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-black);
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .gallery-grid,
    .team-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .booking-form {
        padding: 1.5rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .nav-logo-text {
        font-size: 1.2rem;
    }
    
    .hero-logo {
        width: 100px;
    }
}