/* Thermo Appliance Repair — layout inspired by common franchise repair sites; original styling */

:root {
  --color-orange: #e85d04;
  --color-orange-dark: #c75100;
  --color-navy: #1a2b4a;
  --color-navy-light: #2d3f5e;
  --color-bg: #f4f6f9;
  --color-white: #ffffff;
  --color-text: #1c2434;
  --color-muted: #5c6578;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 40px rgba(26, 43, 74, 0.12);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-white);
}

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

a {
  color: var(--color-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: var(--color-white);
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 100% - 2rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(26, 43, 74, 0.08);
}

.header-bar {
  border-bottom: 1px solid rgba(26, 43, 74, 0.08);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-navy);
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.35);
}

.logo__text span {
  color: var(--color-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 22px;
  background: var(--color-navy);
  border-radius: 2px;
}

.site-nav {
  background: var(--color-navy);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}

.nav-list__item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.9rem 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link--button {
  width: 100%;
  text-align: left;
}

.mega {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  background: var(--color-white);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem;
  z-index: 50;
}

.mega__grid {
  display: grid;
  gap: 0.35rem;
}

.mega__grid a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.mega__grid a:hover {
  background: var(--color-bg);
  color: var(--color-orange-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn--primary:hover {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: rgba(26, 43, 74, 0.25);
}

.btn--outline:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-light) 55%, #243a5c 100%);
  color: var(--color-white);
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card__img {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, rgba(232, 93, 4, 0.2) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect fill='%231a2b4a' width='100' height='100'/%3E%3Cpath fill='%232d3f5e' d='M0 60 L100 40 L100 100 L0 100 Z'/%3E%3C/svg%3E");
  background-size: cover;
}

/* Strip */
.strip {
  background: var(--color-white);
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

@media (max-width: 700px) {
  .strip__inner {
    grid-template-columns: 1fr;
  }
}

.strip__item {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--color-orange);
}

.strip__item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.strip__item span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-bg);
}

.section--cta {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 3rem 0;
}

.section--cta h2 {
  color: var(--color-white);
}

.section--cta p {
  color: rgba(255, 255, 255, 0.8);
}

.section--book {
  padding-bottom: 5rem;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(26, 43, 74, 0.08);
  border: 1px solid rgba(26, 43, 74, 0.06);
}

.review-card p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.review-card footer {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Features */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-list li {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 43, 74, 0.08);
}

.feature-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-navy);
}

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

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(26, 43, 74, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(232, 93, 4, 0.35);
}

.service-card__icon {
  color: var(--color-orange);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-orange-dark);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ZIP CTA */
.cta-locator {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

@media (max-width: 700px) {
  .cta-locator {
    grid-template-columns: 1fr;
  }
}

.cta-locator h2 {
  margin: 0 0 0.35rem;
}

.cta-locator > div > p {
  margin: 0;
}

.zip-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.zip-form__input {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  min-width: 140px;
}

.zip-form__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.zip-form__input:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
  border-color: transparent;
}

.zip-form__msg {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  min-height: 1.25em;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 43, 74, 0.08);
  background: var(--color-white);
}

.resource-card__thumb {
  height: 140px;
  background: linear-gradient(120deg, #1a2b4a, #e85d04);
  opacity: 0.9;
}

.resource-card__thumb--2 {
  background: linear-gradient(120deg, #2d3f5e, #f4a261);
}

.resource-card__thumb--3 {
  background: linear-gradient(120deg, #e85d04, #1a2b4a);
}

.resource-card h3,
.resource-card__meta,
.resource-card .text-link {
  padding: 0 1.25rem;
}

.resource-card h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1.05rem;
}

.resource-card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.resource-card .text-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* FAQ */
.faq__item {
  border-bottom: 1px solid rgba(26, 43, 74, 0.12);
  padding: 0.5rem 0;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-orange);
  font-weight: 700;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Booking form */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}

.book-grid h2 {
  margin: 0 0 0.5rem;
}

.book-grid > div > p {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text);
}

.check-list li {
  margin-bottom: 0.35rem;
}

.book-form {
  background: var(--color-bg);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 43, 74, 0.08);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--color-orange);
}

.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 43, 74, 0.2);
  font-family: inherit;
  font-size: 1rem;
}

.book-form input:focus,
.book-form select:focus,
.book-form textarea:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 1px;
  border-color: transparent;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row--third {
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 0.8fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .form-row--half,
  .form-row--third {
    grid-template-columns: 1fr;
  }
}

.checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
  cursor: pointer;
}

.checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}


.form-note[data-state="success"] {
  color: #1b6e3c;
}

.form-note[data-state="error"] {
  color: #b42318;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

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

.logo--footer {
  color: var(--color-white);
}

.logo--footer:hover {
  color: var(--color-white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__tag {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 280px;
}

.footer__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.75rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
}

.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.55);
}

.modal__panel {
  position: relative;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal__panel h2 {
  margin-top: 0;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-muted);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .header-call {
    display: none;
  }

  .site-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
  }

  .mega {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -1rem;
    padding: 0.5rem 1rem 1rem;
  }

  .mega__grid a {
    color: rgba(255, 255, 255, 0.9);
  }

  .mega__grid a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
  }
}

/* Desktop: mega hidden by default; show on hover/focus-within */
@media (min-width: 901px) {
  .mega[hidden] {
    display: none;
  }

  .nav-list__item--has-sub:hover .mega,
  .nav-list__item--has-sub:focus-within .mega {
    display: block !important;
  }
}
