html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    font-family: "Inter", Arial, sans-serif;
    color: #0f172a;
    background: #f8fafc !important;
}

/* First section top gap is controlled globally in headerv1.5.css. */
body:has(.im-topbar):has(.im-header) .contact-page > .contact-section:first-child,
body:has(.im-topbar):has(.im-header) .elementor-widget-html:has(.contact-section) .contact-section:first-of-type {
    padding-top: var(--im-first-section-top-gap, clamp(1rem, 1.8vw, 1.5rem)) !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.elementor-widget-html:has(.contact-page),
.elementor-widget-html:has(.contact-page) > .elementor-widget-container,
.elementor-widget-container:has(.contact-page),
.elementor-element:has(.contact-page),
.elementor-section:has(.contact-page),
.elementor-container:has(.contact-page),
.elementor-column:has(.contact-page),
.elementor-widget-wrap:has(.contact-page),
.elementor-column-wrap:has(.contact-page),
.elementor-section-wrap:has(.contact-page),
.elementor-top-section:has(.contact-page),
.e-con:has(.contact-page),
.elementor-widget-html:has(.contact-section),
.elementor-widget-html:has(.contact-section) > .elementor-widget-container,
.elementor-widget-container:has(.contact-section),
.elementor-element:has(.contact-section),
.elementor-section:has(.contact-section),
.elementor-container:has(.contact-section),
.elementor-column:has(.contact-section),
.elementor-widget-wrap:has(.contact-section),
.elementor-column-wrap:has(.contact-section),
.elementor-section-wrap:has(.contact-section),
.elementor-top-section:has(.contact-section),
.e-con:has(.contact-section) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #f8fafc !important;
}

.contact-page {
    width: 100%;
    overflow: visible;
    background: #f8fafc;
}

.contact-section {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: -1px 0 !important;
    padding: 4.75rem 0;
    overflow: hidden;
    isolation: isolate;
    background: #f8fafc;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

.contact-bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
    filter: grayscale(1);
    animation: contactSlowFloat 12s ease-in-out infinite;
}

.contact-bg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-bg-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #f8fafc, rgba(248, 250, 252, 0.45), #f8fafc),
        linear-gradient(180deg, #f8fafc, rgba(248, 250, 252, 0.35), #f8fafc);
}

.contact-header {
    max-width: 66rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.contact-header-compact {
    max-width: 58rem;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.contact-kicker-glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
}

.contact-kicker i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #2563eb;
    animation: contactPulse 1.7s ease-in-out infinite;
}

.contact-header h1,
.contact-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(3rem, 8vw, 6.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.98;
    text-transform: uppercase;
}

.contact-header h1 {
    font-size: clamp(3rem, 7vw, 5.75rem);
    line-height: 0.95;
}

.contact-header h2 span,
.contact-newsletter h2 span {
    display: block;
    color: transparent;
    font-style: italic;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-header h1 span {
    display: block;
    color: transparent;
    font-style: italic;
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-header p {
    max-width: 58rem;
    margin: 2rem auto 0;
    color: #64748b;
    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.72;
}

.contact-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    margin-bottom: 4rem;
}

.contact-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 2.5rem;
    background: #ffffff;
    text-align: center;
    transition: transform 0.45s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-action-card:hover {
    transform: translateY(-0.7rem);
    border-color: #2563eb;
    box-shadow: 0 36px 75px rgba(15, 23, 42, 0.13);
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 2rem;
    border-radius: 1.2rem;
    color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s ease, color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-icon svg {
    width: 2rem;
    height: 2rem;
}

.contact-action-card:hover .contact-icon {
    transform: scale(1.08);
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.contact-action-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.08rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-action-card p {
    flex: 1 1 auto;
    margin: 0 0 2rem;
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
}

.contact-action-card a,
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    border-radius: 1rem;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-action-card a {
    width: 100%;
    padding: 0.9rem 1rem;
    color: #2563eb;
    background: #f8fafc;
}

.contact-action-card:hover a {
    color: #ffffff;
    background: #2563eb;
}

.contact-hours {
    position: relative;
    max-width: 36rem;
    margin: 0 auto 5rem;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.06);
}

.contact-hours::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.35rem;
    background: #2563eb;
}

.contact-hours-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-hours-head svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.contact-hours h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-hours-list {
    display: grid;
    gap: 1rem;
}

.contact-hours-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.contact-hours-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-hours-list span {
    color: #64748b;
    font-weight: 500;
}

.contact-hours-list strong {
    color: #0f172a;
    font-weight: 800;
    text-align: right;
}

.contact-hours-list .contact-closed {
    color: #f87171;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-newsletter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2.5rem;
    background: #0f172a;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.contact-newsletter > * {
    position: relative;
    z-index: 1;
}

.contact-newsletter-glow {
    position: absolute;
    right: -7rem;
    bottom: -7rem;
    z-index: 0;
    width: 20rem;
    height: 20rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    filter: blur(80px);
}

.contact-newsletter h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
}

