/* ================================================================
   CONTACT — assets/css/contact.css
   One-off layout. Builds on site-wide variables and global CSS.
   ================================================================ */

/* ── BREADCRUMB — transparent to inherit hero gradient ─────── */
.breadcrumb {
  background: transparent;
  padding: var(--space-xs) 0 var(--space-lg) 0;
}

/* The breadcrumb component template wraps its content in .container,
   but here it is already inside .ct-hero > .container — neutralise
   the nested container so there is no double padding/indent. */
.ct-hero .breadcrumb .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ── HERO ───────────────────────────────────────────────────── */
.ct-hero {
  background:
    linear-gradient(160deg, rgba(212,212,212,0.62) 0%, rgba(235,235,235,0.56) 75%),
    url('../../background.jpg') left center / cover;
  padding: 0 0 var(--space-xl) 0;
  border-bottom: 1px solid #d4d4d4;
}

.ct-hero .container {
  padding-bottom: 0;
}

.ct-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.9vw, 2.7rem);
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.ct-hero__sub {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--color-grey-dark);
  line-height: var(--line-height-relaxed);
  max-width: 580px;
  margin-bottom: 0;
}

.ct-hero__sub strong {
  color: var(--color-black);
}

/* ── SHARED SECTION LABEL ───────────────────────────────────── */
.ct-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red-dark);
  margin-bottom: var(--space-md);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--color-red-dark);
  display: inline-block;
}

/* ── INTENT CARDS (Get in Touch) ────────────────────────────── */
.ct-intent {
  background: var(--color-red-dark);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.ct-intent .ct-section-label {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.4);
}

.ct-intent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.ct-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-red-dark);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.ct-card:first-child {
  background: #fff5f5;
  border-color: rgba(139,0,0,0.15);
}

.ct-card__icon {
  width: 34px;
  height: 34px;
  background: #f5f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.ct-card__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-red-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-card h3 {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.ct-card__body {
  font-size: var(--font-size-sm);
  color: var(--color-black);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.ct-card__contact {
  font-size: var(--font-size-sm);
  color: var(--color-black);
  margin-bottom: var(--space-xs);
  line-height: var(--line-height-normal);
}

.ct-card__contact a {
  color: var(--color-red-dark);
  font-weight: 600;
  text-decoration: none;
}

.ct-card__contact a:hover {
  text-decoration: underline;
}

/* Two-option CTA row (Engineering card) */
.ct-card__two-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.ct-card__two-ctas-or {
  font-size: var(--font-size-sm);
  color: var(--color-grey);
  flex-shrink: 0;
}

.ct-card__email-cta {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-red-dark);
  text-decoration: none;
}

.ct-card__email-cta:hover {
  text-decoration: underline;
}

/* Divider between top and bottom halves of a card */
.ct-card__divider {
  border-top: 1px solid var(--color-grey-light);
  margin: var(--space-md) 0;
}

/* Button inside a card */
.ct-card .btn {
  display: inline-block;
}

.ct-card__note {
  font-size: var(--font-size-sm);
  color: var(--color-black);
  line-height: var(--line-height-relaxed);
  border-top: 1px solid var(--color-grey-light);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

/* ── OFFICES ────────────────────────────────────────────────── */
.ct-offices {
  background: #1a1a1a;
  padding: var(--space-xl) 0;
}

.ct-offices__grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--space-md);
}

.ct-office-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.ct-offices .ct-section-label {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.4);
}

.ct-office-card {
  background: var(--color-white);
}

.ct-office-card__country {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red-dark);
  margin-bottom: var(--space-sm);
}

/* USA — 3-column sub-grid inside the card */
.ct-usa-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.ct-usa-sub {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-grey-light);
  padding: var(--space-md);
}

.ct-usa-sub h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red-dark);
  margin-bottom: var(--space-sm);
}

.ct-usa-sub p,
.ct-usa-sub address {
  font-size: 0.8rem;
  color: var(--color-black);
  line-height: 1.75;
  font-style: normal;
  margin-bottom: 0;
}

.ct-usa-sub a {
  color: var(--color-red-dark);
  font-size: 0.8rem;
  text-decoration: none;
}

.ct-usa-sub a:hover {
  text-decoration: underline;
}

/* China card */
.ct-office-card__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.ct-office-card__cn {
  font-size: 0.8rem;
  color: var(--color-grey);
  margin-bottom: var(--space-md);
}

.ct-office-card p {
  font-size: var(--font-size-sm);
  color: var(--color-black);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.ct-office-card p:last-child {
  margin-bottom: 0;
}

.ct-office-card a {
  color: var(--color-red-dark);
  font-size: var(--font-size-sm);
  text-decoration: none;
}

.ct-office-card a:hover {
  text-decoration: underline;
}

/* ── REGIONAL AGENTS ────────────────────────────────────────── */
.ct-agents {
  background: var(--color-grey-dark);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.ct-agents__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.ct-agents .ct-section-label {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.4);
}

.ct-agent-card {
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

.ct-agent-card__region {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red-dark);
  margin-bottom: var(--space-xs);
}

.ct-agent-card__company {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}

.ct-agent-card p,
.ct-agent-card address {
  font-size: 0.75rem;
  color: var(--color-black);
  line-height: 1.65;
  font-style: normal;
  margin-bottom: var(--space-xs);
}

.ct-agent-card p:last-child,
.ct-agent-card address:last-child {
  margin-bottom: 0;
}

.ct-agent-card a {
  color: var(--color-red-dark);
  font-size: 0.75rem;
  text-decoration: none;
  word-break: break-all;
}

.ct-agent-card a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ct-agents__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ct-intent__grid {
    grid-template-columns: 1fr;
  }

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

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

  .ct-agents__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ct-agents__grid {
    grid-template-columns: 1fr;
  }
}
