/* ==========================================================================
   JAK Electrical — site styles
   Palette derived from the logo: brick red, amber/gold sunburst, bulb yellow,
   near-black badge ring, warm cream background.
   ========================================================================== */

:root {
    --blue:       #0b4159;  /* primary brand colour */
    --blue-dark:  #072e3f;
    --blue-deep:  #061f2b;
    --blue-light: #10597a;
    --red:        #C0392B;
    --red-dark:   #9E2B20;
    --amber:      #F39C12;
    --gold:       #F5A623;
    --yellow:     #FFCE3A;
    --dark:       #0b2530;
    --charcoal:   #243640;
    --grey:       #5b6b73;
    --grey-light: #dfe6e9;
    --cream:      #F4F8FA;
    --white:      #ffffff;

    --maxw: 1140px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(26,26,26,.10);
    --shadow-sm: 0 4px 14px rgba(26,26,26,.08);
    --ff-head: 'Barlow Condensed', 'Inter', sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--ff-head); line-height: 1.1; color: var(--dark); margin: 0 0 .5em; letter-spacing: .3px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hide-sm { display: inline; }
.section { padding: 72px 0; }
.section--tint { background: var(--white); }
.lead { font-size: 1.15rem; color: var(--grey); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
    display: inline-block; font-family: var(--ff-head); text-transform: uppercase;
    letter-spacing: 2px; color: var(--red); font-weight: 700; font-size: .95rem; margin-bottom: .4rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block; font-weight: 700; font-family: var(--ff-body);
    padding: 14px 26px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    text-decoration: none; font-size: 1rem; line-height: 1;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(192,57,43,.30); }
