/*
Theme Name: ADC Modern
Description: Modern theme for Air Duct Cleaning Miami Pro Services (migrated from Wix).
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: adc-modern
*/

:root {
  --orange: #f27a24;
  --orange-dark: #d9640f;
  --navy: #16205a;
  --blue: #2b3a9b;
  --violet: #5b3fb0;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e5e8f0;
  --bg: #ffffff;
  --soft: #f5f7fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 32, 90, .08);
  --shadow-lg: 0 20px 50px rgba(22, 32, 90, .16);
  --grad: linear-gradient(120deg, #16205a 0%, #2b3a9b 55%, #5b3fb0 100%);
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; color: var(--navy); margin: 1.6em 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4, h5, h6 { font-size: 1.1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 10px 16px; width: auto; height: auto; clip: auto; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; line-height: 1.2; cursor: pointer; font-size: 1rem; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 122, 36, .35); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfd6ff; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { height: 54px; width: auto; }
.brand { flex-shrink: 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--orange-dark); background: var(--soft); }
.nav li { position: relative; }
.nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column; align-items: stretch; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.header-cta { flex-shrink: 0; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .2s; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { backdrop-filter: none; background: #fff; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; padding: 16px; transform: translateX(100%); transition: transform .25s; overflow-y: auto; margin: 0; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 14px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .sub-menu { position: static; display: flex; box-shadow: none; padding: 0 0 0 16px; }
  .nav .has-sub > a::after { display: none; }
  body.menu-open { overflow: hidden; }
  .topbar .hide-sm { display: none; }
}

/* Hero (inner pages) */
.page-hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--orange); opacity: .18; right: -120px; top: -160px; }
.page-hero .wrap { position: relative; z-index: 1; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin: .2em 0 .35em; max-width: 900px; }
.page-hero .lead { font-size: 1.15rem; color: #dfe4ff; max-width: 760px; margin: 0; }
.crumbs { font-size: .85rem; color: #b9c2ff; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs span { margin: 0 6px; opacity: .6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: #dfe4ff; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .8rem; font-weight: 700; text-decoration: none; }
.chip:hover { background: var(--orange); color: #fff; }
.chip-light { background: var(--soft); color: var(--blue); }
.chip-light:hover { background: var(--orange); color: #fff; }

/* Layout with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding: 64px 0; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; } }
.sidebar .card { position: sticky; top: 100px; }

/* Prose (imported content) */
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li > p { margin: 0; }
.prose ul li::marker { color: var(--orange); }
.prose img { border-radius: var(--radius); margin: 1.6em 0; box-shadow: var(--shadow); width: 100%; max-height: 520px; object-fit: cover; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { scroll-margin-top: 100px; }
.prose h5, .prose h6 { font-size: 1.15rem; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--orange); background: var(--soft); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px; }
/* Standalone Wix buttons ("Book Now", "Learn More") */
.prose > a { display: inline-flex; margin: .4em .6em 1.4em 0; padding: .8em 1.5em; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; }
.prose > a:hover { background: var(--orange-dark); color: #fff; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card h3 { margin-top: 0; }
.cta-card { background: var(--grad); color: #fff; border: 0; }
.cta-card h3 { color: #fff; }
.cta-card p { color: #dfe4ff; }
.cta-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.side-links a:hover { color: var(--orange-dark); }
.side-links a::after { content: "\2192"; color: var(--orange); }
.sidebar > * + * { margin-top: 24px; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin: .2em 0 .4em; }
.eyebrow { display: inline-block; color: var(--orange-dark); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.muted { color: var(--muted); }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* Front page hero */
.home-hero { background: var(--grad); color: #fff; overflow: hidden; position: relative; }
.home-hero::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: var(--orange); opacity: .15; left: -220px; bottom: -280px; }
.home-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 80px 0; position: relative; }
.home-hero h1 { color: #fff; margin: .25em 0 .3em; }
.home-hero h1 .accent { color: var(--orange); display: block; }
.home-hero .lead { color: #dfe4ff; font-size: 1.15rem; margin: 0 0 24px; }
.hero-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.hero-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.hero-list li::before { content: "\2713"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .8rem; flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 10px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: -10px; bottom: 30px; background: #fff; color: var(--navy); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); font-weight: 800; line-height: 1.2; }
.hero-badge small { display: block; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) {
  .home-hero .wrap { grid-template-columns: 1fr; padding: 56px 0; }
  .hero-media { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 480px) { .hero-list { grid-template-columns: 1fr; } }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin: 0 0 .5em; font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--orange-dark); }
.link-arrow::after { content: " \2192"; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split img { aspect-ratio: 16 / 10; } }

.stats { background: var(--grad); color: #fff; border-radius: 24px; padding: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--orange); line-height: 1.1; }
.stat span { color: #dfe4ff; font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.checks li::before { content: "\2713"; color: var(--orange); font-weight: 800; }

.testimonial { max-width: 820px; margin: 0 auto; text-align: center; }
.testimonial blockquote { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; color: var(--navy); margin: 0 0 20px; line-height: 1.5; }
.testimonial .stars { color: var(--orange); font-size: 1.4rem; letter-spacing: 4px; }
.testimonial cite { font-style: normal; font-weight: 800; color: var(--muted); }

/* Post cards */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.15rem; margin: .5em 0; line-height: 1.35; }
.post-card h2 a, .post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--orange-dark); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post-cat { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); text-decoration: none; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination .current, .pagination .page-numbers:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Single post */
.post-featured { margin-top: -40px; position: relative; z-index: 2; }
.post-featured img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-height: 560px; object-fit: cover; }
.post-body { max-width: 760px; margin: 0 auto; padding: 48px 0 24px; }
.post-body .prose { font-size: 1.08rem; }
.post-tags { max-width: 760px; margin: 0 auto 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.cta-band { background: var(--grad); color: #fff; border-radius: 24px; padding: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #dfe4ff; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 64px 0; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; padding: 40px 0; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico { width: 48px; height: 48px; border-radius: 14px; background: #fff2e8; color: var(--orange-dark); display: grid; place-items: center; flex-shrink: 0; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--navy); }
.info-list a { color: var(--ink); text-decoration: none; }
.adc-cf input, .adc-cf textarea { border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--soft); transition: border-color .15s, background .15s; }
.adc-cf input:focus, .adc-cf textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.adc-cf label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.adc-cf button { background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: .9em 2em; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(242, 122, 36, .35); }
.adc-cf button:hover { background: var(--orange-dark); }

/* Footer */
.site-footer { background: #0f1640; color: #b9c2e8; margin-top: 0; }
.footer-cta { background: var(--orange); color: #fff; }
.footer-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px 0; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.footer-cta .btn { background: #fff; color: var(--orange-dark); }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 16px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9c2e8; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 48px; width: auto; }
.areas { border-top: 1px solid rgba(255, 255, 255, .1); padding: 28px 0; font-size: .88rem; }
.areas strong { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0, 0, 0, .12); }
  .call-bar a { padding: 15px; text-align: center; font-weight: 800; text-decoration: none; color: #fff; }
  .call-bar .call { background: var(--orange); }
  .call-bar .quote { background: var(--navy); }
  body { padding-bottom: 54px; }
}

/* 404 / search */
.empty { text-align: center; padding: 80px 0; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto 0; }
.search-form input[type="search"] { flex: 1; padding: .8em 1em; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-form button { border: 0; background: var(--orange); color: #fff; border-radius: 999px; padding: 0 1.4em; font-weight: 700; cursor: pointer; }

.alignwide, .alignfull { width: 100%; }
.wp-caption, .wp-block-image figcaption { font-size: .85rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
