/* ============================================
   Rutland's Air Conditioning & Refrigeration
   Classic & Elegant — Deep Navy + Warm Gold
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #1E3A5F;
    background-color: #FDF9F3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::selection {
    background-color: #C9A84C;
    color: #fff;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1E3A5F;
}

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

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

/* ── Eyebrow ── */
.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 16px;
}

.section-eyebrow--light {
    color: #C9A84C;
}

/* ── Section Title ── */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-title--light {
    color: #FDF9F3;
}

/* ── Section Subtitle ── */
.section-subtitle {
    font-size: 1.05rem;
    color: #3D5A7A;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn--gold {
    background-color: #C9A84C;
    color: #1E3A5F;
    border-color: #C9A84C;
}

.btn--gold:hover {
    background-color: #b8953f;
    border-color: #b8953f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn--outline {
    background-color: transparent;
    color: #FDF9F3;
    border-color: rgba(253, 249, 243, 0.6);
}

.btn--outline:hover {
    background-color: rgba(253, 249, 243, 0.1);
    border-color: #FDF9F3;
    transform: translateY(-2px);
}

.btn--navy {
    background-color: #1E3A5F;
    color: #FDF9F3;
    border-color: #1E3A5F;
}

.btn--navy:hover {
    background-color: #152d4a;
    border-color: #152d4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.35);
}

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

/* ── Top Bar ── */
.top-bar {
    background-color: #1E3A5F;
    padding: 10px 0;
    font-size: 0.82rem;
    color: rgba(253, 249, 243, 0.8);
    letter-spacing: 0.02em;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-bar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #C9A84C;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-bar-phone:hover {
    color: #dbb85c;
}

/* ── Header ── */
.site-header {
    background-color: #FDF9F3;
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(30, 58, 95, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: #1E3A5F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E3A5F;
    line-height: 1.2;
}

.logo-text em {
    font-style: italic;
    font-weight: 400;
    font-size: 0.88rem;
    color: #C9A84C;
}

.logo--light .logo-text {
    color: #FDF9F3;
}

.logo--light .logo-text em {
    color: #C9A84C;
}

/* ── Navigation ── */
.main-nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1E3A5F;
    letter-spacing: 0.03em;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #C9A84C;
    background-color: rgba(201, 168, 76, 0.08);
}

.nav-link--cta {
    background-color: #C9A84C;
    color: #1E3A5F;
    font-weight: 600;
    margin-left: 8px;
}

.nav-link--cta:hover {
    background-color: #b8953f;
    color: #1E3A5F;
}

/* ── Mobile Nav Toggle ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1E3A5F;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #0a1628 0%,
        #1E3A5F 30%,
        #2a4f7a 50%,
        #1E3A5F 70%,
        #0a1628 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 60px 24px;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 28px;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 600;
    color: #FDF9F3;
    line-height: 1.15;
    margin-bottom: 28px;
}

.hero-headline em {
    font-style: italic;
    color: #C9A84C;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(253, 249, 243, 0.75);
    line-height: 1.85;
    max-width: 620px;
    margin: 0 auto 44px;
}

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

/* ── Services ── */
.services {
    background-color: #FDF9F3;
}

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

.service-card {
    background-color: #fff;
    border: 1px solid rgba(30, 58, 95, 0.07);
    border-radius: 8px;
    padding: 40px 32px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C9A84C, #dbb85c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(30, 58, 95, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: rgba(201, 168, 76, 0.15);
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.service-desc {
    font-size: 0.92rem;
    color: #3D5A7A;
    line-height: 1.75;
}

/* ── About ── */
.about {
    background-color: #F5F0E8;
}

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

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.15);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid #C9A84C;
    border-radius: 8px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-eyebrow {
    margin-bottom: 16px;
}

.about-title {
    margin-bottom: 28px;
}

.about-text {
    font-size: 1rem;
    color: #3D5A7A;
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-values {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1E3A5F;
}

/* ── Why Us ── */
.why-us {
    position: relative;
    background-color: #1E3A5F;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 0% 100%, rgba(201, 168, 76, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 100% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.why-us-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.why-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.why-item {
    padding: 36px;
    background-color: rgba(253, 249, 243, 0.04);
    border: 1px solid rgba(253, 249, 243, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.why-item:hover {
    background-color: rgba(253, 249, 243, 0.07);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-4px);
}

.why-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #C9A84C;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.why-title {
    font-size: 1.3rem;
    color: #FDF9F3;
    margin-bottom: 12px;
}

.why-desc {
    font-size: 0.92rem;
    color: rgba(253, 249, 243, 0.65);
    line-height: 1.8;
}

/* ── Areas ── */
.areas {
    background-color: #FDF9F3;
}

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

.areas-content {
    order: 1;
}

.areas-text {
    font-size: 1rem;
    color: #3D5A7A;
    line-height: 1.85;
    margin-bottom: 36px;
}

.areas-image-wrap {
    order: 2;
}

.areas-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.12);
    display: block;
}

/* ── Contact ── */
.contact {
    background-color: #F5F0E8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    margin-top: 60px;
    align-items: start;
}

.contact-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgba(201, 168, 76, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 6px;
}

.contact-detail h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 0.92rem;
    color: #3D5A7A;
    line-height: 1.7;
}

.contact-detail a {
    color: #1E3A5F;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: #C9A84C;
}

/* ── Form ── */
.contact-form-wrap {
    background-color: #fff;
    border-radius: 12px;
    padding: 44px;
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(30, 58, 95, 0.06);
}

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

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

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

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1E3A5F;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid rgba(30, 58, 95, 0.15);
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1E3A5F;
    background-color: #FDF9F3;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #C9A84C;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ab0c4;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

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

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

.form-success svg {
    margin: 0 auto 20px;
    color: #C9A84C;
}

.form-success h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.95rem;
    color: #3D5A7A;
    line-height: 1.75;
}

.form-success a {
    color: #C9A84C;
    font-weight: 600;
}

/* ── Footer ── */
.footer {
    background-color: #0a1628;
    color: rgba(253, 249, 243, 0.7);
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 20px;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(253, 249, 243, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #C9A84C;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: #C9A84C;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #dbb85c;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 249, 243, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(253, 249, 243, 0.4);
}

.footer-bottom a {
    color: rgba(253, 249, 243, 0.4);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #C9A84C;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

    .about-grid,
    .areas-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .areas-content {
        order: 1;
    }

    .areas-image-wrap {
        order: 2;
    }

    .about-image {
        height: 480px;
    }

    .about-image-accent {
        width: 120px;
        height: 120px;
        bottom: -12px;
        right: -12px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .top-bar {
        font-size: 0;
    }

    .top-bar span {
        display: none;
    }

    .top-bar-inner {
        justify-content: center;
    }

    .top-bar-phone {
        font-size: 0.82rem;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #FDF9F3;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 80px 40px;
        transition: right 0.35s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .main-nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }

    .nav-link--cta {
        margin-left: 0;
        margin-top: 12px;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(10, 22, 40, 0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .service-card {
        padding: 32px 28px;
    }

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

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-item {
        padding: 28px;
    }

    .areas-image {
        height: 320px;
    }

    .contact-form-wrap {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 56px 0;
    }

    .hero-content {
        padding: 40px 18px;
    }

    .contact-form-wrap {
        padding: 24px 20px;
    }
}

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

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
