@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Family First Palette */
    --color-primary: #0f172a;
    /* Deep Navy */
    --color-primary-light: #1e293b;
    --color-secondary: #475569;
    /* Slate 600 */

    /* Gradients & Accents */
    --color-accent-start: #f59f0a;
    /* Amber 500 */
    --color-accent-end: #ea580c;
    /* Orange 600 */
    --color-accent: #f97316;
    /* Fallback Orange */

    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    /* Slate 50 */
    --color-border: #e2e8f0;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Layout & Shapes */
    --container-width: 1200px;
    --radius-sm: 0.5rem;
    /* 8px */
    --radius-md: 1rem;
    /* 16px - softer look */
    --radius-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.4);
    /* Orange Glow */
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.inline-flex {
    display: inline-flex;
}

.align-middle {
    vertical-align: middle;
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.py-10 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    /* Fix lint */
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Service Cards (New) */
/* Service Cards (Lovable Style Overhaul) */
.service-card {
    position: relative;
    padding: 2.5rem;
    /* More generous padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    background: white;
    border: none;
    /* No border for clean floating look */
    border-radius: 1.5rem;
    /* Larger 24px radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Soft subtle shadow initially */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Deep shadow on hover */
}

.service-card h3 {
    font-size: 1.35rem;
    /* Slightly larger */
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.service-description {
    color: #64748b;
    /* Slate 500 for softer text */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-icon-box {
    width: 4rem;
    /* 64px */
    height: 4rem;
    background: #f1f5f9;
    /* Slate 100 */
    border-radius: 1rem;
    /* Soft square */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
    transition: background 0.3s;
}

.service-card:hover .service-icon-box {
    background: #fff7ed;
    /* Orange 50 on hover */
    color: var(--color-accent);
}

.service-icon-box svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
    /* Thinner stroke for elegance */
}

.service-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: #fff7ed;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.025em;
}

.service-link {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 0.75rem;
    /* Push arrow effect */
    color: var(--color-accent-end);
}

/* Service Grid Layout */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    /* Mobile First */
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    /* Consistent but slightly rounded */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    /* Glassmorphismish */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
}

.btn-full {
    width: 100%;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.brand span {
    color: var(--color-accent);
}

.header-actions {
    display: none;
}

@media (min-width: 768px) {
    .header-actions {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
}

/* Hero Section (Refactored) */
.hero {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 3rem;
    /* Grid Pattern */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 992px) {
    .hero .container {
        display: grid;
        grid-template-columns: 1fr 500px;
        /* Text left, Image right */
        align-items: center;
        gap: 8rem;
    }

    .hero-content {
        text-align: left;
        margin: 0;
        max-width: none;
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Badge Pill (New Style) */
.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--color-accent);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Cards (Soft & Rounded) */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Feature Grid (Why Choose) */
.feature-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Review Grid */
.review-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    /* Clean shadow */
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-accent);
    /* Fallback */
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.review-meta strong {
    display: block;
    color: var(--color-primary);
    line-height: 1.2;
}

.review-meta span {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.review-text {
    font-style: italic;
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* FAQ Grid (Cards) */
.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.faq-card h3 svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.faq-card p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-left: 2rem;
    /* Indent simple */
}

/* Form Polish */
/* Form Polish */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--color-secondary);
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s;
}

.form-control:focus {
    color: var(--color-primary);
    background-color: white;
    border-color: var(--color-accent);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
    opacity: 1;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
}

/* Emergency Red Overrides (Keep at bottom) */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    z-index: 100;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    justify-content: center;
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

.btn-call {
    background: var(--color-primary);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: #94a3b8;
    padding: 5rem 0 7rem;
}

/* Areas We Cover Section */
.areas-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .areas-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.map-wrapper {
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    /* Fixed height for map */
    box-shadow: var(--shadow-sm);
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    /* Optional: matches the grey aesthetic */
}

.text-accent {
    color: var(--color-accent);
}

.response-box {
    background: #fff7ed;
    /* Amber 50 */
    border: 1px solid #fed7aa;
    /* Amber 200 */
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.response-icon {
    color: var(--color-accent);
}

.areas-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.area-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    transition: all 0.2s;
}

.area-pill:hover {
    background: #e2e8f0;
    color: var(--color-primary);
}

.area-pill svg {
    color: #cbd5e1;
    /* Subtle icon color */
}

.area-pill:hover svg {
    color: var(--color-accent);
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-footer {
        padding-bottom: 5rem;
    }
}

.site-footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--color-accent);
}

/* Emergency Red Overrides */
body.theme-emergency .hero {
    background-color: #450a0a;
    /* Deep Red */
    background-image: radial-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px);
}

body.theme-emergency .btn-primary {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    /* Red Gradient */
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Modal */
/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Mobile fallback */
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    inset: 0;
    /* Ensures full coverage */
}

.modal-overlay.is-visible {
    display: flex !important;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 92%;
    max-width: 420px;
    max-height: 90dvh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    /* Removed all transforms/transitions to prevent flashing */
}

.modal-overlay.is-visible .modal-content {
    /* No transforms */
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    /* Green-100 */
    color: #16a34a;
    /* Green-600 */
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #0f172a;
}