/* =========================
   GE SunGrid Contact Page
   CSS Part 1
   Global + Navbar + Hero
========================= */

:root {
    --navy: #031426;
    --navy-2: #061b31;
    --navy-3: #0b2742;
    --yellow: #ffc21a;
    --yellow-2: #ffda5c;
    --white: #ffffff;
    --light: #f6f8fb;
    --text: #101828;
    --muted: #667085;
    --border: rgba(255, 255, 255, 0.16);
    --shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Inter", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 900;
    transition: all 0.35s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-yellow {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
    color: var(--navy);
    box-shadow: 0 14px 35px rgba(255, 194, 26, 0.3);
}

.btn-yellow:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(255, 194, 26, 0.45);
}

.btn-yellow::after,
.btn-outline-yellow::after {
    content: "→";
    transition: transform 0.3s ease;
}

.btn-yellow:hover::after,
.btn-outline-yellow:hover::after {
    transform: translateX(5px);
}

.btn-outline-yellow {
    color: var(--yellow);
    border: 2px solid var(--yellow);
    background: transparent;
}

.btn-outline-yellow:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: translateY(-4px);
}

/* Hero */

.contact-hero {
    min-height: 600px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(3, 20, 38, .99), rgba(3, 20, 38, .78), rgba(3, 20, 38, .25)),
        url("images/330343EA-FD52-4F71-86F4-3B9B66B0706E.PNG") center/cover no-repeat;
}

.navbar {
    width: min(var(--max-width), 92%);
    margin: auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown .8s ease both;
}

.logo {
    line-height: 1;
}

.logo span {
    display: block;
    font-size: 48px;
    font-weight: 950;
    color: var(--yellow);
    letter-spacing: -3px;
}

.logo small {
    display: block;
    color: var(--white);
    font-size: 15px;
    font-weight: 900;
    margin-top: -9px;
    margin-left: 47px;
}

.logo p {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 34px;
}

.nav-links a {
    position: relative;
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    width: 0;
    height: 3px;
    background: var(--yellow);
    transform: translateX(-50%);
    transition: .35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-content {
    width: min(var(--max-width), 92%);
    margin: auto;
    padding: 75px 0 95px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 70px;
    align-items: center;
}

.section-label {
    display: inline-block;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.section-label::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: var(--yellow);
    margin-top: 10px;
}

.hero-content h1 {
    max-width: 720px;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -3px;
    margin-bottom: 24px;
    animation: fadeUp .9s ease both;
}

.hero-content h1 span {
    color: var(--yellow);
    display: block;
}

.hero-content p {
    max-width: 620px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    margin-bottom: 34px;
    animation: fadeUp .9s ease both .15s;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 760px;
    animation: fadeUp .9s ease both .3s;
}

.hero-benefits div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, .22);
}

.hero-benefits div:first-child {
    padding-left: 0;
}

.hero-benefits div:last-child {
    border-right: none;
}

.hero-benefits span {
    color: var(--yellow);
    font-size: 34px;
}

.hero-benefits p {
    margin: 0;
    font-size: 14px;
}

/* Help Card */

.help-card {
    padding: 34px;
    border-radius: 22px;
    background: rgba(4, 20, 38, .84);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    animation: floatIn 1s ease both .45s;
}

.help-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
    font-size: 34px;
    margin-bottom: 22px;
}

.help-card h3 {
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.help-card strong {
    display: block;
    color: var(--yellow);
    font-size: 30px;
    margin-bottom: 20px;
}

.help-card p {
    margin-bottom: 8px;
    font-size: 15px;
}

/* Animations */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(35px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .help-card {
        max-width: 420px;
    }
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .nav-actions {
        flex-direction: column;
    }

    .hero-content {
        padding: 50px 0 70px;
    }

    .hero-content h1 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero-benefits div {
        padding: 0;
        border-right: none;
    }

    .btn {
        width: 100%;
    }
}

/* =========================
   GE SunGrid Contact Page
   CSS Part 2
   Contact Information + Contact Form
========================= */

/* =========================
   Contact Section
========================= */

.contact-section {
    width: min(var(--max-width), 100%);
    margin: 80px auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 55px;
    align-items: start;
}

/* =========================
   Contact Details
========================= */

.contact-details h2 {
    color: var(--navy);
    font-size: clamp(30px, 3vw, 42px);
    margin-bottom: 35px;
    position: relative;
}

.contact-details h2::after {
    content: "";
    width: 45px;
    height: 4px;
    background: var(--yellow);
    border-radius: 999px;
    display: block;
    margin-top: 12px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.detail-item span {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--yellow);
    border-radius: 16px;
    font-size: 28px;
    transition: .35s ease;
    box-shadow: 0 15px 35px rgba(3, 20, 38, .12);
}

.detail-item:hover span {
    background: var(--yellow);
    color: var(--navy);
    transform: translateY(-6px);
}

.detail-item h4 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 6px;
}

.detail-item p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================
   Contact Form
========================= */

.message-form {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 70px rgba(3, 20, 38, .08);
}

.message-form h2 {
    color: var(--navy);
    font-size: clamp(32px, 3vw, 46px);
    margin-bottom: 34px;
    position: relative;
}

.message-form h2::after {
    content: "";
    width: 45px;
    height: 4px;
    background: var(--yellow);
    border-radius: 999px;
    display: block;
    margin-top: 12px;
}

