/* ═══════════════════════════════════════════════════
   Contact Us — contact.css
     1. Hero   — forest green banner
     2. Body   — CF7 form + direct channels
   Form selectors are element-qualified on purpose: the
   parent theme's reset.css styles inputs and buttons
   (pink defaults) and prints after child page CSS, so
   these need strictly higher specificity.
═══════════════════════════════════════════════════ */

.ct-main {
  background: var(--dovetail-white);
}

.ct-container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* ═══════════════════════════════════════════════════
   1 · Hero
═══════════════════════════════════════════════════ */
.ct-hero {
  background: var(--dovetail-green-800);
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}

.ct-container.ct-hero-inner {
  padding-top: 120px;
  padding-bottom: 80px;
}

/* ── Breadcrumb (light, on green) ── */
.ct-breadcrumb {
  margin-bottom: 28px;
}

.ct-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.ct-breadcrumb li {
  display: flex;
  align-items: center;
}

.ct-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 8px;
  opacity: 0.45;
  font-size: 10px;
}

.ct-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ct-breadcrumb a:hover {
  color: var(--dovetail-green-200);
}

.ct-breadcrumb [aria-current="page"] {
  color: var(--dovetail-white);
}

/* ── Heading ── */
.ct-h1 {
  margin: 0 0 24px;
  line-height: 1;
  text-wrap: balance;
}

