/* OuzaCuts - Mobile-First Responsive CSS */

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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #2a2a2a;
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --error: #e74c3c;
    --success: #27ae60;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Dark mode theme */
[data-theme="dark"] {
    --primary-color: #0d0d0d;
    --secondary-color: #d4af37;
    --accent-color: #1a1a1a;
    --text-color: #f5f5f5;
    --light-text: #d0d0d0;
    --bg-light: #1a1a1a;
    --white: #2a2a2a;
    --border-color: #444;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Light mode theme (explicit) */
[data-theme="light"] {
    --primary-color: #f8f8f8;
    --secondary-color: #d4af37;
    --accent-color: #e8e8e8;
    --text-color: #1a1a1a;
    --light-text: #333;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --error: #e74c3c;
    --success: #27ae60;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

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

a:hover {
    color: var(--primary-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

[data-theme="light"] .navbar {
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

[data-theme="light"] p {
    color: #1a1a1a;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #000;
}

[data-theme="light"] .navbar a {
    color: #333;
}

[data-theme="light"] .navbar a:hover {
    color: var(--secondary-color);
}

[data-theme="light"] .theme-toggle-btn {
    color: #333;
}

[data-theme="light"] a {
    color: #0066cc;
}

[data-theme="light"] .service-description,
[data-theme="light"] .light-text {
    color: #1a1a1a;
}

[data-theme="light"] .about-section h2,
[data-theme="light"] .services-section h2,
[data-theme="light"] .info-boxes h2,
[data-theme="light"] .contact-section h2 {
    color: #000;
}

[data-theme="light"] .about-section p,
[data-theme="light"] .services-section p,
[data-theme="light"] .info-boxes p,
[data-theme="light"] .contact-section p,
[data-theme="light"] .footer p {
    color: #1a1a1a;
}

[data-theme="light"] .footer {
    background-color: #e8e8e8;
    color: #000;
}

[data-theme="light"] .info-box {
    background-color: #fff;
    border-color: #d0d0d0;
}

[data-theme="dark"] .nav-menu {
    background-color: #1a1a1a;
}

[data-theme="dark"] .nav-menu a {
    color: #e0e0e0;
}

[data-theme="dark"] .nav-menu a:hover {
    color: var(--secondary-color);
}

[data-theme="dark"] .nav-menu li {
    border-bottom-color: #333;
}

[data-theme="dark"] .hamburger-menu span {
    background-color: #e0e0e0;
}

[data-theme="dark"] .footer {
    background-color: #1a1a1a;
}

[data-theme="dark"] .footer p {
    color: #e0e0e0;
}

[data-theme="dark"] .about-section h2,
[data-theme="dark"] .services-section h2,
[data-theme="dark"] .info-boxes h2 {
    color: #f5f5f5;
}

[data-theme="dark"] .about-section p,
[data-theme="dark"] .services-section p,
[data-theme="dark"] .info-boxes p {
    color: #d0d0d0;
}

[data-theme="dark"] .hero-content h1 {
    color: #f5f5f5;
}

[data-theme="dark"] .hero-content p {
    color: #e0e0e0;
}

[data-theme="light"] .hero-content h1 {
    color: #000;
}

[data-theme="light"] .hero-content p {
    color: #1a1a1a;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    height: 45px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.logo-text {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-menu {
    display: none;
    list-style: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem 0;
}

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

.nav-menu li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--accent-color);
}

.nav-menu a, .auth-btn {
    color: var(--white);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

[data-theme="light"] .hamburger-menu span {
    background-color: #333;
}

[data-theme="light"] .nav-menu {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

[data-theme="light"] .nav-menu li {
    border-bottom-color: #e0e0e0;
}

.auth-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.auth-btn:hover {
    background-color: #c9a227;
    color: var(--primary-color);
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-logo {
    width: 90%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Buttons */
.btn-primary, .cta-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover, .cta-btn:hover {
    background-color: #c9a227;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.btn-danger {
    background-color: var(--error);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Sections */
.about-section, .services-section, .info-boxes, .contact-section {
    padding: 2rem 1rem;
}

.about-section {
    text-align: center;
    background-color: var(--white);
}

.about-section h2, .services-section h2, .info-boxes h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 1rem 0;
}

.service-description {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Info Boxes */
.box-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.info-box h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.page-header h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Forms */
.form-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-toggle {
    text-align: center;
    margin-top: 1rem;
    color: var(--light-text);
}

.form-toggle a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

/* Bookings */
.booking-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.booking-info {
    flex: 1;
}

.booking-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.booking-status.confirmed {
    background-color: #d4edda;
    color: #155724;
}

.booking-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.booking-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* Profile */
.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.profile-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.profile-field {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.profile-value {
    color: var(--light-text);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-map {
    width: 300px;
    height: auto;
    margin: 0 auto;
}

.contact-map img {
    width: 100%;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer p {
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background: none;
    }

    .nav-menu li {
        padding: 0;
        border: none;
        margin-left: 2rem;
    }

    .hamburger-menu {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 2rem;
        min-height: 400px;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
    }

    .logo-text {
        display: inline;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .box-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-map {
        width: 100%;
        height: 300px;
    }

    .contact-map img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

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

    .service-card {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}
