/* =================================================================
   OCEANIC HOME SOLAR — SITE-WIDE STYLES
   Design system per brand guide:
   Orange #e94e3a · Navy #1a1a1a–#222 · Solar Yellow #FFD700 · White
   Headlines: Montserrat (700–900) · Body: Roboto (400/600)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --orange: #e94e3a;
  --orange-dark: #cf3f2c;
  --navy: #1a1a1a;
  --navy-2: #222222;
  --yellow: #ffd700;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5a5f66;
  --line: #e7e9ec;
  --bg-soft: #f6f7f9;
  --bg-soft-2: #eef1f4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(16,24,40,.06);
  --shadow: 0 12px 34px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.16);
  --maxw: 1180px;
  --head: 'Montserrat', system-ui, Arial, sans-serif;
  --body: 'Roboto', system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--head); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-weight: 900; font-size: clamp(32px, 5.2vw, 56px); letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-weight: 800; font-size: clamp(19px, 2vw, 24px); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--head); font-weight: 800; font-size: 15px; letter-spacing: .01em;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(233,78,58,.32); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: #cfd3d8; font-size: 13.5px; font-weight: 500;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar .tb-areas { color: var(--yellow); font-weight: 700; flex: 1; }
.topbar .tb-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; flex: 1; justify-content: flex-end; }
.topbar .tb-logo { height: 28px; width: auto; flex: 0 0 auto; }
@media (max-width: 820px){ .topbar .tb-logo { height: 22px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand .brand-txt { font-family: var(--head); font-weight: 900; color: var(--navy); font-size: 18px; line-height: 1; }
.brand .brand-txt small { display: block; font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: .06em; margin-top: 3px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); font-weight: 700; font-family: var(--head); font-size: 15px; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(16,18,20,.92) 0%, rgba(16,18,20,.72) 42%, rgba(16,18,20,.35) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(64px, 11vw, 132px) 0; max-width: 720px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,215,0,.15);
  border: 1px solid rgba(255,215,0,.5); color: var(--yellow); font-family: var(--head); font-weight: 800;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #e8eaed; max-width: 600px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #f1f2f4; }
.hero-points .dot { color: var(--yellow); font-size: 18px; }

/* ---------- Stat bar ---------- */
.statbar { background: var(--orange); color: #fff; }
.statbar .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 26px 22px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--head); font-weight: 900; font-size: clamp(26px,3.4vw,38px); line-height: 1; }
.stat span { font-size: 13.5px; font-weight: 600; opacity: .95; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.28); }

