/* ═══════════════════════════════════════════════════════════════════════
   Lavrenroof — Contacts page
   contacts.css · Hero, contact cards, split form, map, hours, FAQ
   ═══════════════════════════════════════════════════════════════════════ */

/* ── PAGE HERO ───────────────────────────────────────────────────── */
.ct-hero {
  padding: calc(var(--nav-h) + var(--s-9)) 0 var(--s-8);
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
	background-image: url('../assets/hero-contact.webp');
	background-size: cover;
	background-position: center;
}
.ct-hero-products {
	background-image: url('../assets/hero-products.webp');
}
.ct-hero .container { max-width: 980px; }
.ct-hero .eyebrow {
  justify-content: center;
  display: inline-flex;
  margin-bottom: 24px;
	color: var(--surface);
}
.ct-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-weight: 500;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--surface);
  text-wrap: balance;
}
.ct-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--surface);
}
.ct-hero .lede {
  margin: 24px auto 0;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--surface);
}

/* ── CONTACT CARDS (3-up icon row) ───────────────────────────────── */
.ct-cards {
  padding: var(--s-9) 0;
  background: var(--bg);
}
.ct-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.ct-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  transition: background 320ms var(--ease);
}
.ct-card:last-child { border-right: 0; }
.ct-card:hover { background: var(--bg-2); }

.ct-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 320ms var(--ease), color 320ms var(--ease);
}
.ct-card-icon svg { width: 22px; height: 22px; }
.ct-card:hover .ct-card-icon {
  background: var(--accent);
  color: #fff;
}

.ct-card-body { min-width: 0; flex: 1; }
.ct-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 8px;
}
.ct-card-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.ct-card-value a {
  color: var(--ink);
  transition: color 180ms var(--ease);
  display: inline-block;
}
.ct-card-value a:hover { color: var(--accent); }
.ct-card-value a + a { margin-left: 4px; }
.ct-card-value div + div { margin-top: 4px; }

/* ── FORM SECTION (split layout: fields left, textarea right) ────── */
.ct-form-section {
  padding: var(--s-9) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.ct-form-section h2 {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 auto 12px;
  max-width: 24ch;
  font-weight: 500;
  color: var(--ink);
}
.ct-form-section .ct-form-sub {
  text-align: center;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto var(--s-8);
  font-size: 16px;
}

.ct-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.ct-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ct-form-message {
  display: flex;
  flex-direction: column;
}

.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.ct-field label .req { color: var(--accent); margin-left: 2px; }

.ct-input,
.ct-textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.ct-input:hover,
.ct-textarea:hover {
  border-color: var(--line-2);
}
.ct-input:focus,
.ct-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 26, 26, 0.08);
}
.ct-input::placeholder,
.ct-textarea::placeholder {
  color: var(--ink-4);
}

.ct-textarea {
  resize: vertical;
  min-height: 220px;
  flex: 1;
  line-height: 1.5;
}

.ct-form-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}
.ct-form-note {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 36ch;
}
.ct-submit {
  min-width: 200px;
  justify-content: center;
}

/* Success state */
.ct-form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  grid-column: 1 / -1;
}
.ct-form.is-sent .ct-form-fields,
.ct-form.is-sent .ct-form-message,
.ct-form.is-sent .ct-form-footer {
  display: none;
}
.ct-form.is-sent .ct-form-success {
  display: block;
}
.ct-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ct-success-icon svg { width: 28px; height: 28px; }
.ct-success-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ct-success-sub {
  color: var(--ink-3);
  font-size: 15px;
  max-width: 40ch;
  margin: 0 auto;
}

/* ── HOURS STRIP ────────────────────────────────────────────────── */
.ct-hours {
  padding: var(--s-7) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ct-hours-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.ct-hours-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.ct-hours-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2c8045;
  box-shadow: 0 0 0 4px rgba(44, 128, 69, 0.18);
  flex-shrink: 0;
  animation: hoursPulse 2.4s var(--ease) infinite;
}
.ct-hours-status.is-closed .ct-hours-dot {
  background: var(--ink-3);
  box-shadow: 0 0 0 4px rgba(107, 103, 96, 0.14);
  animation: none;
}
@keyframes hoursPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(44, 128, 69, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(44, 128, 69, 0.04); }
}
.ct-hours-text {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.ct-hours-text b {
  font-weight: 500;
  color: var(--ink);
  margin-right: 4px;
}
.ct-hours-text span + b { margin-left: 24px; }
.ct-hours-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

/* ── MAP ────────────────────────────────────────────────────────── */
.ct-map {
  position: relative;
  background: var(--bg-3);
  height: 520px;
  overflow: hidden;
  isolation: isolate;
}
.ct-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Slight grayscale to harmonize with the brand palette;
     removes on hover so users can see the real colors when interacting */
  filter: grayscale(45%) contrast(1.02);
  transition: filter 600ms var(--ease);
}
.ct-map:hover iframe { filter: none; }

/* Floating info card overlay */
.ct-map-card {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  max-width: 320px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
}
.ct-map-card .eyebrow {
  margin-bottom: 16px;
}
.ct-map-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.ct-map-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 16px;
}
.ct-map-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  transition: gap 280ms var(--ease);
}
.ct-map-card a:hover { gap: 12px; }
.ct-map-card a svg { width: 14px; height: 14px; }

