/* Barbershop Booking Manager - Custom Styles */
/* Design: Creative & Playful with Natural Earth Tones */

:root {
    --primary-brown: #8B4513;
    --secondary-tan: #D2691E;
    --accent-orange: #E07020;
    --warm-cream: #FDF5E6;
    --dark-brown: #3E2723;
    --soft-green: #6B8E23;
    --light-sage: #9DC183;
    --text-dark: #2D2D2D;
    --text-muted: #5D5D5D;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 15px rgba(139, 69, 19, 0.15);
    --shadow-medium: 0 8px 30px rgba(139, 69, 19, 0.2);
    --radius-soft: 12px;
    --radius-button: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--warm-cream);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-soft);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand .navbar-item {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-brown) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .navbar-item .logo-icon {
    font-size: 1.5rem;
}

.navbar-menu .navbar-item {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-button);
    transition: all 0.3s ease;
}

.navbar-menu .navbar-item:hover {
    background-color: var(--warm-cream) !important;
    color: var(--primary-brown) !important;
}

.navbar-burger {
    color: var(--primary-brown);
}

.navbar-burger span {
    background-color: var(--primary-brown) !important;
    height: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--white) 50%, rgba(139, 69, 19, 0.05) 100%);
    padding: 4rem 1.5rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-brown);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-tan) 100%);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

.btn-secondary {
    background: var(--warm-cream);
    color: var(--primary-brown);
    border: 3px solid var(--primary-brown);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--primary-brown);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--soft-green) 0%, var(--light-sage) 100%);
    color: var(--white);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2D2D2D 0%, #1a1a1a 100%);
    border-radius: 35px;
    padding: 12px;
    box-shadow: var(--shadow-medium), inset 0 0 20px rgba(0,0,0,0.3);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.device-screen {
    border-radius: 25px;
    overflow: hidden;
    background: var(--dark-brown);
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.device-screen img.loaded {
    filter: blur(0);
}

/* Screenshots Section */
.screenshots-section {
    background: var(--white);
    padding: 4rem 1.5rem;
    max-height: 500px;
    overflow: hidden;
}

.screenshots-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 2rem;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 350px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    align-items: center;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.carousel-device {
    max-width: 200px;
}

.carousel-device .device-frame {
    padding: 8px;
    border-radius: 28px;
}

.carousel-device .device-frame::before {
    width: 60px;
    height: 15px;
    top: 5px;
}

.carousel-device .device-screen {
    border-radius: 20px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-brown);
    color: var(--white);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-brown);
    transform: scale(1.2);
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, var(--warm-cream) 0%, var(--white) 100%);
    padding: 5rem 1.5rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-soft);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-tan) 100%);
    border-radius: var(--radius-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 0.75rem;
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-white {
    background: var(--white);
    color: var(--primary-brown);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--warm-cream);
    color: var(--dark-brown);
    transform: translateY(-2px);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-brown);
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: var(--white);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Content Pages (Privacy, Terms, Contact) */
.page-header {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-tan) 100%);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    background: var(--white);
}

.content-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.content-container h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content-container p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
}

.content-container ul, .content-container ol {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    text-align: left;
}

.content-container ul li, .content-container ol li {
    margin-bottom: 0.5rem;
}

.content-container a {
    color: var(--primary-brown);
    text-decoration: underline;
}

.content-container a:hover {
    color: var(--secondary-tan);
}

/* Contact Form */
.contact-section {
    background: var(--warm-cream);
    padding: 4rem 1.5rem;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-soft);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
}

.contact-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-card .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: var(--radius-button);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

.form-group input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit .btn {
    min-width: 200px;
}

.form-success {
    background: linear-gradient(135deg, var(--soft-green) 0%, var(--light-sage) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-button);
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
}

.form-success.show {
    display: block;
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    padding: 1.25rem;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.privacy-accept-container.show {
    display: block;
}

.privacy-accept-container p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-accept {
    background: var(--white);
    color: var(--primary-brown);
    font-weight: 700;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: var(--radius-button);
    box-shadow: var(--shadow-soft);
}

.btn-accept:hover {
    background: var(--warm-cream);
    transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-soft);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--white);
    color: var(--dark-brown);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    border: none;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--warm-cream);
    transform: scale(1.1);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .device-mockup {
        max-width: 240px;
    }
}

@media screen and (max-width: 768px) {
    .navbar-menu {
        background: var(--white);
        box-shadow: var(--shadow-soft);
        padding: 1rem;
        border-radius: 0 0 var(--radius-soft) var(--radius-soft);
    }

    .hero-section {
        min-height: auto;
        padding: 2.5rem 1rem;
    }

    .hero-content {
        text-align: left;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        text-align: center;
    }

    .hero-content .subtitle {
        text-align: left;
    }

    .hero-buttons {
        justify-content: center;
    }

    .device-mockup {
        max-width: 200px;
    }

    .screenshots-section {
        max-height: 400px;
        padding: 2.5rem 1rem;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-device {
        max-width: 160px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .features-section {
        padding: 3rem 1rem;
    }

    .features-section h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 3rem 1rem 2rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .content-container {
        padding: 2rem 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .device-mockup {
        max-width: 180px;
    }

    .screenshots-section h2 {
        font-size: 1.5rem;
    }

    .carousel-container {
        height: 250px;
    }

    .carousel-device {
        max-width: 140px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-card h2 {
        font-size: 1.5rem;
    }

    .content-container p,
    .content-container ul,
    .content-container ol {
        line-height: 1.9;
        font-size: 0.95rem;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