.ct-h1-cal {
  display: block;
  font-family: "Cal Sans", sans-serif;
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 600;
  color: var(--dovetail-white);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.ct-h1-ott {
  display: block;
  font-family: "Old Standard TT", serif !important;
  font-style: italic;
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 400;
  color: var(--dovetail-green-200);
  line-height: 1.05;
  margin-top: 8px;
}

.ct-lead {
  margin: 0;
  max-width: 560px;
  font-family: "Roboto", sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════
   2 · Body — form + channels
═══════════════════════════════════════════════════ */
.ct-body {
  padding: clamp(64px, 8vw, 104px) 0;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}

.ct-col-title {
  margin: 0 0 32px !important;
  font-family: "Cal Sans", sans-serif !important;
  font-size: clamp(26px, 2.6vw, 38px) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  color: var(--dovetail-dark) !important;
  line-height: 1 !important;
}

.ct-col-title em {
  font-family: "Old Standard TT", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--dovetail-accent-strong);
}

/* ── The form (Contact Form 7) ── */
.ct-form {
  background: #ffffff;
  border: 1px solid rgba(29, 51, 38, 0.12);
  border-radius: 6px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 16px 40px -10px rgba(29, 51, 38, 0.08);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.ct-form:hover {
  box-shadow: 0 24px 50px -10px rgba(29, 51, 38, 0.12);
}

.ct-form label {
  display: inline-block;
  margin: 0 0 8px;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dovetail-green-900, #1d3326);
  transition: color 0.22s ease;
}

.ct-form p {
  margin: 0 0 24px;
  position: relative;
}

.ct-form p:focus-within label {
  color: var(--dovetail-accent-strong, #b8860b);
}

.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form textarea {
  width: 100%;
  padding: 16px 20px;
  margin-top: 4px;
  background: #faf9f6;
  border: 1.5px solid rgba(29, 51, 38, 0.16);
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: var(--dovetail-dark, #1c1c1c);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ct-form textarea {
  min-height: 160px;
  resize: vertical;
}

.ct-form input[type="text"]:hover,
.ct-form input[type="email"]:hover,
.ct-form input[type="tel"]:hover,
.ct-form textarea:hover {
  border-color: rgba(29, 51, 38, 0.32);
  background: #ffffff;
}

.ct-form input[type="text"]:focus,
.ct-form input[type="email"]:focus,
.ct-form input[type="tel"]:focus,
.ct-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--dovetail-green-800, #1d3326);
  box-shadow: 0 0 0 4px rgba(29, 51, 38, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

.ct-form input[type="text"]::placeholder,
.ct-form input[type="email"]::placeholder,
.ct-form input[type="tel"]::placeholder,
.ct-form textarea::placeholder {
  color: #a09e99;
  font-weight: 300;
}

/* Submit — out-ranks the parent reset's pink [type=submit] rules */
.ct-form input.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 42px;
  background: var(--dovetail-green-800, #1d3326);
  border: 1px solid var(--dovetail-green-800, #1d3326);
  border-radius: 4px;
  color: var(--dovetail-white, #ffffff);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(29, 51, 38, 0.15);
}

.ct-form input.wpcf7-submit:hover,
.ct-form input.wpcf7-submit:focus {
  background: var(--dovetail-green-950, #122118);
  border-color: var(--dovetail-green-950, #122118);
  color: var(--dovetail-white, #ffffff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 51, 38, 0.25);
}

.ct-form input.wpcf7-submit:focus-visible {
  outline: 2px solid var(--dovetail-accent);
  outline-offset: 3px;
}

/* CF7 feedback states */
.ct-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: #a13030;
}

.ct-form .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 18px !important;
  border: 1px solid var(--dovetail-border) !important;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: var(--dovetail-dark);
}

.ct-form .wpcf7-spinner {
  margin: 0 0 0 12px;
}

/* ── Direct channels ── */
.ct-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--dovetail-border);
}

.ct-channel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Inline padding is offset by the negative margin so text stays
     aligned with the column heading; it gives the hover fill room. */
  padding: 24px 18px;
  margin-inline: -18px;
  border-bottom: 1px solid var(--dovetail-border);
  transition: background 0.25s ease;
}

/* Hover / press: the row fills with the brand green, text flips light */
.ct-channel:hover,
.ct-channel:focus-within {
  background: var(--dovetail-green-800);
}

.ct-channel:active {
  background: var(--dovetail-green-950);
}

.ct-channel:hover .ct-channel-label,
.ct-channel:focus-within .ct-channel-label {
  color: var(--dovetail-taupe);
}

.ct-channel:hover .ct-channel-val,
.ct-channel:focus-within .ct-channel-val {
  color: var(--dovetail-white) !important;
}

.ct-channel:hover a.ct-channel-val:hover {
  color: var(--dovetail-green-200) !important;
}

.ct-channel:hover .ct-channel-note,
.ct-channel:focus-within .ct-channel-note {
  color: rgba(255, 255, 255, 0.72);
}

.ct-channel:hover .ct-hours dt,
.ct-channel:focus-within .ct-hours dt {
  color: var(--dovetail-white);
}

.ct-channel:hover .ct-hours dd,
.ct-channel:focus-within .ct-hours dd {
  color: rgba(255, 255, 255, 0.75);
}

.ct-channel-label {
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

.ct-channel-val {
  font-family: "Old Standard TT", serif;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--dovetail-dark) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

a.ct-channel-val:hover {
  color: var(--dovetail-accent-strong) !important;
}

.ct-channel-val--sub {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 400;
}

.ct-channel-val--text {
  font-weight: 400;
}

.ct-channel-note {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--dovetail-text-muted, #6b6b6b);
}

/* Hours */
.ct-hours {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-hours > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 340px;
}

.ct-hours dt {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dovetail-dark);
}

.ct-hours dd {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: var(--dovetail-text-muted, #6b6b6b);
}

/* Socials — icon + name in a rounded white pill */
.ct-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ct-socials a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 26px 6px 6px;
  background: var(--dovetail-white);
  border: 1px solid var(--dovetail-border);
  border-radius: 0;
  color: var(--dovetail-green-600) !important;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

/* Leading icon tile — rounded gray square, dark green glyph */
.ct-socials a i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--dovetail-off-white);
  color: var(--dovetail-green-800);
  font-size: 21px;
  transition: background 0.22s ease, color 0.22s ease;
}

.ct-socials a:hover {
  background: var(--dovetail-green-800);
  border-color: var(--dovetail-green-800);
  color: var(--dovetail-white) !important;
  transform: translateY(-2px);
}

.ct-socials a:hover i {
  background: rgba(255, 255, 255, 0.14);
  color: var(--dovetail-white);
}

/* Licence */
.ct-license {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--dovetail-border);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dovetail-taupe);
}

/* ═══════════════════════════════════════════════════
   Reduced motion
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ct-breadcrumb a,
  .ct-form input.wpcf7-submit,
  .ct-channel,
  a.ct-channel-val,
  .ct-socials a {
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════
   Tablet
═══════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .ct-container {
    padding-inline: 32px;
  }

  .ct-hero {
    min-height: 72vh;
  }

  .ct-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* Stacked view: direct contact details come before the form —
     a phone call is the faster path on mobile. */
  .ct-direct-col {
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════
   Mobile
═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .ct-container {
    padding-inline: 20px;
  }

  .ct-hero {
    min-height: 72vh;
  }

  .ct-container.ct-hero-inner {
    padding-bottom: 56px;
  }

  .ct-body {
    padding: 52px 0 64px;
  }
}
