/* =====================================================================
   PTG SOLAR - REFINED LOOK (2026-11-29)
   Loaded AFTER css/styles.css, and only takes effect on pages whose
   <body> has class="refined" (the homepage and the Solar Solutions pages
   for now). To roll it out to another page: add this stylesheet and the
   class there. To switch it off: remove the class from <body>.

   Direction: calm and spacious. Deep navy, ivory and one gold accent.
   Larger, tighter headings; generous white space; soft, consistent
   cards; pill buttons; a clean hero without the blueprint grid; real
   photos. Nothing here changes the content or the layout structure.
   ===================================================================== */

body.refined {
  --paper: #FBFAF7;
  --paper-dim: #F3F0E8;
  --line: #E8E3D6;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(6,15,28,0.04), 0 2px 10px -2px rgba(6,15,28,0.06);
  --shadow-md: 0 2px 4px rgba(6,15,28,0.04), 0 20px 44px -18px rgba(6,15,28,0.16);
  --shadow-lg: 0 4px 8px rgba(6,15,28,0.05), 0 34px 70px -28px rgba(6,15,28,0.32);
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

/* ---------- Type ---------- */
.refined h1 { letter-spacing: -0.03em; line-height: 1.04; font-weight: 700; }
.refined h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.025em; line-height: 1.1; font-weight: 600; }
.refined h3 { letter-spacing: -0.012em; }
.refined p { line-height: 1.7; }
.refined .eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; }

/* ---------- Rhythm: more air between sections ---------- */
.refined section { padding: 120px 0; }
.refined .section-head { max-width: 680px; margin-bottom: 64px; }
.refined .section-head p { font-size: 1.1rem; margin-top: 16px; }
@media (max-width: 760px) {
  .refined section { padding: 76px 0; }
  .refined .section-head { margin-bottom: 40px; }
}

