/*
Theme Name: AED Health
Description: Medical equipment service, sales and resources for Southeast Florida.
Version: 1.0.2
Requires PHP: 8.1
Text Domain: aedhealth
*/

:root {
    --ink: #14252d;
    --dark: #112027;
    --navy: #182d35;
    --text: #364a51;
    --muted: #52656d;
    --paper: #fcfbf7;
    --sand: #f1eee5;
    --line: #d9ded9;
    --copper: #f2a778;
    --burnt: #934327;
    --white: #fff;
    --width: 1240px;
    color-scheme: light;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #bb572d; outline-offset: 4px; }
.shell { width: min(var(--width), calc(100% - 96px)); margin-inline: auto; }
.skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 20; top: .75rem; left: .75rem; width: auto; height: auto; padding: .65rem 1rem; background: var(--paper); clip-path: none; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.07; font-weight: 720; letter-spacing: -.045em; }
h2 { font-size: clamp(2.05rem, 4.4vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); }
p { color: var(--text); }
.kicker { color: var(--burnt); font-size: .82rem; font-weight: 750; letter-spacing: .09em; line-height: 1.4; }
.kicker + :is(h1, h2, h3) { margin-top: .8rem; }
.signal { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--copper); margin-right: .65rem; vertical-align: .08em; }

