/*
Theme Name: Cell Phone Hospital
Author: The Cell Phone Hospital
Description: Custom WordPress theme for The Cell Phone Hospital mobile repair website.
Version: 1.0
*/

:root {
  --ink: #111111;
  --navy: #151a1f;
  --blue: #1598d4;
  --teal: #78bd2c;
  --mint: #eff9e8;
  --red: #e51f2b;
  --gold: #f08a24;
  --paper: #f6f8f4;
  --white: #ffffff;
  --muted: #5c6259;
  --line: #dce7d5;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a[href^="tel:"] {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.top-strip {
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
}

.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 8px;
}

.top-strip a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.top-strip .top-strip-phone {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.top-strip .top-strip-phone a {
  color: var(--red);
  font-weight: 900;
  font-size: 17px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 238px;
  max-width: 58vw;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-7px);
}

.nav-toggle span::after {
  transform: translateY(5px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 150px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
}

.btn-primary {
  background: var(--teal);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #8ad33d;
}

.btn-secondary {
  background: var(--blue);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.94), rgba(21, 26, 31, 0.74) 48%, rgba(21, 26, 31, 0.26)),
    var(--hero-image, url("https://images.pexels.com/photos/6755049/pexels-photo-6755049.jpeg?auto=compress&cs=tinysrgb&w=3200&dpr=2"));
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(0deg, var(--white), transparent);
  z-index: -1;
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding: 104px 0 120px;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(260px, 380px);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  margin: 14px 0 18px;
  font-size: 58px;
  line-height: 1.02;
}

.hero p,
.page-hero p {
  margin: 0;
  max-width: 650px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.quick-option {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--white);
}

.quick-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--blue);
  font-weight: 900;
  font-size: 26px;
}

.quick-option h2 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 20px;
}

.quick-option p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-alt {
  background: var(--paper);
}

.section-mint {
  background: linear-gradient(180deg, #ffffff 0%, var(--mint) 100%);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2,
.content-block h2 {
  margin: 0;
  color: var(--navy);
  font-size: 36px;
  line-height: 1.16;
}

.section-head p,
.content-block p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 660px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-card,
.feature-card,
.blog-card,
.stat,
.step,
.faq-item,
.contact-method,
.quote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card,
.feature-card,
.blog-card,
.step,
.faq-item,
.contact-method,
.quote-card {
  padding: 24px;
}

.service-card h3,
.feature-card h3,
.blog-card h3,
.step h3,
.faq-item h3,
.contact-method h3,
.quote-card h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.service-card p,
.feature-card p,
.blog-card p,
.step p,
.faq-item p,
.contact-method p,
.quote-card p {
  color: var(--muted);
  margin: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--red), var(--gold));
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 46px;
  align-items: center;
}

.image-stack {
  display: grid;
  gap: 18px;
}

.image-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.image-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-frame.tall img {
  aspect-ratio: 3 / 4;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 13px;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
}

.check-list li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 22px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--red);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.cta-band {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.94), rgba(21, 26, 31, 0.78)),
    url("https://images.pexels.com/photos/6754839/pexels-photo-6754839.jpeg?auto=compress&cs=tinysrgb&w=3200&dpr=2") center / cover;
  color: var(--white);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.94), rgba(21, 26, 31, 0.62)),
    var(--page-image, url("https://images.pexels.com/photos/11921157/pexels-photo-11921157.jpeg?auto=compress&cs=tinysrgb&w=3200&dpr=2")) center / cover;
}

.page-hero .container {
  padding-block: 76px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin: 0 8px 0 0;
  accent-color: var(--red);
}

textarea {
  min-height: 136px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(120, 189, 44, 0.24);
  border-color: var(--teal);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-note,
.form-message {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

.quote-card {
  position: sticky;
  top: 112px;
}

.quote-card .phone-link {
  display: inline-flex;
  margin-top: 16px;
  font-size: 24px;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.step {
  counter-increment: step-counter;
  position: relative;
}

.steps {
  counter-reset: step-counter;
}

.step::before {
  content: counter(step-counter);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.blog-list {
  display: grid;
  gap: 22px;
}

.blog-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  overflow: hidden;
}

.blog-card img {
  height: 100%;
  min-height: 238px;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px 24px 24px 0;
}

.blog-meta {
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-content {
  max-width: 840px;
}

.article-content article {
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.article-content article:first-child {
  padding-top: 0;
}

.article-content h2 {
  color: var(--navy);
  font-size: 32px;
  line-height: 1.18;
  margin: 0 0 12px;
}

.article-content h3 {
  color: var(--navy);
  margin: 22px 0 8px;
}

.article-content p {
  color: #313b47;
}

.contact-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 16px;
}

.contact-method a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 249, 232, 0.96), rgba(255, 255, 255, 0.8)),
    url("https://images.pexels.com/photos/12570214/pexels-photo-12570214.jpeg?auto=compress&cs=tinysrgb&w=2400&dpr=2") center / cover;
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 26px;
}

.map-panel h2 {
  margin: 0 0 6px;
  color: var(--navy);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: 34px;
}

.footer-logo {
  width: 250px;
  max-width: 100%;
  padding: 8px;
  background: var(--white);
  border-radius: 8px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

@media (max-width: 980px) {
  .top-strip .container {
    flex-direction: column;
    gap: 4px;
  }

  .top-strip .top-strip-phone {
    align-items: center;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 121px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .split,
  .form-shell,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 76px 0 96px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 44px;
  }

  .grid-3,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-card {
    position: static;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-content {
    padding: 0 22px 24px;
  }

  .blog-card img {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .brand img {
    width: 188px;
  }

  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    inset: 111px 12px auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 56px 0 82px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .hero-actions,
  .cta-inner,
  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 62px 0;
  }

  .grid-3,
  .grid-2,
  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .content-block h2,
  .cta-inner h2 {
    font-size: 30px;
  }

  .form-card {
    padding: 22px;
  }

  .btn {
    width: 100%;
  }
}