/* ============================================================
   INSITEFUL ENTERPRISES — styles.css
   Mobile-first, flat design, Inter variable font
   ============================================================ */

/* ============================================================
   FONT FACE
   ============================================================ */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --color-navy:       #0B2545;
  --color-blue:       #1D6FE0;
  --color-blue-dark:  #1558B8;
  --color-blue-light: #E6F0FC;
  --color-slate:      #334155;
  --color-grey:       #94A3B8;
  --color-grey-text:  #64748B;
  --color-light-grey: #F1F5F9;
  --color-white:      #FFFFFF;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Layout */
  --max-width:  1120px;
  --radius:     8px;

  /* Transitions */
  --transition: 150ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-slate);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-blue-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-2xl);
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 600;
}

p {
  max-width: 68ch;
}

.section-heading {
  margin-bottom: var(--space-sm);
}

.section-subhead {
  font-size: 1.125rem;
  color: var(--color-grey-text);
  margin-bottom: var(--space-2xl);
  max-width: 52ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-grey);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid #E2E8F0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: 72px;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
}

.header-nav {
  display: none;
}

@media (min-width: 900px) {
  .header-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-slate);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-blue);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-shrink: 0;
}

.header-phone {
  display: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

.header-phone:hover {
  color: var(--color-blue);
}

@media (min-width: 640px) {
  .header-phone {
    display: block;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--color-white);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

.hero-text h1 {
  margin-bottom: var(--space-lg);
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--color-grey-text);
  margin-bottom: var(--space-xl);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================================
   LEAD LOG PANEL
   ============================================================ */
.hero-visual {
  display: flex;
  justify-content: center;
}

.lead-log-panel {
  background-color: var(--color-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: var(--space-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
}

.lead-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.lead-log-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-log-example-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-grey-text);
  background-color: var(--color-light-grey);
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lead-log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lead-log-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid #F1F5F9;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.lead-log-row:last-child {
  border-bottom: none;
}

.lead-log-row.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lead-log-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.status-missed  { background-color: #F59E0B; }
.status-answered { background-color: var(--color-blue); }
.status-form    { background-color: #10B981; }
.status-booked  { background-color: #059669; }

.lead-log-content {
  flex: 1;
  min-width: 0;
}

.lead-log-event {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}

.lead-log-detail {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-grey-text);
  line-height: 1.4;
  margin-top: 2px;
}

.lead-log-time {
  font-size: 0.8125rem;
  color: var(--color-grey-text);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.lead-log-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid #E2E8F0;
  font-size: 0.875rem;
  color: var(--color-navy);
  text-align: center;
}

.lead-log-footer strong {
  font-weight: 700;
}

/* ============================================================
   OUTCOMES STRIP
   ============================================================ */
.outcomes-strip {
  background-color: var(--color-blue-light);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.outcomes-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .outcomes-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
  }
}

.outcome-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.outcome-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.outcome-body {
  flex: 1;
}

.outcome-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.outcome-text {
  font-size: 0.9375rem;
  color: var(--color-slate);
  line-height: 1.5;
  max-width: 100%;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  background-color: var(--color-white);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: var(--space-xl) var(--space-xl);
  border-bottom: 1px solid #E2E8F0;
  border-right: 0;
}

@media (min-width: 640px) {
  .service-card:nth-child(odd) {
    border-right: 1px solid #E2E8F0;
  }

  .service-card:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 639px) {
  .service-card:last-child {
    border-bottom: none;
  }
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: var(--color-blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.service-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.service-support {
  font-size: 0.9375rem;
  color: var(--color-grey-text);
  line-height: 1.55;
  max-width: 100%;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
  background-color: var(--color-light-grey);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

@media (min-width: 640px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -50%;
    width: 100%;
    height: 1px;
    background-color: var(--color-grey);
    opacity: 0.4;
    pointer-events: none;
  }
}

.process-number {
  width: 56px;
  height: 56px;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.process-step-text {
  font-size: 0.9375rem;
  color: var(--color-slate);
  line-height: 1.55;
  max-width: 100%;
}

.process-cta {
  text-align: left;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  background-color: var(--color-white);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #E2E8F0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item dt {
  /* reset DT default */
  display: block;
}

.faq-details {
  width: 100%;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition);
}

.faq-details[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  background-color: var(--color-light-grey);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: -2px;
  border-radius: 0;
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-slate);
  line-height: 1.6;
  display: block;
  max-width: 68ch;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background-color: var(--color-light-grey);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    gap: var(--space-4xl);
  }
}

.contact-info .section-heading {
  margin-bottom: var(--space-md);
}

.contact-body {
  color: var(--color-slate);
  margin-bottom: var(--space-xl);
  max-width: 44ch;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: color var(--transition);
}

.contact-phone:hover {
  color: var(--color-blue);
}

.contact-area {
  font-size: 0.875rem;
  color: var(--color-grey-text);
  max-width: 100%;
}

/* ============================================================
   FORM
   ============================================================ */
.contact-form-wrap {
  background-color: var(--color-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: var(--space-xl);
}

@media (min-width: 640px) {
  .contact-form-wrap {
    padding: var(--space-2xl);
  }
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

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

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

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

.required-mark {
  color: var(--color-blue);
  margin-left: 2px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-navy);
  background-color: var(--color-white);
  border: 1px solid var(--color-grey);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.15);
}

.form-input::placeholder {
  color: var(--color-grey);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option[value=""][disabled] {
  color: var(--color-grey);
}

/* Turnstile */
.cf-turnstile {
  margin-bottom: var(--space-lg);
}

/* Form messages */
.form-messages {
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 0;
  line-height: 1.5;
}

.form-messages:empty {
  display: none;
}

.form-messages.success {
  color: #065F46;
  background-color: #D1FAE5;
  border: 1px solid #6EE7B7;
  padding: var(--space-md) var(--space-lg);
}

.form-messages.error {
  color: #7F1D1D;
  background-color: #FEE2E2;
  border: 1px solid #FCA5A5;
  padding: var(--space-md) var(--space-lg);
}

.form-note {
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-grey-text);
  text-align: center;
  max-width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-navy);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer-brand .logo-reversed {
  margin-bottom: var(--space-sm);
}

.footer-location {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 100%;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-links {
    align-items: flex-end;
  }
}

.footer-phone {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-phone:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-legal-list {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  border-radius: 3px;
}

.footer-bottom {
  padding-top: var(--space-lg);
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 100%;
}

/* ============================================================
   PLACEHOLDER IMAGES
   (shown when WebP images haven't been added yet)
   ============================================================ */
img[src^="/images/"] {
  background-color: var(--color-light-grey);
  min-height: 200px;
  object-fit: cover;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--color-grey-text); }
