/* 
 * ProLogic HVAC - Custom Styles
 * Purpose-built for HVAC business conversion
 */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-blue: #0066cc;
    --primary-dark: #004494;
    --secondary-orange: #ff6b35;
    --text-dark: #1a1a1a;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #2d3748;
    --border-gray: #e2e8f0;
    --success-green: #48bb78;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', var(--font-primary);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --mobile-section-padding: 50px 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-wrap: balance;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    text-wrap: pretty;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* === HEADER === */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 375px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-number:hover {
    color: var(--primary-dark);
}

.emergency-badge {
    background: var(--secondary-orange);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: var(--secondary-orange);
    color: white;
}

.btn-secondary:hover {
    background: #e55a28;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
    border-color: white;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, #004494 0%, #0066cc 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === SERVICES GRID === */
.services-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.service-card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* === EMERGENCY BANNER === */
.emergency-banner {
    background: var(--secondary-orange);
    color: white;
    padding: 2.5rem 20px;
    text-align: center;
}

.emergency-banner h2 {
    color: white;
    margin-bottom: 1rem;
}

.emergency-banner p {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.emergency-btn {
    background: white;
    color: var(--secondary-orange);
    font-weight: 600;
}

.emergency-btn:hover {
    background: var(--bg-light);
    color: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* === WHY CHOOSE US === */
.why-section {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-item h4 {
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-gray);
    flex-grow: 1;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

.contact-info {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-item-content p {
    margin: 0;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 20px 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: white;
}

.footer-section a {
    color: white;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom p {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    text-align: center;
    color: white;
    opacity: 0.75;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--mobile-section-padding);
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.25rem;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .header-content {
        gap: 1rem;
    }

    .logo img {
        height: 40px;
    }

    .phone-cta {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .emergency-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .phone-number {
        font-size: 1.125rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-item {
        align-items: center;
    }

    .contact-item-icon {
        width: 45px;
        height: 45px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero .btn {
        width: 100%;
    }

    .container {
        padding: 0 16px;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* === HORIZONTAL CONTACT CARDS === */
.contact-cards-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card-h {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    text-align: center;
}

.contact-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card-content h4 {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.contact-card-main a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-main a:hover {
    color: var(--primary-dark);
}

.contact-card-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.contact-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* === QUOTE PAGE LAYOUT === */
.quote-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.quote-form-container {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
}

.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 20px;
}

.quote-info-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    transition: border-color 0.3s ease;
}

.quote-info-card:hover {
    border-color: var(--primary-blue);
}

.quote-info-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.quote-info-card p {
    margin: 0.5rem 0;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.quote-info-card ul {
    font-size: 0.95rem;
}

.quote-info-card a {
    color: var(--primary-blue);
    text-decoration: none;
}

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

.quote-info-card a.btn-secondary {
    color: white;
}

.quote-phone-btn {
    width: 100%;
    margin-top: 1rem;
    display: block;
}

@media (max-width: 992px) {
    .quote-page-layout {
        grid-template-columns: 1fr;
    }

    .quote-sidebar {
        order: -1;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .contact-cards-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact-card-h {
        padding: 1.5rem 1rem;
    }

    .contact-cta {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .contact-cards-horizontal {
        grid-template-columns: 1fr;
    }
}

/* === JOTFORM CUSTOMIZATION === */
#formCoverLogo {
    display: none !important;
}

/* === QUOTE PAGE LAYOUT === */
.quote-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.quote-form-container {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
}

.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 20px;
}

.quote-info-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    transition: border-color 0.3s ease;
}

.quote-info-card:hover {
    border-color: var(--primary-blue);
}

.quote-info-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.quote-info-card p {
    margin: 0.5rem 0;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.quote-info-card ul {
    font-size: 0.95rem;
}

.quote-info-card a {
    color: var(--primary-blue);
    text-decoration: none;
}

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

.quote-phone-btn {
    width: 100%;
    margin-top: 1rem;
    display: block;
}

@media (max-width: 992px) {
    .quote-page-layout {
        grid-template-columns: 1fr;
    }

    .quote-sidebar {
        order: -1;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}