/* IK Solar Solutions - landing page styles
   Brand tokens come from the brand guide: sky blue #50bbef, leaf green #516f28,
   power red #b93f41, charcoal #484848. Futura LT Bold / Book are the brand fonts. */

:root {
    --blue: #50bbef;
    --blue-deep: #1878a6;      /* accessible blue for text and links on white */
    --green: #516f28;
    --red: #b93f41;
    --red-light: #e57b7e;      /* red tint for text on dark backgrounds (accessible) */
    --charcoal: #484848;
    --ink: #14272e;            /* near-black derived from the brand charcoal/blue */
    --ink-2: #1d3640;
    --paper: #ffffff;
    --mist: #f3f8fb;           /* light blue tint for alternating sections */
    --line: #dbe7ee;
    --wa: #25d366;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 39, 46, .12);
    --font-head: 'futura_ltbold', 'Trebuchet MS', Arial, sans-serif;
    --font-body: 'futura_ltbook', 'Trebuchet MS', Arial, sans-serif;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-head); font-size: 16px; text-transform: uppercase; letter-spacing: .04em;
    text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--ink); box-shadow: 0 6px 18px rgba(80, 187, 239, .45); }
.btn-primary:hover { background: #6cc7f4; }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #5f8230; }
.btn-wa { background: var(--wa); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
    display: flex; align-items: center;
    transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-solid { background: rgba(255, 255, 255, .96); box-shadow: 0 2px 16px rgba(20, 39, 46, .1); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; }
/* Logo applications: transparent logo, no panel. Treatment depends on the background it sits on. */
.brand img { height: 48px; width: auto; transition: filter .25s ease, opacity .25s ease; }
.site-header:not(.is-solid) .brand img { filter: brightness(0) invert(1); }   /* header over the hero photo: reversed one-colour, 100% */
.site-header.is-solid .brand img { filter: none; }                              /* header on white: full colour, 100% */
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-family: var(--font-head); text-transform: uppercase; font-size: 15px; letter-spacing: .05em; color: #fff; }
.site-header.is-solid .nav a { color: var(--ink); }
.nav a:hover { color: var(--blue); }
.site-header.is-solid .nav a:hover { color: var(--blue-deep); }
.nav .btn { padding: 11px 22px; font-size: 14px; color: var(--ink); }
.site-header.is-solid .nav .btn:hover { color: var(--ink); }
.nav-toggle { display: none; background: #fff; border: 0; width: 46px; height: 46px; border-radius: 12px; font-size: 22px; color: var(--ink); cursor: pointer; }

/* ---------- Hero (3-slide carousel) ---------- */
.hero { position: relative; display: grid; padding: 0; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-slides { display: grid; }
.hero-slide {
    grid-area: 1 / 1; position: relative; display: grid; align-items: center; isolation: isolate;
    min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 36px) 0 96px;
    opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, rgba(10, 24, 30, .92) 0%, rgba(10, 24, 30, .72) 48%, rgba(10, 24, 30, .25) 100%),
        linear-gradient(0deg, rgba(10, 24, 30, .55), transparent 40%);
}
.hero-inner { max-width: 720px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
    background: rgba(80, 187, 239, .16); border: 1px solid rgba(80, 187, 239, .55);
    font-family: var(--font-head); text-transform: uppercase; font-size: 14px; letter-spacing: .08em; color: #bfe8fb;
    margin-bottom: 22px;
}
.eyebrow.red { background: rgba(229, 123, 126, .16); border-color: rgba(229, 123, 126, .6); color: #ffd3d4; }
.hero-h { color: #fff; font-size: clamp(38px, 6vw, 66px); margin-bottom: .3em; }
.hero-h .accent { color: var(--blue); display: block; }
.hero-h .accent.red { color: var(--red-light); }
.hero-lead { font-size: clamp(18px, 2.2vw, 22px); color: #e4f1f7; max-width: 600px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li a {
    display: inline-block; padding: 7px 16px; border-radius: 999px; text-decoration: none; font-size: 15px;
    color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3);
}
.chips li a:hover { background: rgba(255, 255, 255, .22); }
.hero-controls {
    position: absolute; left: 0; right: 0; bottom: 28px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-controls[hidden] { display: none; }
.hero-arrow, .hero-pause {
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(10, 24, 30, .45); color: #fff;
    font-size: 22px; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .15s ease;
}
.hero-pause { width: 38px; height: 38px; font-size: 14px; }
.hero-arrow:hover, .hero-pause:hover { background: rgba(255, 255, 255, .25); }
.hero-dots { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: all .25s ease; }
.hero-dots button[aria-current="true"] { width: 34px; background: var(--blue); }

/* ---------- Trust bar ---------- */
.trust { background: var(--ink); color: #fff; }
.trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust li { display: flex; align-items: center; gap: 14px; }
.trust .fa { font-size: 28px; color: var(--blue); width: 36px; text-align: center; }
.trust strong { display: block; font-family: var(--font-head); font-weight: normal; text-transform: uppercase; font-size: 17px; letter-spacing: .03em; }
.trust span.sub { font-size: 14px; color: #b7ccd6; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--green); margin-bottom: 10px; display: block; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); }
.section-head p { font-size: 19px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(30px, 4.5vw, 44px); }
.about-grid .lead { font-size: 20px; color: var(--ink); }
.ticks { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.ticks .fa { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 14px; margin-top: 1px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.about-media { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; width: 100%; }
.about-media::before { content: ""; position: absolute; inset: 8% 14% 14% 8%; border-radius: var(--radius); background: var(--mist); border: 2px solid var(--line); z-index: 0; }
.about-media img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
.about-media .m1 { left: 0; top: 0; width: 58%; height: 72%; }
.about-media .m2 { right: 0; bottom: 0; width: 54%; height: 66%; border: 6px solid #fff; z-index: 2; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 22px; }
.card p { font-size: 16.5px; flex: 1; }
.card .more { font-family: var(--font-head); text-transform: uppercase; font-size: 15px; letter-spacing: .05em; text-decoration: none; color: var(--blue-deep); }
.card .more::after { content: " \2192"; }
.card.electric { border-top: 5px solid var(--red); }
.card.plumb { border-top: 5px solid var(--blue); }
.card.solar { border-top: 5px solid var(--green); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why { text-align: center; padding: 32px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.why .icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--green); }
.why:nth-child(2) .icon { background: var(--blue-deep); }
.why:nth-child(3) .icon { background: var(--red); }
.why:nth-child(4) .icon { background: var(--ink-2); }
.why h3 { font-size: 19px; margin: 0; }

/* ---------- Gallery ---------- */
.work-viewport { position: relative; }
.work-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none; padding: 4px 0;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track:focus-visible { outline-offset: 6px; }
.grid-item { flex: 0 0 calc((100% - 20px) / 2); scroll-snap-align: start; }
.grid-item[hidden] { display: none; }
.grid-item figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.grid-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .5s ease; }
.grid-item .tag {
    position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 6px 14px; border-radius: 999px; pointer-events: none;
    background: rgba(20, 39, 46, .82); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px;
}
.grid-item a.fancybox { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; color: #fff; background: rgba(20, 39, 46, 0); transition: background .25s ease; }
.grid-item a.fancybox .fa { font-size: 34px; opacity: 0; transform: scale(.7); transition: all .25s ease; }
.grid-item:hover img { transform: scale(1.05); }
.grid-item a.fancybox:hover, .grid-item a.fancybox:focus-visible { background: rgba(20, 39, 46, .5); }
.grid-item a.fancybox:hover .fa, .grid-item a.fancybox:focus-visible .fa { opacity: 1; transform: scale(1); }
.work-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    background: #fff; color: var(--ink); font-size: 26px; box-shadow: 0 6px 18px rgba(20, 39, 46, .3); transition: background .15s ease, opacity .15s ease, transform .15s ease;
}
.work-btn:hover:not(:disabled) { background: var(--blue); transform: translateY(-50%) scale(1.06); }
.work-btn:disabled { opacity: .35; cursor: default; }
.work-btn.prev { left: -26px; }
.work-btn.next { right: -26px; }
.work-count { text-align: center; margin: 18px 0 0; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--charcoal); }

/* ---------- Brands (auto-scrolling, no controls) ---------- */
.brands { padding: 56px 0; border-block: 1px solid var(--line); }
.brands h2 { font-size: 15px; letter-spacing: .12em; color: var(--charcoal); text-align: center; margin-bottom: 26px; }
.brand-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 56px; width: max-content; animation: brand-scroll 38s linear infinite; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-track img { height: 54px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .2s ease; }
.brand-track img:hover { filter: none; opacity: 1; }
@keyframes brand-scroll { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #dbe9ef; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(80, 187, 239, .3), transparent 70%); }
.contact .watermark { position: absolute; right: -40px; bottom: -30px; width: min(520px, 70%); filter: brightness(0) invert(1); opacity: .06; pointer-events: none; }   /* watermark: reversed, 6% */
.contact h2 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); }
.contact h2 .accent { color: var(--blue); display: block; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 14px; font-size: 19px; }
.contact-list .fa { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(80, 187, 239, .18); color: var(--blue); }
.contact-list a:hover { color: var(--blue); }
form.quote { background: #fff; color: var(--charcoal); padding: 32px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); display: grid; gap: 14px; }
form.quote h3 { font-size: 22px; margin-bottom: 4px; }
form.quote .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.quote label { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
form.quote input, form.quote textarea {
    width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #c5d6df; background: #fbfdfe; color: var(--ink);
}
form.quote input:focus, form.quote textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(80, 187, 239, .35); }
form.quote .btn { width: 100%; }
.form-note { font-size: 13.5px; color: #5b6b73; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1a1f; color: #a9bfc9; padding: 64px 0 0; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: .06em; }
.site-footer a { color: #a9bfc9; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { display: inline-block; margin-bottom: 18px; }
.site-footer .brand img { filter: brightness(0) invert(1); opacity: .85; }       /* dark footer: reversed one-colour, 85% */
.site-footer .brand:hover img { opacity: 1; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; }
.social a:hover { background: var(--blue); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 14.5px; text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-button {
    position: fixed; bottom: 16px; right: 16px; z-index: 1000; display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 20px; border-radius: 999px; background: var(--wa); color: var(--ink); text-decoration: none;
    font-family: var(--font-head); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.whatsapp-button:hover { background: #3be07b; color: var(--ink); }
.whatsapp-button .fa { font-size: 24px; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1260px) {
    .work-btn.prev { left: 8px; }
    .work-btn.next { right: 8px; }
}
@media (max-width: 991px) {
    section { padding: 72px 0; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .trust ul { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: block; }
    .nav {
        position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; padding: 8px 20px 20px; box-shadow: 0 16px 30px rgba(20, 39, 46, .15); display: none;
    }
    .nav.is-open { display: flex; }
    .nav a, .site-header .nav a { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 14px; border-bottom: 0; text-align: center; justify-content: center; }
}
@media (max-width: 599px) {
    body { font-size: 17px; }
    section { padding: 56px 0; }
    .cards { grid-template-columns: 1fr; }
    #why { padding: 44px 0; }
    #why .section-head { margin-bottom: 24px; }
    #why .section-head h2 { font-size: 26px; }
    #why .section-head p { font-size: 16px; margin-bottom: 0; }
    .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .why { padding: 18px 10px 16px; border-radius: 12px; }
    .why .icon { width: 50px; height: 50px; font-size: 21px; margin-bottom: 10px; }
    .why h3 { font-size: 15px; line-height: 1.2; }
    .grid-item { flex-basis: 100%; }
    .work-btn { width: 44px; height: 44px; font-size: 22px; }
    .work-btn.prev { left: 6px; }
    .work-btn.next { right: 6px; }
    .trust ul { grid-template-columns: 1fr; padding: 20px 0; }
    form.quote .row { grid-template-columns: 1fr; }
    form.quote { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .whatsapp-button span.wa-text { display: none; }
    .whatsapp-button { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { opacity: 1; transform: none; }
    .brand-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .brand-track li[aria-hidden] { display: none; }
    .brand-marquee { -webkit-mask-image: none; mask-image: none; }
}
