@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url(/demos/rahim-electric/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url(/demos/rahim-electric/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url(/demos/rahim-electric/barlow-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url(/demos/rahim-electric/barlow-semi-condensed-700.woff2) format('woff2'); }

:root {
    --navy: #0f2740;
    --navy-2: #173a5e;
    --ink: #142233;
    --muted: #556375;
    --paper: #f6f3ec;
    --line: #e2dccf;
    --white: #fff;
    --yellow: #ffc93c;
    --yellow-dark: #e6a800;
    --wa: #128c4a;
    --wa-dark: #0d7039;
    --warn: #b4401b;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 39, 64, .06), 0 8px 24px rgba(15, 39, 64, .08);
    --heading: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--yellow); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 3px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.4rem; border: 2px solid transparent; border-radius: 999px; font: 700 1.05rem/1.1 'Barlow', sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 42px; padding: .55rem 1.05rem; font-size: .98rem; }
.button-block { width: 100%; }
.button-wa { background: var(--wa); color: var(--white); }
.button-wa:hover { background: var(--wa-dark); }
.button-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.button-yellow { background: var(--yellow); color: var(--navy); }
.button-yellow:hover { background: #ffd666; }
.button-dark { background: var(--navy); color: var(--white); }
.button-dark:hover { background: var(--navy-2); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--wa-dark); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .8rem; color: var(--navy-2); font: 700 .85rem/1 'Barlow', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 26px; height: 4px; border-radius: 2px; background: var(--yellow); }
.eyebrow-light { color: var(--yellow); }
.eyebrow-light::before { display: none; }

/* Top bar and header */
.topbar { background: #0a1c2f; color: #c9d6e4; font-size: .92rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: .4rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: var(--yellow); }
.brand-mark .icon { width: 24px; height: 24px; fill: var(--yellow); stroke: none; }
.brand-name { display: flex; flex-direction: column; font: 700 1.35rem/1 var(--heading); color: var(--navy); }
.brand-name small { margin-top: .2rem; font: 700 .7rem/1 'Barlow', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { font-weight: 600; text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--wa-dark); }
.menu-toggle { display: none; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); font: 600 1rem 'Barlow', sans-serif; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, #000 30%, transparent 85%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; padding-block: 4.5rem 5rem; }
.hero h1 span { color: var(--yellow); }
.hero-lead { max-width: 34rem; font-size: 1.22rem; color: #d6e1ed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 36rem; margin: 0; padding: 0; list-style: none; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .16); }
.hero-facts li { display: flex; flex-direction: column; padding: .9rem 1rem; background: var(--navy); }
.hero-facts b { font: 700 1.2rem/1.1 var(--heading); color: var(--yellow); }
.hero-facts span { font-size: .9rem; color: #b9c8d8; }
.hero-photo { position: relative; margin: 0; }
.hero-photo::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--yellow); border-radius: 22px; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 68% 40%; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.hero-photo figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(10, 28, 47, .88); color: #e5edf5; font-size: .98rem; }
.hero-photo figcaption b { color: var(--yellow); }

/* Sections */
.section { padding-block: 5rem; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 40rem; margin-bottom: 2.6rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service-card { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.service-card p:not(.price-chip) { color: var(--muted); }
.service-card .text-link { margin-top: auto; }
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 14px; background: #fff4d4; color: var(--navy); }
.service-icon .icon { width: 28px; height: 28px; }
.price-chip { align-self: flex-start; margin-bottom: .8rem; padding: .3rem .7rem; border-radius: 999px; background: var(--navy); color: var(--yellow); font-weight: 700; font-size: .95rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.pricing-copy > p { font-size: 1.12rem; }
.check-list { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; }
.check-list .icon { margin-top: .2rem; color: var(--wa); }
.receipt { padding: 1.8rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.receipt-title { font: 700 1.3rem var(--heading); color: var(--navy); }
.receipt-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.receipt-row span { display: flex; flex-direction: column; font-weight: 600; }
.receipt-row small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.receipt-row b { font: 700 1.5rem var(--heading); color: var(--navy); }
.receipt-note { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.about-copy p { color: #d6e1ed; font-size: 1.12rem; }
.about-copy .button { margin-top: .6rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .8rem 1rem; color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 1.6rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step; }
.steps li::after { content: counter(step); position: absolute; top: 1.2rem; right: 1.3rem; font: 700 2.4rem/1 var(--heading); color: var(--line); }
.steps p { margin: 0; color: var(--muted); }
.step-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1rem; border-radius: 12px; background: var(--navy); color: var(--yellow); }
.step-icon .icon { width: 24px; height: 24px; }
.info-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.info-card { padding: 1.6rem; border-radius: var(--radius); background: var(--paper); }
.info-card h3 { display: flex; align-items: center; gap: .5rem; color: var(--navy); }
.info-card p { margin: 0; }
.info-card-warn { background: #fdf0ea; }
.info-card-warn h3 { color: var(--warn); }

/* Enquiry */
.enquiry { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.enquiry-copy p { color: #d6e1ed; font-size: 1.12rem; }
.enquiry-direct a { color: var(--yellow); font-weight: 700; }
.enquiry-form { padding: 1.8rem; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid #cdd5de; border-radius: 10px; background: var(--white); color: var(--ink); font: 400 1.05rem 'Barlow', sans-serif; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-2); outline: 3px solid rgba(255, 201, 60, .6); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.form-error { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 10px; background: #fdf0ea; color: var(--warn); font-weight: 600; }
.form-note { margin: .9rem 0 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: .8rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq summary { position: relative; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font: 700 1.6rem/1 var(--heading); color: var(--navy-2); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* CTA band and footer */
.cta-band { background: var(--yellow); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 2.6rem; }
.cta-inner h2 { margin: 0; color: var(--navy); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.site-footer { background: #0a1c2f; color: #b9c8d8; padding-top: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.footer-inner p { max-width: 28rem; margin: 0; }
.footer-inner .footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; color: var(--white); font: 700 1.3rem var(--heading); }
.footer-brand .brand-mark { width: 34px; height: 34px; background: var(--navy-2); }
.footer-brand .brand-mark .icon { width: 20px; height: 20px; }
.footer-links { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding-block: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer-base a { color: #b9c8d8; }

/* Mobile contact bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1.4fr; gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 39, 64, .1); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); font-weight: 700; text-decoration: none; }
.mobile-bar .mobile-bar-wa { border-color: var(--wa); background: var(--wa); color: var(--white); }

@media (max-width: 980px) {
    .hero-inner, .pricing, .about, .enquiry { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-photo { max-width: 460px; }
    .service-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .about-photo { max-width: 460px; }
}

@media (max-width: 860px) {
    .site-footer { padding-bottom: 76px; }
    .menu-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 39, 64, .08); }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
    .site-nav a:last-child { border-bottom: 0; }
    .mobile-bar { display: grid; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .wrap { width: min(1160px, 100% - 2rem); }
    .topbar-inner span { display: none; }
    .topbar-inner { justify-content: center; }
    .section { padding-block: 3.6rem; }
    .hero-inner { padding-block: 2.8rem 3.4rem; }
    .hero-lead { font-size: 1.1rem; }
    .hero-actions .button { flex: 1 1 100%; }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-facts li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .8rem; }
    .hero-photo::before { inset: 14px -10px -14px 14px; }
    .service-grid, .gallery, .steps, .info-pair { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .gallery figcaption { padding: .6rem .7rem; font-size: .85rem; }
    .receipt, .enquiry-form, .service-card { padding: 1.3rem; }
    .cta-actions, .cta-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
    .button:hover { transform: none; }
}
