/* =====================================================================
   BIKKI HOME SERVICES — MAIN STYLES
   ===================================================================== */

:root {
    --primary:        #0ea88d;  /* fresh, energetic teal */
    --primary-dark:   #0b7d6d;
    --secondary:      #172554;  /* strong, premium blue */
    --accent:         #fbbf24;  /* bright callout yellow */
    --success:        #18a957;
    --whatsapp:       #25d366;
    --whatsapp-dark:  #1da851;

    --text-primary:   #14201f;
    --text-secondary: #4b5a58;

    --background:     #ffffff;
    --surface:        #f4f7f6;
    --surface-2:      #eef3f1;
    --border:         #d9e2df;

    --radius:     14px;
    --radius-sm:  10px;
    --shadow-sm:  0 1px 2px rgba(16,32,30,.06), 0 1px 3px rgba(16,32,30,.08);
    --shadow-md:  0 4px 14px rgba(16,32,30,.10);
    --shadow-lg:  0 12px 30px rgba(16,32,30,.15);

    --container:  1140px;
    --font:       system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--text-primary); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.container.narrow { max-width: 760px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 700; font-size: .98rem; line-height: 1;
    padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    text-decoration: none; white-space: nowrap; letter-spacing: .01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); filter: brightness(1.02); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 14px; font-size: .88rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary  { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-call     { background: linear-gradient(135deg, var(--secondary), #1d3c7d); color: #fff; }
.btn-call:hover { filter: brightness(1.08); }
.btn-whatsapp { background: linear-gradient(135deg, #2ee07d, var(--whatsapp-dark)); color: #062d1b; }
.btn-whatsapp:hover { color: #fff; }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-instagram { background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 60%, #962fbf 85%, #4f5bd5); color: #fff; }
.btn-instagram:hover { color: #fff; filter: brightness(1.05); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(6px);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--secondary); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff; }
.brand-text { font-size: 1.05rem; letter-spacing: -.01em; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; }
.nav-menu > li > a:not(.btn) {
    display: inline-block; padding: 8px 10px; border-radius: 8px;
    color: var(--text-secondary); font-weight: 600; font-size: .92rem;
}
.nav-menu > li > a:not(.btn):hover { color: var(--primary); background: var(--surface); text-decoration: none; }
.nav-cta { margin-left: .25rem; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px;
    background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle-bar { width: 22px; height: 2px; background: var(--secondary); border-radius: 2px; margin-inline: auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 360px at 82% -10%, rgba(251,191,36,.18), transparent 40%),
        radial-gradient(800px 300px at 15% 0%, rgba(14,168,141,.12), transparent 45%),
        linear-gradient(180deg, #f5fbfa, #ffffff 38%, #f7faf9 100%);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    border-bottom: 1px solid rgba(23,37,84,.08);
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .6rem; }
.hero-brand {
    font-size: clamp(2.6rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
    margin: 0 0 .5rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-content { max-width: 760px; }
.hero-sub { font-size: 1.1rem; color: var(--text-secondary); max-width: 620px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.2rem 0; }
.hero-tags li {
    background: #fff; border: 1px solid var(--border); color: var(--secondary);
    padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0; }
.trust-line { font-weight: 600; color: var(--text-secondary); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 1.8rem; }
.section-head p { color: var(--text-secondary); margin: 0; }

/* ---------- Work preview cards ---------- */
.work-preview-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.work-preview-card {
    background: linear-gradient(180deg, #ffffff, #f8faf9);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
    box-shadow: var(--shadow-sm); min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; overflow: hidden;
}
.work-preview-card::before {
    content: ""; position: absolute; inset: 0; opacity: .18;
    background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(0,0,0,0));
}
.work-preview-card > * { position: relative; z-index: 1; }
.work-preview-card.electrical { background: linear-gradient(135deg, #ecfdf5, #f0f9ff); }
.work-preview-card.plumbing { background: linear-gradient(135deg, #f0f9ff, #eef2ff); }
.work-preview-card.tank { background: linear-gradient(135deg, #fff7ed, #ecfeff); }
.mini-badge {
    display: inline-flex; align-self: flex-start; padding: .35rem .7rem; border-radius: 999px;
    background: rgba(23,37,84,.08); color: var(--secondary); font-size: .76rem; font-weight: 700; margin-bottom: .8rem;
}
.work-preview-card h3 { margin-bottom: .45rem; font-size: 1.2rem; }
.work-preview-card p { margin: 0; color: var(--text-secondary); }

/* ---------- Service cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--surface-2); color: var(--primary); display: grid; place-items: center; margin-bottom: .9rem; }
.service-card p { color: var(--text-secondary); flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* ---------- Service lists ---------- */
.service-list {
    list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem .9rem; margin-bottom: 1.4rem;
}
.service-list li { position: relative; padding-left: 1.4rem; color: var(--text-secondary); }
.service-list li::before {
    content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
    border-radius: 50%; background: var(--primary);
}

.note { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--accent);
    padding: .9rem 1rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: .95rem; }
.note.strong { border-left-color: var(--secondary); font-weight: 600; color: var(--text-primary); }
.hint { font-size: .85rem; color: var(--text-secondary); margin: .35rem 0 0; }
.muted { color: var(--text-secondary); }

/* ---------- Tank pricing ---------- */
.tank-pricing { margin-top: 2rem; }
.price-disclaimer {
    background: #fff8ec; border: 1px solid #f5d89a; border-radius: var(--radius-sm);
    padding: 1rem 1.1rem; color: #7a5300; font-size: .95rem;
}
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.price-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.1rem; text-align: center; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .5rem;
}
.price-card .size { font-weight: 700; color: var(--secondary); }
.price-card .price { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.price-card .btn { margin-top: auto; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.why-item h3 { color: var(--primary); font-size: 1.02rem; }
.why-item p { color: var(--text-secondary); margin: 0; font-size: .92rem; }

/* ---------- Urgent ---------- */
.urgent { background: linear-gradient(135deg, var(--secondary), #0b2c42); color: #fff; }
.urgent h2, .urgent p { color: #fff; }
.urgent p { opacity: .9; margin: 0; }
.urgent-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; margin-bottom: .35rem; font-size: .93rem; }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
    font: inherit; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; color: var(--text-primary); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(11,107,94,.15); }
.field textarea { resize: vertical; }
.field-error { color: #c0392b; font-size: .85rem; margin: .35rem 0 0; min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.photo-preview { margin-top: .8rem; }
.photo-preview img { border-radius: var(--radius-sm); border: 1px solid var(--border); max-height: 220px; }

/* ---------- Previous work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn {
    font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px;
    border: 1.5px solid var(--border); background: #fff; color: var(--text-secondary); cursor: pointer;
    transition: background-color .12s, color .12s, border-color .12s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.work-item {
    margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.work-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media button.media-open {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0;
    background: transparent; cursor: pointer;
}
.work-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 1rem;
    color: var(--text-secondary); background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px);
}
.work-placeholder span { font-weight: 600; }
.work-caption { padding: .9rem 1rem; }
.work-caption h3 { font-size: 1rem; margin-bottom: .25rem; }
.work-caption .cat { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--primary); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; margin-bottom: .4rem; }
.work-caption p { color: var(--text-secondary); font-size: .9rem; margin: 0; }
.badge-video { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

.youtube-slot { margin-top: 1.5rem; }
.youtube-slot iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review-card, .review-empty {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.review-empty { text-align: center; color: var(--text-secondary); grid-column: 1 / -1; }
.review-card .stars { color: var(--accent); margin-bottom: .5rem; }
.review-card .r-name { font-weight: 700; margin-top: .6rem; }
.review-card .r-meta { color: var(--text-secondary); font-size: .85rem; }

/* ---------- Areas ---------- */
.areas-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.areas-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-top: .8rem; }
.areas-list li { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .7rem; overflow: hidden; }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
    width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--text-primary);
    background: #fff; border: 0; padding: 1rem 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q:hover { background: var(--surface); }
.faq-icon { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; }
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after  { left: 7px; top: 0; width: 2px; height: 16px; transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 1.1rem 1rem; }
.faq-a p { color: var(--text-secondary); margin: 0; }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.contact-name { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: #cfe0e0; margin-top: 2rem; padding-top: 2.5rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.5rem; }
.footer-brand { font-size: 1.1rem; color: #fff; margin-bottom: .2rem; }
.footer-tag { color: #9fc0bd; margin-bottom: .8rem; }
.footer-links { list-style: none; display: grid; gap: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1rem 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: .9rem; color: #9fc0bd; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
    position: fixed; right: 18px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-lg);
    transition: transform .15s ease;
}
.fab-whatsapp:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff; border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(16,32,30,.12);
}
.mobile-bar-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px; border-radius: 10px; color: var(--secondary); font-size: .75rem; font-weight: 600; min-height: 54px; justify-content: center;
}
.mobile-bar-btn:hover { text-decoration: none; background: var(--surface); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(8,16,15,.9);
    display: grid; place-items: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-close {
    position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.lightbox-content { max-width: 92vw; max-height: 86vh; }
.lightbox-content img, .lightbox-content video { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