/* =========================
   Form Grid
========================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.message-form input,
.message-form select,
.message-form textarea {
    width: 100%;
    border: 2px solid #E6EAF0;
    border-radius: 14px;
    background: #fff;
    padding: 18px 20px;
    font-family: inherit;
    font-size: 15px;
    transition: .35s ease;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 5px rgba(255, 194, 26, .15);
}

.message-form textarea {
    height: 180px;
    resize: vertical;
    margin-top: 22px;
}

/* =========================
   Checkbox + Button
========================= */

.form-bottom {
    margin-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.form-bottom label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.form-bottom input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--yellow);
}

.form-bottom .btn {
    min-width: 260px;
}

/* =========================
   Nice Placeholder
========================= */

::placeholder {
    color: #98A2B3;
}

select {
    cursor: pointer;
}

/* =========================
   Hover Animation
========================= */

.message-form {
    transition: .4s ease;
}

.message-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 90px rgba(3, 20, 38, .12);
}

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {

    .contact-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}

@media (max-width: 750px) {

    .message-form {
        padding: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .form-bottom .btn {
        width: 100%;
    }

}

/* =========================
   GE SunGrid Contact Page
   CSS Part 3
   Map Section + CTA
========================= */

/* =========================
   Map Section
========================= */

.map-section {
    width: min(var(--max-width), 92%);
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(3, 20, 38, 0.1);
}

.map-card {
    padding: 40px 32px;
    color: var(--white);
    background: var(--navy);
}

.map-card span {
    display: block;
    color: var(--yellow);
    font-size: 48px;
    margin-bottom: 20px;
}

.map-card h2 {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.map-card p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 26px;
}

.map-placeholder {
    position: relative;
    min-height: 240px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
        url("images/map.jpg") center/cover no-repeat;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 58%;
    transform: translate(-50%, -50%);
    padding: 20px 24px;
    min-width: 280px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(3, 20, 38, 0.16);
}

.map-pin::before {
    content: "📍";
    position: absolute;
    left: -54px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--navy);
    font-size: 26px;
    box-shadow: 0 14px 34px rgba(255, 194, 26, 0.35);
}

.map-pin strong {
    display: block;
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 5px;
}

.map-pin p {
    color: var(--muted);
    font-size: 13px;
}

/* =========================
   CTA Section
========================= */

.cta {
    width: min(var(--max-width), 92%);
    margin: 35px auto 0;
    padding: 38px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    border-radius: 22px;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 194, 26, 0.16), transparent 32%),
        var(--navy);
    box-shadow: var(--shadow);
}

.cta-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
    font-size: 36px;
    animation: ctaPulse 2.6s ease-in-out infinite;
}

.cta h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.cta p {
    color: rgba(255, 255, 255, 0.78);
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 18px 45px rgba(255, 194, 26, 0.26);
    }

    50% {
        transform: scale(1.07);
        box-shadow: 0 28px 70px rgba(255, 194, 26, 0.46);
    }
}

/* =========================
   Responsive Part 3
========================= */

@media (max-width: 950px) {
    .map-section {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        min-height: 320px;
    }

    .cta {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 650px) {
    .map-section {
        width: 90%;
    }

    .map-pin {
        left: 50%;
        min-width: 230px;
    }

    .map-pin::before {
        left: 50%;
        top: -62px;
        transform: translateX(-50%);
    }

    .cta {
        padding: 30px;
    }

    .cta .btn {
        width: 100%;
    }
}

/* =========================
   GE SunGrid Contact Page
   CSS Part 4
   Footer + Socials + Final Polish
========================= */

/* =========================
   Footer
========================= */

.footer {
    background: #020d1a;
    color: var(--white);
    padding: 80px 4% 0;
    margin-top: 0;
}

.footer-grid {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr 0.9fr;
    gap: 42px;
    padding-bottom: 55px;
}

.footer .logo {
    margin-bottom: 22px;
}

.footer h4 {
    font-size: 17px;
    margin-bottom: 18px;
    color: var(--white);
}

.footer p,
.footer a {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

/* =========================
   Social Icons
========================= */

.socials {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--yellow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 0;
}

.socials a:hover {
    background: var(--yellow);
    color: var(--navy);
    transform: translateY(-5px);
}

/* =========================
   Footer Bottom
========================= */

.footer-bottom {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom div {
    display: flex;
    gap: 24px;
}

/* =========================
   Final UI Polish
========================= */

::selection {
    background: var(--yellow);
    color: var(--navy);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020d1a;
}

::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 999px;
}

section {
    scroll-margin-top: 90px;
}

button,
a,
article,
div,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

.detail-item,
.message-form,
.map-card,
.map-placeholder,
.cta,
.footer a,
.socials a {
    will-change: transform;
}

/* =========================
   Optional Reveal Animation
   Use class="reveal" on sections/cards
========================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    animation: revealUp 0.9s ease forwards;
}

.reveal.delay-1 {
    animation-delay: 0.15s;
}

.reveal.delay-2 {
    animation-delay: 0.3s;
}

.reveal.delay-3 {
    animation-delay: 0.45s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Focus Accessibility
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

/* =========================
   Tablet Responsive
========================= */

@media (max-width: 1150px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* =========================
   Mobile Responsive
========================= */

@media (max-width: 650px) {
    body {
        font-size: 15px;
    }

    .section-label {
        font-size: 11px;
    }

    .footer {
        padding-top: 65px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom div {
        flex-direction: column;
        gap: 8px;
    }

    .footer-bottom {
        font-size: 13px;
    }

    .logo span {
        font-size: 42px;
    }

    .logo small {
        margin-left: 38px;
    }

    .socials a {
        width: 42px;
        height: 42px;
    }
}

/* ========================
   Reduced Motion Support
========================= */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