/* ---------- Header ---------- */
.refined .site-header { background: rgba(251,250,247,0.84); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.refined .nav-links a { font-weight: 500; letter-spacing: 0.005em; }

/* ---------- Buttons ---------- */
.refined .btn { border-radius: 999px; padding: 16px 32px; font-weight: 600; letter-spacing: 0.005em; }
.refined .btn-primary { box-shadow: 0 10px 30px -8px rgba(245,185,60,0.55), inset 0 1px 0 rgba(255,255,255,0.35); }
.refined .btn-outline { border-width: 1.5px; }

/* ---------- Hero ---------- */
.refined h1, .refined h2 { text-wrap: balance; }
.refined .hero {
  padding: 100px 0 0;
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(245,185,60,0.17), transparent 62%),
    radial-gradient(800px 500px at -10% 110%, rgba(40,90,160,0.20), transparent 60%),
    linear-gradient(180deg, #050d19 0%, #07121f 100%);
}
.refined .hero::before, .refined .hero::after, .refined .hero-watermark { display: none; }
.refined .hero-inner { grid-template-columns: 1.22fr 0.78fr; gap: 64px; padding-bottom: 80px; align-items: center; }
.refined .hero-eyebrow { font-size: 0.76rem; letter-spacing: 0.22em; margin-bottom: 16px; }
.refined .slots-note {
  background: rgba(245,185,60,0.10); color: var(--amber-light);
  border: 1px solid rgba(245,185,60,0.38); padding: 7px 16px; margin-bottom: 20px;
  font-size: 0.74rem; letter-spacing: 0.06em;
}
.refined .hero h1 { font-size: clamp(2.5rem, 4.7vw, 4rem); margin-bottom: 22px; max-width: 15em; }
.refined .hero-lede { font-size: 1.15rem; line-height: 1.6; max-width: 33em; color: rgba(255,255,255,0.78); margin-bottom: 22px; }
.refined .hero-promise { color: rgba(255,255,255,0.82); margin-bottom: 30px; gap: 8px 24px; }

/* The two main buttons: bigger, bolder, impossible to miss. */
.refined .hero-ctas { gap: 16px; }
.refined .hero .btn { padding: 19px 30px; font-size: 1rem; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.refined .hero .btn-primary { padding: 20px 32px; box-shadow: 0 16px 44px -8px rgba(245,185,60,0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
.refined .hero .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 52px -8px rgba(245,185,60,0.7), inset 0 1px 0 rgba(255,255,255,0.4); }
.refined .hero .btn-outline-light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 12px 34px -12px rgba(255,255,255,0.45); }
.refined .hero .btn-outline-light:hover { background: #F3F0E8; border-color: #F3F0E8; transform: translateY(-3px); }
.refined .hero-note { margin-top: 20px; font-size: 0.92rem; color: rgba(255,255,255,0.58); letter-spacing: 0.01em; }

.refined .spec-panel {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.11);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: 0 40px 90px -36px rgba(0,0,0,0.7);
}
.refined .spec-panel-title { border-bottom: 1px solid rgba(255,255,255,0.12); letter-spacing: 0.16em; }
.refined .spec-row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }

.refined .audience-pick { background: #0a1626; border-top: 1px solid rgba(255,255,255,0.08); }
.refined .audience-card { padding: 44px 40px 46px; }
.refined .audience-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.refined .audience-card p { font-size: 1rem; color: rgba(255,255,255,0.7); }
.refined .audience-more { padding-bottom: 30px; }

@media (max-width: 960px) {
  .refined .hero { padding-top: 104px; }
  .refined .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-bottom: 64px; }
}
@media (max-width: 560px) {
  .refined .hero .btn, .refined .hero .btn-primary { width: 100%; justify-content: center; padding: 20px 24px; }
  .refined .audience-card { padding: 32px 24px 34px; }
}

/* ---------- Interior page hero (Solar Solutions) ---------- */
.refined .page-hero { padding: 104px 0 84px; background: radial-gradient(900px 420px at 90% -10%, rgba(245,185,60,0.16), transparent 62%), linear-gradient(180deg, #050d19, #07121f); }
.refined .page-hero::before, .refined .page-hero::after { display: none; }
.refined .page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 15em; letter-spacing: -0.03em; }
.refined .page-hero p.lede { font-size: 1.15rem; max-width: 36em; }

/* ---------- Cards ---------- */
.refined .hide-card, .refined .team-card, .refined .solution-card, .refined .service-card,
.refined .trust-card, .refined .review-card, .refined .mv-card.mission {
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.refined .hide-card { padding: 34px 30px; }
.refined .team-card { padding: 30px 26px; }
.refined .solution-card { padding: 44px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.refined .hide-card, .refined .team-card, .refined .service-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.refined .hide-card:hover, .refined .team-card:hover, .refined .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,185,60,0.55); }
.refined .hide-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.refined .hide-grid { gap: 22px; }

/* ---------- Offer + form ---------- */
.refined .offer-wrap { gap: 44px; }
.refined .offer-box { border-radius: var(--radius-lg); padding: 52px 44px; box-shadow: var(--shadow-lg); }
.refined .lead-form { border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: var(--shadow-md); border-color: var(--line); }
.refined .lead-form input[type="text"], .refined .lead-form input[type="tel"], .refined .lead-form input[type="email"],
.refined .lead-form input[type="number"], .refined .lead-form select { border-radius: 12px; padding: 13px 14px; background: #fff; }
.refined .lead-form .lead-submit { padding: 19px 24px; font-size: 1.05rem; }
@media (max-width: 560px) {
  .refined .offer-box { padding: 36px 26px; }
  .refined .lead-form { padding: 32px 24px; }
}

.refined .ps-block { border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); padding: 32px 36px; box-shadow: var(--shadow-sm); }
.refined .compare-wrap { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.refined .cta-banner { background: radial-gradient(900px 420px at 50% -20%, rgba(245,185,60,0.16), transparent 62%), #050d19; }
.refined .cta-banner h2 { font-size: clamp(2rem, 3.8vw, 3rem); }

/* ---------- Homepage top: "Everything you need to go solar" (2026-11-30) ---------- */
.refined .hero-pillars { padding: 92px 0 100px; text-align: center; }
.refined .hp-head { max-width: 860px; margin: 0 auto 48px; }
.refined .hero-pillars .hero-eyebrow { margin-bottom: 20px; }
.refined .hero-pillars h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); max-width: 16em; margin: 0 auto 22px; }
.refined .hero-pillars .hero-lede { margin: 0 auto; max-width: 36em; text-wrap: balance; }
.hero-pillars .pillar-grid { text-align: left; gap: 20px; }
.hero-pillars .pillar-card { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.12); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.hero-pillars .pillar-card:hover { background: rgba(255,255,255,0.075); border-color: rgba(245,185,60,0.6); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.hero-pillars .pillar-icon { background: rgba(245,185,60,0.14); color: var(--amber); }
.hero-pillars .pillar-num { color: rgba(255,255,255,0.4); }
.hero-pillars .pillar-tag { color: var(--amber); }
.hero-pillars .pillar-card h3 { color: #fff; }
.hero-pillars .pillar-card p { color: rgba(255,255,255,0.7); }
.hero-pillars .pillar-go { color: var(--amber-light); }
.hero-pillars .pillar-card:hover .pillar-go { color: #fff; }
/* Make the four destinations (Learn, Calculator, Community polls, Solutions) the stars of the card (2026-11-30):
   the name is now a large white heading, the tagline sits under it, the icon is a solid gold tile and the
   link is a gold pill button. Gold is kept to the icon and the button so the cards stay calm. */
.refined .hero-pillars { padding-top: 70px; padding-bottom: 84px; }
.refined .hero-pillars .hp-head { margin-bottom: 36px; }
.refined .hero-pillars h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); margin-bottom: 16px; }
.hero-pillars .pillar-card { padding: 26px 24px 24px; background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045)); border: 1px solid rgba(245,185,60,0.30); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.hero-pillars .pillar-card::before { opacity: 1; height: 3px; }
.hero-pillars .pillar-card:hover { background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07)); border-color: var(--amber); transform: translateY(-6px); box-shadow: 0 34px 64px -28px rgba(0,0,0,0.9), 0 0 0 1px rgba(245,185,60,0.25); }
.hero-pillars .pillar-top { margin-bottom: 16px; }
.hero-pillars .pillar-icon { width: 58px; height: 58px; border-radius: 18px; background: var(--gradient-gold); color: var(--ink); box-shadow: 0 10px 26px -8px rgba(245,185,60,0.55); }
.hero-pillars .pillar-icon svg { width: 28px; height: 28px; }
.hero-pillars .pillar-num { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.hero-pillars .pillar-tag { font-family: var(--font-display); font-size: clamp(1.45rem, 1.85vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; text-transform: none; line-height: 1.05; color: #fff; margin-bottom: 10px; }
.hero-pillars .pillar-card h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.35; letter-spacing: 0; color: rgba(255,255,255,0.92); margin-bottom: 10px; }
.hero-pillars .pillar-card p { font-size: 0.9rem; line-height: 1.55; color: rgba(255,255,255,0.68); margin-bottom: 18px; }
.hero-pillars .pillar-go { align-self: flex-start; margin-top: auto; padding: 12px 20px; border-radius: 999px; background: var(--gradient-gold); color: var(--ink); font-weight: 700; font-size: 0.92rem; box-shadow: 0 10px 24px -10px rgba(245,185,60,0.6); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.hero-pillars .pillar-card:hover .pillar-go { color: var(--ink); transform: translateX(3px); box-shadow: 0 14px 30px -10px rgba(245,185,60,0.75); }
@media (max-width: 760px) { .refined .hero-pillars { padding: 92px 0 72px; } .refined .hp-head { margin-bottom: 44px; } }

/* The former hero, now the second block: starts with the visitor's own bill. */
.refined .intro-offer { background: var(--paper); padding: 112px 0; }
.intro-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: center; }
.intro-copy h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); max-width: 14em; margin-bottom: 22px; }
.intro-lede { font-size: 1.15rem; line-height: 1.7; max-width: 34em; margin: 0 0 22px; color: var(--slate); }
.intro-promise { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 32px; padding: 0; list-style: none; color: var(--ink); font-size: 0.98rem; font-weight: 500; }
.intro-promise li::before { content: "\2713"; color: var(--success); font-weight: 700; margin-right: 8px; }
.intro-note { margin-top: 18px; font-size: 0.92rem; color: var(--slate-light); }
.intro-links { margin-top: 14px; font-size: 0.95rem; color: var(--slate); }
.intro-links a { color: var(--ink); font-weight: 600; border-bottom: 1px solid rgba(217,138,30,0.6); }
.intro-links a:hover { color: var(--amber-dark); }
.intro-offer .hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.intro-offer .btn { padding: 19px 32px; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.intro-offer .btn-primary { padding: 20px 34px; }
.refined .intro-offer .spec-panel { background: var(--ink); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-lg); }
@media (max-width: 960px) { .intro-inner { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) { .refined .intro-offer { padding: 76px 0; } .intro-offer .btn { width: 100%; justify-content: center; white-space: normal; } }

/* ---------- Free-design form: "What matters most to you?" (2026-11-30) ---------- */
.lead-form .goal-field { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form .goal-field legend { grid-column: 1 / -1; font-size: 0.85rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }
.lead-form .goal-option { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.lead-form .goal-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lead-form .goal-option span { display: block; height: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.lead-form .goal-option strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 2px; }
.lead-form .goal-option small { display: block; font-size: 0.8rem; line-height: 1.4; color: var(--slate); }
.lead-form .goal-option:hover span { border-color: rgba(245,185,60,0.7); }
.lead-form .goal-option input:checked + span { border-color: var(--amber-dark); background: rgba(245,185,60,0.12); box-shadow: 0 0 0 1px var(--amber-dark) inset; }
.lead-form .goal-option input:focus-visible + span { outline: 3px solid rgba(245,185,60,0.5); outline-offset: 2px; }
@media (max-width: 560px) { .lead-form .goal-field { grid-template-columns: 1fr; } }

/* ---------- Our work (photo gallery) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 12vw, 158px); gap: 14px; }
.work-item { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius-md, 18px); background: #e9e4d8; box-shadow: var(--shadow-sm); }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.work-item:hover img { transform: scale(1.045); }
.work-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 42px 18px 14px;
  background: linear-gradient(180deg, rgba(6,15,28,0), rgba(6,15,28,0.74));
  color: #fff; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
}
.work-item.w1 { grid-column: span 4; grid-row: span 2; }
.work-item.w2 { grid-column: span 2; grid-row: span 2; }
.work-item.w3 { grid-column: span 3; grid-row: span 2; }
.work-item.w4 { grid-column: span 3; grid-row: span 2; }
.work-item.w5, .work-item.w6, .work-item.w7 { grid-column: span 2; grid-row: span 2; }
.work-item.w2 img, .work-item.w5 img { object-position: center 40%; }
/* Installation-day photos shown first (2026-11-30): a row of five, then the equipment gallery below. */
.work-front { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 14px; }
.work-front .work-item { aspect-ratio: 3 / 4; }
.work-front .work-item.f2 img, .work-front .work-item.f3 img { object-position: center 35%; }
@media (max-width: 960px) { .work-front { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .work-front { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
  .work-front .work-item.f5 { grid-column: span 2; aspect-ratio: 16 / 10; }
}
/* Five-photo equipment gallery layout (2026-11-30): row 1 = 2 + 4 columns, row 2 = 2 + 2 + 2. */
.work-item.g1 { grid-column: span 2; grid-row: span 2; }
.work-item.g2 { grid-column: span 4; grid-row: span 2; }
.work-item.g3, .work-item.g4, .work-item.g5 { grid-column: span 2; grid-row: span 2; }
.work-item.g1 img, .work-item.g3 img { object-position: center 40%; }
@media (max-width: 760px) {
  .work-grid { grid-auto-flow: dense; }
  .work-grid .work-item.g2 { grid-column: span 2 !important; }
}
/* Photo framing (2026-11-30): keep the subject in view when a tile crops the picture. */
.work-front .work-item.f1 img { object-position: 50% 45%; }
.work-front .work-item.f2 img { object-position: 28% 50%; }
.work-front .work-item.f3 img { object-position: 42% 50%; }
.work-front .work-item.f4 img { object-position: 50% 55%; }
.work-front .work-item.f5 img { object-position: 50% 50%; }
.work-grid .work-item.g1 img { object-position: 50% 24%; }
.work-grid .work-item.g2 img { object-position: 50% 66%; }
.work-grid .work-item.g3 img { object-position: 50% 30%; }
.work-grid .work-item.g4 img { object-position: 50% 62%; }
.work-grid .work-item.g5 img { object-position: 50% 58%; }
.work-item { isolation: isolate; }
.work-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 -60px 70px -50px rgba(6,15,28,0.35); z-index: 1; }
.work-item figcaption { z-index: 2; }
.work-note { margin-top: 22px; font-size: 0.9rem; color: var(--slate-light); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .work-grid .work-item { grid-column: span 1 !important; grid-row: span 2 !important; }
  .work-item.w1, .work-item.w6, .work-item.w7 { grid-column: span 2 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .work-item img, .refined .hide-card, .refined .team-card, .refined .service-card { transition: none !important; }
}
