/* ============================================
   Gill's Heating AC & Refrigeration
   Fresh & Airy — Terracotta + Sand Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Terracotta */
    --terracotta-50: #fdf0ed;
    --terracotta-100: #fce7e1;
    --terracotta-200: #f9d4c8;
    --terracotta-300: #f4b4a3;
    --terracotta-400: #ed8c73;
    --terracotta-500: #e06c50;
    --terracotta-600: #c4725a;
    --terracotta-700: #a85542;
    --terracotta-800: #8c4538;
    --terracotta-900: #743a30;

    /* Sand */
    --sand-50: #fefcf8;
    --sand-100: #fdf6eb;
    --sand-200: #faedcf;
    --sand-300: #f5e0a8;
    --sand-400: #edd07d;
    --sand-500: #e3be52;
    --sand-600: #d4a832;
    --sand-700: #b08624;
    --sand-800: #8c6a20;
    --sand-900: #70551d;

    /* Neutrals */
    --neutral-50: #faf9f7;
    --neutral-100: #f5f3ef;
    --neutral-200: #eae5dd;
    --neutral-300: #d4cdc2;
    --neutral-400: #b5aa9a;
    --neutral-500: #948879;
    --neutral-600: #75695c;
    --neutral-700: #5c5248;
    --neutral-800: #453e36;
    --neutral-900: #2e2924;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-padding: clamp(1.25rem, 4vw, 3rem);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(46, 41, 36, 0.06), 0 1px 2px rgba(46, 41, 36, 0.04);
    --shadow-md: 0 4px 16px rgba(46, 41, 36, 0.08), 0 2px 4px rgba(46, 41, 36, 0.04);
    --shadow-lg: 0 12px 40px rgba(46, 41, 36, 0.12), 0 4px 12px rgba(46, 41, 36, 0.06);
    --shadow-xl: 0 24px 60px rgba(46, 41, 36, 0.16);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--sand-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* --- Section Tag --- */
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    background: var(--terracotta-50);
    border: 1px solid var(--terracotta-200);
    padding: 0.4em 1em;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(3rem, 6vw, 4rem);
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--neutral-500);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta-600);
    color: #fff;
    box-shadow: 0 4px 16px rgba(196, 114, 90, 0.3);
}

.btn-primary:hover {
    background: var(--terracotta-700);
    box-shadow: 0 6px 24px rgba(196, 114, 90, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--terracotta-600);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(254, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.875rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--neutral-900);
}

.logo-light {
    color: #fff;
}

.logo-icon {
    color: var(--terracotta-600);
}

.logo-light .logo-icon {
    color: var(--sand-300);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta-600);
    transition: width var(--transition-base);
}

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

.nav-links a::after:hover {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--neutral-700);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(46, 41, 36, 0.72) 0%,
        rgba(46, 41, 36, 0.45) 50%,
        rgba(196, 114, 90, 0.25) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-200);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5em 1.25em;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 560px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

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

/* --- Services --- */
.services {
    padding: var(--section-padding) 0;
    background: var(--sand-50);
}

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

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--neutral-100);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--terracotta-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta-50);
    border-radius: 16px;
    color: var(--terracotta-600);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--terracotta-600);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: var(--section-padding) 0;
    background: var(--neutral-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--terracotta-200);
    border-radius: 20px;
    z-index: -1;
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    color: var(--neutral-600);
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--neutral-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--terracotta-600);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Why Us --- */
.why-us {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--sand-50) 0%, var(--terracotta-50) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.feature:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--terracotta-200);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color var(--transition-base);
}

.feature:hover .feature-number {
    color: var(--terracotta-400);
}

.feature h3 {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.feature p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
}

/* --- CTA --- */
.cta {
    padding: clamp(5rem, 12vw, 8rem) 0;
    position: relative;
    overflow: hidden;
    background: var(--terracotta-700);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(227, 176, 82, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(196, 114, 90, 0.3) 0%, transparent 60%);
}

.cta-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
}

.cta-title {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* --- Contact --- */
.contact {
    padding: var(--section-padding) 0;
    background: var(--sand-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--terracotta-50);
    border-radius: 14px;
    color: var(--terracotta-600);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--neutral-800);
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

.contact-item a {
    color: var(--terracotta-600);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--terracotta-700);
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
}

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

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--neutral-200);
    border-radius: 12px;
    background: var(--sand-50);
    color: var(--neutral-800);
    transition: all var(--transition-fast);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta-400);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(196, 114, 90, 0.1);
}

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

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    color: #16a34a;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background: var(--neutral-900);
    color: rgba(255, 255, 255, 0.7);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-contact a {
    color: var(--sand-300);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Reveal Animations (progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--sand-50);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        padding-top: 5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .about-stats {
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-image-accent {
        display: none;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
}
