/* ==========================================================================
   contact.css — Contact page-specific styles
   Depends on: tokens.css, global.css, components.css
   ========================================================================== */


/* ==========================================================================
   PAGE HEADER (.ct-header)
   No full hero — clean, focused header with generous top padding for nav
   ========================================================================== */

.ct-header {
  padding-top: calc(var(--sp-20) + 80px); /* offset for fixed nav */
  padding-bottom: var(--sp-12);
  text-align: center;
}

.ct-header h1 {
  margin-bottom: var(--sp-3);
}

.ct-header p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
}


/* ==========================================================================
   CONTACT FORM (.ct-form)
   Prominent, full-width form on light background
   ========================================================================== */

.ct-form__wrapper {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-10) var(--sp-8);
  border-radius: var(--radius-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

@media (max-width: 767px) {
  .ct-form__wrapper {
    padding: var(--sp-8) var(--sp-5);
  }
}

.ct-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

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

.ct-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ct-form__field--full {
  grid-column: 1 / -1;
}

.ct-form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
}

.ct-form__label--optional {
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
}

.ct-form__input,
.ct-form__select,
.ct-form__textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-light);
  color: var(--color-text-body);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  transition:
    border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.ct-form__input::placeholder,
.ct-form__textarea::placeholder {
  color: var(--color-text-muted);
}

.ct-form__input:focus,
.ct-form__select:focus,
.ct-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(87, 63, 152, 0.12);
}

.ct-form__select {
  appearance: none;
  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' stroke='rgba(15,15,15,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-10);
}

.ct-form__textarea {
  min-height: 140px;
  resize: vertical;
}

.ct-form__submit {
  grid-column: 1 / -1;
}


/* ==========================================================================
   OFFICES (.ct-offices)
   ========================================================================== */

.ct-offices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

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

@media (min-width: 1280px) {
  .ct-offices__grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* Two-up modifier — used when only physical offices are shown.
   Keeps the layout to a centred pair on tablet+ instead of stretching to 4 cols. */
.ct-offices__grid--two-up {
  max-width: 720px;
  margin-inline: auto;
}

@media (min-width: 1280px) {
  .ct-offices__grid--two-up {
    grid-template-columns: 1fr 1fr;
  }
}

.ct-office {
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  text-align: center;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.ct-office:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.ct-office__flag {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-3);
  line-height: 1;
}

.ct-office__city {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-heading);
  margin-bottom: var(--sp-1);
}

.ct-office__role {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

.ct-office__address {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}


/* ==========================================================================
   DIRECT CONTACT (.ct-direct)
   Minimal CTA row — email + phone
   ========================================================================== */

.ct-direct {
  text-align: center;
}

.ct-direct__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-8);
}

.ct-direct__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ct-direct__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-light);
  color: var(--color-primary);
  flex-shrink: 0;
}

.ct-direct__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-direct__text {
  text-align: left;
}

.ct-direct__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.ct-direct__value {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
}

.ct-direct__value a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

.ct-direct__value a:hover {
  color: var(--color-primary-dark);
}


/* Section override — remove top padding (follows page header) */
.ct-form-section {
  padding-top: 0;
}

/* Full-width submit button */
.ct-form__submit-btn {
  width: 100%;
}
