/* ===========================
   AC Repair In Rockwall — styles
   =========================== */

:root {
  --blue-900: #0a3559;
  --blue-700: #0f4c81;
  --blue-600: #145b99;
  --blue-100: #e8f1f9;
  --orange-600: #e6720f;
  --orange-500: #f4831f;
  --orange-100: #fdead9;
  --ink: #1c2530;
  --ink-light: #4a5568;
  --gray-100: #f6f8fa;
  --gray-200: #eceff2;
  --gray-300: #d8dee4;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 76, 129, 0.14);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--blue-900);
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--alt {
  background: var(--gray-100);
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  color: var(--ink-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(244, 131, 31, 0.35);
}

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--blue-700);
}

.btn-secondary:hover {
  background: var(--blue-100);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 46px;
  width: 46px;
}

.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-900);
  line-height: 1.15;
}

.brand__tagline {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--blue-700);
  border-color: var(--orange-500);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Service Area dropdown -- hover/focus on desktop; the mobile media query
   below forces it open inline (no hover on touch). */
.has-sub { position: relative; }
.has-sub > .sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 230px;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub ul a {
  display: block; padding: 8px 10px; border-radius: 6px; font-weight: 600;
  font-size: 0.9rem; color: var(--ink); border-bottom: 0;
}
.sub ul a:hover { background: var(--blue-100); color: var(--blue-700); }
.sub__all {
  display: block; margin-top: 6px; padding: 8px 10px 0; border-top: 1px solid var(--gray-200);
  color: var(--orange-600); font-weight: 700; font-size: 0.88rem; border-bottom: 0;
}
.sub__all:hover { color: var(--orange-500); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--blue-900);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 84px 24px 96px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
}

.hero p {
  color: rgba(255,255,255,0.86);
  font-size: 1.1rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  flex-shrink: 0;
}

.hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__art svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* Page header (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.86);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.grid {
  display: grid;
  gap: 28px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 30px;
  height: 30px;
  color: var(--blue-700);
}

.card--orange .card__icon {
  background: var(--orange-100);
}

.card--orange .card__icon svg {
  color: var(--orange-600);
}

.card ul {
  margin-top: 14px;
}

.card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-light);
  font-size: 0.95rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--blue-700);
  font-size: 0.92rem;
}

/* Feature list (why-us) */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon svg {
  width: 22px;
  height: 22px;
  color: var(--orange-600);
}

.feature h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.feature p {
  color: var(--ink-light);
  font-size: 0.95rem;
  margin: 0;
}

/* City chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--blue-900);
  box-shadow: var(--shadow);
  flex: 1 1 200px;
}

.chip svg {
  width: 20px;
  height: 20px;
  color: var(--orange-600);
  flex-shrink: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255,255,255,0.92);
  margin: 0;
}

.cta-band .btn-secondary {
  background: var(--white);
  border-color: var(--white);
  color: var(--orange-600);
}

/* Map embed */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* Values grid (about page) */
.value-card {
  text-align: center;
  padding: 28px 20px;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.contact-info-card h3 {
  color: var(--white);
}

.contact-info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info-row svg {
  width: 22px;
  height: 22px;
  color: var(--orange-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-row strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 3px;
}

.contact-info-row a,
.contact-info-row span {
  color: var(--white);
  font-weight: 600;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

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

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--blue-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 12px;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}

.form-status--success {
  display: block;
  background: #e6f6ec;
  color: #1c7a3f;
}

.form-status--error {
  display: block;
  background: #fdeceb;
  color: #b3261e;
}

/* Footer */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 0.9fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 40px;
  width: 40px;
}

.footer-brand__name {
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--orange-500);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--orange-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Placeholder notice banner */
.dev-note {
  background: #fff6e5;
  color: #7a5b00;
  border-bottom: 1px solid #f0dca0;
  font-size: 0.85rem;
  text-align: center;
  padding: 8px 16px;
}

.dev-note a {
  text-decoration: underline;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: left;
  }

  .hero__art,
  .hero__photo {
    order: -1;
  }

  .hero__art svg {
    max-width: 260px;
  }

  .hero__photo {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero__photo img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
    object-position: center 30%;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__cta .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }

  .has-sub > .sub {
    display: block; position: static; box-shadow: none; border: 0; border-radius: 0;
    padding: 4px 0 4px 14px; margin: 6px 0 0; min-width: 0;
    border-left: 2px solid var(--gray-200);
  }
  .sub ul a { padding: 8px 6px; font-size: 0.88rem; color: var(--ink-light); }
  .sub__all { padding-left: 6px; }

  .grid--3,
  .grid--4,
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    flex-direction: column;
    text-align: center;
  }

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

  .section {
    padding: 52px 0;
  }

  .split {
    grid-template-columns: 1fr !important;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

/* ===========================
   Photo sections (split media/text)
   =========================== */

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

.split--reverse .split__media {
  order: 2;
}

.split__media {
  position: relative;
}

.split ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-light);
}

.split ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame--tall img {
  aspect-ratio: 4 / 3;
}

.photo-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-900);
}

.photo-badge svg {
  width: 22px;
  height: 22px;
  color: var(--orange-600);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .photo-badge {
    right: 12px;
    bottom: -14px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }
}

/* Hero photo variant */
.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
}

.hero__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  object-fit: cover;
  object-position: center 25%;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--orange-500);
}

.breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.6;
}

/* Related links (cross-links to other services/cities) */
.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-weight: 700;
  color: var(--blue-900);
}

.related-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.related-link-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--orange-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-link-card .icon svg {
  width: 20px;
  height: 20px;
  color: var(--orange-600);
}

.related-link-card span.sub {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 2px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 22px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--ink-light);
  margin: 0;
}

/* City/service link chip list used on hub pages */
.link-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--blue-900);
  box-shadow: var(--shadow);
  flex: 1 1 200px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.link-chip .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-chip svg.pin {
  width: 20px;
  height: 20px;
  color: var(--orange-600);
  flex-shrink: 0;
}

.link-chip svg.arrow {
  width: 16px;
  height: 16px;
  color: var(--ink-light);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .related-links {
    grid-template-columns: 1fr;
  }
}