/* ---------- Sections ---------- */
.section { padding: clamp(54px, 8vw, 92px) 0; }
.section.alt { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #e7e9ec; }
.section.navy h2, .section.navy h3 { color: #fff; }
.sec-head { max-width: 720px; margin: 0 auto clamp(34px,5vw,54px); text-align: center; }
.sec-head .kicker { display: inline-block; font-family: var(--head); font-weight: 800; color: var(--orange);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section.navy .sec-head .kicker { color: var(--yellow); }
.sec-head p { color: var(--muted); font-size: 18px; }
.section.navy .sec-head p { color: #b9bdc4; }
.sec-head.left { margin-left: 0; text-align: left; }

/* ---------- Cards / service grid ---------- */
.grid { display: grid; gap: 22px; }
.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: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(233,78,58,.1); color: var(--orange); margin-bottom: 18px; }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { font-family: var(--head); font-weight: 800; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.card .more:hover { gap: 11px; }

/* image card for areas/projects */
.imgcard { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); background: var(--navy); }
.imgcard img { height: 100%; width: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s ease; }
.imgcard:hover img { transform: scale(1.05); }
.imgcard .cap { position: absolute; inset: auto 0 0 0; padding: 22px; z-index: 2; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.imgcard .cap .rgn { font-family: var(--head); font-weight: 800; color: var(--yellow); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.imgcard .cap h3 { color: #fff; margin: 4px 0 8px; }
.imgcard .cap a { color: #fff; font-weight: 700; font-size: 14px; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px,5vw,60px); align-items: center; }
.split.rev > div:first-child { order: 2; }
.split img.media { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { font-family: var(--head); font-weight: 900; font-size: 40px; color: rgba(233,78,58,.22); line-height: 1; }
.step h3 { margin: 6px 0 8px; font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.section.navy .review { background: #262626; border-color: #333; }
.review .stars { color: var(--yellow); font-size: 17px; letter-spacing: 2px; margin-bottom: 12px; }
.review p { font-size: 15.5px; color: #444; font-style: italic; }
.section.navy .review p { color: #d7dade; }
.review .who { font-family: var(--head); font-weight: 800; color: var(--navy); font-size: 15px; margin-top: 12px; font-style: normal; }
.section.navy .review .who { color: #fff; }

/* ---------- Trust logos ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; }
.trust img { height: 64px; width: auto; opacity: .9; filter: grayscale(.1); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange) 0%, #f0683f 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff; opacity: .95; font-size: 18px; max-width: 620px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--orange); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background: #fff7f5; }

/* ---------- Form / GHL embed ---------- */
.formwrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; }
.formwrap iframe { width: 100%; border: 0; border-radius: 10px; display: block; min-height: 640px; }
.formcard-head { text-align: center; padding: 22px 22px 4px; }
.formcard-head h3 { margin-bottom: 4px; }
.formcard-head p { color: var(--muted); font-size: 14.5px; }

/* hero with side form */
.hero.has-form .hero-inner { max-width: var(--maxw); display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero.has-form .hero-copy { max-width: 620px; }
@media (max-width: 920px){ .hero.has-form .hero-inner { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 800; color: var(--navy); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 26px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }

/* ---------- Breadcrumb / page hero ---------- */
.pagehero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.pagehero::after { content:""; position:absolute; right:-80px; top:-80px; width:320px; height:320px; border-radius:50%; background: radial-gradient(circle, rgba(255,215,0,.18), transparent 70%); }
.pagehero .container { position: relative; z-index: 2; padding: clamp(48px,7vw,84px) 22px; }
.pagehero .crumb { font-size: 13.5px; color: #b9bdc4; margin-bottom: 14px; font-weight: 500; }
.pagehero .crumb a { color: var(--yellow); }
.pagehero h1 { color: #fff; max-width: 820px; }
.pagehero p { color: #d3d6da; max-width: 660px; font-size: 18px; margin-bottom: 0; }
.pagehero .hero-actions { margin-top: 26px; }

/* prose */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.callout { background: #fff7f5; border-left: 4px solid var(--orange); border-radius: 8px; padding: 18px 22px; margin: 22px 0; }
.callout strong { color: var(--navy); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; font-family: var(--head); color: var(--navy); }
.chip:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post .body { padding: 22px; }
.post .tag { font-family: var(--head); font-weight: 800; color: var(--orange); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.post h3 { font-size: 19px; margin: 8px 0 8px; }
.post p { color: var(--muted); font-size: 15px; }
.post .meta { color: #98a0a8; font-size: 13px; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aeb3ba; font-size: 15px; }
.site-footer .container { padding: 64px 22px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer img.flogo { height: 70px; margin-bottom: 16px; }
.site-footer p { color: #aeb3ba; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c4c9cf; }
.site-footer a:hover { color: var(--yellow); }
.foot-contact a { display: inline-flex; gap: 8px; align-items: center; color: #fff; font-weight: 700; }
.foot-bottom { border-top: 1px solid #333; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: #8a9098; }
.foot-bottom a { color: #8a9098; }

/* ---------- Mobile ---------- */
@media (max-width: 980px){
  .grid-3, .grid-4, .steps, .reviews, .posts { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px){
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 16px 22px 24px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .split, .split.rev > div:first-child { grid-template-columns: 1fr; order: 0; }
  .statbar .container { grid-template-columns: repeat(2,1fr); gap: 22px 12px; }
  .stat:nth-child(3) { border-left: 0; }
  .topbar .tb-areas { display: none; }
}
@media (max-width: 560px){
  .grid-3, .grid-4, .steps, .reviews, .posts, .grid-2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero-points { gap: 10px 18px; }
}

/* 3-up steps variant (e.g. homepage "3 steps to energy independence") */
.steps.three { grid-template-columns: repeat(3,1fr); }
@media (max-width: 980px){ .steps.three { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .steps.three { grid-template-columns: 1fr; } }
