/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    --primary-color: #0f172a;
    --secondary-color: #ffffff;
    --accent-color: #059669;
    --success-color: #059669;
    --warning-color: #dc2626;
    --error-color: #dc2626;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #ffffff;
    
    /* UI Colors */
    --border-color: #cbd5e1;
    --bg-light: #f1f5f9;
    --bg-section: #ffffff;
    --bg-dark: #1e293b;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing - 8px system */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-loose: 1.7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--secondary-color);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 6px;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-tight);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-loose);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.nav-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: var(--spacing-xs) 0;
    position: relative;
}

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

.nav-link.active {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    width: 32px;
    height: 32px;
    justify-content: center;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('/images/kitchen-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 80px;
    position: relative;
}

/* Fallback hero background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('https://images.pexels.com/photos/2251247/pexels-photo-2251247.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

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

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

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    min-width: 100px;
}

.btn-full {
    width: 100%;
}

/* Focus styles for accessibility */
.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Sections */
.section {
    padding: var(--spacing-3xl) 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: inherit;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: var(--spacing-2xl);
    color: inherit;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background-color: var(--secondary-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-normal);
}

/* Testimonials */
.myjobquote-badge {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.badge-content {
    background-color: var(--secondary-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    display: inline-block;
    border: 2px solid var(--accent-color);
}

.rating-display {
    margin-bottom: var(--spacing-sm);
}

.rating-display .stars {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

.rating-display .star {
    margin: 0 2px;
}

.rating-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.myjobquote-logo {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: var(--spacing-sm);
}

.myjobquote-logo .my {
    color: #2875d7;
}

.myjobquote-logo .job {
    color: #dc2626;
}

.myjobquote-logo .quote {
    color: #2875d7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.testimonial-card {
    background-color: var(--secondary-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-loose);
}

.author strong {
    color: var(--primary-color);
    display: block;
    font-weight: 600;
}

.author span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.testimonials-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.external-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.external-link:hover,
.external-link:focus {
    color: var(--text-light);
    text-decoration: underline;
}

/* Areas */
.areas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.areas-primary h3,
.areas-extended h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.area-tag {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.area-tag:hover {
    transform: scale(1.05);
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

.credentials {
    margin: var(--spacing-xl) 0;
}

.credentials h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

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

.credentials li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-lg);
    line-height: var(--line-height-normal);
}

.credentials li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--spacing-xs);
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.about-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.contact-method:hover {
    background-color: #edf2f7;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Forms */
.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    background-color: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(246, 213, 92, 0.1);
}

.form-status {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background-color: #f0fff4;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-status.error {
    background-color: #fed7d7;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.form-fallback {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.text-link:hover,
.text-link:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer-contact p {
    margin-bottom: var(--spacing-sm);
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.social-links {
    margin-bottom: var(--spacing-md);
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-link:hover,
.social-link:focus {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Blog-specific styles */
.blog-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.blog-header h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.blog-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.blog-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.blog-card h2 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.blog-card h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-loose);
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color 0.2s ease;
}

.read-more:hover,
.read-more:focus {
    color: var(--primary-color);
}

/* Blog CTA Section */
.blog-cta {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.cta-content h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-2xl);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero adjustments */
    .hero {
        height: 60vh;
        margin-top: 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Layout adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

    .areas-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }

    .contact-form {
        padding: var(--spacing-lg);
    }

    .btn {
        min-width: auto;
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow: 0 0 0 2px #000000;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .btn,
    .service-card,
    .testimonial-card,
    .nav-link,
    .contact-link,
    .area-tag {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    .hero {
        height: auto;
        background: none;
        color: var(--text-primary);
    }
    
    .section-dark {
        background: none;
        color: var(--text-primary);
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hide floating button on mobile when nav menu is open */
@media (max-width: 768px) {
    .nav-menu.active ~ .whatsapp-float {
        display: none;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 26px;
    }
}