/* Corpus Christi Air Conditioning
   Two-row header (logo + phone, then a navy nav bar), photo hero with a
   problem picker below it, card-based services, and article pages with a
   right-hand contact rail. */

:root {
  --navy: #15405a;
  --navy-deep: #0d2c40;
  --orange: #c2502a;
  --orange-deep: #9c3e1f;
  --gold: #eab03a;
  --sand: #f4efe4;
  --shell: #fbf9f4;
  --white: #ffffff;
  --text: #1c2a33;
  --muted: #52616b;
  --rule: #ddd5c4;
  --cream: #f3e9d2;

  --font-head: "Zilla Slab", Rockwell, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --width: 1200px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(13, 44, 64, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--shell); color: var(--text); font: 18px/1.6 var(--font-body); }
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-deep); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 700 .82rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.glyph { flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: 700 1rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-deep); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--navy-deep); }
.btn-set { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.arrow-link { font-weight: 700; text-decoration: none; }
.arrow-link::after { content: " \2192"; }

/* header */
.site-header { background: var(--white); position: relative; z-index: 20; box-shadow: 0 1px 0 var(--rule); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.logo-link { display: block; line-height: 0; }
.site-header .logo { width: 215px; height: auto; display: block; }
.header-contact { display: flex; align-items: center; gap: 18px; }
.header-note { font-size: .9rem; color: var(--muted); max-width: 220px; line-height: 1.35; text-align: right; }
.nav-toggle { display: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: 700 1rem var(--font-body); cursor: pointer; }
.navbar { background: var(--navy); }
.navbar ul { list-style: none; }
.navbar > .wrap > ul { display: flex; align-items: center; gap: 4px; }
.navbar > .wrap > ul > li > a, .navbar summary { display: block; padding: 14px 16px; color: var(--cream); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.navbar summary::-webkit-details-marker { display: none; }
.navbar summary::after { content: " \25BE"; font-size: .8em; }
.navbar > .wrap > ul > li > a:hover, .navbar summary:hover, .navbar a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.navbar details { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 300px; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 8px 0; }
.dropdown a { display: block; padding: 9px 18px; color: var(--text); text-decoration: none; }
.dropdown a:hover { background: var(--sand); color: var(--navy-deep); }
.nav-cta { margin-left: auto; }
.nav-cta a { background: var(--gold); color: var(--navy-deep) !important; font-weight: 700 !important; }
.nav-cta a:hover { background: #f2c25e !important; }

/* hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,44,64,.93) 0%, rgba(13,44,64,.78) 45%, rgba(13,44,64,.25) 100%); }
.hero-copy { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 64px; }
.hero-copy > * { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold); }
.hero-lede { font-size: 1.2rem; margin-top: 16px; color: #e7edf1; }
.hero-fine { margin-top: 18px; font-size: .95rem; color: #c6d3db; }

.problem-bar { background: var(--orange); color: var(--white); padding: 22px 0; }
.problem-bar .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.problem-bar h2 { color: var(--white); font-size: 1.35rem; }
.problem-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.problem-list a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; }
.problem-list a:hover { background: var(--white); color: var(--orange-deep); }

/* blocks */
.block { padding: 76px 0; }
.block-tight { padding: 36px 0 76px; }
.block-sand { background: var(--sand); }
.block-navy { background: var(--navy-deep); color: #d9e3e9; }
.block-navy h2, .block-navy h3 { color: var(--white); }
.block-navy .eyebrow { color: var(--gold); }
.block-head { max-width: 720px; margin-bottom: 36px; }
.block-head > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.block-navy .block-head > p:not(.eyebrow) { color: #b9c9d3; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.copy { display: flex; flex-direction: column; gap: 16px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s; }
.svc-card:hover { transform: translateY(-3px); color: var(--text); }
.svc-card-img { width: 100%; height: 170px; object-fit: cover; display: block; }
.svc-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; position: relative; flex: 1; }
.svc-card-icon { position: absolute; top: -24px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--white); }
.svc-card p { color: var(--muted); font-size: .98rem; }
.more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--orange-deep); }
.more::after { content: " \2192"; }

.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .glyph { color: var(--white); background: var(--navy); border-radius: 50%; padding: 4px; width: 30px; height: 30px; margin-top: 2px; }
.checks h3 { font-size: 1.12rem; margin-bottom: 4px; }
.checks p { color: var(--muted); }

.year { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 3px solid rgba(255,255,255,.18); }
.year li { padding: 22px 22px 0 0; position: relative; }
.year li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); }
.year li.hot::before { background: var(--orange); box-shadow: 0 0 0 5px rgba(194,80,42,.3); }
.when { display: block; font-weight: 700; color: var(--gold); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.year h3 { margin-bottom: 8px; }
.year p { font-size: .98rem; }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pills a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy-deep); }
.pills a:hover, .pills a[aria-current="page"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.pills .glyph { color: var(--orange); }
.pills a:hover .glyph, .pills a[aria-current="page"] .glyph { color: var(--gold); }

.accordion { border-top: 1px solid var(--rule); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary { padding: 18px 40px 18px 0; font: 700 1.12rem/1.3 var(--font-head); color: var(--navy-deep); cursor: pointer; list-style: none; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.6rem var(--font-body); color: var(--orange); }
.accordion details[open] summary::after { content: "\2013"; }
.answer { padding: 0 0 20px; color: var(--muted); }
.after-accordion { margin-top: 22px; }

.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 28px 32px; margin-top: 40px; }
.contact-strip > div:first-child { max-width: 600px; }
.contact-strip h2 { font-size: 1.5rem; margin-bottom: 6px; }
.contact-strip p { color: var(--muted); }
.contact-strip .btn-set { margin-top: 0; }
.block .contact-strip { margin-top: 0; }

/* inner pages */
.banner { background: var(--navy-deep); color: #d5e0e7; padding: 34px 0 48px; border-bottom: 6px solid var(--orange); }
.banner h1 { color: var(--white); max-width: 900px; }
.banner .eyebrow { color: var(--gold); margin-top: 18px; }
.banner-intro { margin-top: 14px; max-width: 700px; font-size: 1.12rem; }
.banner-intro .tel-link { color: var(--gold); }
.trail { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.trail li + li::before { content: "/"; margin-right: 6px; color: #7f97a6; }
.trail a { color: #b9c9d3; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 48px; padding-bottom: 76px; align-items: start; }
.article > h2 { margin: 44px 0 14px; }
.article > p + p { margin-top: 14px; }
.article > p { color: var(--muted); }
.pic { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; display: block; }
.pic-lead { aspect-ratio: 16 / 9; }
.pic-wide { aspect-ratio: 21 / 8; margin-bottom: 28px; }
.intro-line { color: var(--muted); margin-bottom: 18px; font-size: 1.06rem; }
.detail-list { list-style: none; display: grid; gap: 14px; }
.detail-list li { background: var(--white); border-left: 4px solid var(--orange); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.detail-list h3 { margin-bottom: 4px; }
.detail-list p { color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
thead th { background: var(--sand); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy-deep); }
tbody tr:last-child td { border-bottom: 0; }
.note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 700; margin-bottom: 10px; }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .97rem; }
.article .checks { grid-template-columns: 1fr; }
.local-notes { list-style: none; display: grid; gap: 12px; }
.local-notes li { display: flex; gap: 10px; align-items: flex-start; background: var(--sand); padding: 14px 18px; border-radius: var(--radius); }
.local-notes .glyph { color: var(--orange); margin-top: 4px; }
.article .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rail { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.rail-box { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.rail-call { border-top: 5px solid var(--orange); display: flex; flex-direction: column; gap: 12px; }
.rail-title { font: 700 1.15rem/1.3 var(--font-head); color: var(--navy-deep); }
.rail-points { list-style: none; display: grid; gap: 8px; margin-top: 6px; font-size: .95rem; color: var(--muted); }
.rail-points li { display: flex; gap: 8px; align-items: flex-start; }
.rail-points .glyph { color: var(--orange); margin-top: 4px; }
.rail-links { list-style: none; }
.rail-links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.rail-links a[aria-current="page"] { font-weight: 700; color: var(--orange-deep); }

.town-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.town-card { background: var(--white); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.town-card h3 { display: flex; gap: 6px; align-items: center; font-size: 1.1rem; }
.town-card .glyph { color: var(--orange); }
.town-card p { color: var(--muted); font-size: .95rem; }

.prose { padding-top: 44px; padding-bottom: 76px; }
.prose h2 { margin: 36px 0 12px; font-size: 1.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.prose .checks, .prose .people { padding-left: 0; }
.revised { font-size: .9rem; font-style: italic; }
.people { list-style: none; display: grid; gap: 20px; }
.person { display: flex; gap: 20px; background: var(--white); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.initials { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 700 1.4rem var(--font-head); }
.person-role { font-weight: 700; color: var(--orange-deep) !important; margin: 2px 0 8px; }
.job { background: var(--white); border-radius: var(--radius); padding: 24px; margin-top: 18px; box-shadow: var(--shadow); }
.job > p { margin-top: 8px; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.job h4 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }

/* forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.request-form { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.request-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.request-form legend { font: 700 1.2rem var(--font-head); color: var(--navy-deep); margin-bottom: 10px; }
.request-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.request-form input[type=text], .request-form input[type=tel], .request-form input[type=email], .request-form select, .request-form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid #b9c3c9; border-radius: 8px; background: var(--shell); width: 100%; }
.request-form input:focus, .request-form select:focus, .request-form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(234,176,58,.5); }
.radio-row { flex-direction: row !important; flex-wrap: wrap; gap: 18px !important; }
.radio-row legend { font: 600 .95rem var(--font-body); margin-bottom: 4px; width: 100%; }
.radio-row label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.form-fine { font-size: .88rem; color: var(--muted); }
.form-side { display: flex; flex-direction: column; gap: 14px; }
.form-side h2 { font-size: 1.4rem; }
.contact-facts { display: grid; gap: 14px; margin: 0 0 26px; }
.contact-facts div { background: var(--white); padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-facts dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-deep); font-weight: 700; }
.contact-facts dd { margin: 2px 0 0; font-weight: 600; }
.small-head { font-size: 1.25rem; }

/* footer */
.footer-cta { background: var(--orange); color: var(--white); padding: 40px 0; }
.footer-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-cta h2 { color: var(--white); }
.footer-cta p { margin-top: 6px; color: #fde9df; }
.footer-cta .btn-set { margin-top: 0; }
.footer-cta .btn-orange { background: var(--navy-deep); }
.footer-cta .btn-orange:hover { background: #071c29; }
.site-footer { background: var(--navy-deep); color: #b9c9d3; padding: 56px 0 28px; font-size: .97rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo { width: 250px; height: auto; display: block; margin-bottom: 16px; }
.site-footer h2 { color: var(--white); font-size: 1.1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 7px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-small { margin-top: 12px; font-size: .86rem; color: #8ea6b4; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mobile-bar { display: none; }

/* responsive */
@media (max-width: 1000px) {
  .card-grid, .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; border-top: 0; }
  .year li::before { display: none; }
  .article-grid, .form-grid { grid-template-columns: 1fr; }
  .rail { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .header-note { display: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .header-contact { display: none; }
  .navbar { display: none; }
  .navbar.is-open { display: block; }
  .navbar > .wrap > ul { flex-direction: column; align-items: stretch; padding: 8px 0 14px; }
  .nav-cta { margin-left: 0; }
  .dropdown { position: static; box-shadow: none; border-radius: var(--radius); margin: 4px 0 8px; }
  .split, .checks { grid-template-columns: 1fr; gap: 24px; }
  .site-header .logo { width: 165px; }
  .hero { min-height: 0; }
  .hero::after { background: rgba(13,44,64,.82); }
  .hero-copy { padding-top: 56px; padding-bottom: 44px; }
  .block { padding: 56px 0; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -4px 16px rgba(13,44,64,.15); z-index: 30; }
  .mobile-bar .btn { min-height: 46px; padding: 10px 12px; }
  body { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .card-grid, .town-grid, .article .card-grid, .field-pair, .job-cols, .footer-cols { grid-template-columns: 1fr; }
  .year { grid-template-columns: 1fr; }
  .contact-strip { padding: 22px; }
  .person { flex-direction: column; }
  .btn { white-space: normal; }
}

.svc-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc-links a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; color: var(--navy-deep); }
.svc-links a:hover { color: var(--orange-deep); }
.svc-links .glyph { color: var(--orange); }
@media (max-width: 560px) { .svc-links { grid-template-columns: 1fr; } }
