/* =================================================================
   GoSolarBusiness.com — Design System v2
   Professional navy + blue palette, Sora/Inter typography
   Mobile-first | Breakpoints: 480px, 768px, 1024px, 1280px
   ================================================================= */

/* ---------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------- */
:root {
    /* Brand */
    --navy-950: #061325;
    --navy-900: #0A2540;
    --navy-800: #0F2A47;
    --navy-700: #13314F;
    --blue-600: #1570EF;
    --blue-500: #2E90FA;
    --sky-400: #38BDF8;
    --sky-100: #E3F2FE;
    --orange-600: #EA580C;
    --orange-500: #F97316;
    --orange-100: #FFF1E6;
    --green-600: #16A34A;
    --green-100: #E8F7EE;
    --red-600: #DC2626;
    --red-100: #FDECEA;
    --amber-500: #F59E0B;

    /* Surfaces */
    --bg-white: #FFFFFF;
    --bg-light: #F6F9FC;
    --bg-tint: #EEF4FB;
    --border: #E3E8EF;
    --border-strong: #CBD5E1;

    /* Text */
    --text-1: #0F172A;
    --text-2: #475569;
    --text-3: #64748B;
    --text-inverse: #FFFFFF;
    --text-inverse-2: #B6C5DA;

    /* Type */
    --font-heading: 'Sora', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.07), 0 1px 2px rgba(10, 37, 64, 0.05);
    --shadow-md: 0 10px 28px rgba(10, 37, 64, 0.10);
    --shadow-lg: 0 24px 56px rgba(10, 37, 64, 0.16);
    --shadow-cta: 0 8px 20px rgba(249, 115, 22, 0.30);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------
   Reset
   --------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--text-1);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

img { display: block; }

a {
    color: var(--blue-600);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--navy-900); }

ul, ol { padding-left: 1.4em; }

button { font-family: inherit; cursor: pointer; }

/* ---------------------------------------------------------------
   Typography
   --------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-1);
    letter-spacing: -0.02em;
}

h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 27px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }

p { margin-bottom: 1.1em; color: var(--text-2); }

@media (min-width: 768px) {
    h1 { font-size: 50px; }
    h2 { font-size: 36px; }
    h3 { font-size: 22px; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--orange-500);
    border-radius: 2px;
}

.eyebrow--center::before { display: none; }

.section-dark .eyebrow,
.page-hero .eyebrow,
.cta-panel .eyebrow,
.hero .eyebrow { color: var(--sky-400); }

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.container-narrow { max-width: 820px; }

.section { padding: 64px 0; }

@media (min-width: 768px) {
    .section { padding: 96px 0; }
}

.section-light { background-color: var(--bg-light); }
.section-white { background-color: var(--bg-white); }
.section-dark {
    background-color: var(--navy-900);
    color: var(--text-inverse-2);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--text-inverse-2); }

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 { margin-bottom: 14px; }

.section-head .lead {
    font-size: 18px;
    color: var(--text-3);
    margin-bottom: 0;
}

.text-center { text-align: center; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.3;
    white-space: nowrap;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
    background-color: var(--orange-500);
    color: #fff;
    box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
    background-color: var(--orange-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.38);
}

.btn-navy {
    background-color: var(--navy-900);
    color: #fff;
}

.btn-navy:hover {
    background-color: var(--navy-800);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--navy-900);
    color: var(--navy-900);
}

.btn-lg { padding: 18px 38px; font-size: 17px; border-radius: 12px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    max-width: 1240px;
    margin: 0 auto;
    gap: 16px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-logo:hover { color: var(--navy-900); }

.site-logo img {
    display: block;
    max-width: 200px;
    max-height: 52px;
    width: auto;
    height: auto;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #fff;
    flex-shrink: 0;
}

.site-logo .tld { color: var(--blue-600); font-weight: 600; }

.main-nav { display: none; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: 8px;
}

.main-nav a:hover {
    background: var(--bg-light);
    color: var(--navy-900);
}

.main-nav a.active {
    color: var(--blue-600);
    background: var(--sky-100);
}

.header-cta { display: none; }

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
}

.nav-toggle:hover { background: var(--bg-light); }

.nav-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--navy-900);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile panel */
.main-nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.main-nav.mobile-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 18px 20px;
}

