/* =====================================================
   MODERN HEATING SERVICES WEBSITE - CSS
   ===================================================== */

/* Root Variables */
:root {
    --primary-color: #0369a1;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    --success-color: #16a34a;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-lighter: #cbd5e1;
    --border-color: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===================================================== 
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

/* ===================================================== 
   BUTTONS
   ===================================================== */
.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 25px rgba(3, 105, 161, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(3, 105, 161, 0.3);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

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

/* ===================================================== 
   NAVIGATION
   ===================================================== */
.navbar {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

/* ===================================================== 
   HERO SECTION
   ===================================================== */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(220, 38, 38, 0.05));
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-icon {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
    max-width: 300px;
}

.icon-star {
    font-size: 8rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: 20px;
    right: 20px;
    animation: float 6s ease-in-out infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    bottom: 40px;
    left: 40px;
    animation: float 8s ease-in-out infinite 1s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    top: 50%;
    left: 20%;
    animation: float 7s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* ===================================================== 
   HIGHLIGHTS SECTION
   ===================================================== */
.highlights {
    padding: 60px 0;
    background: white;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(220, 38, 38, 0.05));
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.1), rgba(220, 38, 38, 0.1));
}

.highlight-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.highlight-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===================================================== 
   KEY SERVICES SECTION
   ===================================================== */
.key-services {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(3, 105, 161, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--secondary-color);
}

/* ===================================================== 
   WHY CHOOSE US SECTION
   ===================================================== */
.why-choose-us {
    padding: 100px 0;
    background: white;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reason-item {
    padding: 30px;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(220, 38, 38, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.reason-item:nth-child(2n) {
    border-left-color: var(--secondary-color);
}

.reason-item:hover {
    transform: translateX(10px);
}

.reason-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.reason-item h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.reason-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================================== 
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ===================================================== 
   PAGE HERO
   ===================================================== */
.page-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(220, 38, 38, 0.05));
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
}

/* ===================================================== 
   SERVICES DETAILED
   ===================================================== */
.services-detailed {
    padding: 100px 0;
}

.service-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 2px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-header {
    margin-bottom: 30px;
}

.service-header h2 {
    color: var(--text-dark);
    font-size: 2rem;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===================================================== 
   ABOUT SECTION
   ===================================================== */
.about-section {
    padding: 100px 0;
}

.about-intro {
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(220, 38, 38, 0.05));
    border-radius: 12px;
}

.about-intro h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mission-card {
    padding: 40px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.mission-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(3, 105, 161, 0.1);
}

.mission-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.expertise-section,
.equipment-section,
.team-section,
.difference-section {
    margin-bottom: 60px;
}

.expertise-section h2,
.equipment-section h2,
.team-section h2,
.difference-section h2 {
    margin-bottom: 40px;
    color: var(--text-dark);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.expertise-item {
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.expertise-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.expertise-item ul {
    list-style: none;
}

.expertise-item li {
    padding: 8px 0;
    color: var(--text-light);
}

.equipment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.equipment-box {
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.equipment-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.equipment-box ul {
    list-style: none;
}

.equipment-box li {
    padding: 10px 0;
    color: var(--text-light);
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.difference-item {
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(220, 38, 38, 0.05));
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.difference-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.1), rgba(220, 38, 38, 0.1));
}

.difference-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-section h2 {
    margin-bottom: 40px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.timeline-item {
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.timeline-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.timeline-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.1), rgba(220, 38, 38, 0.1));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.timeline-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================================== 
   CONTACT SECTION
   ===================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.contact-info-item {
    padding: 25px;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(220, 38, 38, 0.05));
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.contact-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-info-item p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-info-item p:last-child {
    margin-bottom: 0;
}

/* ===================================================== 
   FAQ SECTION
   ===================================================== */
.faq-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(3, 105, 161, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.faq-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================================== 
   FOOTER
   ===================================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================================================== 
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .mission-values {
        grid-template-columns: 1fr;
    }

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

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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