/* ── HOW TO REACH US ─────────────────────────────────────────────── */
.ct-reach {
  padding: var(--s-9) 0;
  background: var(--bg);
}
.ct-reach-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: var(--s-7);
}
.ct-reach-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 18ch;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}
.ct-reach-head .meta {
  color: var(--ink-3);
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.55;
}

.ct-reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.ct-reach-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  background: var(--bg);
  transition: background 320ms var(--ease);
}
.ct-reach-item:hover { background: var(--bg-2); }
.ct-reach-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  color: var(--ink-3);
  line-height: 1;
  margin-bottom: 28px;
  transition: color 280ms var(--ease);
}
.ct-reach-item:hover .ct-reach-num { color: var(--accent); }
.ct-reach-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.ct-reach-item p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

/* ── DEPARTMENTS STRIP ──────────────────────────────────────────── */
.ct-depts {
  padding: var(--s-9) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.ct-depts-head {
  text-align: center;
  margin-bottom: var(--s-7);
}
.ct-depts-head .eyebrow {
  justify-content: center;
  display: inline-flex;
  margin-bottom: 16px;
}
.ct-depts-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 auto;
  max-width: 22ch;
  font-weight: 500;
  color: var(--ink);
}
.ct-depts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.ct-dept {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 280ms var(--ease), transform 280ms var(--ease);
}
.ct-dept:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.ct-dept-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.ct-dept-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ct-dept-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
}
.ct-dept-contacts a {
  color: var(--ink-2);
  transition: color 180ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ct-dept-contacts a:hover { color: var(--accent); }
.ct-dept-contacts svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--ink-3);
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.ct-faq {
	border-top: 1px solid var(--line);
  padding: var(--s-9) 0;
  background: var(--bg);
	padding: var(--s-9) 0;
  background: var(--bg-2);
}
.ct-faq-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: end;
  margin-bottom: var(--s-7);
}
.ct-faq-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 18ch;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
}
.ct-faq-head .meta {
  color: var(--ink-3);
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.55;
}
.ct-faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.ct-faq-list.no-border { border-top: 0; }
.ct-faq-item {
  border-bottom: 1px solid var(--line);
}
.ct-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4px;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
  transition: color 200ms var(--ease);
}
.ct-faq-q:hover { color: var(--accent); }
.ct-faq-q-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 280ms var(--ease),
    border-color 280ms var(--ease),
    transform 320ms var(--ease-power);
  color: var(--ink-3);
}
.ct-faq-q-icon svg { width: 14px; height: 14px; transition: transform 320ms var(--ease-power); }
.ct-faq-item.is-open .ct-faq-q { color: var(--ink); }
.ct-faq-item.is-open .ct-faq-q-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ct-faq-item.is-open .ct-faq-q-icon svg { transform: rotate(45deg); }

.ct-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 420ms var(--ease-power);
}
.ct-faq-a-inner {
  padding: 4px 60px 28px 4px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}
.ct-faq-a-inner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ct-cards-grid { grid-template-columns: 1fr; }
  .ct-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .ct-card:last-child { border-bottom: 0; }
  .ct-form { grid-template-columns: 1fr; }
  .ct-textarea { min-height: 180px; }
  .ct-reach-head,
  .ct-faq-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .ct-reach-grid { grid-template-columns: 1fr 1fr; }
  .ct-depts-grid { grid-template-columns: 1fr 1fr; }
  .ct-hours-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .ct-hours-status,
  .ct-hours-cta { justify-content: center; }
  .ct-hours-text { text-align: center; }
  .ct-hours-cta { text-align: center; }
  .ct-map-card { max-width: 260px; top: 20px; left: 20px; padding: 18px; }
  .ct-map-card h3 { font-size: 16px; }
}

@media (max-width: 700px) {
  .ct-hero { padding: calc(var(--nav-h) + 48px) 0 var(--s-7); }
  .ct-hero .lede { font-size: 15px; }

  .ct-cards { padding: var(--s-7) 0; }
  .ct-card { padding: 24px 20px; gap: 16px; }
  .ct-card-icon { width: 44px; height: 44px; }
  .ct-card-icon svg { width: 18px; height: 18px; }

  .ct-form-section,
  .ct-reach,
  .ct-depts,
  .ct-faq { padding: var(--s-7) 0; }

  .ct-reach-grid { grid-template-columns: 1fr; }
  .ct-reach-item { min-height: auto; padding: 24px 20px; }
  .ct-reach-num { font-size: 26px; margin-bottom: 18px; }

  .ct-depts-grid { grid-template-columns: 1fr; }

  .ct-map { height: 380px; }
  .ct-map-card {
    position: static;
    margin: 16px;
    max-width: none;
    width: calc(100% - 32px);
    box-shadow: none;
  }
  .ct-map { padding-top: 0; height: auto; }
  .ct-map iframe { height: 320px; }

  .ct-faq-q { font-size: 15px; padding: 22px 4px; gap: 16px; }
  .ct-faq-q-icon { width: 28px; height: 28px; }
  .ct-faq-a-inner { padding-right: 36px; font-size: 14px; }

  .ct-hours-text span + b { margin-left: 0; display: block; margin-top: 4px; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ct-hours-dot,
  .ct-card-icon,
  .ct-faq-q-icon,
  .ct-faq-q-icon svg,
  .ct-dept,
  .ct-map iframe {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .ct-faq-a { transition: none !important; }
}