.main-nav.mobile-open a {
    display: block;
    padding: 13px 16px;
    font-size: 15.5px;
}

.main-nav.mobile-open .nav-cta-item { margin-top: 10px; }
.main-nav.mobile-open .nav-cta-item .btn { width: 100%; }

@media (min-width: 1024px) {
    .main-nav { display: block; position: static; }
    .nav-toggle { display: none; }
    .header-cta { display: inline-flex; }
    .main-nav .nav-cta-item { display: none; }
}

/* ---------------------------------------------------------------
   Hero (split layout on dark navy)
   --------------------------------------------------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(21, 112, 239, 0.28), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(249, 115, 22, 0.14), transparent 55%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 70%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 64px 0 72px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--sky-400);
}

.hero .hero-sub {
    font-size: 18px;
    color: var(--text-inverse-2);
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 26px;
}

.hero-proof-item {
    flex: 1;
    min-width: 130px;
    padding-right: 20px;
}

.hero-proof-item + .hero-proof-item {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 20px;
}

.hero-proof-item .num {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.hero-proof-item .lbl {
    font-size: 13px;
    color: var(--text-inverse-2);
    margin-top: 2px;
}

/* Hero visual */
.hero-visual { position: relative; }

.hero-visual .hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 13px 18px;
    animation: floatY 5s ease-in-out infinite;
}

.float-card .fc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.float-card .fc-icon.is-orange { background: var(--orange-100); color: var(--orange-600); }
.float-card .fc-icon.is-green { background: var(--green-100); color: var(--green-600); }

.float-card .fc-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.25;
}

.float-card .fc-sub {
    font-size: 12.5px;
    color: var(--text-3);
}

.float-card--tl { top: -18px; left: -8px; animation-delay: 0.6s; }
.float-card--br { bottom: -18px; right: -8px; }

@media (min-width: 480px) {
    .hero-ctas { flex-direction: row; }
    .float-card--tl { top: -20px; left: -20px; }
    .float-card--br { bottom: -22px; right: -16px; }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.04fr 0.96fr;
        gap: 56px;
        padding: 96px 0 104px;
    }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* Trust bar */
.trust-bar {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 20px 0;
}

.trust-bar-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.trust-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.trust-bar-item svg { color: var(--sky-400); flex-shrink: 0; }

@media (min-width: 768px) {
    .trust-bar-items { grid-template-columns: repeat(4, 1fr); }
    .trust-bar-item { justify-content: center; }
}

/* ---------------------------------------------------------------
   Logo strip
   --------------------------------------------------------------- */
.logo-strip {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
}

.logo-strip .strip-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 22px;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    justify-content: center;
    align-items: center;
}

.logo-placeholder {
    width: 132px;
    height: 40px;
    background: var(--bg-light);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A3B2C2;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Credibility strip (homepage) */
.cred-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.cred-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.cred-item .icon-chip {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.cred-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cred-item small {
    display: block;
    font-size: 12.5px;
    color: var(--text-3);
}

@media (min-width: 768px) {
    .cred-row { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------
   Icon chips & feature cards
   --------------------------------------------------------------- */
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--sky-100);
    color: var(--blue-600);
    flex-shrink: 0;
}

.icon-chip.is-orange { background: var(--orange-100); color: var(--orange-600); }
.icon-chip.is-green { background: var(--green-100); color: var(--green-600); }
.icon-chip.is-navy { background: var(--navy-900); color: var(--sky-400); }

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-500);
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.1;
    margin: 18px 0 6px;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 8px;
}

.stat-card .stat-desc {
    font-size: 14.5px;
    color: var(--text-3);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------
   How it works steps
   --------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    position: relative;
}

.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-600);
    background: var(--sky-100);
    border-radius: 30px;
    padding: 5px 16px;
}

.step-card h3 { margin-bottom: 10px; }
.step-card p { margin-bottom: 0; font-size: 15.5px; color: var(--text-3); }

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------
   Split section (image + content)
   --------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: center;
}

.split-media img,
.split-media .img-frame { width: 100%; }

.split-content h2 { margin-bottom: 16px; }

.split-content .lead {
    font-size: 17.5px;
    color: var(--text-3);
}

