/* HVAC Theme CSS Variables */
:root {
    /* HVAC Theme Colors */
    --background: hsl(210, 100%, 20%); /* Deep Blue #003366 */
    --foreground: hsl(0, 0%, 100%); /* White text */
    
    --card: hsl(210, 100%, 20%);
    --card-foreground: hsl(0, 0%, 100%);
    
    --primary: hsl(207, 100%, 40%); /* Medium Blue #0077CC */
    --primary-foreground: hsl(0, 0%, 100%);
    
    --secondary: hsl(195, 100%, 50%); /* Light Blue #00BFFF */
    --secondary-foreground: hsl(210, 100%, 20%);
    
    --muted: hsl(210, 50%, 30%);
    --muted-foreground: hsl(0, 0%, 80%);
    
    --accent: hsl(24, 100%, 50%); /* Orange #FF6600 */
    --accent-foreground: hsl(0, 0%, 100%);
    
    --border: hsl(210, 50%, 30%);
    
    --radius: 0.5rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.page-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

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

/* Background Snowflakes */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.snowflake {
    position: absolute;
    color: hsla(195, 100%, 50%, 0.15);
    animation: fall linear infinite;
    pointer-events: none;
}

.snowflake::before {
    content: "❄";
}

/* Different sizes for depth effect */
.snowflake:nth-child(3n) {
    font-size: 12px;
    animation-duration: 8s;
    opacity: 0.3;
}

.snowflake:nth-child(3n+1) {
    font-size: 18px;
    animation-duration: 12s;
    opacity: 0.2;
}

.snowflake:nth-child(3n+2) {
    font-size: 24px;
    animation-duration: 15s;
    opacity: 0.15;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
.header {
    background-color: hsla(210, 100%, 20%, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsla(210, 50%, 30%, 0.2);
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-foreground);
}

.logo-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--foreground);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .contact-info {
        flex-direction: row;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
}

.contact-item i {
    width: 1rem;
    height: 1rem;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    position: relative;
    z-index: 5;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero-content {
    max-width: 4xl;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Button Styles */
.cta-button {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: hsla(24, 100%, 50%, 0.9);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.cta-button-outline {
    background-color: transparent;
    color: var(--secondary);
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 1px solid var(--secondary);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background-color: hsla(195, 100%, 50%, 0.1);
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: hsla(210, 100%, 20%, 0.5);
    position: relative;
    z-index: 5;
}

.services-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .services-title {
        font-size: 2.25rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 6xl;
    margin: 0 auto;
}

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

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

.service-card {
    border: 1px solid hsla(210, 50%, 30%, 0.2);
    background-color: hsla(210, 100%, 20%, 0.5);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background-color: hsla(210, 100%, 20%, 0.7);
    transform: scale(1.05);
}

.service-header {
    text-align: center;
    padding-bottom: 1rem;
}

.service-icon {
    margin: 0 auto 1rem;
    width: 4rem;
    height: 4rem;
    background-color: hsla(195, 100%, 50%, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    width: 2rem;
    height: 2rem;
    color: var(--secondary);
}

.service-title {
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 0;
}

.service-content {
    text-align: center;
}

.service-description {
    color: var(--muted-foreground);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    position: relative;
    z-index: 5;
}

.cta-card {
    max-width: 2xl;
    margin: 0 auto;
    background-color: hsla(210, 100%, 20%, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid hsla(210, 50%, 30%, 0.2);
    text-align: center;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 1.875rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .services-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: var(--foreground);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

/* Form Styles */
.booking-form {
    padding: 1.5rem;
}

/* Honeypot field - hidden from users but visible to bots */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--card);
    color: var(--foreground);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px hsla(195, 100%, 50%, 0.2);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--accent-foreground);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary:disabled {
    background-color: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: hsla(24, 100%, 50%, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(24, 100%, 50%, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: hsla(195, 100%, 50%, 0.1);
    border-color: var(--secondary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message */
.success-message {
    background: hsla(120, 100%, 30%, 0.2);
    color: hsl(120, 100%, 80%);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 2px solid hsl(120, 100%, 40%);
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .booking-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}