.utility { background: var(--sand); font-size: .8rem; line-height: 1.4; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 9px; }
.utility a { text-decoration: none; font-weight: 650; }
.utility a:hover { text-decoration: underline; }
.utility-location::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--burnt); margin-right: .55rem; vertical-align: .05em; }
.site-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 81px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.44rem; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.brand-light { font-weight: 570; }
.brand-mark { display: grid; position: relative; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 5px; background: var(--burnt); color: #fff; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.brand-mark::before { width: 16px; height: 4px; }
.brand-mark::after { width: 4px; height: 16px; }
.brand-mark i { position: absolute; width: 22px; height: 22px; border: 1px solid rgb(255 255 255 / .33); border-radius: 50%; }
.desktop-nav { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.desktop-nav a, .mobile-nav nav > a:not(.button) { font-size: .91rem; font-weight: 670; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--burnt); }
.mobile-nav { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 47px; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 5px; font: 700 .9rem/1.35 "Segoe UI", system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #2d4854; }
.button-copper { background: var(--copper); color: #17222a; }
.button-copper:hover { background: #ffd1b2; }
.button-outline { border-color: #708388; color: var(--white); }
.button-outline:hover { background: #2b4148; }
.text-link { display: inline-flex; gap: .5rem; align-items: center; color: var(--burnt); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }

.hero, .page-hero { background: var(--dark); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.07fr 1fr; gap: clamp(24px, 6vw, 92px); align-items: center; padding-block: clamp(46px, 6vw, 80px); }
.hero-content .kicker, .page-hero .kicker, .location-section .kicker { color: var(--copper); }
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.75rem); line-height: .92; margin-block: 1rem 1.65rem; letter-spacing: -.064em; }
.hero h1 em { color: var(--copper); font-style: normal; }
.hero-copy { color: #d4dfde; max-width: 28rem; font-size: clamp(1rem, 1.55vw, 1.16rem); margin-bottom: 1.75rem; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: clamp(390px, 41vw, 555px); background:
    linear-gradient(90deg, transparent 31px, #dce9dc13 32px) 0 0 / 32px 32px,
    linear-gradient(transparent 31px, #dce9dc13 32px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% 54%, #c4d6c5 0%, #92afa5 65%, #688c83 100%);
    border: 1px solid #a2b5aa; border-radius: 8px; overflow: hidden; isolation: isolate;
}
.hero-visual::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; max-height: 82%; border: 1px solid #294a4266; border-radius: 50%; }
.hero-visual::after { content: ""; position: absolute; bottom: 6%; width: 55%; height: 7%; background: #16302d59; border-radius: 50%; filter: blur(14px); z-index: -1; }
.hero-visual img { position: absolute; height: 88%; width: auto; max-width: 78%; object-fit: contain; filter: drop-shadow(10px 15px 13px #19332f64); }
.visual-caption { position: absolute; top: 1rem; left: 1rem; z-index: 1; border: 1px solid #304b4650; border-radius: 3px; background: #d2dfd4cf; color: #243d38; padding: .28rem .55rem; font-size: .7rem; font-weight: 740; }
.visual-corner { position: absolute; bottom: 1rem; right: 1rem; width: 17px; height: 17px; border-right: 1px solid #294a42; border-bottom: 1px solid #294a42; }

.facts { background: var(--sand); border-bottom: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding-block: 1.5rem; padding-inline: 0; list-style: none; }
.facts li { padding-inline: clamp(16px, 3vw, 38px); border-left: 1px solid #c8d0c9; }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong, .facts span { display: block; }
.facts strong { font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 750; }
.facts span { margin-top: .1rem; color: var(--muted); font-size: .86rem; }

.section { padding-block: clamp(56px, 8vw, 107px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(220px, 370px); gap: 20px; align-items: end; margin-bottom: clamp(24px, 4vw, 45px); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.2vw, 30px); }
.equipment-card, .resource-card { background: var(--white); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.equipment-image { display: grid; place-items: center; aspect-ratio: 1.6; background: #f1f2ed; border-bottom: 1px solid var(--line); }
.equipment-image img { width: 100%; height: 100%; object-fit: cover; }
.equipment-card:first-child .equipment-image img { object-fit: contain; }
.equipment-card:nth-child(2) .equipment-image img { object-position: center 42%; }
.equipment-body { padding: clamp(17px, 2.3vw, 28px); }
.equipment-body h3 a, .resource-card h2 a { text-decoration: none; }
.equipment-body h3 a:hover, .resource-card h2 a:hover { text-decoration: underline; }
.equipment-body p, .resource-card p:not(.kicker) { margin-block: .65rem 1rem; }
.service-section { background: var(--sand); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 106px); align-items: center; }
.service-image { overflow: hidden; border-radius: 7px; background: #dde3d9; }
.service-image img { width: 100%; aspect-ratio: 1.23; object-fit: cover; }
.service-content p:not(.kicker) { margin-top: 1.05rem; max-width: 42rem; }
.service-content .text-link { margin-top: 1.2rem; }
.checklist { padding-left: 0; list-style: none; margin-block: 1.15rem 1.45rem; }
.checklist li { display: flex; gap: .6rem; align-items: baseline; padding-block: .25rem; }
.checklist li::before { content: "✓"; color: var(--burnt); font-weight: 750; }

.location-section { background: var(--navy); color: var(--white); padding-block: clamp(58px, 7.5vw, 98px); }
.location-grid, .service-area-grid, .contact-grid, .content-pair { display: grid; grid-template-columns: 1.17fr 1fr; gap: clamp(27px, 6vw, 85px); align-items: center; }
.location-grid > div:first-child > p:not(.kicker) { color: #d4dfde; margin-block: 1.1rem .85rem; max-width: 39rem; }
.location-section .text-link { color: var(--copper); }
.location-panel { padding: clamp(21px, 4vw, 48px); border: 1px solid #658087; border-radius: 7px; }
.location-panel h3 { font-size: clamp(1.55rem, 3.1vw, 2.4rem); margin-bottom: 1.4rem; }
.location-panel p:not(.kicker) { margin-block: -.35rem 1.15rem; }
.light-panel { background: var(--sand); border-color: var(--line); }
.closing { background: #e8ede6; }
.closing-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 2.7rem; }
.closing-inner h2 { font-size: clamp(1.6rem, 3.1vw, 2.7rem); }
.closing-inner p { margin-top: .55rem; }

.page-hero { padding-block: clamp(47px, 7.6vw, 97px); }
.page-hero h1 { font-size: clamp(2.55rem, 6.8vw, 5.3rem); max-width: 1000px; letter-spacing: -.065em; overflow-wrap: anywhere; }
.page-hero .page-intro { color: #d4dfde; margin-top: 1.15rem; font-size: clamp(1rem, 1.9vw, 1.27rem); max-width: 47rem; }
.page-hero .button { margin-top: 1.25rem; }
.crumb { color: var(--copper); display: inline-block; margin-bottom: 1.25rem; }
.prose { font-size: 1.08rem; max-width: 74ch; color: var(--text); overflow-wrap: anywhere; }
.prose :where(p, ul, ol, figure, table) { margin-block: 0 1.2rem; }
.prose h2, .prose h3 { margin-block: 1.6rem .7rem; color: var(--ink); }
.prose a { color: var(--burnt); }
.prose table { width: 100%; display: block; overflow-x: auto; }
.prose :is(iframe, video) { max-width: 100%; }
.article-body { margin-inline: auto; }
.simple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.simple-grid > div { padding-block: 1rem; border-top: 2px solid #a6b1a7; }
.simple-grid h3 { margin-bottom: .65rem; }
.service-area-grid > div > p:not(.kicker), .contact-grid aside > p:not(.kicker) { margin-top: 1rem; max-width: 42rem; }
.coverage { margin: 1.5rem 0 0; list-style: none; padding: 0; }
.coverage li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .85rem; border-top: 1px solid var(--line); padding-block: .78rem; font-weight: 700; }
.coverage li:last-child { border-bottom: 1px solid var(--line); }
.coverage span { color: var(--muted); font-size: .85rem; font-weight: 600; }

.contact-grid { align-items: start; grid-template-columns: .84fr 1.16fr; }
.contact-methods { display: grid; gap: .7rem; margin-block: 1.3rem; }
.contact-methods a { display: flex; justify-content: space-between; gap: .5rem; border: 1px solid var(--line); border-radius: 5px; padding: .75rem 1rem; text-decoration: none; font-weight: 750; overflow-wrap: anywhere; }
.contact-methods a:hover { background: var(--sand); }
.request-panel { padding: clamp(18px, 3.7vw, 42px); border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.request-panel h2 { font-size: clamp(1.5rem, 3.3vw, 2.6rem); }
.request-panel > p { margin-block: .7rem 1.25rem; }
.request-panel .forminator-row { margin-bottom: .9rem; }
.request-panel .forminator-label { display: block; margin-bottom: .3rem; color: var(--ink); font-size: .9rem; font-weight: 690; }
.request-panel :is(input:not([type=hidden]), textarea, select), .search-box input[type=search] {
    width: 100%; min-height: 2.9rem; border: 1px solid #a2afa9; border-radius: 4px; padding: .62rem .7rem; background: var(--white); color: var(--ink); font: inherit;
}
.request-panel textarea { min-height: 7.5rem; resize: vertical; }
.request-panel .forminator-button-submit { border: 0; border-radius: 5px; min-height: 47px; padding: .65rem 1rem; background: var(--ink); color: white; font: 700 .95rem/1.3 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.request-panel .forminator-button-submit:hover { background: #2d4854; }
.request-panel .forminator-error-message, .request-panel .forminator-required { color: #9b2e20; }
.request-panel .forminator-response-message { font-weight: 650; }

.resource-tools { display: grid; gap: 1.1rem; margin-bottom: 2rem; }
.search-box { display: flex; gap: .65rem; max-width: 36rem; }
.search-box input { min-width: 0; }
.category-nav { display: flex; flex-wrap: wrap; gap: .55rem; }
.category-nav a { border: 1px solid #afbcb4; border-radius: 4px; padding: .35rem .7rem; font-size: .87rem; font-weight: 650; text-decoration: none; }
.category-nav a:hover, .category-nav [aria-current] { color: white; background: var(--ink); border-color: var(--ink); }
.resource-card { padding: clamp(15px, 2.4vw, 28px); }
.resource-card h2 { font-size: clamp(1.24rem, 2vw, 1.65rem); }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 4px; }
.pagination .current { background: var(--ink); color: white; }

.site-footer { background: var(--dark); color: var(--white); padding-block: 3.2rem 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .9fr 1fr; gap: 30px; }
.footer-grid p { color: #c6d3d2; margin-top: .9rem; }
.footer-grid nav, .footer-contact { display: grid; gap: .37rem; align-content: start; justify-items: start; }
.footer-grid strong { color: var(--copper); margin-bottom: .38rem; }
.footer-grid nav a, .footer-contact a { color: #dce6e5; text-decoration: none; }
.footer-grid nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; border-top: 1px solid #527078; margin-top: 2rem; padding-top: 1rem; color: #c6d3d2; font-size: .85rem; }

@media (max-width: 1000px) {
    .shell { width: calc(100% - 64px); }
    .desktop-nav { gap: 13px; }
    .desktop-nav a { font-size: .82rem; }
}

@media (max-width: 830px) {
    .header-inner { min-height: 64px; }
    .desktop-nav, .desktop-contact { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav summary { cursor: pointer; font-weight: 750; }
    .mobile-nav nav { display: grid; position: absolute; inset: 100% 0 auto; gap: 2px; background: var(--paper); padding: .6rem 32px 1.1rem; border-bottom: 1px solid var(--line); box-shadow: 0 10px 14px #14252d22; }
    .mobile-nav nav a { padding: .52rem 0; }
    .mobile-nav nav .button { margin-top: .4rem; }
    .hero-visual { min-height: 370px; }
    .hero-inner { gap: 24px; }
}

@media (max-width: 620px) {
    .shell { width: calc(100% - 36px); }
    .utility, .utility a { font-size: .71rem; }
    .utility-location::before { margin-right: .33rem; }
    .utility-inner { gap: 6px; }
    .mobile-nav nav { padding-inline: 18px; }
    .hero-inner, .section-heading, .service-grid, .location-grid, .contact-grid, .content-pair, .service-area-grid { grid-template-columns: 1fr; }
    .hero-inner { padding-block: 42px 27px; }
    .hero h1 { font-size: clamp(3.1rem, 12.9vw, 4.6rem); }
    .hero-copy { margin-bottom: 1.3rem; }
    .hero-visual { min-height: 315px; }
    .visual-caption { top: auto; bottom: 1rem; }
    .facts ul { padding-block: 1rem; }
    .facts li { padding-inline: 8px; }
    .facts strong { font-size: .78rem; line-height: 1.25; }
    .facts span { font-size: .69rem; line-height: 1.3; margin-top: .28rem; }
    .card-grid, .simple-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .closing-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
