/* ---------------------------------------------
   Los Gatos Telephone Answering Service
   Design tokens
   Color:  ink #12181F, navy #0F1B2D, paper #F7F5F1,
           brass #C89B3C, steel #3D5470, line #E3DFD6
   Type:   Fraunces (display) / Source Sans 3 (body)
--------------------------------------------- */

:root {
  --ink: #12181F;
  --navy: #0F1B2D;
  --navy-light: #1B2C45;
  --paper: #F7F5F1;
  --paper-dim: #EFEBE2;
  --brass: #C89B3C;
  --brass-light: #E0B85C;
  --steel: #3D5470;
  --line: #E3DFD6;
  --line-dark: #26364F;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Source Sans 3', sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.brand-suffix {
  color: var(--brass);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.98rem;
}

.main-nav a {
  color: var(--navy);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

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

.main-nav a.active {
  color: var(--navy);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brass);
  border-radius: 1px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.header-phone:hover {
  background: var(--navy-light);
}
.icon-phone {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------------- Status console (signature element) ---------------- */

.status-console {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  margin-bottom: 28px;
}

.status-console--light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-light);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,184,92,0.55); }
  50% { box-shadow: 0 0 0 6px rgba(224,184,92,0); }
}

.status-divider {
  opacity: 0.4;
}

/* ---------------- Hero ---------------- */

.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0 96px;
}

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

.hero-title {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 56ch;
  color: rgba(247,245,241,0.82);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brass);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--brass-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247,245,241,0.4);
}
.btn-ghost:hover {
  border-color: var(--paper);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ---------------- Sections generic ---------------- */

.section {
  padding: 88px 0;
}

.section-lead {
  font-size: 1.1rem;
  max-width: 68ch;
  color: var(--steel);
}

/* ---------------- Services ---------------- */

.services h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  max-width: 20ch;
  margin-bottom: 44px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,27,45,0.08);
  border-color: var(--brass);
}

.service-icon {
  width: 30px;
  height: 30px;
  color: var(--brass);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

/* ---------------- Industries ---------------- */

.industries {
  background: var(--paper-dim);
}

.industries h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  max-width: 22ch;
}

.industries .section-lead {
  margin-bottom: 32px;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.about-copy p {
  color: var(--steel);
  font-size: 1.05rem;
}

.about-image img {
  border-radius: 8px;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 20ch;
}

.cta-band p {
  color: rgba(247,245,241,0.8);
  font-size: 1.1rem;
  max-width: 50ch;
  margin-bottom: 32px;
}

/* ---------------- Page hero (contact / thank you) ---------------- */

.page-hero {
  background: var(--navy);
  color: var(--paper);
  padding: 72px 0 64px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  max-width: 18ch;
}

.thank-you-hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60vh;
}

.thank-you-hero .hero-sub a {
  color: var(--brass-light);
  text-decoration: underline;
}

.thank-you-hero .btn {
  margin-top: 12px;
}

/* ---------------- Contact page ---------------- */

.contact-section {
  padding-top: 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(200,155,60,0.18);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.contact-info-phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin: 4px 0 8px;
}

.contact-info-note {
  color: var(--steel);
  font-size: 0.92rem;
  margin: 0;
}

.contact-info-card a[href^="mailto"] {
  font-weight: 600;
  color: var(--navy);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy);
  color: rgba(247,245,241,0.85);
  padding-top: 56px;
  border-top: 1px solid rgba(247,245,241,0.12);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  color: var(--white);
  display: block;
  margin-bottom: 10px;
}

.footer-tag {
  color: rgba(247,245,241,0.65);
  font-size: 0.94rem;
  max-width: 32ch;
}

.footer-label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: rgba(247,245,241,0.85);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--brass-light);
}

.footer-location {
  color: rgba(247,245,241,0.65);
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(247,245,241,0.12);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(247,245,241,0.55);
}

/* ---------------- Scroll reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    order: -1;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 14px 18px;
  }
  .brand {
    font-size: 1.05rem;
  }
  .main-nav {
    display: none;
  }
  .header-phone {
    padding: 10px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    width: 40px;
    height: 40px;
  }
  .header-phone-number {
    display: none;
  }
  .icon-phone {
    width: 18px;
    height: 18px;
    margin: 0 auto;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .section {
    padding: 56px 0;
  }
  .contact-form {
    padding: 26px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------------- Legal pages and footer credit ---------------- */

.legal-inner > * {
  max-width: 760px;
}

.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin: 36px 0 10px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin: 0 0 14px;
}

.legal a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.footer-credit {
  margin: 6px 0 0;
}

.footer-credit a {
  color: rgba(247,245,241,0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.footer-credit a:hover {
  color: var(--brass-light);
}
