/* ========================================
   PREMIER HEATING & AIR CONDITIONING INC.
   Styles — Forest Green + Off-White Theme
   ======================================== */

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

:root {
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-100: #d1fae5;
    --green-50:  #ecfdf5;
    --cream:     #faf9f6;
    --cream-dark:#f0efe9;
    --white:     #ffffff;
    --black:     #0f1a16;
    --gray-900:  #1a2e26;
    --gray-700:  #374a41;
    --gray-500:  #6b8f7e;
    --gray-300:  #b8c9c0;
    --gray-100:  #e8ede9;
    --shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.08);
    --shadow-md: 0 4px 16px rgba(6, 78, 59, 0.10);
    --shadow-lg: 0 12px 40px rgba(6, 78, 59, 0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--gray-900);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--green-600); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--green-900);
    line-height: 1.2;
}

.section-label {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 640px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.btn-primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--green-900);
    border-color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--green-900);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--green-900);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--green-900);
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--green-700);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-sub {
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--gray-500);
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition);
}

.main-nav a:hover { color: var(--green-700); }

.nav-cta {
    background: var(--green-700);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: var(--green-800);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-900);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.92) 0%,
        rgba(6, 95, 70, 0.85) 50%,
        rgba(4, 120, 87, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--green-100);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green-400, #34d399);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    color: var(--white);
    max-width: 780px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-headline em {
    font-style: italic;
    color: var(--green-100);
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 580px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--green-400, #34d399);
}

/* ---------- Services ---------- */
.services {
    padding: 100px 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-100);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--green-900);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-700);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.service-link:hover { gap: 8px; }

/* ---------- Why Us ---------- */
.why-us {
    padding: 100px 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.why-intro {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 36px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-100);
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
}

.why-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 6px;
}

.why-item p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.65;
}

/* ---------- Stats ---------- */
.stats {
    padding: 60px 0;
    background: var(--green-900);
}

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

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

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--green-100);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
}

/* ---------- Areas ---------- */
.areas {
    padding: 100px 0;
    background: var(--cream);
}

.areas-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.areas-content p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 28px;
}

.areas-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-bottom: 32px;
}

.areas-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.areas-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--green-600);
    border-radius: 50%;
}

.areas-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.areas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/5;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-details {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-detail .method-icon {
    width: 44px;
    height: 44px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
}

.about-detail strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.about-detail span,
.about-detail a {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.about-detail a:hover { color: var(--green-700); }

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/5.5;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 80px 0;
    background: var(--green-800);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.method-icon {
    width: 52px;
    height: 52px;
    background: var(--green-700);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.method-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.contact-method a,
.contact-method span {
    font-size: 1rem;
    color: var(--green-900);
    font-weight: 500;
    line-height: 1.5;
}

.contact-method a:hover { color: var(--green-700); }

/* ---------- Form ---------- */
.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form h3,
.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

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

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

.form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--green-50);
    border: 2px solid var(--green-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--green-700);
}

.form-success h3 {
    color: var(--green-900);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--gray-700);
    line-height: 1.7;
}

.form-success a {
    font-weight: 600;
    color: var(--green-700);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo .logo-mark {
    background: rgba(255,255,255,0.15);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-100);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--green-100);
    font-weight: 500;
}

.footer-contact a:hover { color: var(--white); }

.footer-hours {
    margin-top: 12px;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.5) !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--gray-100);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .main-nav a {
        font-size: 1rem;
    }
    .hero-headline {
        font-size: clamp(1.75rem, 7vw, 2.75rem);
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .why-grid,
    .areas-layout,
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-image { order: -1; }
    .areas-image { order: -1; }
    .about-image { order: -1; }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .services, .why-us, .areas, .about, .contact { padding: 64px 0; }
    .service-card { padding: 28px 22px; }
    .contact-form-wrapper { padding: 24px; }
    .hero-trust { gap: 16px; }
    .areas-list { grid-template-columns: 1fr; }
}
