* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: Arial, sans-serif;
    color: #26352b;
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.navbar {
    min-height: 78px;
    padding: 12px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px #0000000c;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #17472e;
    font-size: 22px;
    font-weight: 800;
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
}

.brand-icon { font-size: 35px; color: #e6a928; }

.navbar nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    font-weight: 600;
}

.navbar nav a:hover { color: #23844a; }

.nav-login, .nav-vendor {
    padding: 10px 13px;
    border-radius: 6px;
    background: #eaf3eb;
    color: #17472e;
}

.nav-vendor {
    background: #17472e;
    color: white;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
}

.hero {
    min-height: 550px;
    padding: 75px 8%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    background: linear-gradient(120deg,#f1f7ed,#e4f1e4);
}

.eyebrow {
    color: #39824d;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(40px,5vw,66px);
    line-height: 1.12;
    color: #17472e;
    margin: 20px 0;
}

.hero h1 span { color: #d69b22; }

.hero-content > p {
    max-width: 540px;
    color: #58675c;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    padding: 13px 20px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #207346;
    color: white;
}

.btn-primary:hover { background: #145832; }

.btn-outline {
    border: 1px solid #207346;
    color: #207346;
    background: transparent;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #41654a;
    font-weight: 600;
}

.hero-visual {
    min-height: 330px;
    display: grid;
    place-items: center;
}

.solar-art {
    width: min(100%,430px);
    height: 300px;
    border-radius: 25px;
    background: linear-gradient(#b9d9ec 0 58%,#8ab77b 58%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px #214b3030;
}

.sun {
    position: absolute;
    top: 25px;
    right: 45px;
    font-size: 55px;
    color: #efb83b;
}

.house {
    position: absolute;
    bottom: 80px;
    left: 80px;
    width: 220px;
    height: 120px;
    background: #fff9e9;
    border-top: 8px solid #9b6540;
    text-align: center;
    font-size: 85px;
    color: #ad784b;
}

.panel {
    position: absolute;
    width: 180px;
    height: 85px;
    left: 100px;
    bottom: 170px;
    background: repeating-linear-gradient(90deg,#1a4771 0 2px,#3974a2 2px 58px);
    border: 5px solid #e8ece9;
    transform: skewY(-12deg);
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: repeat(2,1fr);
}

.panel span { border: 1px solid #a9d4e7; }

.art-caption {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
}

.trust-strip {
    padding: 25px 7%;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    background: #17472e;
    color: white;
}

.trust-strip div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-strip strong {
    color: #e6b43b;
    font-size: 25px;
}

.trust-strip span { font-size: 13px; }

.section { padding: 75px 8%; }

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading h2, .calculator-info h2,
.ai-section h2, .contact-info h2 {
    font-size: clamp(27px,3vw,38px);
    color: #17472e;
    margin: 10px 0;
}

.section-heading p { color: #69766d; }

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.solution-card, .amc-card {
    padding: 27px 22px;
    border: 1px solid #e5ebe5;
    border-radius: 13px;
    background: white;
    box-shadow: 0 8px 25px #1b472010;
}

.solution-card:hover {
    transform: translateY(-5px);
    transition: .2s;
}

.solution-icon { font-size: 38px; }

.solution-card h3, .amc-card h3 {
    margin: 12px 0;
    color: #17472e;
}

.solution-card p {
    min-height: 75px;
    color: #6a766d;
    font-size: 14px;
}

.solution-card a {
    color: #267b48;
    font-size: 13px;
    font-weight: bold;
}

.calculator-section {
    padding: 75px 9%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    background: #f0f6ef;
}

.calculator-info p { color: #647267; }

.calculator-info ul, .amc-card ul {
    list-style: none;
    margin: 22px 0;
}

.calculator-info li, .amc-card li {
    padding: 6px 0;
    color: #41664b;
}

.calculator-info small, .disclaimer {
    color: #7a847d;
    font-size: 12px;
}

.calculator-box, .inquiry-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 12px 35px #193e2015;
}

.calculator-box h3, .inquiry-form h3 {
    color: #17472e;
    margin-bottom: 18px;
    font-size: 23px;
}

.calculator-box label {
    display: block;
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: bold;
}

.calculator-box input, .calculator-box select,
.inquiry-form input, .inquiry-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid #dce4dc;
    border-radius: 7px;
    background: white;
    font-size: 14px;
    margin-bottom: 12px;
}

.full-btn { width: 100%; margin-top: 10px; }

.calculator-result {
    margin-top: 20px;
    padding: 17px;
    border-radius: 9px;
    background: #eef7ee;
}

.calculator-result div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #d9e8d9;
}

.calculator-result span { font-size: 13px; }
.calculator-result strong { color: #1c7140; }

.ai-section {
    margin: 65px 8%;
    padding: 35px;
    background: #edf5ec;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.ai-icon {
    font-size: 45px;
    color: #d49d26;
}

.ai-section p { color: #657368; }

.amc-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.amc-card { position: relative; }

.amc-card p { color: #758078; font-size: 13px; }

.amc-card.featured {
    border: 2px solid #27804b;
    transform: translateY(-8px);
}

.popular {
    background: #237646;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
}

.disclaimer { margin-top: 20px; text-align: center; }

.process-section { background: #f6f8f5; }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.process-grid div {
    background: white;
    border-radius: 12px;
    padding: 23px;
}

.process-grid strong {
    color: #d6a12d;
    font-size: 28px;
}

.process-grid h3 {
    color: #17472e;
    margin: 10px 0;
}

.process-grid p { color: #6b786e; font-size: 13px; }

.contact-section {
    padding: 75px 9%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    background: #eaf3e9;
}

.contact-info p {
    margin-top: 20px;
    color: #536b59;
}

.inquiry-form { display: flex; flex-direction: column; }

#message { overflow-wrap: anywhere; color: #207346; }

.footer {
    background: #123b27;
    color: white;
    padding: 35px 8%;
    text-align: center;
}

.footer-brand { justify-content: center; color: white; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 18px;
    font-size: 13px;
}

.copyright { color: #b6c9bb; font-size: 12px; }

@media(max-width:950px) {
    .navbar nav { gap: 10px; font-size: 11px; }
    .solution-grid { grid-template-columns: repeat(2,1fr); }
}

@media(max-width:700px) {
    .menu-toggle { display: block; }
    .navbar { flex-wrap: wrap; }
    .navbar nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0;
    }
    .navbar nav.open { display: flex; }
    .navbar nav a { padding: 9px; }
    .hero { grid-template-columns: 1fr; padding: 55px 7%; }
    .hero-visual { min-height: 280px; }
    .trust-strip { grid-template-columns: repeat(2,1fr); }
    .solution-grid, .amc-grid, .process-grid {
        grid-template-columns: 1fr;
    }
    .calculator-section, .contact-section {
        grid-template-columns: 1fr;
        padding: 55px 7%;
    }
    .ai-section {
        margin: 35px 5%;
        flex-direction: column;
        align-items: flex-start;
    }
    .section { padding: 55px 7%; }
    .amc-card.featured { transform: none; }
}
/* ===== SVN SOLAR CUSTOMER / VENDOR PORTAL ===== */

.portal-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #eaf5e9, #f8f5e9);
    box-sizing: border-box;
}

.portal-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 430px;
    padding: 35px 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
    text-align: center;
    box-sizing: border-box;
}

.portal-card h1 {
    color: #218447;
    font-size: 30px;
    margin-bottom: 10px;
}

.portal-card h2 {
    color: #263b2d;
    margin-bottom: 10px;
}

.portal-card p {
    color: #666;
    line-height: 1.5;
}

.portal-card form {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.portal-card input {
    display: block !important;
    width: 100%;
    padding: 14px;
    border: 1px solid #d5ded5;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    color: #222;
}

.portal-card button {
    display: block !important;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #218447;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.portal-card button:hover {
    background: #176b37;
}

.portal-card a {
    color: #218447;
    font-weight: 600;
    text-decoration: none;
}

.portal-card a:hover {
    text-decoration: underline;
}

#message {
    margin: 15px 0;
    font-weight: 600;
}
/* SVN SOLAR ADMIN PANEL */

.admin-header {
    background: #176b37;
    color: white;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    margin: 0;
}

.admin-header button,
.admin-item button {
    background: #218447;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.admin-header button {
    background: #ffffff;
    color: #176b37;
}

.admin-container {
    padding: 30px 5%;
    background: #f4f7f3;
    min-height: 100vh;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.admin-box,
.admin-item,
.admin-section {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.admin-box h2 {
    color: #218447;
    font-size: 30px;
}

.admin-section {
    margin-top: 25px;
}

.admin-item {
    border: 1px solid #e5eae5;
    margin: 15px 0;
}

.admin-item h3 {
    color: #218447;
}

.admin-item p {
    color: #555;
    overflow-wrap: anywhere;
}

.admin-item button {
    margin: 8px 8px 0 0;
}

.admin-item select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 10px 10px 0 0;
    max-width: 100%;
}

@media(max-width:600px) {

    .admin-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .admin-container {
        padding: 18px 12px;
    }

}