/* The Master's Touch Professional Auto Repair — demo site for Arioun AI
   Official colors from the shop site footer: background #192430, text #C2C2C2.
   Other colors, typography, and layout are a design choice for this demo. */

:root {
  --ink: #14181f;
  --ink-soft: #3e4652;
  --muted: #5c6570;
  --paper: #f3efe6;
  --paper-2: #e8e2d4;
  --surface: #fffcf7;
  --line: #d9d1c2;
  --navy: #192430;
  --navy-2: #243140;
  --hero: #192430;
  --hero-2: #243140;
  --cream: #f3efe6;
  --brand-muted: #c2c2c2;
  --rust: #c53a12;
  --rust-deep: #9e2d0e;
  --rust-soft: #f8e6de;
  --gold: #9a7410;
  --gold-bg: #fff6d4;
  --gold-line: #c9a227;
  --brass: #c4a35a;
  --focus: #1a6fbf;
  --shadow: 0 12px 32px rgba(20, 24, 31, 0.08);
  --radius: 14px;
  --max: 1120px;
  --header-h: 4.25rem;
  --font: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: var(--rust-deep);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Placeholders for unknown facts — always visually distinct */
.placeholder {
  display: inline-block;
  border: 2px dashed var(--gold-line);
  background: var(--gold-bg);
  color: #5c4508;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1.4;
}

.placeholder-block {
  display: block;
  border: 2px dashed var(--gold-line);
  background: var(--gold-bg);
  color: #5c4508;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(25, 36, 48, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194, 194, 194, 0.14);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  text-decoration: none;
}

.logo {
  display: block;
  height: 2.55rem;
  width: auto;
  max-width: min(230px, 58vw);
}

.nav {
  display: none;
  gap: 1.15rem;
  align-items: center;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--brass);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--rust);
  color: #fff;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 8px 20px rgba(197, 58, 18, 0.22);
}

.btn-primary:hover {
  background: var(--rust-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 239, 230, 0.45);
  padding: 0.75rem 1.25rem;
}

.btn-ghost:hover {
  background: rgba(243, 239, 230, 0.1);
  color: #fff;
}

.btn-dark {
  background: var(--hero);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.header-call {
  white-space: nowrap;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(196, 163, 90, 0.18), transparent 55%),
    linear-gradient(165deg, var(--hero) 0%, var(--hero-2) 55%, #151c24 100%);
  color: var(--cream);
  padding: 2.35rem 1.25rem 6.5rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--brass);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: clamp(2.35rem, 8.2vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  color: #d7d2c8;
  margin: 0 0 0.75rem;
  max-width: 36rem;
}

.hero-copy {
  color: #b7b3ab;
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.75rem;
  padding-top: 1.5rem;
  padding-right: 9.25rem;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
  color: #c9c4ba;
  font-size: 0.95rem;
}

.trust-bar strong {
  color: var(--cream);
  font-weight: 700;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.trust-item span {
  font-size: 0.8rem;
  color: #c4bfb5;
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* Services */
.service-note {
  margin: 0 0 1.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}

.section-alt .service-card {
  background: var(--paper);
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  hyphens: none;
  overflow-wrap: normal;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.vehicle-note {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 52rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.75rem;
}

.about-copy p {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.facts dt {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--rust);
  margin: 0 0 0.2rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Reviews */
.rating-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin: 0 0 1.75rem;
}

.rating-score {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.rating-meta {
  color: var(--ink-soft);
  margin: 0;
  max-width: 40rem;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.review-card footer {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.review-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.review-extra {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 52rem;
}

/* Hours + map */
.visit-grid {
  display: grid;
  gap: 1.5rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table th {
  font-weight: 700;
  width: 40%;
}

.hours-table .closed {
  color: var(--muted);
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  height: 100%;
  background: var(--paper-2);
}

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

@media (min-width: 700px) {
  .visit-grid > div:last-child {
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .map-frame {
    flex: 1;
  }

  .map-frame iframe {
    height: 100%;
  }
}

.address-block {
  margin: 0 0 1rem;
}

.address-block a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.address-block a:hover {
  color: var(--rust);
  text-decoration: underline;
}

.map-link {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.demo-note {
  border: 2px dashed var(--gold-line);
  background: var(--gold-bg);
  color: #5c4508;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.demo-note a {
  color: #5c4508;
  text-decoration: underline;
}

.estimate-form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-aside p {
  margin: 0 0 0.85rem;
}

.phone-display {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  line-height: 1.1;
  margin: 0.25rem 0 1rem;
}

.phone-display:hover {
  color: var(--rust);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--brand-muted);
  padding: 2.25rem 1.25rem 7rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

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

.footer-logo .logo {
  height: 3rem;
  max-width: 260px;
}

.arioun-credit {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
}

.arioun-credit a {
  color: var(--brass);
  font-weight: 650;
}

/* AI receptionist reserved slot */
.ai-receptionist {
  position: fixed;
  right: 0.75rem;
  bottom: 5.15rem;
  z-index: 50;
  background: var(--hero);
  color: var(--cream);
  border: 2px solid rgba(243, 239, 230, 0.2);
  border-radius: 999px;
  padding: 0.6rem 0.7rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  max-width: 8.6rem;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  pointer-events: none;
}

/* Mobile sticky call bar */
.mobile-callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
}

.mobile-callbar .btn {
  width: 100%;
  max-width: 28rem;
}

.section[id] {
  scroll-margin-top: 5rem;
}

a[href^="tel:"] {
  white-space: nowrap;
}

.header-call-short {
  display: inline;
}

.header-call-full {
  display: none;
}

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

  .visit-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }

  .header-call-short {
    display: none;
  }

  .header-call-full {
    display: inline;
  }

  .logo {
    height: 3rem;
    max-width: 280px;
  }

  .hero {
    padding: 5rem 1.5rem 4.5rem;
  }

  .hero-actions {
    margin-bottom: 2.25rem;
  }

  .trust-bar {
    gap: 0.75rem 1.75rem;
    padding-right: 0;
  }

  .section {
    padding: 4.5rem 1.5rem;
  }

  .review-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }

  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .mobile-callbar {
    display: none;
  }

  .ai-receptionist {
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.92rem;
    padding: 0.85rem 1.15rem;
    max-width: none;
    white-space: nowrap;
    pointer-events: none;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  .header-inner {
    padding: 0.7rem 1.5rem;
  }
}

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

  .service-card h3 {
    font-size: 1.2rem;
  }
}

.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;
}
