/* ===== Design tokens =====
   Subject: rooftop solar for Indian homeowners.
   Signature: the sun's daily arc — used as a divider motif and to plot
   the "how it works" journey (morning design -> midday install -> evening savings).
*/
:root{
  --navy: #0E1B2E;
  --navy-2: #16273F;
  --amber: #FFB84D;
  --amber-2: #FF9A3D;
  --green: #1B9C6E;
  --bg: #F4F6F8;
  --paper: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #5B6B7C;
  --line: #E3E8ED;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(14,27,46,.25);
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} *{animation-duration:.001ms !important; transition-duration:.001ms !important;} }

body{
  margin:0;
  font-family:var(--body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}
h1,h2,h3,h4{ font-family:var(--display); font-weight:600; letter-spacing:-.01em; margin:0 0 .5em; color:var(--navy); }
h1{ font-size:clamp(2.1rem, 4vw, 3.4rem); line-height:1.05; }
h2{ font-size:clamp(1.6rem, 2.6vw, 2.3rem); }
h3{ font-size:1.2rem; }
p{ margin:0 0 1em; color:var(--ink-soft); }
a{ color:inherit; }
.container{ max-width:1160px; margin:0 auto; padding:0 24px; }
.eyebrow{ font-family:var(--mono); text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; color:var(--amber-2); font-weight:600; }
.section{ padding:72px 0; }
.section-tight{ padding:40px 0; }
.figure{ font-family:var(--mono); font-variant-numeric:tabular-nums; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding:13px 26px; font-weight:600; font-size:.95rem; cursor:pointer; border:1px solid transparent; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active{ transform:translateY(1px); }
.btn-amber{ background:linear-gradient(135deg, var(--amber), var(--amber-2)); color:var(--navy); box-shadow:0 8px 20px -8px rgba(255,154,61,.6); }
.btn-amber:hover{ box-shadow:0 10px 26px -8px rgba(255,154,61,.75); }
.btn-outline{ background:transparent; border-color:rgba(255,255,255,.35); color:#fff; }
.btn-outline:hover{ background:rgba(255,255,255,.08); }
.btn-navy{ background:var(--navy); color:#fff; }
.btn-block{ width:100%; }
.btn:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

/* Header */
.site-header{ position:sticky; top:0; z-index:40; background:rgba(14,27,46,.96); backdrop-filter:blur(6px); color:#fff; }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; min-height:112px; height:auto; padding-top:10px; padding-bottom:10px; }
.brand{ display:flex; align-items:center; gap:12px; font-family:var(--display); font-weight:700; font-size:1.65rem; text-decoration:none; color:#fff; white-space:nowrap; }
.brand .dot{ width:10px; height:10px; border-radius:50%; background:var(--amber); box-shadow:0 0 0 4px rgba(255,184,77,.25); }
.brand-logo{ height:76px; width:auto; max-width:96px; object-fit:contain; display:block; flex:0 0 auto; }
.brand-name{ display:inline-block; letter-spacing:-.02em; }
.nav{ display:flex; align-items:center; gap:26px; }
.nav a{ text-decoration:none; color:rgba(255,255,255,.82); font-size:.92rem; font-weight:500; }
.nav a:hover{ color:#fff; }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.lang-toggle{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:36px; padding:0 10px; border-radius:999px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); color:#fff; font-size:.85rem; font-weight:600; cursor:pointer; transition:background .15s ease, border-color .15s ease; }
.lang-toggle:hover{ background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.55); }
.phone-link{ display:flex; align-items:center; gap:8px; color:#fff; text-decoration:none; font-family:var(--mono); font-size:.9rem; }
.menu-toggle{ display:none; background:none; border:0; color:#fff; font-size:1.5rem; cursor:pointer; }

/* Hero */
.hero{ position:relative; background:radial-gradient(120% 140% at 15% -10%, #1c2f4d 0%, var(--navy) 55%, var(--navy) 100%); color:#fff; overflow:hidden; padding:64px 0 0; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.hero-copy .eyebrow{ color:var(--amber); }
.hero h1{ color:#fff; }
.hero h1 em{ font-style:normal; color:var(--amber); }
.hero p.lead{ color:rgba(255,255,255,.78); font-size:1.08rem; max-width:46ch; }
.hero-actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:32px; margin-top:44px; flex-wrap:wrap; }
.hero-stats div b{ display:block; font-family:var(--mono); font-size:1.5rem; color:var(--amber); }
.hero-stats div span{ font-size:.8rem; color:rgba(255,255,255,.65); }

/* Sun-to-panel animated graphic (hero visual) */
.sun-panel-wrap{ display:flex; align-items:center; justify-content:center; }
.sun-panel{ width:100%; max-width:340px; height:auto; display:block; }
.hero-sun-panel{ justify-content:center; margin:20px auto 26px; width:100%; }
.hero-sun-panel .sun-panel{ max-width:460px; }
.sp-glow{ animation:sp-pulse-glow 3.2s ease-in-out infinite; transform-origin:210px 90px; }
.sp-sun{ animation:sp-pulse-sun 3.2s ease-in-out infinite; transform-origin:210px 90px; }
.sp-rays path{ animation:sp-flow 1.1s linear infinite; }
.sp-rays path:nth-child(2){ animation-delay:.15s; }
.sp-rays path:nth-child(3){ animation-delay:.3s; }
.sp-rays path:nth-child(4){ animation-delay:.45s; }
.sp-frame{ filter:drop-shadow(0 12px 24px rgba(0,0,0,.25)); }
.sp-cell{ animation:sp-cell-glow 3.2s ease-in-out infinite; }
.sp-cell-amber:nth-child(1), .sp-cell-green:nth-child(1){ animation-delay:0s; }
.sp-cell-amber:nth-child(2), .sp-cell-green:nth-child(2){ animation-delay:.15s; }
.sp-cell-amber:nth-child(3), .sp-cell-green:nth-child(3){ animation-delay:.3s; }
.sp-cell-amber:nth-child(4), .sp-cell-green:nth-child(4){ animation-delay:.45s; }

@keyframes sp-pulse-glow{ 0%,100%{ opacity:.7; transform:scale(1); } 50%{ opacity:1; transform:scale(1.12); } }
@keyframes sp-pulse-sun{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.06); } }
@keyframes sp-flow{ to{ stroke-dashoffset:-24; } }
@keyframes sp-cell-glow{ 0%,100%{ opacity:.75; } 50%{ opacity:1; } }

/* Skyline + sun arc (signature element) */
.skyline{ position:relative; height:64px; margin-top:56px; }
.skyline svg{ width:100%; height:100%; display:block; }
.sun-arc-wrap{ position:relative; }
.sun-arc{ width:100%; height:auto; display:block; }
.sun-arc .path{ fill:none; stroke:rgba(255,255,255,.18); stroke-width:1.5; stroke-dasharray:2 6; }
.sun-arc .sun{ fill:var(--amber); }
.sun-arc .tick text{ font-family:var(--mono); font-size:11px; fill:rgba(255,255,255,.55); }

/* Calculator card */
.calc-card{ background:var(--paper); color:var(--ink); border-radius:var(--radius); box-shadow:var(--shadow); padding:28px; margin-bottom:-90px; position:relative; z-index:2; }
.calc-card h3{ margin-bottom:4px; }
.calc-card .sub{ color:var(--ink-soft); font-size:.88rem; margin-bottom:18px; }
.field{ margin-bottom:14px; }
.field label{ display:block; font-size:.82rem; font-weight:600; margin-bottom:6px; color:var(--navy); }
.field input, .field select{ width:100%; padding:11px 12px; border-radius:var(--radius-sm); border:1px solid var(--line); font-family:var(--body); font-size:.95rem; background:#fbfcfd; }
.field textarea{ font-family:var(--body); }
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--amber); outline-offset:1px; border-color:var(--amber); }
.calc-result{ margin-top:18px; padding:16px; border-radius:var(--radius-sm); background:#F2FBF7; border:1px solid #cdeee0; display:none; }
.calc-result.show{ display:block; }
.calc-result .row{ display:flex; justify-content:space-between; padding:6px 0; font-size:.92rem; border-bottom:1px dashed #d7ece3; }
.calc-result .row:last-child{ border-bottom:none; }
.calc-result .row b{ font-family:var(--mono); color:var(--green); }

/* Sections */
.pad-top-arc{ padding-top:130px; padding-bottom:36px; }
.trust-strip{ background:var(--paper); border-bottom:1px solid var(--line); padding:22px 0; }
.trust-strip .container{ display:flex; gap:36px; flex-wrap:wrap; justify-content:space-between; align-items:center; }
.trust-item{ display:flex; align-items:center; gap:10px; color:var(--ink-soft); font-size:.85rem; }
.trust-item b{ color:var(--navy); font-family:var(--mono); }

.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.card h3{ margin-bottom:8px; }

/* Journey (sun-arc timeline) */
.journey{ position:relative; padding-top:20px; }
.journey-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:28px; }
.journey-step{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:22px; position:relative; }
.journey-step .time{ font-family:var(--mono); font-size:.75rem; color:var(--amber-2); display:block; margin-bottom:10px; }

/* Testimonials */
.testimonial{ background:var(--navy); color:#fff; border-radius:var(--radius); padding:26px; }
.testimonial .stars{ color:var(--amber); letter-spacing:2px; margin-bottom:10px; }
.testimonial .quote{ color:rgba(255,255,255,.88); font-size:.95rem; }
.testimonial .who{ margin-top:14px; font-family:var(--mono); font-size:.8rem; color:rgba(255,255,255,.6); }

/* Customer photo gallery */
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gallery-item{ margin:0; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.gallery-item img{ display:block; width:100%; height:200px; object-fit:cover; background:linear-gradient(135deg, var(--navy), var(--navy-2)); }
.gallery-item figcaption{ display:flex; justify-content:space-between; align-items:center; padding:12px 14px; gap:10px; }
.gallery-caption{ font-weight:600; color:var(--navy); font-size:.9rem; }
.gallery-city{ font-family:var(--mono); font-size:.75rem; color:var(--ink-soft); white-space:nowrap; }
.gallery-item[draggable="true"]{ cursor:grab; }
.gallery-item[draggable="true"]:active{ cursor:grabbing; }
.gallery-item.dragging{ opacity:.5; border-color:var(--amber-2); box-shadow:var(--shadow); }

/* Projects grid — filterable customer installations, with click-to-expand modal */
.project-filters{ display:flex; flex-wrap:wrap; gap:10px; }
.project-filter-btn{
  font-family:var(--body); font-weight:600; font-size:.85rem;
  padding:9px 20px; border-radius:999px; border:1px solid var(--line);
  background:var(--paper); color:var(--ink-soft); cursor:pointer;
  transition:border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.project-filter-btn:hover{ border-color:var(--green); color:var(--green); transform:translateY(-1px); }
.project-filter-btn.active{ background:var(--green); border-color:var(--green); color:#fff; }

.project-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.project-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; cursor:pointer; transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.project-card:hover, .project-card:focus-visible{ transform:translateY(-6px); box-shadow:var(--shadow); border-color:rgba(27,156,110,.3); outline:none; }
.project-card.is-hidden{ display:none; }

.project-thumb{ position:relative; height:220px; background:linear-gradient(135deg, var(--navy), var(--navy-2)); overflow:hidden; }
.project-thumb img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.project-card:hover .project-thumb img{ transform:scale(1.06); }

.project-category-badge{
  position:absolute; top:14px; left:14px; background:rgba(255,255,255,.92); color:var(--navy);
  font-size:.72rem; font-weight:700; padding:6px 14px; border-radius:999px; backdrop-filter:blur(4px);
  transition:background .3s ease, color .3s ease;
}
.project-card:hover .project-category-badge{ background:var(--green); color:#fff; }

.project-sun-badge{
  position:absolute; top:14px; right:14px; width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(255,255,255,.92); font-size:1rem; backdrop-filter:blur(4px);
  transition:transform .3s ease;
}
.project-card:hover .project-sun-badge{ transform:rotate(45deg); }

.project-view-cta{
  position:absolute; left:14px; right:14px; bottom:14px; background:rgba(27,156,110,.95); color:#fff;
  font-size:.78rem; font-weight:700; padding:8px 14px; border-radius:999px; text-align:center;
  opacity:0; transform:translateY(8px); transition:opacity .3s ease, transform .3s ease;
}
.project-card:hover .project-view-cta{ opacity:1; transform:translateY(0); }

.project-body{ padding:20px; }
.project-body h3{ font-size:1.05rem; margin:0 0 8px; color:var(--navy); }
.project-card:hover .project-body h3{ color:var(--green); }
.project-meta{ margin:0 0 4px; font-size:.85rem; color:var(--ink-soft); }
.project-link{ display:inline-block; margin-top:10px; font-weight:600; font-size:.85rem; color:var(--green); }
.project-card:hover .project-link{ color:var(--amber-2); }

.project-empty{ padding:48px 0; text-align:center; color:var(--ink-soft); }

.project-modal-overlay{
  position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center;
  background:rgba(14,27,46,.72); padding:20px; backdrop-filter:blur(3px);
}
.project-modal-overlay[hidden]{ display:none; }
.project-modal{
  position:relative; width:100%; max-width:720px; max-height:90vh; overflow:auto;
  background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow);
}
.project-modal-close{
  position:absolute; top:14px; right:14px; width:38px; height:38px; border:none; border-radius:50%;
  background:rgba(14,27,46,.7); color:#fff; font-size:1.3rem; cursor:pointer; z-index:2;
  transition:background .2s ease, transform .2s ease;
}
.project-modal-close:hover{ background:#B3273D; transform:rotate(90deg); }
.project-modal img{ display:block; width:100%; max-height:60vh; object-fit:contain; background:var(--bg); }
.project-modal-body{ padding:24px; }
.project-modal-category{ font-family:var(--mono); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; color:var(--amber-2); font-weight:700; margin:0; }
.project-modal-body h3{ margin:8px 0; font-size:1.4rem; }
.project-modal-meta{ margin:2px 0; color:var(--ink-soft); }

/* Live "Estimate Your Solar Savings" calculator */
.solar-calc-section{ background:var(--navy); padding:88px 0; }
.solar-calc-card{ background:var(--paper); border-radius:24px; box-shadow:var(--shadow); padding:32px; }
.solar-calc-heading{ max-width:60ch; margin:0 auto; text-align:center; }
.solar-calc-heading h2{ margin-top:10px; color:var(--ink); }
.solar-calc-heading p{ margin-top:14px; color:var(--ink-soft); }

.solar-calc-grid{ margin-top:44px; display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:start; }
.solar-calc-left{ display:flex; flex-direction:column; }
.solar-calc-left label{ text-align:center; font-weight:600; color:var(--ink); font-size:1.05rem; }

.solar-calc-input-wrap{
  margin-top:18px; display:flex; align-items:center; border:1px solid var(--line); border-radius:16px;
  background:var(--bg); overflow:hidden; transition:border-color .2s ease, box-shadow .2s ease;
}
.solar-calc-input-wrap:focus-within{ border-color:var(--green); box-shadow:0 0 0 3px rgba(27,156,110,.15); }
.solar-calc-input-wrap span{ padding:0 18px; font-size:1.2rem; color:var(--ink-soft); }
.solar-calc-input-wrap input{
  flex:1; border:none; background:transparent; padding:18px 10px; font-size:1.2rem; font-weight:600;
  color:var(--ink); outline:none; font-family:var(--mono);
}
.solar-calc-hint{ margin-top:10px; text-align:center; font-size:.85rem; color:var(--ink-soft); }

.solar-calc-reset{
  margin:18px auto 0; background:none; border:none; font-weight:700; color:var(--green); cursor:pointer;
  transition:color .2s ease, transform .2s ease;
}
.solar-calc-reset:hover{ color:var(--amber-2); transform:translateY(-1px); }

.solar-calc-assumptions{ margin:28px auto 0; max-width:360px; background:var(--bg); border-radius:16px; padding:18px 20px; }
.solar-calc-assumptions p{ font-weight:700; font-size:.9rem; color:var(--ink); margin:0; }
.solar-calc-assumptions ul{ list-style:none; margin:10px 0 0; padding:0; display:grid; gap:6px; }
.solar-calc-assumptions li{ font-size:.85rem; color:var(--ink-soft); }
.solar-calc-assumptions li::before{ content:"• "; color:var(--green); }

.solar-calc-right{ display:grid; gap:16px; grid-template-columns:1fr 1fr; }
.stat-tile{ border-radius:22px; padding:26px; text-align:center; transition:transform .3s ease, box-shadow .3s ease; }
.stat-tile:hover{ transform:translateY(-3px); }
.stat-tile p{ margin:0; font-size:.85rem; color:var(--ink-soft); }
.stat-tile b{ display:block; margin-top:8px; font-size:2rem; font-family:var(--mono); }
.stat-tile-green{ background:#EAFAF3; }
.stat-tile-green b{ color:var(--green); }
.stat-tile-green:hover{ box-shadow:0 14px 30px -14px rgba(27,156,110,.35); }
.stat-tile-amber{ background:#FFF3E6; }
.stat-tile-amber b{ color:var(--amber-2); }
.stat-tile-amber:hover{ box-shadow:0 14px 30px -14px rgba(255,154,61,.35); }
.stat-tile-gradient{ grid-column:1 / -1; background:linear-gradient(135deg,#EAF4FF,#EFFBFF); padding:30px; }
.stat-tile-gradient b{ background:linear-gradient(135deg, var(--green), var(--amber-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-tile-gradient:hover{ box-shadow:0 14px 30px -14px rgba(14,27,46,.25); }

.solar-calc-disclaimer{ margin-top:40px; border-top:1px solid var(--line); padding-top:22px; }
.solar-calc-disclaimer p{ max-width:78ch; margin:0 auto; text-align:center; font-size:.85rem; line-height:1.6; color:var(--ink-soft); }

@media (max-width:860px){
  .solar-calc-grid{ grid-template-columns:1fr; }
  .solar-calc-card{ padding:24px; }
}

/* Why Choose Us page */
.why-us-section{ background:var(--navy); padding:96px 0 104px; }
.why-us-heading{ max-width:640px; margin:0 auto; text-align:center; }
.why-us-heading h1{ margin-top:12px; font-size:2.6rem; }
.why-us-highlight{ color:var(--green); }
.why-us-heading p{ margin:22px auto 0; max-width:56ch; color:rgba(255,255,255,.72); line-height:1.7; }

.why-us-grid{ margin:56px auto 0; max-width:900px; display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.why-us-card{
  position:relative; overflow:hidden; border-radius:22px; border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04); padding:30px; transition:transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.why-us-card:hover{ transform:translateY(-4px); border-color:rgba(27,156,110,.4); background:rgba(255,255,255,.07); box-shadow:0 20px 40px -20px rgba(0,0,0,.4); }
.why-us-glow{
  position:absolute; right:-32px; top:-32px; width:112px; height:112px; border-radius:50%;
  background:rgba(27,156,110,0); filter:blur(30px); transition:background .5s ease;
}
.why-us-card:hover .why-us-glow{ background:rgba(27,156,110,.25); }
.why-us-row{ position:relative; display:flex; align-items:flex-start; gap:22px; }
.why-us-number{
  flex-shrink:0; font-family:var(--mono); font-size:2rem; font-weight:700;
  background:linear-gradient(135deg, var(--green), var(--amber-2)); -webkit-background-clip:text; background-clip:text; color:transparent;
  transition:transform .3s ease;
}
.why-us-card:hover .why-us-number{ transform:scale(1.1); }
.why-us-row h3{ color:#fff; font-size:1.2rem; margin:0; }
.why-us-row p{ margin-top:10px; font-size:.9rem; line-height:1.7; color:rgba(255,255,255,.6); }

.why-us-cta{ margin-top:52px; display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

@media (max-width:720px){
  .why-us-grid{ grid-template-columns:1fr; }
}

/* Why solar, why now — value props (Cities page) */
.why-solar-section{ padding:88px 0; background:var(--bg); }
.why-solar-head{ max-width:640px; }
.why-solar-head h2{ margin-top:10px; }
.why-solar-head p{ margin-top:14px; max-width:60ch; color:var(--ink-soft); }

.value-grid{ margin-top:40px; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.value-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:rgba(27,156,110,.3); }
.value-icon{ width:34px; height:34px; color:var(--green); }
.value-card h3{ margin-top:18px; font-size:1.1rem; color:var(--ink); }
.value-card p{ margin-top:10px; font-size:.9rem; line-height:1.65; color:var(--ink-soft); }

@keyframes reveal-in-anim{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.reveal-in{ animation:reveal-in-anim .6s ease both; }
.value-grid .value-card{ animation:reveal-in-anim .6s ease both; }
.value-grid .value-card:nth-child(2){ animation-delay:.08s; }
.value-grid .value-card:nth-child(3){ animation-delay:.16s; }

@media (max-width:860px){
  .value-grid{ grid-template-columns:1fr; }
}

/* City / location chips */
.city-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.city-chip{ display:flex; justify-content:space-between; align-items:center; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); padding:16px 18px; text-decoration:none; color:var(--navy); font-weight:600; }
.city-chip span{ color:var(--ink-soft); font-weight:400; font-size:.82rem; font-family:var(--mono); }
.city-chip:hover{ border-color:var(--amber-2); }

/* Blog */
.blog-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; text-decoration:none; color:var(--ink); display:flex; flex-direction:column; }
.blog-card .cover{ height:150px; background:linear-gradient(135deg, var(--navy), var(--navy-2)); display:flex; align-items:center; justify-content:center; color:var(--amber); font-family:var(--mono); font-size:.75rem; }
.blog-card .body{ padding:20px; flex:1; }
.blog-card .date{ font-family:var(--mono); font-size:.75rem; color:var(--ink-soft); margin-bottom:8px; display:block; }
.blog-card h3{ margin-bottom:8px; font-size:1.05rem; }
.blog-post-content{ max-width:70ch; }
.blog-post-content p{ color:var(--ink); }

/* CTA band */
.cta-band{ background:linear-gradient(120deg, var(--navy), var(--navy-2)); color:#fff; border-radius:var(--radius); padding:46px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.cta-band h2{ color:#fff; margin-bottom:6px; }
.cta-band p{ color:rgba(255,255,255,.75); margin:0; }

/* Footer */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.7); padding:64px 0 28px; margin-top:80px; }
.footer-grid{ display:grid; grid-template-columns:1.55fr 1fr 1fr 1fr; gap:36px; align-items:start; }
.site-footer h4{ color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:14px; }
.site-footer a{ display:block; color:rgba(255,255,255,.65); text-decoration:none; font-size:.88rem; margin-bottom:8px; }
.site-footer a:hover{ color:var(--amber); }
.site-footer .brand{ font-size:1.7rem; gap:14px; }
.site-footer .brand-logo{ height:92px; max-width:110px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:36px; padding-top:20px; font-size:.78rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* Toast */
.toast{ position:fixed; bottom:24px; right:24px; background:var(--navy); color:#fff; padding:14px 20px; border-radius:var(--radius-sm); box-shadow:var(--shadow); font-size:.9rem; transform:translateY(20px); opacity:0; pointer-events:none; transition:all .25s ease; z-index:100; max-width:320px; }
.toast.show{ transform:translateY(0); opacity:1; }
.toast.error{ background:#7A2331; }

/* Admin */
.admin-shell{ display:flex; min-height:100vh; background:var(--bg); }
.admin-sidebar{ width:220px; background:var(--navy); color:#fff; padding:24px 18px; }
.admin-sidebar a{ display:block; color:rgba(255,255,255,.75); text-decoration:none; padding:10px 12px; border-radius:8px; font-size:.9rem; margin-bottom:4px; }
.admin-sidebar a.active, .admin-sidebar a:hover{ background:rgba(255,255,255,.08); color:#fff; }
.admin-main{ flex:1; padding:32px 40px; }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.admin-table{ width:100%; border-collapse:collapse; background:var(--paper); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.admin-table th, .admin-table td{ text-align:left; padding:12px 16px; border-bottom:1px solid var(--line); font-size:.88rem; }
.admin-table th{ background:#F8FAFB; color:var(--ink-soft); font-weight:600; text-transform:uppercase; font-size:.72rem; letter-spacing:.05em; }
.admin-filters{ display:flex; gap:12px; margin-bottom:18px; flex-wrap:wrap; align-items:end; }
.admin-filters .field{ margin:0; }
.login-shell{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--navy); }
.login-card{ background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow); padding:36px; width:100%; max-width:380px; }
.badge{ display:inline-block; padding:3px 10px; border-radius:999px; font-size:.72rem; font-family:var(--mono); background:#F2FBF7; color:var(--green); }

/* Responsive */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns:1fr; }
  .calc-card{ margin-bottom:0; }
  .pad-top-arc{ padding-top:60px; }
  .grid-3, .grid-4, .journey-steps, .city-grid, .footer-grid, .project-grid{ grid-template-columns:1fr 1fr; }
  .gallery{ grid-template-columns:1fr 1fr; }
  .grid-2{ grid-template-columns:1fr; }
}
@media (max-width: 860px){
  .nav, .nav-cta .phone-link{ display:none; }
  .menu-toggle{ display:block; }
  .site-header .container{ min-height:78px; padding-top:6px; padding-bottom:6px; }
  .site-header .brand{ font-size:1.15rem; gap:8px; }
  .site-header .brand-logo{ height:56px; max-width:72px; }
  .site-footer .brand{ font-size:1.4rem; }
  .site-footer .brand-logo{ height:72px; max-width:88px; }
}
@media (max-width: 640px){
  .grid-3, .grid-4, .journey-steps, .city-grid, .footer-grid, .project-grid{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns:1fr; }
  .admin-main{ padding:24px 18px; }
  .admin-sidebar{ width:76px; padding:20px 8px; }
  .admin-sidebar span.label{ display:none; }
}

/* ===== GridSolar brand refresh ===== */
.site-header{ border-bottom:1px solid rgba(255,255,255,.08); box-shadow:0 8px 30px rgba(0,0,0,.12); }
.site-header .container{ min-height:96px; }
.header-inner{ gap:28px; }
.site-header .brand{ min-width:250px; }
.brand-logo-wrap{ display:flex; align-items:center; justify-content:center; width:248px; height:78px; padding:6px 12px; background:#fff; border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.14); overflow:hidden; }
.brand-logo-wrap .brand-logo{ width:100%; height:100%; max-width:none; object-fit:contain; }
.brand-name{ display:none; }
.nav{ margin-left:auto; gap:8px; }
.nav a{ position:relative; padding:12px 13px; border-radius:999px; transition:color .2s ease, background .2s ease; }
.nav a:hover{ background:rgba(255,255,255,.07); }
.nav a.active{ color:#fff; background:rgba(255,184,77,.12); }
.nav a.active::after{ content:""; position:absolute; left:18px; right:18px; bottom:4px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--green),var(--amber)); }
.nav-cta{ flex-shrink:0; }
.phone-icon{ color:var(--amber); font-size:1rem; }
.nav-quote{ padding:11px 19px; font-size:.88rem; }
.mobile-quote{ display:none !important; }
.menu-toggle{ width:44px; height:44px; border:1px solid rgba(255,255,255,.15); border-radius:10px; }
.menu-toggle:hover{ background:rgba(255,255,255,.08); }

.hero{ padding:46px 0 0; }
.hero-grid{ grid-template-columns:1fr 1.02fr; gap:56px; }
.hero-photo-wrap{ display:flex; justify-content:flex-end; }
.hero-photo-card{ position:relative; width:100%; max-width:590px; aspect-ratio:1.12 / 1; overflow:hidden; border-radius:26px 26px 8px 26px; border:1px solid rgba(255,255,255,.16); box-shadow:0 28px 60px -24px rgba(0,0,0,.6); background:#10243d; }
.hero-photo-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(14,27,46,0) 42%,rgba(14,27,46,.8) 100%); pointer-events:none; }
.hero-photo-card img{ width:100%; height:100%; display:block; object-fit:cover; transition:transform .7s ease; }
.hero-photo-card:hover img{ transform:scale(1.035); }
.hero-photo-overlay{ position:absolute; z-index:2; left:22px; right:22px; bottom:20px; display:flex; flex-direction:column; align-items:flex-start; gap:3px; color:#fff; }
.hero-photo-kicker{ font-family:var(--mono); font-size:.68rem; letter-spacing:.18em; color:var(--amber); font-weight:700; }
.hero-photo-overlay strong{ font-family:var(--display); font-size:1.25rem; }
.hero-photo-overlay span:last-child{ font-size:.78rem; color:rgba(255,255,255,.72); }

.about-photo-section{ background:linear-gradient(180deg,#fff 0%,#f4f7f8 100%); }
.about-photo-grid{ display:grid; grid-template-columns:1.02fr .98fr; gap:68px; align-items:center; }
.about-photo-card{ position:relative; border-radius:24px; overflow:hidden; box-shadow:0 24px 55px -28px rgba(14,27,46,.42); border:1px solid var(--line); }
.about-photo-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 50%,rgba(14,27,46,.25)); pointer-events:none; }
.about-photo-card img{ display:block; width:100%; aspect-ratio:1.5 / 1; object-fit:cover; }
.about-photo-badge{ position:absolute; z-index:2; left:18px; bottom:18px; display:flex; align-items:center; gap:10px; padding:11px 15px; background:rgba(255,255,255,.94); border-radius:14px; box-shadow:0 10px 24px rgba(0,0,0,.16); }
.about-photo-badge > span{ width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#fff3e1; color:var(--amber-2); font-size:1.15rem; }
.about-photo-badge b,.about-photo-badge small{ display:block; }
.about-photo-badge b{ color:var(--navy); font-size:.86rem; }
.about-photo-badge small{ color:var(--ink-soft); font-size:.7rem; }
.about-photo-copy h2{ margin-top:10px; max-width:18ch; }
.about-photo-copy > p{ max-width:55ch; margin-top:18px; }
.about-photo-points{ display:grid; gap:14px; margin:26px 0 28px; }
.about-photo-points > div{ display:grid; grid-template-columns:36px 1fr; gap:12px; align-items:start; }
.about-photo-points > div > span{ font-family:var(--mono); font-size:.75rem; font-weight:700; color:var(--green); padding-top:2px; }
.about-photo-points p{ margin:0; font-size:.86rem; line-height:1.55; }
.about-photo-points b{ color:var(--navy); }

.site-footer{ padding-top:76px; }
.footer-grid{ grid-template-columns:1.65fr 1fr 1fr 1.1fr; gap:42px; }
.footer-brand-column{ padding-right:18px; }
.footer-logo-wrap{ width:290px; height:88px; border-radius:14px; }
.footer-brand{ margin-bottom:18px; }
.footer-description{ max-width:42ch; font-size:.88rem; color:rgba(255,255,255,.62); }
.footer-callout{ display:inline-flex !important; align-items:center; gap:8px; color:#fff !important; font-weight:700; margin-top:8px; }
.footer-callout span{ color:var(--amber); transition:transform .2s ease; }
.footer-callout:hover span{ transform:translateX(4px); }
.footer-note{ display:block; margin-top:16px; font-size:.75rem; color:rgba(255,255,255,.4); }
.footer-bottom a{ display:inline-block; margin:0; }

@media (max-width:1100px){
  .site-header .brand{ min-width:220px; }
  .brand-logo-wrap{ width:220px; height:70px; }
  .nav{ gap:2px; }
  .nav a{ padding-left:9px; padding-right:9px; }
  .nav-cta .phone-link{ display:none; }
}
@media (max-width:960px){
  .hero-grid,.about-photo-grid{ grid-template-columns:1fr; }
  .hero-photo-wrap{ justify-content:center; }
  .hero-photo-card{ max-width:760px; }
  .about-photo-card{ max-width:760px; }
  .about-photo-copy h2{ max-width:24ch; }
}
@media (max-width:860px){
  .site-header .container{ min-height:82px; }
  .site-header .brand{ min-width:0; }
  .brand-logo-wrap{ width:205px; height:64px; border-radius:10px; }
  .nav-cta{ margin-left:auto; }
  .nav-quote{ display:none; }
  .menu-toggle{ display:grid; place-items:center; }
  .nav{ position:absolute; top:82px; left:16px; right:16px; display:none; flex-direction:column; align-items:stretch; gap:4px; padding:12px; background:rgba(14,27,46,.98); border:1px solid rgba(255,255,255,.12); border-radius:16px; box-shadow:0 20px 45px rgba(0,0,0,.3); }
  .nav.is-open{ display:flex; }
  .nav a{ padding:13px 15px; border-radius:10px; }
  .nav a.active::after{ display:none; }
  .mobile-quote{ display:flex !important; justify-content:space-between; align-items:center; margin-top:5px; background:linear-gradient(135deg,var(--amber),var(--amber-2)); color:var(--navy) !important; font-weight:700 !important; }
  .hero{ padding-top:32px; }
  .hero-photo-card{ border-radius:20px; }
  .footer-logo-wrap{ width:250px; height:78px; }
}
@media (max-width:640px){
  .container{ padding-left:18px; padding-right:18px; }
  .brand-logo-wrap{ width:180px; height:58px; padding:5px 9px; }
  .site-header .container{ min-height:76px; }
  .nav{ top:76px; left:10px; right:10px; }
  .hero-photo-card{ aspect-ratio:1 / .92; }
  .hero-photo-overlay strong{ font-size:1.05rem; }
  .about-photo-grid{ gap:38px; }
  .footer-logo-wrap{ width:230px; height:72px; }
}

/* ===== Final GridSolar homepage/header/footer refinement ===== */
:root{ --brand-navy:#031b46; --brand-navy-2:#061f4d; --brand-orange:#ff8a00; }
body{ background:#f6f8fb; }
.site-header{ background:rgba(3,27,70,.98); border-bottom:1px solid rgba(255,255,255,.14); box-shadow:0 8px 30px rgba(0,0,0,.18); }
.site-header .container{ min-height:92px; padding-top:8px; padding-bottom:8px; }
.site-header .brand{ min-width:300px; height:100px; display:flex; align-items:center; }
.brand-logo-wrap{ display:none !important; }
.site-header .brand-logo{ width:310px; height:100px; max-width:none; object-fit:contain; object-position:center; }
.nav{ margin-left:auto; gap:4px; align-items:center; }
.nav a,.nav-dropdown-toggle{ color:#fff; font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.03em; padding:12px 13px; border-radius:7px; background:transparent; border:0; font-family:var(--body); cursor:pointer; text-decoration:none; white-space:nowrap; }
.nav a:hover,.nav-dropdown-toggle:hover{ color:#fff; background:rgba(255,255,255,.06); }
.nav a.active{ color:#fff; background:transparent; }
.nav a.active::after{ left:13px; right:13px; bottom:3px; height:3px; background:var(--brand-orange); }
.nav-dropdown{ position:relative; display:flex; align-items:center; }
.nav-dropdown-toggle span{ margin-left:4px; font-size:.9rem; }
.nav-dropdown-menu{ position:absolute; top:calc(100% + 8px); left:0; min-width:210px; padding:8px; background:#061f4d; border:1px solid rgba(255,255,255,.14); border-radius:12px; box-shadow:0 18px 45px rgba(0,0,0,.35); opacity:0; visibility:hidden; transform:translateY(-5px); transition:.2s ease; }
.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown-menu a{ display:block; padding:10px 12px; border-radius:7px; }
.nav-dropdown-menu a::after{ display:none !important; }
.nav-cta{ margin-left:8px; }
.nav-quote{ border-radius:11px; padding:12px 21px; background:linear-gradient(135deg,#ff9b14,#ff7a00); color:#fff; box-shadow:0 10px 25px rgba(255,122,0,.24); text-transform:uppercase; letter-spacing:.03em; font-size:.82rem; font-weight:600; }
.nav-quote span{ font-size:1.1rem; margin-left:6px; }
.phone-link{ display:none; }
.menu-toggle{ border-radius:10px; }

.hero-modern{ padding:0; background:linear-gradient(90deg,#061f4d 0%,#092755 46%,#0c315d 100%); min-height:560px; }
.hero-modern .hero-grid{ min-height:560px; grid-template-columns:1fr 1.05fr; gap:42px; }
.hero-modern .hero-copy{ padding:62px 0 48px; position:relative; z-index:2; }
.hero-modern h1{ font-size:clamp(2.6rem,4.2vw,4.15rem); line-height:1.03; margin-bottom:22px; }
.hero-modern h1 em{ color:var(--brand-orange); }
.hero-modern .eyebrow{ color:#ffad35; margin-bottom:12px; display:block; }
.hero-modern p.lead{ color:rgba(255,255,255,.9); max-width:58ch; font-size:1.02rem; margin-bottom:14px; }
.hero-secondary-copy{ color:rgba(255,255,255,.75) !important; }
.hero-estimator{ display:flex; gap:14px; align-items:stretch; margin-top:24px; max-width:640px; }
.hero-bill-input{ flex:1; min-width:0; display:flex; align-items:center; gap:10px; background:#fff; border-radius:10px; padding:0 16px; box-shadow:0 8px 24px rgba(0,0,0,.12); }
.bill-icon{ color:#5a6573; font-weight:700; font-size:1.15rem; }
.hero-bill-input input{ width:100%; border:0; outline:0; padding:16px 4px; font:500 .96rem var(--body); color:#263445; background:transparent; }
.hero-bill-input input::placeholder{ color:#7b8794; }
.hero-calc-btn{ border-radius:10px; min-width:238px; color:#fff; }
.hero-features{ display:grid; grid-template-columns:repeat(4,1fr); margin-top:30px; max-width:700px; border-top:1px solid rgba(255,255,255,.16); padding-top:20px; }
.hero-features>div{ display:grid; grid-template-columns:34px 1fr; column-gap:7px; padding:0 13px; border-right:1px solid rgba(255,255,255,.22); }
.hero-features>div:first-child{ padding-left:0; }
.hero-features>div:last-child{ border-right:0; }
.feature-icon{ grid-row:span 2; width:28px; height:28px; display:grid; place-items:center; color:#ff9700; border:2px solid #ff9700; border-radius:50%; font-weight:700; }
.hero-features b{ color:#fff; font-size:.78rem; line-height:1.25; }
.hero-features small{ color:rgba(255,255,255,.62); font-size:.68rem; line-height:1.25; }
.hero-modern .hero-photo-wrap{ align-self:stretch; }
.hero-modern .hero-photo-card{ max-width:none; width:100%; height:100%; min-height:560px; aspect-ratio:auto; border-radius:0; border:0; box-shadow:none; }
.hero-modern .hero-photo-card::after{ background:linear-gradient(90deg,rgba(6,31,77,.42) 0%,rgba(6,31,77,0) 42%,rgba(6,31,77,0) 100%); }
.hero-modern .hero-photo-card img{ object-fit:cover; }
.hero-modern .hero-photo-overlay{ display:none; }

.site-footer{ margin-top:0; padding:62px 0 24px; background:#031b46; border-top:1px solid rgba(255,255,255,.12); }
.footer-grid{ grid-template-columns:1.3fr .85fr .95fr 1.05fr .95fr; gap:32px; }
.footer-brand{ min-width:0; width:330px; height:100px; margin-bottom:14px; }
.site-footer .brand-logo{ width:330px; height:100px; max-width:none; object-fit:contain; }
.site-footer h4{ color:#fff; font-size:.92rem; text-transform:uppercase; letter-spacing:.06em; }
.site-footer h4::after{ content:""; display:block; width:34px; height:3px; margin-top:8px; background:var(--brand-orange); border-radius:3px; }
.site-footer a{ color:rgba(255,255,255,.72); margin-bottom:9px; }
.site-footer a:hover{ color:#ff9a00; }
.footer-description{ color:rgba(255,255,255,.72); max-width:39ch; font-size:.9rem; }
.footer-socials{ display:flex; gap:10px; margin-top:18px; }
.footer-socials a{ width:34px; height:34px; display:grid !important; place-items:center; border:1px solid rgba(255,255,255,.35); border-radius:50%; color:#fff !important; margin:0 !important; font-size:.8rem !important; font-weight:700; }
.footer-note{ color:rgba(255,255,255,.5); }
.footer-legal{ display:block; margin-top:18px; max-width:250px; color:rgba(255,255,255,.38); font-size:.66rem; line-height:1.45; text-transform:uppercase; letter-spacing:.04em; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.14); margin-top:42px; padding-top:20px; color:rgba(255,255,255,.7); justify-content:center; text-align:center; }
.footer-links-col a,.footer-services-col a{ display:flex; align-items:center; gap:7px; }
.link-arrow{ color:var(--brand-orange); font-weight:700; font-size:.85rem; line-height:1; }
.footer-contact-item{ display:flex; align-items:flex-start; gap:10px; margin-bottom:14px; }
.footer-contact-item .icon{ flex-shrink:0; width:16px; margin-top:2px; color:var(--brand-orange); font-size:.85rem; }
.footer-contact-col a.footer-contact-item{ color:rgba(255,255,255,.72); margin-bottom:14px; }
.footer-contact-col a.footer-contact-item:hover{ color:#ff9a00; }
.footer-getintouch p{ color:rgba(255,255,255,.72); font-size:.9rem; line-height:1.5; margin-bottom:16px; }
.footer-getintouch .btn{ display:inline-flex; }

@media (max-width:1100px){
  .site-header .brand{ min-width:250px; }
  .site-header .brand-logo{ width:270px; }
  .nav a,.nav-dropdown-toggle{ padding-left:8px; padding-right:8px; font-size:.82rem; }
  .nav-quote{ padding:11px 15px; }
  .hero-modern .hero-grid{ gap:24px; }
}
@media (max-width:960px){
  .hero-modern .hero-grid{ grid-template-columns:1fr; }
  .hero-modern .hero-copy{ padding-bottom:36px; }
  .hero-modern .hero-photo-wrap{ min-height:400px; }
  .hero-modern .hero-photo-card{ min-height:400px; }
  .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; }
  .footer-getintouch{ grid-column:span 3; }
}
@media (max-width:860px){
  .site-header .container{ min-height:76px; }
  .site-header .brand{ height:78px; }
  .site-header .brand-logo{ width:235px; height:78px; }
  .nav{ top:76px; left:10px; right:10px; padding:12px; background:#031b46; }
  .nav-dropdown{ display:block; }
  .nav-dropdown-toggle{ width:100%; text-align:left; padding:13px 15px; }
  .nav-dropdown-menu{ position:static; display:none; opacity:1; visibility:visible; transform:none; box-shadow:none; margin:0 8px 6px; background:rgba(255,255,255,.04); }
  .nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{ display:block; }
  .hero-estimator{ flex-direction:column; }
  .hero-calc-btn{ width:100%; }
  .hero-features{ grid-template-columns:repeat(2,1fr); gap:15px 0; }
  .hero-features>div:nth-child(2){ border-right:0; }
  .hero-features>div{ padding-left:10px; }
  .hero-features>div:first-child{ padding-left:0; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ width:290px; }
  .site-footer .brand-logo{ width:290px; }
  .footer-getintouch{ grid-column:span 2; }
}
@media (max-width:640px){
  .site-header .brand-logo{ width:205px; height:68px; }
  .hero-modern .hero-copy{ padding-top:38px; }
  .hero-modern h1{ font-size:2.45rem; }
  .hero-modern .hero-photo-wrap,.hero-modern .hero-photo-card{ min-height:300px; }
  .hero-features{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-brand{ width:260px; height:82px; }
  .site-footer .brand-logo{ width:260px; height:82px; }
  .footer-getintouch{ grid-column:auto; }
}


/* ===== Final desktop header + hero visual polish (layout/content unchanged) ===== */
@media (min-width:1101px){
  .site-header .container{ min-height:88px; padding-top:5px; padding-bottom:5px; }
  .site-header .brand{ min-width:245px; width:245px; height:78px; }
  .site-header .brand-logo{ width:245px; height:78px; }
  .nav{ gap:1px; }
  .nav a,.nav-dropdown-toggle{ font-size:.74rem; padding:10px 9px; letter-spacing:.015em; }
  .nav a.active::after{ left:10px; right:10px; }
  .nav-cta{ margin-left:5px; gap:9px; }
  .nav-quote{ min-width:145px; height:46px; padding:10px 14px; display:inline-flex; align-items:center; justify-content:center; gap:5px; white-space:nowrap; font-size:.78rem; }
  .nav-quote span{ margin-left:0; }
}

/* Clean angled hero image edge — no visible divider line */
.hero-modern .hero-photo-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  clip-path:polygon(8% 0,100% 0,100% 100%,0 100%);
}
.hero-modern .hero-photo-card::before{
  display:none;
}
.hero-modern .hero-photo-card::after{
  z-index:2;
  background:linear-gradient(90deg,rgba(6,31,77,.48) 0%,rgba(6,31,77,.12) 26%,rgba(6,31,77,0) 54%),linear-gradient(180deg,rgba(6,31,77,0) 58%,rgba(6,31,77,.12) 100%);
}
.hero-modern .hero-photo-card img{
  object-position:center center;
  transform:scale(1.01);
}
.hero-modern .hero-photo-card:hover img{ transform:scale(1.035); }

@media (max-width:1100px){
  .site-header .brand{ min-width:225px; width:225px; }
  .site-header .brand-logo{ width:225px; }
  .nav a,.nav-dropdown-toggle{ font-size:.76rem; padding-left:7px; padding-right:7px; }
  .nav-quote{ min-width:140px; padding-left:12px; padding-right:12px; }
}
@media (max-width:960px){
  .hero-modern .hero-photo-card{ clip-path:none; }
}


/* ===== GridSolar final hero: image reaches the viewport edge =====
   Below 1160px the .container isn't capped yet, so the existing grid
   already spans full width with no gap. The gap only appears once the
   .container hits its 1160px max-width and stops growing while the
   viewport keeps getting wider — so this fix only needs to apply from
   1160px up, where it takes the row out of the .container's max-width
   and lets the photo side flex to fill whatever space is left, all the
   way to the true edge of the screen. No content/functionality changes. */
@media (min-width: 1160px) {
  .hero-modern .hero-grid {
    display: flex;
    align-items: stretch;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .hero-modern .hero-copy {
    flex: 0 0 auto;
    width: calc((100vw - 1160px) / 2 + 588px);
    padding-left: calc((100vw - 1160px) / 2 + 24px);
    padding-right: 42px;
    box-sizing: border-box;
  }

  .hero-modern .hero-photo-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    align-self: stretch;
  }

  .hero-modern .hero-photo-card {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 560px;
    aspect-ratio: auto;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: #10243d;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero-modern .hero-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }

  .hero-modern .hero-photo-card:hover img {
    transform: scale(1.02);
  }
}

@media (max-width: 960px) {
  .hero-modern .hero-photo-wrap {
    margin-right: 0;
    width: 100%;
  }

  .hero-modern .hero-photo-card {
    width: 100%;
    min-height: 300px;
    height: auto;
    clip-path: none;
  }
}

/* GridSolar role-based dashboard */
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.dash-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 6px 22px rgba(15,23,42,.04)}
.dash-card span{display:block;color:var(--ink-soft);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}
.dash-card strong{display:block;margin:8px 0 4px;font-size:1.7rem;color:var(--navy);font-family:'Space Grotesk',sans-serif}
.dash-card small{color:var(--ink-soft);font-size:.78rem}
.dashboard-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:18px;box-shadow:0 6px 22px rgba(15,23,42,.04)}
.panel-head h3{margin:0 0 3px}.panel-head p{margin:0;color:var(--ink-soft);font-size:.82rem}
.sales-chart{height:300px;display:flex;align-items:flex-end;gap:10px;padding:24px 6px 0;border-bottom:1px solid var(--line);margin-top:16px}
.sales-bar-wrap{flex:1;min-width:34px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}
.sales-bar{width:min(34px,72%);min-height:4px;background:var(--navy);border-radius:7px 7px 0 0;opacity:.9}
.sales-value{font-size:.68rem;color:var(--ink-soft);margin-bottom:6px;white-space:nowrap}
.sales-label{font-size:.66rem;color:var(--ink-soft);margin-top:8px;white-space:nowrap;transform:rotate(-30deg);transform-origin:top center}
.chart-note{font-size:.74rem;color:var(--ink-soft);margin:20px 0 0}
.city-row{display:grid;grid-template-columns:110px 1fr 120px;gap:12px;align-items:center;margin:14px 0}.city-name{font-weight:600}.city-track{height:9px;background:#eef2f7;border-radius:999px;overflow:hidden}.city-fill{height:100%;background:var(--navy);border-radius:999px}.city-value{text-align:right;font-family:'IBM Plex Mono',monospace;font-size:.82rem}
@media(max-width:900px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-chart{gap:4px}.sales-label{font-size:.58rem}}
@media(max-width:560px){.dashboard-grid{grid-template-columns:1fr}.city-row{grid-template-columns:90px 1fr}.city-value{grid-column:2;text-align:left}.sales-chart{height:250px}.sales-value{font-size:.58rem}}


/* GridSolar users / dashboard enhancements */
.notice-success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0;border-radius:10px;padding:12px 14px;margin-bottom:18px;font-size:.88rem}.user-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.role-pill{display:inline-block;padding:4px 9px;border-radius:999px;font-size:.72rem;font-weight:700}.role-pill.admin{background:#eef2ff;color:#3730a3}.role-pill.sales{background:#ecfdf5;color:#166534}.role-pill.installation{background:#fff7ed;color:#9a3412}.role-pill.superuser{background:#fdf4ff;color:#86198f}.role-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.role-cards>div{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fbfcfe}.role-cards strong{font-family:'Space Grotesk',sans-serif;color:var(--navy)}.role-cards p{font-size:.82rem;color:var(--ink-soft);line-height:1.55;margin-bottom:0}.compact-table td,.compact-table th{padding:10px 12px}.table-scroll{overflow:auto}@media(max-width:900px){.user-summary-grid,.role-cards{grid-template-columns:1fr 1fr}}@media(max-width:560px){.user-summary-grid,.role-cards{grid-template-columns:1fr}}

/* ===== Admin panel visual refresh (scoped to admin classes only — no shared/public rules touched) ===== */
.admin-sidebar{ display:flex; flex-direction:column; }
.admin-nav{ display:flex; flex-direction:column; gap:2px; margin-bottom:8px; }

/* Signed-in user card, now anchored near the top of the sidebar */
.admin-user-card{ display:flex; align-items:center; gap:11px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:11px 12px; margin-bottom:20px; }
.admin-user-avatar{ width:38px; height:38px; flex:0 0 auto; border-radius:50%; background:linear-gradient(135deg,var(--amber),var(--amber-2)); color:var(--navy); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--display); font-size:1rem; box-shadow:0 4px 12px -4px rgba(255,154,61,.55); }
.admin-user-meta{ min-width:0; }
.admin-user-meta strong{ display:block; color:#fff; font-size:.86rem; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-role-tag{ display:inline-block; margin-top:4px; padding:2px 9px; border-radius:999px; background:rgba(255,184,77,.16); color:var(--amber); font-size:.66rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }

/* Nav link active/hover polish */
.admin-sidebar a{ position:relative; }
.admin-sidebar a.active{ background:rgba(255,184,77,.14); color:#fff; }
.admin-sidebar a.active::before{ content:""; position:absolute; left:-18px; top:2px; bottom:2px; width:3px; border-radius:0 3px 3px 0; background:var(--amber); }
.admin-sidebar a:hover{ background:rgba(255,255,255,.1); }
.admin-view-site{ margin-top:auto; opacity:.85; }
.admin-view-site:hover{ opacity:1; }

/* Topbar buttons */
.admin-topbar h2{ font-size:1.5rem; }
.admin-topbar .btn-navy{ box-shadow:0 10px 22px -10px rgba(14,27,46,.55); }
.admin-topbar .btn-navy:hover{ box-shadow:0 12px 26px -8px rgba(14,27,46,.65); transform:translateY(-1px); }

/* Filters as a soft card */
.admin-filters{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px 16px; box-shadow:0 6px 20px -14px rgba(15,23,42,.15); }
.admin-filters .btn-outline{ padding:11px 22px; }
.admin-filters .btn-outline:hover{ background:var(--bg); }

/* Table polish */
.admin-table{ border:1px solid var(--line); }
.admin-table thead th:first-child{ border-top-left-radius:var(--radius); }
.admin-table thead th:last-child{ border-top-right-radius:var(--radius); }
.admin-table tbody tr{ transition:background .15s ease; }
.admin-table tbody tr:hover{ background:#F8FAFC; }
.admin-table tbody tr:last-child td{ border-bottom:none; }

/* Property-type pill */
.type-badge{ display:inline-block; padding:4px 11px; border-radius:999px; font-size:.72rem; font-weight:700; background:#EEF2FF; color:#3730A3; white-space:nowrap; }

/* Quote / Delete action buttons */
.action-btn-group{ display:flex; gap:8px; align-items:center; }
.action-btn{ display:inline-flex; align-items:center; gap:5px; padding:7px 14px; border-radius:999px; font-size:.78rem; font-weight:700; border:1.5px solid transparent; cursor:pointer; text-decoration:none; white-space:nowrap; transition:background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.action-btn:hover{ transform:translateY(-1px); }
.action-btn-quote{ border-color:var(--navy); color:var(--navy); background:#fff; }
.action-btn-quote:hover{ background:var(--navy); color:#fff; box-shadow:0 8px 16px -8px rgba(14,27,46,.55); }
.action-btn-delete{ border-color:#dc2626; color:#dc2626; background:#fff; }
.action-btn-delete:hover{ background:#dc2626; color:#fff; box-shadow:0 8px 16px -8px rgba(220,38,38,.45); }

/* Change-password card: additive polish layered on top of the existing .login-card */
.admin-account-card{ border:1px solid var(--line); }
.admin-account-icon{ width:46px; height:46px; border-radius:12px; background:linear-gradient(135deg,var(--navy),var(--navy-2)); display:flex; align-items:center; justify-content:center; font-size:1.3rem; margin-bottom:16px; box-shadow:0 8px 18px -10px rgba(14,27,46,.5); }

@media (max-width:640px){
  .admin-user-meta{ display:none; }
  .admin-user-card{ justify-content:center; }
}
