/* Akerstroms – Sesam remote controls
   Static site for Cloudflare. No build step, no frameworks.
   Layout mirrors the original Wix design: transparent header over an orange-glow hero,
   full-bleed sections, Poppins headings, Questrial body, orange pill buttons. */

:root {
  --bg: #222323;
  --bg-deep: #101010;
  --orange: #eb8205;
  --orange-hot: #ff9a1f;
  --text: #fff;
  --muted: #cfcfcf;
  --line: rgba(255, 255, 255, .14);
  --pad: clamp(1rem, 5vw, 6rem);       /* side padding used by full-bleed sections */
  --head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Questrial", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-weight: 400; font-size: 1.15rem; line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-hot); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--orange-hot); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1.1rem; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0 0 1.2rem; }
h1 { font-size: clamp(3rem, 4.1vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }

.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  font-family: var(--body); font-size: 1.1rem; padding: .78rem 2.1rem; border-radius: 999px;
  box-shadow: 0 6px 22px rgba(235, 130, 5, .38); border: 0; cursor: pointer; text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--orange-hot); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.4rem; font-size: 1rem; }

/* ---------- Header (transparent, floats over the hero) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled, .site-header.solid { background: rgba(16, 16, 16, .94); box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.header-in {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 14px clamp(.75rem, 1vw, 1.25rem); min-height: 92px;
}
.brand img { width: clamp(150px, 14vw, 265px); height: auto; }
.supplied { display: none; align-items: center; gap: 1.6rem; color: #fff; text-decoration: none; font-size: .95rem; }
.supplied img { width: clamp(180px, 14.5vw, 275px); height: auto; }

.head-right { display: flex; align-items: center; margin-left: auto; gap: clamp(1rem, 2vw, 2.2rem); }
.phone { display: none; flex-direction: column; align-items: center; color: #fff; text-decoration: none; line-height: 1; }
.phone strong { font-family: var(--head); font-weight: 500; font-size: clamp(1.4rem, 1.65vw, 2rem); letter-spacing: .01em; }
.phone svg { width: 30px; height: 30px; margin-top: .35rem; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-btn {
  width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(235,130,5,.4); flex: none;
}
.home-btn svg { width: 24px; height: 24px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.9rem; }
.nav-links a { color: #fff; text-decoration: none; font-size: 1.02rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--orange); color: #fff; }

.nav-toggle {
  background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px;
  cursor: pointer; display: grid; place-items: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: #fff; content: ""; position: relative; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; background: rgba(16,16,16,.98); padding: .5rem var(--pad) 1.5rem; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
.mobile-nav a.link { display: block; color: #fff; text-decoration: none; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav .m-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; gap: 1rem; }
.mobile-nav .m-phone { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 1.3rem; }

.btn-buy { display: none; }
@media (min-width: 700px) { .btn-buy { display: inline-block; } .phone { display: flex; } }
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}
@media (min-width: 1250px) { .supplied { display: flex; } }

/* ---------- Eyebrow (orange “A” icon + spaced caps) ---------- */
.eyebrow { display: flex; align-items: center; gap: 1.9rem; margin-bottom: 3rem;
  font-family: var(--body); font-size: .88rem; letter-spacing: .27em; text-transform: uppercase; color: #fff; }
.eyebrow img { width: 70px; height: 70px; flex: none; border-radius: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 33vw, 720px);
  background:
    radial-gradient(ellipse 34% 62% at 96% 46%, rgba(235,130,5,.62) 0, rgba(235,130,5,0) 100%),
    radial-gradient(ellipse 22% 40% at 62% 70%, rgba(235,130,5,.34) 0, rgba(235,130,5,0) 100%),
    radial-gradient(ellipse 30% 45% at 0% 28%, rgba(235,130,5,.20) 0, rgba(235,130,5,0) 100%),
    #0d0b09;
  display: grid; grid-template-columns: 1fr; align-items: end;
  padding: 170px var(--pad) clamp(2.5rem, 2.6vw, 4rem);
}
.hero::before {                       /* soft dark panel behind the copy */
  content: ""; position: absolute; z-index: -1; left: 4%; top: 130px; bottom: 30px; width: 52%;
  border-radius: 110px 0 0 0;
  background: linear-gradient(90deg, rgba(34,35,35,.55), rgba(34,35,35,0));
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero-copy { max-width: 46rem; }
.hero h1 { margin-bottom: 4.2rem; }
.hero .lead { font-size: clamp(1.15rem, 1.2vw, 1.5rem); line-height: 1.18; max-width: 41rem; margin-bottom: 3.2rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; gap: 2rem; }
  .hero-art { display: flex; align-items: center; justify-content: flex-end; gap: clamp(0rem, 2vw, 3rem); align-self: center;
    margin-top: -60px; margin-right: 2vw; }
  .hero-art img { object-fit: contain; filter: drop-shadow(0 26px 34px rgba(0,0,0,.55)); }
  .hero-art .a { width: 17vw; max-width: 340px; transform: rotate(-15deg); }
  .hero-art .b { width: 22vw; max-width: 420px; transform: rotate(17deg); }
}