@media (min-width: 1024px) {
    .split { grid-template-columns: 1fr 1fr; gap: 72px; }
    .split--media-right .split-media { order: 2; }
}

/* Image frame (for figures/photos) */
.img-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    background: var(--bg-light);
}

.img-frame img { width: 100%; display: block; }

figure.content-figure {
    margin: 32px 0;
}

figure.content-figure figcaption {
    font-size: 13.5px;
    color: var(--text-3);
    margin-top: 10px;
    text-align: center;
}

/* Feature checklist with SVG checks */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 30px;
}

.feature-list li {
    display: flex;
    gap: 13px;
    padding: 9px 0;
    color: var(--text-2);
    font-size: 16px;
}

.feature-list li svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--green-600);
}

.feature-list li strong { color: var(--text-1); }

/* ---------------------------------------------------------------
   Industry cards
   --------------------------------------------------------------- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15.5px;
    color: var(--text-1);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.industry-card .icon-chip {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.industry-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-500);
    box-shadow: var(--shadow-md);
    color: var(--blue-600);
}

.industry-card span.arrow {
    margin-left: auto;
    color: var(--border-strong);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .industry-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------
   Deadline / urgency panel
   --------------------------------------------------------------- */
.deadline-panel {
    background:
        radial-gradient(620px 320px at 100% 0%, rgba(249, 115, 22, 0.16), transparent 60%),
        linear-gradient(150deg, var(--navy-800), var(--navy-950));
    border-radius: var(--radius-lg);
    padding: 44px 30px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.deadline-panel .dp-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #FDBA74;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 30px;
    padding: 7px 16px;
    margin-bottom: 18px;
}

.deadline-panel h2 {
    color: #fff;
    font-size: 25px;
    margin-bottom: 14px;
}

.deadline-panel p {
    color: var(--text-inverse-2);
    margin-bottom: 0;
    max-width: 640px;
}

.deadline-panel strong { color: #fff; }

.deadline-panel .dp-cta { text-align: left; }

@media (min-width: 1024px) {
    .deadline-panel {
        grid-template-columns: 1fr auto;
        padding: 56px 60px;
    }
    .deadline-panel h2 { font-size: 30px; }
}

/* ---------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--amber-500);
    margin-bottom: 16px;
}

.testimonial-quote {
    color: var(--text-2);
    flex-grow: 1;
    font-size: 15.5px;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--navy-900));
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author {
    margin: 0;
    font-weight: 700;
    color: var(--text-1);
    font-size: 15px;
    line-height: 1.4;
}

.testimonial-author span {
    display: block;
    font-weight: 500;
    color: var(--text-3);
    font-size: 13.5px;
}

.testimonial-result {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-600);
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    padding: 4px 14px;
    margin-bottom: 16px;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------
   Final CTA panel
   --------------------------------------------------------------- */
.cta-panel {
    background:
        radial-gradient(700px 360px at 50% -20%, rgba(21, 112, 239, 0.35), transparent 65%),
        linear-gradient(165deg, var(--navy-800), var(--navy-950));
    border-radius: var(--radius-lg);
    padding: 60px 28px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-panel h2 { color: #fff; margin-bottom: 14px; }

.cta-panel p {
    color: var(--text-inverse-2);
    max-width: 580px;
    margin: 0 auto 30px;
}

.cta-panel .cta-note {
    font-size: 13.5px;
    color: var(--text-inverse-2);
    margin: 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

@media (min-width: 768px) {
    .cta-panel { padding: 76px 60px; }
}

/* ---------------------------------------------------------------
   Forms
   --------------------------------------------------------------- */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px 24px;
}

.form-card .form-title {
    font-size: 21px;
    margin-bottom: 6px;
}

.form-card .form-subtitle {
    font-size: 14.5px;
    color: var(--text-3);
    margin-bottom: 26px;
}

@media (min-width: 768px) {
    .form-card { padding: 42px 40px; }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 18px;
}

@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 7px;
    color: var(--text-1);
}

.form-group label .required { color: var(--red-600); }

.form-control {
    width: 100%;
    padding: 13px 15px;
    font-family: var(--font-body);
    font-size: 15.5px;
    color: var(--text-1);
    background: var(--bg-white);
    border: 1.5px solid var(--border-strong);
    border-radius: 10px;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' d='m1.5 1.5 5.5 6 5.5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 42px;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(21, 112, 239, 0.13);
}

.form-control.invalid {
    border-color: var(--red-600);
    background: #FFFBFB;
}

.field-error {
    display: none;
    color: var(--red-600);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.form-control.invalid + .field-error,
.form-control.invalid ~ .field-error { display: block; }

textarea.form-control { resize: vertical; min-height: 140px; }

.form-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-3);
    margin: 16px 0 0;
}

.form-secure-note svg { color: var(--green-600); flex-shrink: 0; }

.field-hint {
    display: block;
    font-size: 12.5px;
    color: var(--text-3);
    margin-top: 5px;
}

/* Address autocomplete dropdown */
.autocomplete-wrap { position: relative; }

.autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1.5px solid var(--border-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 11px 15px;
    font-size: 14.5px;
    color: var(--text-2);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child { border-bottom: none; }

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--sky-100);
    color: var(--navy-900);
}

/* Honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Alerts */
.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.55;
}

.alert-error {
    background: var(--red-100);
    color: #991B1B;
    border: 1px solid #F5C6CB;
}

.alert-success {
    background: var(--green-100);
    color: #14532D;
    border: 1px solid #BBE5C8;
}

/* ---------------------------------------------------------------
   Quote page layout
   --------------------------------------------------------------- */
.quote-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

@media (min-width: 1024px) {
    .quote-layout { grid-template-columns: 1.45fr 1fr; gap: 44px; }
}

.trust-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
}

.trust-panel h3 { margin-bottom: 18px; font-size: 18px; }

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    font-weight: 500;
    color: var(--text-2);
    font-size: 15px;
}

.trust-list li svg {
    color: var(--green-600);
    flex-shrink: 0;
    margin-top: 3px;
}

.mini-faq { border-top: 1px solid var(--border); padding-top: 24px; }

.mini-faq-item { margin-bottom: 18px; }

.mini-faq-item strong {
    display: block;
    color: var(--navy-900);
    font-family: var(--font-heading);
    font-size: 15px;
    margin-bottom: 4px;
}

.mini-faq-item p { font-size: 14px; margin-bottom: 0; color: var(--text-3); }

/* ---------------------------------------------------------------
   Solar cost calculator
   --------------------------------------------------------------- */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 1024px) {
    .calc-layout { grid-template-columns: 1fr 1.2fr; gap: 40px; }
}

.calc-bill-wrap { position: relative; }

.calc-dollar {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-3);
}

.calc-bill-wrap .form-control { padding-left: 32px; }

.calc-range {
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: var(--border);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    margin: 10px 0 6px;
}

.calc-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange-500);
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.calc-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange-500);
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.calc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.calc-result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.calc-result-card .crc-label,
.calc-total .crc-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-3);
    margin-bottom: 6px;
}

.calc-result-card .crc-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
}

.calc-result-card.is-credit .crc-value { color: var(--green-600); }

