/* ModrnDegree — HVAC landing site
   Palette: deep navy base + warm-orange accent (heating),
   with a cool-blue secondary for cooling services. */

:root {
    --navy:        #0f1b2d;
    --navy-700:    #16263d;
    --navy-600:    #1d3252;
    --panel:       #142235;
    --accent:      #f97316; /* heating orange */
    --accent-600:  #ea670c;
    --cool:        #38bdf8; /* cooling blue */
    --text:        #f4f7fb;
    --muted:       #9fb2c8;
    --line:        rgba(159, 178, 200, 0.16);
    --radius:      16px;
    --maxw:        1140px;
    --shadow:      0 18px 40px -20px rgba(0, 0, 0, 0.6);
    --font:        "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--navy);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 27, 45, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo { height: 26px; width: auto; }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.18s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
}

.nav-cta:hover { background: var(--accent-600); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-sm { padding: 11px 20px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(249, 115, 22, 0.22), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(56, 189, 248, 0.16), transparent 60%),
        linear-gradient(160deg, #0c1623 0%, #0f1b2d 55%, #0c1521 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 26px);
}

.hero-content {
    padding-top: clamp(70px, 11vw, 130px);
    padding-bottom: clamp(70px, 11vw, 130px);
    max-width: 820px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    color: var(--muted);
    max-width: 620px;
    margin-bottom: 34px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}

.hero-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.hero-badges li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-badges li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-muted { background: var(--navy-700); }
.section-dark { background: #0a131f; }

.section-head {
    max-width: 680px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.service-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    opacity: 0.85;
}

.service-cool::before { background: var(--cool); }
.service-condo::before { background: linear-gradient(90deg, var(--accent), var(--cool)); }

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(159, 178, 200, 0.3);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2rem;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-600);
    border-radius: 14px;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
    flex: 1;
}

.link-arrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: gap 0.18s ease, opacity 0.18s ease;
}

.service-cool .link-arrow { color: var(--cool); }

.link-arrow:hover { opacity: 0.8; }

.service-cta-card {
    background: linear-gradient(150deg, var(--navy-600), var(--panel));
    justify-content: center;
}

.service-cta-card::before { background: var(--accent); }

.service-cta-card .btn { align-self: flex-start; }

/* ---------- Features / Why ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.feature {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
}

.feature-num {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 14px;
}

.feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Testimonial ---------- */
.testimonial { max-width: 820px; margin: 0 auto; text-align: center; }

.testimonial blockquote p {
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}

.testimonial footer { color: var(--accent); font-weight: 600; }

/* ---------- Service area ---------- */
.area-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.area-copy h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0 16px;
}

.area-copy > p { color: var(--muted); margin-bottom: 24px; max-width: 520px; }

.area-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-list li {
    background: var(--navy-700);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.area-card {
    background: linear-gradient(155deg, var(--navy-600), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
}

.area-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.area-card p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.contact-copy h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0 16px;
}

.contact-copy > p { color: var(--muted); margin-bottom: 28px; }

.contact-list { list-style: none; display: grid; gap: 18px; }

.contact-list li { display: flex; flex-direction: column; gap: 2px; }

.contact-list strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.contact-list a, .contact-list span { color: var(--text); font-size: 1.05rem; font-weight: 500; }

.contact-form {
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    display: grid;
    gap: 18px;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--navy-700);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.18s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea { resize: vertical; }

.form-status { font-size: 0.92rem; color: var(--accent); min-height: 1.2em; }

/* Honeypot — hidden from humans, bots fill it and get rejected */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0a131f;
    border-top: 1px solid var(--line);
    padding: 54px 0 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-logo { height: 24px; width: auto; margin-bottom: 14px; }
.footer-tag { color: var(--muted); max-width: 420px; font-size: 0.96rem; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-weight: 500; transition: color 0.18s ease; }
.footer-links a:hover { color: var(--text); }

.copy {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .area-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--navy-700);
        border-bottom: 1px solid var(--line);
        padding: 8px 0;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links li { padding: 0 24px; }
    .nav-links a { display: block; padding: 14px 0; }
    .nav-cta { text-align: center; margin: 8px 24px; }
}
