/* ==========================================================================
   Contact Us blocks — Vamstar theme. All selectors ct- prefixed; sections
   carry .ct-sec for scoped variables. Theme header/footer are untouched.
   ========================================================================== */

.ct-sec {
  --paper:  #E8E1D1;
  --paper2: #F2EDE1;
  --black:  #060606;
  --ink:    #101010;
  --cyan:   #7EBEE3;
  --deep:   #2C6B8A;
  --ok:     #4FC98A;
  --bad:    #C0504D;
  --grey:   rgba(16,16,16,0.58);
  --haird:  rgba(232,225,209,0.12);
  --cream-dim: rgba(232,225,209,0.62);
  --cream-mute: rgba(232,225,209,0.38);
  --mono:   'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  background: var(--paper); color: var(--ink);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ct-sec, .ct-sec *, .ct-sec *::before, .ct-sec *::after { box-sizing: border-box; }
/* Reset at (0,1,0) so the theme's element rules lose, while class rules still win ties. */
.ct-sec :where(h1, h2, h3, h4, p, ul, li, address) { margin: 0; padding: 0; }
.ct-sec :where(address) { font-style: normal; }
.ct-sec button { font-family: inherit; }
.ct-anchor { position: relative; top: -90px; display: block; height: 0; }

.ct-wrap { max-width: 1480px; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 80px); }
.ct-k { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.ct-dark { background: var(--black); color: #fff; }
.ct-dark .ct-k { color: var(--cyan); }
.ct-k--deep { color: var(--deep); }
/* Headings use two classes (0,2,0) to beat the theme's h1/h2:not([class*="text-"]) sizes (0,1,1). */
.ct-sec .ct-h2 { margin-top: 22px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.026em; line-height: 1.08; color: var(--ink); }
.ct-sec .ct-h2 em { font-style: normal; color: var(--deep); }
.ct-sec.ct-dark .ct-h2 { color: #fff; }
.ct-sec.ct-dark .ct-h2 em { color: var(--cyan); }
.ct-lede { margin-top: 18px; max-width: 560px; font-size: 15px; color: var(--grey); }
.ct-dark .ct-lede { color: rgba(255,255,255,0.6); }
.ct-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; padding: 13px 26px; border-radius: 4px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: gap .2s ease, background .2s ease, color .2s ease, border-color .2s ease; font-family: inherit; line-height: 1.3; }
.ct-btn:hover { gap: 16px; }
.ct-btn--light { background: #fff; color: var(--black); }
.ct-btn--light:hover { background: var(--cyan); color: var(--black); }
.ct-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.ct-btn--outline:hover { border-color: var(--cyan); color: var(--cyan); }
.ct-btn--dark { background: var(--black); color: #fff; }
.ct-btn--dark:hover { background: var(--deep); color: #fff; }
.ct-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.ct-reveal.in, .ct-is-preview .ct-reveal { opacity: 1; transform: none; }

/* ============ 01 HERO ============ */
/* Map sits in normal flow above the text, scaled to fit (never cropped),
   so pins and labels can never run into the copy below. */
.ct-hero { position: relative; background: var(--black); color: #fff; min-height: 92vh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.ct-hero__map { position: relative; z-index: 1; padding: 88px clamp(20px, 4.5vw, 80px) 0; display: flex; justify-content: center; }
.ct-hero__map svg { display: block; width: 100%; height: auto; max-height: 64vh; overflow: visible; }
.ct-land { fill: none; stroke: rgba(232,225,209,0.15); stroke-width: 2.6; stroke-linecap: round; }
.ct-arc { fill: none; stroke: rgba(126,190,227,0.35); stroke-width: 1.2; stroke-dasharray: 3 7; animation: ctArc 1.6s linear infinite; }
@keyframes ctArc { to { stroke-dashoffset: -20; } }
.ct-pin__ping { fill: none; stroke: var(--cyan); stroke-width: 1; animation: ctPing 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ctPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(5); opacity: 0; } }
.ct-pin__dot { fill: var(--cyan); stroke: rgba(126,190,227,0.35); stroke-width: 6; }
.ct-pin.closed .ct-pin__dot { fill: rgba(232,225,209,0.55); stroke: rgba(232,225,209,0.15); }
.ct-pin.closed .ct-pin__ping { stroke: rgba(232,225,209,0.4); }
.ct-pin__city { font-family: var(--mono); font-size: 13px; letter-spacing: .18em; fill: #fff; text-transform: uppercase; }
.ct-pin__time { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; fill: var(--cream-dim); }
.ct-pin__time .st { fill: var(--ok); }
.ct-pin.closed .ct-pin__time .st { fill: var(--cream-mute); }
.ct-hero__bottom { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; padding: 40px clamp(20px, 4.5vw, 80px) 60px; border-top: 1px solid rgba(255,255,255,0.08); margin: 24px clamp(20px, 4.5vw, 80px) 0; padding-left: 0; padding-right: 0; }
.ct-hero__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; }
.ct-sec .ct-hero__title { color: #fff; font-size: clamp(44px, 6.2vw, 92px); font-weight: 600; letter-spacing: -0.03em; line-height: .98; }
.ct-sec .ct-hero__title span { color: var(--cyan); }
.ct-hero__side { max-width: 430px; flex-shrink: 0; display: flex; flex-direction: column; gap: 26px; padding-bottom: 6px; }
.ct-hero__sub { color: rgba(255,255,255,0.68); font-size: 14.5px; line-height: 1.65; }
.ct-hero__direct { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }
.ct-hero__direct span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.45); padding-top: 3px; }
.ct-hero__direct a { color: #fff; text-decoration: none; }
.ct-hero__direct a:hover { color: var(--cyan); }
.ct-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ 02 ROUTES ============ */
.ct-routes { padding: 20px 0 clamp(90px, 10vw, 130px); }
.ct-routes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.ct-routes__lede { margin-top: 0; max-width: 420px; }
.ct-routes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--haird); border: 1px solid var(--haird); border-radius: 10px; overflow: hidden; }
.ct-route { background: var(--black); padding: 30px 28px 26px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: background .3s ease; }
.ct-route:hover, .ct-route:focus-visible { background: #0D1013; outline: none; color: #fff; }
.ct-route__n { font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: .1em; }
.ct-route__h { font-size: 20px; font-weight: 600; letter-spacing: -0.016em; }
.ct-route__b { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); }
.ct-route__go { margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.45); transition: color .25s ease; }
.ct-route:hover .ct-route__go { color: var(--cyan); }
.ct-route--primary { background: linear-gradient(135deg, rgba(44,107,138,0.32), rgba(6,6,6,0) 70%), var(--black); }
.ct-route--primary .ct-route__go { color: var(--cyan); }

/* ============ 03 ENQUIRY ============ */
.ct-enquiry { padding: clamp(90px, 11vw, 150px) 0; }
.ct-enquiry__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.ct-enquiry__intro { position: sticky; top: 110px; }
.ct-promise { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; border-top: 1px solid rgba(16,16,16,0.14); padding-top: 26px; }
.ct-promise div { display: flex; gap: 14px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; color: rgba(16,16,16,0.75); }
.ct-promise b { font-family: var(--mono); font-size: 11px; color: var(--deep); padding-top: 2px; }
.ct-formcard { background: #fff; border: 1px solid rgba(16,16,16,0.1); border-radius: 10px; padding: clamp(28px, 3.4vw, 48px); box-shadow: 0 30px 70px rgba(16,16,16,0.08); }
.ct-formcard.is-sent .ct-cf7, .ct-formcard.is-sent .ct-sample { display: none; }

/* layout helpers used inside the CF7 form markup */
.ct-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ct-formcard label, .ct-field > label {
  display: block !important; font-family: var(--mono) !important; font-size: 10.5px !important; font-weight: 400 !important;
  letter-spacing: .14em !important; text-transform: uppercase !important; color: rgba(16,16,16,0.6) !important; margin: 0 !important; opacity: 1 !important;
}
.ct-formcard label i { font-style: normal; color: var(--deep); }
.ct-formcard .wpcf7-form-control-wrap { display: block; }
.ct-formcard form > p { margin: 0; }
.ct-formcard br { display: none; }

/* CF7 controls: the theme ships a site-wide skin (icons, colours) — override it */
.ct-formcard input[type="text"], .ct-formcard input[type="email"], .ct-formcard input[type="tel"],
.ct-formcard select, .ct-formcard textarea {
  -webkit-appearance: none !important; appearance: none !important;
  font-family: inherit !important; font-size: 15px !important; line-height: 1.4 !important;
  color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important;
  background-color: var(--paper2) !important; background-image: none !important;
  border: 1px solid rgba(16,16,16,0.14) !important; border-radius: 4px !important; box-shadow: none !important;
  padding: 13px 15px !important; width: 100% !important; height: auto !important; min-height: 0 !important;
  transition: border-color .2s ease, background-color .2s ease;
}
.ct-formcard select {
  background-image: linear-gradient(45deg, transparent 50%, #101010 50%), linear-gradient(135deg, #101010 50%, transparent 50%) !important;
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important;
  padding-right: 40px !important; cursor: pointer;
}
.ct-formcard textarea { min-height: 130px !important; resize: vertical; }
.ct-formcard input::placeholder, .ct-formcard textarea::placeholder { color: rgba(16,16,16,0.4) !important; -webkit-text-fill-color: rgba(16,16,16,0.4) !important; opacity: 1 !important; }
.ct-formcard input:focus, .ct-formcard select:focus, .ct-formcard textarea:focus { outline: none !important; border-color: var(--deep) !important; background-color: #fff !important; }
.ct-formcard input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #F2EDE1 inset !important; -webkit-text-fill-color: var(--ink) !important; }
.ct-formcard .wpcf7-not-valid { border-color: var(--bad) !important; }
.ct-formcard .wpcf7-not-valid-tip { color: var(--bad) !important; font-size: 11.5px !important; margin-top: 6px; }
.ct-formcard .wpcf7-response-output:empty { display: none !important; }
.ct-formcard .wpcf7-spinner { margin: 0 0 0 12px; }

/* topic chips (built by contactus.js from the your-topic select) */
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips button { font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 14px; border-radius: 4px; border: 1px solid rgba(16,16,16,0.16); background: transparent; cursor: pointer; transition: all .2s ease; color: rgba(16,16,16,0.75); line-height: 1.3; }
.ct-chips button:hover { border-color: var(--deep); color: var(--deep); }
.ct-chips button.on { background: var(--black); border-color: var(--black); color: #fff; }
.ct-has-chips select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; padding: 0 !important; border: 0 !important; }
.ct-field--topic { position: relative; }

.ct-formfoot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.ct-formfoot p { font-size: 11.5px !important; color: var(--grey); max-width: 330px; line-height: 1.55; margin: 0 !important; }
.ct-formfoot p a { color: var(--deep); }
.ct-formcard input[type="submit"], .ct-formcard button[type="submit"] {
  display: inline-flex !important; align-items: center; width: auto !important;
  background: var(--black) !important; background-image: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
  border: 0 !important; border-radius: 4px !important; padding: 14px 28px !important; font-size: 13.5px !important; font-weight: 600 !important;
  font-family: inherit !important; cursor: pointer; transition: background .2s ease; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important;
}
.ct-formcard input[type="submit"]:hover, .ct-formcard button[type="submit"]:hover { background: var(--deep) !important; }
.ct-sample input, .ct-sample textarea { pointer-events: none; }

/* thank-you panel */
.ct-thanks { padding: 10px 0; outline: none; animation: ctIn .6s ease both; }
.ct-thanks[hidden] { display: none !important; }
@keyframes ctIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ct-tick { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--deep); position: relative; margin-bottom: 26px; }
.ct-tick::after { content: ''; position: absolute; left: 18px; top: 12px; width: 12px; height: 21px; border: solid var(--deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ct-thanks .ct-k { margin-bottom: 12px; }
.ct-sec .ct-thanks h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; color: var(--ink); }
.ct-thanks p { margin-top: 14px; font-size: 14.5px; color: var(--grey); max-width: 480px; }
.ct-thanks__next { margin-top: 30px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ct-linkbtn { font-size: 13px; font-weight: 600; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 2px; cursor: pointer; color: var(--ink); }

/* ============ 04 OFFICES ============ */
.ct-offices { padding: clamp(90px, 11vw, 150px) 0; }
.ct-offices__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--haird); border: 1px solid var(--haird); border-radius: 10px; overflow: hidden; }
.ct-office { background: var(--black); padding: 32px 28px 28px; display: flex; flex-direction: column; transition: background .3s ease; }
.ct-office:hover { background: #0D1013; }
.ct-office__region { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.ct-office__city { margin-top: 14px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.ct-office__clock { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--cream-dim); display: flex; align-items: center; gap: 8px; min-height: 1.4em; }
.ct-office__clock.on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(79,201,138,0.15); }
.ct-office.closed .ct-office__clock::before { background: var(--cream-mute); box-shadow: none; }
.ct-office__addr { margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--cream-dim); flex: 1; }
.ct-office__lines { margin-top: 22px; border-top: 1px solid var(--haird); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ct-office__lines a { color: #fff; text-decoration: none; }
.ct-office__lines a:hover { color: var(--cyan); }
.ct-office__dir { margin-top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.45); text-decoration: none; }
.ct-office__dir:hover { color: var(--cyan); }

/* ============ 05 QUICK ANSWERS ============ */
.ct-quick { background: var(--paper2); padding: clamp(80px, 10vw, 130px) 0; }
.ct-quick__list { margin-top: 44px; border-top: 1px solid rgba(16,16,16,0.16); }
.ct-qrow { display: grid; grid-template-columns: 70px 1fr 1.2fr 40px; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(16,16,16,0.12); text-decoration: none; color: var(--ink); transition: padding .3s ease, background .3s ease; }
.ct-qrow:hover { padding-left: 12px; padding-right: 12px; background: rgba(255,255,255,0.5); color: var(--ink); }
.ct-qrow__n { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--deep); }
.ct-qrow__h { font-size: 19px; font-weight: 600; letter-spacing: -0.014em; }
.ct-qrow__b { font-size: 13.5px; color: var(--grey); line-height: 1.6; }
.ct-qrow__a { font-size: 20px; color: rgba(16,16,16,0.35); text-align: right; transition: transform .25s ease, color .25s ease; }
.ct-qrow:hover .ct-qrow__a { color: var(--deep); transform: translateX(4px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .ct-hero__bottom { flex-direction: column; align-items: flex-start; gap: 30px; }
  .ct-routes__grid { grid-template-columns: 1fr 1fr; }
  .ct-enquiry__grid { grid-template-columns: 1fr; }
  .ct-enquiry__intro { position: static; }
  .ct-offices__grid { grid-template-columns: 1fr 1fr; }
  .ct-qrow { grid-template-columns: 50px 1fr 40px; }
  .ct-qrow__b { display: none; }
}
@media (max-width: 640px) {
  .ct-hero { min-height: 0; }
  .ct-hero__map { padding-top: 84px; }
  .ct-hero__map svg { max-height: none; }
  .ct-hero__bottom { padding-bottom: 40px; }
  .ct-pin__time { display: none; }
  .ct-pin__city { font-size: 24px; letter-spacing: .08em; }
  .ct-pin__dot { stroke-width: 10; }
  .ct-routes__grid, .ct-offices__grid, .ct-frow { grid-template-columns: 1fr; }
  .ct-frow { gap: 0; }
  .ct-qrow { grid-template-columns: 40px 1fr 30px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-sec *, .ct-sec *::before, .ct-sec *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