.calc-result-card.is-primary {
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.calc-result-card.is-primary .crc-label { color: var(--text-inverse-2); }
.calc-result-card.is-primary .crc-value { color: #fff; }

.calc-total {
    margin-top: 14px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-cta);
}

.calc-total .crc-label { color: rgba(255, 255, 255, 0.85); }

.calc-total-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

@media (min-width: 480px) {
    .calc-result-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .calc-result-grid { grid-template-columns: repeat(3, 1fr); }
    .calc-result-card .crc-value { font-size: 26px; }
}

/* ---------------------------------------------------------------
   Page hero (inner pages)
   --------------------------------------------------------------- */
.page-hero {
    background:
        radial-gradient(700px 380px at 90% -20%, rgba(21, 112, 239, 0.25), transparent 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%, var(--navy-950) 100%);
    color: #fff;
    padding: 60px 0 64px;
}

.page-hero .container { max-width: 880px; }

.page-hero h1 { color: #fff; margin-bottom: 16px; }

.page-hero p {
    color: var(--text-inverse-2);
    margin: 0;
    font-size: 18px;
    max-width: 660px;
}

.page-hero--center { text-align: center; }
.page-hero--center p { margin: 0 auto; }

@media (min-width: 768px) {
    .page-hero { padding: 84px 0 88px; }
}

/* ---------------------------------------------------------------
   Article content
   --------------------------------------------------------------- */
.article-content { padding: 56px 0 72px; }

.article-content h2 {
    margin: 52px 0 18px;
    color: var(--navy-900);
    font-size: 25px;
}

.article-content h2:first-of-type { margin-top: 0; }
.article-content h3 { margin: 30px 0 12px; }

.article-content ul,
.article-content ol {
    margin-bottom: 1.2em;
    color: var(--text-2);
}

.article-content li { margin-bottom: 0.55em; }

@media (min-width: 768px) {
    .article-content h2 { font-size: 29px; }
}

.byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 13.5px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 36px;
}

.byline .byline-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.byline svg { color: var(--blue-600); }

/* Data tables */
.data-table-wrap {
    overflow-x: auto;
    margin: 26px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.data-table th {
    background: var(--navy-900);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    text-align: left;
    padding: 14px 16px;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:last-child td { border-bottom: none; }

/* Inline CTA boxes */
.cta-box {
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(21, 112, 239, 0.25), transparent 60%),
        linear-gradient(155deg, var(--navy-800), var(--navy-950));
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    text-align: center;
    margin: 44px 0;
    color: #fff;
}

.cta-box h3 { color: #fff; margin-bottom: 10px; font-size: 21px; }
.cta-box p { margin-bottom: 22px; color: var(--text-inverse-2); }

/* FAQ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] { border-color: var(--blue-500); box-shadow: var(--shadow-sm); }

.faq-item summary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    padding: 18px 52px 18px 20px;
    cursor: pointer;
    color: var(--text-1);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231570EF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-size: contain;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-answer { padding: 0 20px 20px; }
.faq-answer p { margin-bottom: 0.6em; font-size: 15px; color: var(--text-2); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Checklist (SVG check via data URI) */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 9px 0 9px 36px;
    position: relative;
    color: var(--text-2);
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12.5 2.5 2.5 5-6'/%3E%3C/svg%3E");
    background-size: contain;
}

/* ---------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------- */
.breadcrumbs {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 11px 0;
    font-size: 13.5px;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--border-strong);
}

.breadcrumbs a { color: var(--text-3); font-weight: 500; }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs li[aria-current] { color: var(--text-1); font-weight: 600; }

/* ---------------------------------------------------------------
   Blog cards
   --------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-500);
}

.blog-card-image {
    height: 165px;
    background:
        radial-gradient(280px 160px at 85% 0%, rgba(56, 189, 248, 0.30), transparent 60%),
        linear-gradient(150deg, var(--navy-700), var(--navy-950));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-400);
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    align-self: flex-start;
    background: var(--sky-100);
    color: var(--blue-600);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.blog-card h3,
.blog-card .blog-card-title { font-size: 17.5px; margin-bottom: 10px; line-height: 1.35; font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.02em; }
.blog-card .blog-card-title a,
.blog-card h3 a { color: var(--text-1); }
.blog-card .blog-card-title a:hover,
.blog-card h3 a:hover { color: var(--blue-600); }

.blog-excerpt { font-size: 14.5px; flex-grow: 1; color: var(--text-3); }

.blog-meta {
    font-size: 12.5px;
    color: var(--text-3);
    margin: 14px 0 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--blue-600);
    font-size: 14.5px;
}

.read-more:hover { color: var(--navy-900); gap: 9px; }

@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Blog category filter chips */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-chip {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1.5px solid var(--border-strong);
    background: #fff;
    color: var(--text-2);
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.filter-chip.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 44px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border-strong);
    background: #fff;
    color: var(--text-2);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.page-link.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

/* Single post body */
.post-body h2 {
    margin: 44px 0 16px;
    color: var(--navy-900);
    font-size: 24px;
}

.post-body h3 { margin: 28px 0 12px; }

.post-body p { margin-bottom: 1.15em; }

.post-body ul,
.post-body ol {
    margin-bottom: 1.2em;
    color: var(--text-2);
}

.post-body li { margin-bottom: 0.5em; }

.post-body img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 24px 0;
}

.post-body blockquote {
    border-left: 4px solid var(--blue-600);
    background: var(--bg-light);
    padding: 16px 22px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    color: var(--text-2);
    font-style: italic;
}