.btn--primary:hover { background: var(--red-dark); }
.btn--gold { background: var(--gold); color: var(--dark); box-shadow: 0 8px 20px rgba(245,166,35,.32); }
.btn--gold:hover { background: var(--amber); }
.btn--light { background: #fff; color: var(--red); }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: #fff; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; }

/* ---- Topbar ---- */
.topbar { background: var(--blue-deep); color: #e7eef2; font-size: .9rem; }
.topbar__inner { display: flex; gap: 22px; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar__item { color: #f3f0ea; display: inline-flex; align-items: center; gap: 7px; }
.topbar__item:hover { color: var(--yellow); text-decoration: none; }
.topbar__hours { margin-left: auto; color: #cfc9bf; }

/* ---- Header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--ff-head); font-size: 1.55rem; font-weight: 700; color: var(--dark); line-height: 1; }
.brand__name em { color: var(--red); font-style: normal; }
.brand__sub { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--charcoal); font-weight: 600; padding: 10px 14px; border-radius: 8px; }
.main-nav a:hover { background: var(--cream); text-decoration: none; color: var(--red); }
.main-nav a.active { color: var(--red); }
.main-nav .nav-cta { background: var(--red); color: #fff; margin-left: 8px; box-shadow: 0 6px 16px rgba(192,57,43,.28); }
.main-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle__btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle__btn span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: .25s; }

/* ---- WhatsApp float ---- */
.whatsapp-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 200;
    width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; }

/* ---- Hero ---- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(circle at 80% 26%, rgba(255,206,58,.20), transparent 40%),
        linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-light) 130%);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 22px 22px; opacity: .6;
}
.hero__inner { position: relative; z-index: 2; padding: 90px 0; max-width: 760px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 1.2rem; color: #d7e7ef; margin-bottom: 1.6rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero__badge { display: flex; align-items: center; gap: 9px; font-weight: 600; color: #fff; }
.hero__badge svg { color: var(--yellow); flex: none; }

/* ---- Service / generic cards ---- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--grey-light);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--red), var(--amber)); color: #fff; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--grey); margin-bottom: 0; }
.card a.card__link { font-weight: 600; display: inline-block; margin-top: 12px; }

/* ---- Feature / why-us list ---- */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__check {
    flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--dark);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.feature h3 { font-family: var(--ff-body); font-size: 1.1rem; margin-bottom: 2px; }
.feature p { color: var(--grey); margin: 0; }

/* ---- Split / about ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__media img, .media-card {
    border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
}
.media-card {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light)); color: #fff; padding: 40px; text-align: center;
}
.media-card img { width: 150px; margin: 0 auto 18px; border-radius: 50%; }
.media-card .big { font-family: var(--ff-head); font-size: 3rem; color: var(--yellow); line-height: 1; }

/* ---- Areas ---- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.area-pill {
    background: var(--white); border: 1px solid var(--grey-light); border-radius: 10px;
    padding: 14px 16px; font-weight: 600; color: var(--charcoal); display: flex; align-items: center; gap: 8px;
}
.area-pill svg { color: var(--red); flex: none; }
.area-pill:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

/* ---- Stats band ---- */
.stats { background: var(--blue); color: #fff; }
.stats .grid { text-align: center; }
.stats .stat__num { font-family: var(--ff-head); font-size: 2.8rem; color: var(--yellow); line-height: 1; }
.stats .stat__label { color: #d9d4cb; font-weight: 500; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, var(--red), var(--amber)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2rem; }
.cta-band p { color: #ffeede; margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: var(--blue-deep); color: #c4d4dd; }
.site-footer__grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px;
    padding: 60px 20px 44px;
}
.site-footer__col h3 {
    color: #fff; font-family: var(--ff-body); font-size: 1.05rem; font-weight: 700;
    margin: 0 0 16px; padding-bottom: 10px; position: relative;
}
.site-footer__col h3::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px;
    background: var(--gold); border-radius: 3px;
}
.site-footer__col p { color: #b3c5cf; font-size: .95rem; line-height: 1.7; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col ul li { margin-bottom: 9px; }
.site-footer__col ul li a, .site-footer a { color: #c4d4dd; }
.site-footer__col ul li a:hover, .site-footer a:hover { color: var(--yellow); text-decoration: none; }
.site-footer .brand--footer { margin-bottom: 16px; }
.site-footer .brand--footer img { border-radius: 50%; }
.site-footer .brand--footer .brand__name { color: #fff; }
.site-footer .brand--footer .brand__name em { color: var(--gold); }
.site-footer .social-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--yellow);
}
.site-footer .contact-list li { color: #b3c5cf; font-size: .95rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.site-footer__bottom p { margin: 0; font-size: .88rem; color: #93a7b2; text-align: center; }

/* ---- Page hero (interior pages) ---- */
.page-hero { background: linear-gradient(135deg, var(--blue-deep), var(--blue) 70%, var(--blue-light)); color: #fff; padding: 60px 0; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: #cfe2ec; margin: 0; max-width: 720px; }
.breadcrumbs { font-size: .9rem; margin-bottom: 14px; color: #b8d2de; }
.breadcrumbs a { color: #fff; }
.breadcrumbs span { opacity: .7; }

/* ---- Forms ---- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--grey-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 14px; border: 1px solid #cfc9bf; border-radius: 9px;
    font-family: inherit; font-size: 1rem; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--grey); }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 500; }
.alert--error { background: #fdecea; color: #9E2B20; border: 1px solid #f5c6c0; }
.alert--success { background: #eafbf0; color: #1d7a43; border: 1px solid #b9e8cb; }

/* ---- Contact info blocks ---- */
.info-block { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-block__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--cream); color: var(--red); display: flex; align-items: center; justify-content: center; }
.info-block h3 { font-family: var(--ff-body); font-size: 1.05rem; margin: 0 0 2px; }
.info-block p, .info-block a { margin: 0; color: var(--grey); }

/* ---- Blog ---- */
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--grey-light); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red), var(--amber)); width: 100%; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--red); }
.post-card h3 { font-family: var(--ff-body); font-size: 1.15rem; margin: 6px 0 8px; }
.post-card h3 a { color: var(--dark); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--grey); font-size: .95rem; }
.post-card__meta { margin-top: auto; font-size: .85rem; color: var(--grey); }

/* ---- Article ---- */
.article { max-width: 760px; margin: 0 auto; }
.article__meta { color: var(--grey); font-size: .92rem; margin-bottom: 24px; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 1rem; }
.article li { margin-bottom: .4rem; }
.article blockquote {
    border-left: 4px solid var(--gold); background: var(--white); margin: 1.5em 0; padding: 14px 20px;
    border-radius: 0 10px 10px 0; color: var(--charcoal); font-style: italic;
}
.article .callout {
    background: var(--white); border: 1px solid var(--grey-light); border-left: 4px solid var(--red);
    padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 1.6em 0;
}
.article .callout strong { color: var(--red); }

/* ---- Misc ---- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.divider { height: 1px; background: var(--grey-light); margin: 44px 0; border: 0; }
.text-muted { color: var(--grey); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .area-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 30px; }
    .hero__inner { padding: 64px 0; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
    .hide-sm { display: none; }
    .topbar__hours { display: none; }
    .nav-toggle__btn { display: flex; }
    .main-nav {
        position: absolute; top: 76px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
        box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease;
        max-height: calc(100vh - 76px); overflow-y: auto;
    }
    .nav-toggle:checked ~ .main-nav { transform: translateY(0); }
    .main-nav a { padding: 14px 10px; border-bottom: 1px solid var(--grey-light); }
    .main-nav .nav-cta { margin: 10px 0 0; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; text-align: center; }
    .section { padding: 52px 0; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 20px 32px; }
}
@media (max-width: 480px) {
    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
    .area-grid { grid-template-columns: 1fr 1fr; }
    .brand__sub { display: none; }
}