/* Hero: remote and receiver fade in from opposite sides, bump, settle.
   Hidden only when JS is on; main.js adds .play once both images have loaded. */
.js .hero-art img { opacity: 0; }
@media (min-width: 900px) {
  .hero-art.play .a { animation: bumpA 1.5s cubic-bezier(.22,.7,.3,1) both; }
  .hero-art.play .b { animation: bumpB 1.5s cubic-bezier(.22,.7,.3,1) both; }
}
@keyframes bumpA {
  0%   { opacity: 0; transform: translateX(-18vw) rotate(-21deg); }
  15%  { opacity: 1; }
  52%  { transform: translateX(2.2vw) rotate(-12deg); }
  70%  { transform: translateX(-.9vw) rotate(-16.5deg); }
  100% { opacity: 1; transform: translateX(0) rotate(-15deg); }
}
@keyframes bumpB {
  0%   { opacity: 0; transform: translateX(18vw) rotate(23deg); }
  15%  { opacity: 1; }
  52%  { transform: translateX(-2.2vw) rotate(14deg); }
  70%  { transform: translateX(.9vw) rotate(18.5deg); }
  100% { opacity: 1; transform: translateX(0) rotate(17deg); }
}
/* Reduced-motion setting on: just a gentle fade, no movement */
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero-art.play .a, .hero-art.play .b { animation: heroFade .9s ease both; }
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Solutions: black panel left, remote overlapping, copy right ---------- */
.solutions {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(560px, 40vw, 760px);
  background: linear-gradient(90deg, #000 0, #000 24.75%, #2a2b2b 24.75%, #2a2b2b 28%, var(--bg) 28%);
}
.solutions::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 24.75%;
  background:
    radial-gradient(ellipse 85% 24% at 70% 0%, rgba(235,130,5,.62) 0, rgba(235,130,5,0) 100%),
    radial-gradient(ellipse 80% 44% at 0% 100%, rgba(235,130,5,.95) 0, rgba(235,130,5,0) 100%);
}
.sol-media { position: absolute; left: 11vw; top: 50%; transform: translateY(-50%); width: 22vw; max-width: 460px; }
.sol-media img { width: 100%; filter: drop-shadow(0 22px 30px rgba(0,0,0,.55)); }
.sol-copy { position: relative; margin-left: 45.5%; width: min(40%, 40rem); padding: 4.5rem 0; }
h2.big, .sol-copy h2, .mission-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); margin-bottom: 2.2rem; }
.sol-copy h2, .mission-copy h2 { max-width: 11em; }
.sol-copy p, .mission-copy p { font-size: clamp(1.02rem, 1.2vw, 1.3rem); line-height: 1.75; }
@media (max-width: 899px) {
  .solutions { display: block; background: var(--bg); min-height: 0; }
  .solutions::before { display: none; }
  .sol-media { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: none; padding: 7rem var(--pad) 1.5rem;
    background: linear-gradient(#000, #000); }
  .sol-media img { width: min(300px, 70%); margin: 0 auto; }
  .sol-copy { margin: 0; width: auto; padding: 2.5rem var(--pad) 4rem; }
}

/* ---------- Mission: full-bleed photo (the remote is part of the photo), copy left ---------- */
.mission {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(560px, 42vw, 800px);
  background: #2b3a22 url("../img/irrigation.jpg") 65% center/cover no-repeat;
}
.mission::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 62%); }
.mission-copy { margin-left: 18.9%; width: min(40%, 36rem); padding: 5rem 0; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
@media (max-width: 899px) {
  .mission::before { background: rgba(20,21,21,.55); }
  .mission-copy { margin-left: var(--pad); margin-right: var(--pad); width: auto; padding: 4rem 0; }
}

/* ---------- Product slider (three round tiles, arrows) ---------- */
.slider { position: relative; background: #000; padding: 2.6rem 0 3rem; }
.slides { display: flex; gap: 2.4vw; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 3vw; scroll-padding: 0 3vw; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  --s: 30vw; flex: 0 0 var(--s); aspect-ratio: 1; border-radius: 50%; background: #1b1b1b; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center; padding: 8%; overflow: hidden;
}
.slide img { height: calc(var(--s) * .68); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 68px; background: none; border: 0; cursor: pointer; padding: 0; }
.arrow svg { width: 26px; height: 42px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.arrow:hover svg { opacity: 1; stroke: var(--orange-hot); }
.arrow.prev { left: .3vw; } .arrow.next { right: .3vw; }
@media (max-width: 899px) { .slide { --s: 78vw; } .slides { gap: 5vw; padding: 0 11vw; scroll-padding: 0 11vw; } .arrow { display: none; } }

/* ---------- Benefits: photo | centred lines with orange blobs | photo ---------- */
.benefits {
  background: #000; padding: 0 10%; display: grid; grid-template-columns: 450fr 570fr 450fr;
  min-height: clamp(560px, 44vw, 860px);
}
.benefits .ph { background: #111 center/cover no-repeat; min-height: 320px; }
.benefits .ph.a { background-image: url("../img/winch-photo.jpg"); }
.benefits .ph.b { background-image: url("../img/ferry.jpg"); }
.benefits .txt { position: relative; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; text-align: center; padding: 3rem 1rem; }
.benefits .txt p { position: relative; z-index: 1; margin: 0; font-family: var(--head); font-size: clamp(1.7rem, 2.7vw, 2.7rem); line-height: 1.2; text-shadow: 2px 3px 4px rgba(0,0,0,.7); }
.benefits .txt::before, .benefits .txt::after {
  content: ""; position: absolute; width: clamp(110px, 10vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #eb8205 0, rgba(235,130,5,.9) 42%, rgba(235,130,5,0) 72%);
}
.benefits .txt::before { top: 12%; right: 4%; }
.benefits .txt::after { top: 52%; left: -2%; }
@media (max-width: 899px) {
  .benefits { padding: 0; grid-template-columns: 1fr 1fr; }
  .benefits .txt { grid-column: 1 / -1; order: -1; padding: 4rem 1rem; gap: 2.5rem; }
  .benefits .ph { min-height: 260px; }
}

/* ---------- CTA ---------- */
.cta { text-align: center; background: var(--bg); padding: 4rem var(--pad) 3rem; }
.cta-icon { width: 70px; height: 70px; margin: 0 auto 1.8rem; }
.cta .small { font-size: clamp(.85rem, 1.05vw, 1.05rem); letter-spacing: .35em; text-transform: uppercase; margin-bottom: 2.4rem; }
.cta h2 { font-size: clamp(2rem, 3.3vw, 3.3rem); max-width: 1100px; margin: 0 auto 2.8rem; }
.btn-lg { padding: 1.05rem 4.2rem; font-size: 1.15rem; box-shadow: 0 0 26px rgba(235,130,5,.45); }

/* ---------- Inner pages ---------- */
.page-top { background: #000; padding: 170px var(--pad) 2.5rem; text-align: center; }
.page-top h1 { margin: 0; font-size: clamp(2.6rem, 4.4vw, 5.5rem); }
.app-row { background: #000; padding: clamp(2.5rem, 5vw, 5rem) var(--pad); }
.app-row + .app-row { border-top: 1px solid var(--line); }
.app-grid { display: grid; gap: 2.5rem; align-items: center; max-width: 1400px; margin-inline: auto; }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } .app-grid.flip > :first-child { order: 2; } }
.app-row h2 { font-size: clamp(2rem, 2.8vw, 3.4rem); margin-bottom: .3rem; }
.app-row .sub { color: var(--orange-hot); font-family: var(--head); font-size: 1.15rem; margin-bottom: 1.4rem; }
.app-row p { font-size: 1.12rem; max-width: 60ch; }
.app-imgs { display: grid; gap: 1rem; }
.app-imgs.two { grid-template-columns: 1fr 1fr; }
.app-imgs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #151515; }
.app-row.full .app-grid { grid-template-columns: 1fr; }
.app-row.full p { max-width: 95ch; }

.prose { background: #000; padding: 1rem var(--pad) 5rem; }
.prose .in { max-width: 860px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .5rem; color: var(--orange-hot); }
.prose ul { padding-left: 1.2rem; }

.faq { background: #000; padding: 1rem var(--pad) 5rem; }
.faq .in { max-width: 900px; margin-inline: auto; }
.faq .cap { font-family: var(--head); letter-spacing: .3em; text-transform: uppercase; font-size: .95rem; color: var(--orange-hot); margin-bottom: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative; font-family: var(--head); font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.9rem; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.6rem; color: #e8e8e8; max-width: 68ch; }

.contact { background: #000; padding: 1rem var(--pad) 6rem; text-align: center; }
.contact .cards { display: grid; gap: 1.25rem; max-width: 1100px; margin: 0 auto 3rem; }
@media (min-width: 800px) { .contact .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.5rem; }
.card h3 { font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--orange-hot); margin-bottom: .8rem; }
.card p { margin: 0; font-size: 1.25rem; }
.card a { color: #fff; text-decoration: none; word-break: break-word; }
.card a:hover { color: var(--orange-hot); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(0deg, var(--orange) 0%, var(--bg) 42%, var(--bg) 100%); text-align: center; padding: 1rem var(--pad) 2rem; }
.site-footer .sup { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-size: .95rem; }
.site-footer .sup img { width: clamp(240px, 26vw, 520px); height: auto; }
.site-footer .legal { margin-top: 3.5rem; font-size: .9rem; color: #f3e7d8; }
.site-footer .legal a { color: #fff; text-decoration: none; margin: 0 .5rem; }
.site-footer .legal a:hover { text-decoration: underline; }
.site-footer .legal div { margin-top: .5rem; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  
  * { transition: none !important; }
}