@media (min-width: 768px) {
    .post-body h2 { font-size: 27px; }
}

/* ---------------------------------------------------------------
   Thank you page
   --------------------------------------------------------------- */
.thankyou-hero {
    text-align: center;
    padding: 72px 22px 56px;
}

.thankyou-hero .icon-chip {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.thankyou-hero h1 { color: var(--navy-900); max-width: 760px; margin: 0 auto 16px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: var(--text-inverse-2);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 44px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.footer-col p { color: #8DA2BC; font-size: 14.5px; }

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.footer-logo .logo-mark { width: 34px; height: 34px; border-radius: 9px; }
.footer-logo .tld { color: var(--sky-400); font-weight: 600; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-links a { color: #8DA2BC; font-size: 14.5px; }
.footer-links a:hover { color: var(--sky-400); }

.social-icons { display: flex; gap: 10px; margin-top: 16px; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #B6C5DA;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--blue-600);
    color: #fff;
    transform: translateY(-2px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8DA2BC;
    font-size: 14.5px;
    margin-bottom: 12px;
}

.footer-contact-item svg { color: var(--sky-400); flex-shrink: 0; }
.footer-contact-item a { color: #B6C5DA; }
.footer-contact-item a:hover { color: var(--sky-400); }

.footer-disclosure {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 22px 0;
    font-size: 12.5px;
    color: #6E83A1;
    line-height: 1.7;
}

.footer-disclosure a { color: #8DA2BC; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    font-size: 13.5px;
    color: #6E83A1;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-bottom a { color: #8DA2BC; }
.footer-bottom a:hover { color: var(--sky-400); }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; }
}

/* ---------------------------------------------------------------
   Admin panel
   --------------------------------------------------------------- */
.admin-body { background: var(--bg-light); min-height: 100vh; }

.admin-header {
    background: var(--navy-950);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header .admin-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16.5px;
    color: #fff;
}

.admin-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.admin-nav a {
    color: #B6C5DA;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.admin-main { max-width: 1280px; margin: 0 auto; padding: 34px 22px; }

.admin-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}

.admin-stat-card .num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.1;
}

.admin-stat-card .label {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.admin-filters .form-group { margin-bottom: 0; min-width: 150px; flex: 1; }
.admin-filters .btn { padding: 12px 20px; font-size: 14px; }

.admin-table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.admin-table th {
    background: var(--bg-light);
    color: var(--text-2);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 12px 10px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.admin-table th a { color: var(--blue-600); }

.admin-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: middle;
}

.admin-table tr:hover td { background: var(--bg-light); }

.status-select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    font-size: 13px;
    font-family: var(--font-body);
}

.status-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-new { background: var(--sky-100); color: var(--blue-600); }
.status-contacted { background: var(--orange-100); color: var(--orange-600); }
.status-qualified { background: var(--green-100); color: var(--green-600); }
.status-closed { background: #ECEFF3; color: #475569; }
.status-spam { background: var(--red-100); color: var(--red-600); }

/* Admin login */
.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(700px 380px at 80% -10%, rgba(21, 112, 239, 0.30), transparent 60%),
        linear-gradient(160deg, var(--navy-800), var(--navy-950));
    padding: 20px;
}

.admin-login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 44px 36px;
    width: 100%;
    max-width: 420px;
}

.admin-login-card h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-login-card .sub {
    text-align: center;
    color: var(--text-3);
    font-size: 14px;
    margin-bottom: 28px;
}

/* ---------------------------------------------------------------
   Scroll animations
   --------------------------------------------------------------- */
.fade-in-up,
.fade-in-left {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
    will-change: opacity, transform;
}

.fade-in-up { transform: translateY(28px); }
.fade-in-left { transform: translateX(-28px); }

.fade-in-up.visible,
.fade-in-left.visible {
    opacity: 1;
    transform: none;
}

.no-js .fade-in-up,
.no-js .fade-in-left {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in-up, .fade-in-left {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .float-card { animation: none; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Print
   --------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .hero-ctas, .btn,
    .cta-box, .cta-panel, .deadline-panel, .nav-toggle {
        display: none !important;
    }

    body { font-size: 12pt; color: #000; background: #fff; }

    a::after {
        content: ' (' attr(href) ')';
        font-size: 10pt;
        color: #555;
    }
}