.contact-newsletter h2 span {
    color: #60a5fa;
}

.contact-newsletter p {
    margin: 1rem 0 0;
    color: rgba(219, 234, 254, 0.62);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.6;
}

.contact-newsletter form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.contact-newsletter input {
    width: 100%;
    min-height: 3.7rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-newsletter input::placeholder {
    color: rgba(147, 197, 253, 0.38);
}

.contact-newsletter input:focus {
    border-color: rgba(37, 99, 235, 0.8);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.contact-newsletter button {
    min-height: 3.7rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.2);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.contact-newsletter button:hover {
    transform: translateY(-0.2rem);
    color: #2563eb;
    background: #ffffff;
}

.contact-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 4.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
    color: #94a3b8;
    text-align: center;
}

.contact-trust p {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.contact-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.45;
    filter: grayscale(1);
}

.contact-trust svg {
    width: 1.1rem;
    height: 1.1rem;
    color: #2563eb;
}

.contact-map-wrap {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
}

.contact-address-badge {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0 auto -2rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.contact-address-icon {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    border-radius: 0.9rem;
    color: #2563eb;
    background: #eff6ff;
}

.contact-address-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.contact-address-badge span {
    display: block;
    margin-bottom: 0.35rem;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-address-badge strong {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-map-frame {
    height: 28rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    border-radius: 2.4rem;
    background: #e2e8f0;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-map-frame:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 45px 90px rgba(15, 23, 42, 0.15);
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 4rem;
}

.contact-btn {
    width: 100%;
    min-height: 3.6rem;
    padding: 1rem 1.5rem;
    border-radius: 1.35rem;
}

.contact-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-0.25rem);
}

.contact-btn:hover svg {
    transform: translateX(0.3rem);
}

.contact-btn-primary {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.2);
}

.contact-btn-primary:hover {
    background: #0f172a;
}

.contact-btn-light {
    border: 1px solid #e2e8f0;
    color: #0f172a;
    background: #ffffff;
}

.contact-btn-light:hover {
    border-color: #2563eb;
    color: #2563eb;
}

@keyframes contactSlowFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes contactPulse {
    50% { opacity: 0.45; }
}

@media (min-width: 640px) {
    .contact-newsletter form {
        flex-direction: row;
    }

    .contact-newsletter input {
        width: 20rem;
    }

    .contact-actions {
        flex-direction: row;
    }

    .contact-btn {
        width: auto;
    }
}

@media (min-width: 768px) {
    .contact-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-map-frame {
        height: 36rem;
        border-radius: 3rem;
    }
}

@media (min-width: 1024px) {
    .contact-section {
        padding: 5.5rem 0;
    }

    .contact-container {
        width: min(100% - 4rem, 80rem);
    }

    .contact-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }

    .contact-header {
        margin-bottom: 6rem;
    }

    .contact-action-card {
        padding: 2.5rem;
    }

    .contact-newsletter {
        flex-direction: row;
        padding: 4rem;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .contact-section {
        padding: 3.25rem 0;
    }

    .contact-container {
        width: min(100% - 1.25rem, 80rem);
    }

    .contact-kicker {
        letter-spacing: 0.14em;
    }

    .contact-action-card,
    .contact-hours,
    .contact-newsletter,
    .contact-map-frame {
        border-radius: 1.5rem;
    }

    .contact-action-card,
    .contact-hours,
    .contact-newsletter {
        padding: 1.35rem;
    }

    .contact-hours-list div,
    .contact-address-badge {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-hours-list strong {
        text-align: left;
    }

    .contact-map-frame {
        height: 24rem;
    }
}

/* Services hero title treatment - exact Our Services copy */
.contact-header h1 {
  margin: 0;
  color: #0f172a !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(3rem, 7vw, 5.75rem) !important;
  font-weight: 900 !important;
  line-height: 0.95 !important;
  text-align: left !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

.contact-header h1 span,
.contact-header h1 em {
  color: transparent !important;
  font-size: 1em !important;
  font-style: italic !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 55%, #60a5fa 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

@media (max-width: 680px) {
  .contact-header h1 {
    font-size: clamp(2rem, 11vw, 2.85rem) !important;
  }
}

@media (max-width: 1024px) {
  .contact-header h1 { text-align: center !important; }
}
