/* ==========================================================================
   Design System: 60-30-10 Rule (Beige White, Warm Ivory, Rich Red)
   ========================================================================== */
:root {
    --bg-primary: #F7EEE1;       /* 60% Dominant Base - warm beige */
    --bg-surface: #FFFFFF;       /* 30% Structural Surfaces - white */
    --bg-card: #FDF6EC;          /* Card Background - soft ivory */
    --accent: #C1272D;           /* 10% Vibrant Trust Red */
    --accent-dark: #8C1518;
    --accent-glow: rgba(193, 39, 45, 0.18);
    --text-main: #2A1D14;
    --text-muted: #6E5D4D;
    --border-color: rgba(193, 39, 45, 0.18);
    --radius-lg: 16px;
    --radius-md: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 238, 225, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #FFF;
    overflow: hidden;
    position: relative;
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shown automatically (via onerror in the HTML) if logos/main.png hasn't been added yet */
.nav-logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.nav-logo-text span:first-child {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}

.nav-logo-text span:last-child {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: #FFF;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 39, 45, 0.35);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.mobile-nav-cta {
    display: block;
    margin-top: 16px;
    text-align: center;
    background: var(--accent);
    color: #FFF;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
}

/* ==========================================================================
   Hero Section (Intentional Spacing & High-Contrast Cards)
   ========================================================================== */
section {
    padding: 100px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--accent);
    color: #FFF;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 20px var(--accent-glow);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-stats {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(43, 29, 20, 0.10);
    padding-top: 24px;
}

.hero-stat .num {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat .lbl {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(43, 29, 20, 0.10);
    transition: transform 0.2s, border-color 0.2s;
}

.hero-card:hover {
    transform: translateX(6px);
    border-color: var(--accent);
}

.hero-card .icon {
    font-size: 28px;
}

.hero-card .info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.hero-card .info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Services Grid & Search
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
}

.section-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title span {
    color: var(--accent);
}

.section-sub {
    color: var(--text-muted);
    font-size: 15px;
}

.service-search-wrap {
    max-width: 480px;
    margin: 0 auto 36px;
}

.service-search {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.service-search:focus {
    border-color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid rgba(43, 29, 20, 0.08);
    padding: 22px 18px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.service-icon {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

/* Filters row: search + category select */
.service-filters {
    max-width: 700px;
    margin: 0 auto 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-filters .service-search-wrap {
    flex: 1;
    min-width: 220px;
    margin: 0;
}

.service-category-select {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s;
}

.service-category-select:focus {
    border-color: var(--accent);
}

.results-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Cards are now clickable buttons that open the detail popup */
.service-card {
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--text-main);
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.service-card strong {
    color: var(--text-main);
    line-height: 1.3;
}

.service-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
}

.page-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-indicator {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    min-width: 110px;
    text-align: center;
}

/* Service Detail Popup Modal */
.service-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 16, 12, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal-overlay.open {
    display: flex;
}

.service-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 36px 28px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(43, 29, 20, 0.25);
    animation: modalPop 0.2s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.service-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.service-modal-icon {
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.service-modal-icon svg {
    width: 40px;
    height: 40px;
}

.service-modal-category {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.service-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
}

.service-modal-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-modal-actions .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
}

.no-results {
    display: none;
    text-align: center;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ==========================================================================
   About, Reviews & FAQ Accordion
   ========================================================================== */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-stat-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.about-stat-box .num {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.about-stat-box .lbl {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-text li {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 800;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid rgba(43, 29, 20, 0.08);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 12px;
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-card strong {
    font-size: 13px;
    color: var(--text-main);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(43, 29, 20, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.faq-question .plus {
    color: var(--accent);
    font-size: 18px;
    transition: transform 0.2s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 150px;
    padding-bottom: 18px;
}

.faq-item.open .plus {
    transform: rotate(45deg);
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-card {
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(43, 29, 20, 0.08);
}

.contact-card .ci {
    font-size: 22px;
    line-height: 1;
    width: 26px;
    flex-shrink: 0;
    text-align: center;
    margin-top: 3px;
}

.contact-card strong {
    font-family: 'Poppins', sans-serif;
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.map-wrap {
    position: relative;
}

.map-directions-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.map-directions-link:hover {
    text-decoration: underline;
}

footer {
    border-top: 1px solid var(--border-color);
    background: #2B1210;
    padding: 40px 24px 80px;
    margin-top: 60px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.footer-grid h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-grid h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FF8A80;
    margin-bottom: 14px;
}

.footer-grid p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #D9C7BB;
    margin-bottom: 6px;
}

.footer-grid p a {
    color: #FF8A80;
    text-decoration: none;
    font-weight: 600;
}

.footer-grid p a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #B89F8F;
}

/* Floating Action Button & Sticky Mobile Bar */
.wa-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: #FFF;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

.mobile-action-bar {
    display: none;
}

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 96px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--accent);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: none;
    z-index: 999;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .hero, .about-wrap, .contact-wrap {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        display: none;
    }
    .nav-links, .nav-cta {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        z-index: 998;
    }
    .mobile-action-bar a {
        flex: 1;
        padding: 12px;
        text-align: center;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
        color: #FFF;
    }
    .mobile-action-bar a.call { background: var(--accent); }
    .mobile-action-bar a.whatsapp { background: #128C7E; }
}
