/* ===================================================================
   SCPL Holdings — Contact page
   Extends style3.css. Page-specific layouts only.
   Shares the masthead + glass-card language with about.css so the
   contact page reads as part of the same family.
   =================================================================== */

/* ===================================================================
   PAGE MASTHEAD — bottom-anchored, monochrome, left-aligned
   (mirrors about.css)
   =================================================================== */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img {
  width: 100%; height: 116%; object-fit: cover; object-position: center 40%;
  filter: grayscale(1) contrast(1.1) brightness(0.55);
  will-change: transform;
}
.page-hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 64% at 28% 54%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 52%, transparent 80%),
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.55) 66%, rgba(0,0,0,0.96) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  padding-top: 140px;
  padding-bottom: 64px;
  max-width: 860px;
}
.page-hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 24px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.page-hero-kicker.in { opacity: 1; transform: none; }
.page-hero-rule {
  display: inline-block; width: 0; height: 2px; background: var(--teal-bright);
  transition: width 0.8s var(--ease) 0.25s;
}
.page-hero-kicker.in .page-hero-rule { width: 34px; }

.page-hero-cue {
  position: absolute; right: var(--gutter); bottom: 76px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease) 0.6s, transform 0.8s var(--ease) 0.6s;
}
.page-hero-cue.in { opacity: 1; transform: none; }
.page-hero-cue-label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.page-hero-cue-line {
  position: relative; width: 1px; height: 56px; background: rgba(255,255,255,0.25); overflow: hidden;
}
.page-hero-cue-dot {
  position: absolute; left: -1.5px; top: 0; width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal-bright); box-shadow: 0 0 8px var(--teal-bright);
  animation: cueTravel 2.4s var(--ease) infinite;
}
@keyframes cueTravel { 0% { top: -6px; opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { top: 56px; opacity: 0; } }
.page-hero-cue:hover .page-hero-cue-label { color: var(--teal-bright); }
@media (max-width: 900px) { .page-hero-cue { display: none; } }
.page-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem); font-weight: 700; line-height: 1.06;
  letter-spacing: -0.035em; color: var(--white); margin-bottom: 24px;
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease) 0.12s, transform 1s var(--ease) 0.12s;
}
.page-hero-title.in { opacity: 1; transform: none; }
.page-hero-sub {
  font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.72); max-width: 58ch;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease) 0.35s, transform 0.8s var(--ease) 0.35s;
}
.page-hero-sub.in { opacity: 1; transform: none; }

/* ===================================================================
   GET IN TOUCH — direct details (left) + enquiry form (right)
   =================================================================== */
.enquire { padding: clamp(80px, 11vw, 140px) 0; background: var(--white); }
.enquire-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.enquire-aside { position: sticky; top: 120px; }
.enquire-headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.03em; color: var(--black); margin-top: 10px;
}
.enquire-lead {
  margin-top: 22px; font-size: 1.1rem; color: var(--body); line-height: 1.7; max-width: 42ch;
}

.contact-lines {
  margin-top: 40px; list-style: none;
  border-top: 2px solid var(--ink);
}
.contact-line {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.contact-line-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 4px;
}
.contact-line-value {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--black); width: max-content; max-width: 100%;
  transition: color 0.25s var(--ease);
}
.contact-line-value:hover { color: var(--teal); }
.contact-line-note { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* ---- enquiry form ---- */
.enquire-form-wrap { perspective: 1400px; }
.enquire-form {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--off-white) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 24px 56px -34px rgba(13,42,48,0.35),
    0 6px 18px -16px rgba(13,42,48,0.2);
  overflow: hidden;
}
/* teal accent strip along the top edge */
.enquire-form::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 100%);
}
.form-intro {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.form-intro::before {
  content: ""; width: 22px; height: 2px; background: var(--teal-bright);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 7px;
}
.field input,
.field textarea,
.field select {
  font-family: inherit; font-size: 0.94rem; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa3af; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,59,66,0.12);
  background: var(--white);
}
.enquire-form .field:not(:last-of-type) { margin-bottom: 14px; }
.form-row .field { margin-bottom: 0; }

/* custom select — strip native chrome, add our own chevron */
.select-wrap { position: relative; }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 44px; cursor: pointer;
  color: var(--ink);
}
.field select:required:invalid { color: #9aa3af; }
.field select option { color: var(--ink); }
.field select option[disabled] { color: #9aa3af; }
.select-arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-55%);
  font-size: 0.7rem; color: var(--teal); pointer-events: none;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.select-wrap:focus-within .select-arrow { color: var(--teal); transform: translateY(-35%); }

.form-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.form-status {
  font-size: 0.95rem; font-weight: 600; color: var(--teal);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.form-status.show { opacity: 1; transform: none; }
.form-fineprint {
  margin-top: 20px; font-size: 0.82rem; color: var(--muted); line-height: 1.55; max-width: 52ch;
}
.field input:invalid.touched,
.field textarea:invalid.touched,
.field select:invalid.touched { border-color: #c0392b; }

/* ===================================================================
   WHERE TO FIND US — dark band, two location cards with live maps
   =================================================================== */
.offices {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 90% 6%, rgba(52,140,158,0.10) 0%, transparent 58%),
    var(--teal-soft);
  color: var(--ink);
}
.offices-head { max-width: 60ch; margin-bottom: 56px; }
.offices-headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.03em; color: var(--teal); margin-top: 8px; margin-bottom: 22px;
}
.offices-sub { font-size: 1.1rem; line-height: 1.7; color: var(--grey); max-width: 56ch; }

.offices-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.office-card {
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
}
.office-map {
  position: relative; aspect-ratio: 16 / 9; background: #dbe7e8;
  border-bottom: 1px solid rgba(20,59,66,0.10);
}
.office-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(0.35) contrast(1.02);
  transition: filter 0.5s var(--ease);
}
.office-card:hover .office-map iframe { filter: grayscale(0) contrast(1.02); }
.office-body { padding: clamp(28px, 3vw, 40px); position: relative; z-index: 1; }
.office-num {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--teal-mid); margin-bottom: 14px;
}
.office-name {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--teal); margin-bottom: 8px;
}
.office-tag {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 18px;
}
.office-addr {
  font-style: normal; font-size: 1.02rem; color: var(--grey);
  line-height: 1.65; margin-bottom: 24px;
}
.office-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; color: var(--teal);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.office-link:hover { gap: 13px; color: var(--teal-dark); }

/* light card to match the section's lighter theme */
.glass-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(20,59,66,0.10);
  box-shadow:
    0 18px 48px -22px rgba(20,59,66,0.28),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.4s var(--ease), border-color 0.35s var(--ease);
}
.glass-card:hover {
  border-color: rgba(20,59,66,0.2);
  box-shadow: 0 30px 64px -24px rgba(20,59,66,0.38), inset 0 1px 0 rgba(255,255,255,0.7);
  transform: translateY(-5px);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 940px) {
  .enquire-grid { grid-template-columns: 1fr; gap: 48px; }
  .enquire-aside { position: static; }
  .contact-lines { margin-top: 32px; }
  .offices-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { min-height: 76vh; }
  .page-hero-inner { padding-top: 120px; padding-bottom: 56px; }
  .page-hero-title { font-size: clamp(1.75rem, 8.5vw, 2.5rem); line-height: 1.1; margin-bottom: 20px; }
  .page-hero-sub { font-size: 1rem; line-height: 1.65; }

  .enquire { padding: clamp(64px, 15vw, 90px) 0; }
  .enquire-headline { font-size: clamp(1.8rem, 7.4vw, 2.3rem); }
  .enquire-lead { font-size: 1rem; }
  .contact-line-value { font-size: clamp(1.25rem, 6vw, 1.55rem); }

  .offices { padding: clamp(64px, 15vw, 90px) 0; }
  .offices-head { margin-bottom: 40px; }
  .offices-headline { font-size: clamp(1.8rem, 7.4vw, 2.3rem); }
  .offices-sub { font-size: 1rem; }

  /* keep form controls at 16px on mobile so iOS Safari doesn't auto-zoom on focus */
  .field input, .field textarea, .field select { font-size: 16px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .field { margin-bottom: 18px; }
  .form-foot { gap: 14px; }
  .form-foot .btn { width: 100%; justify-content: center; }
}
@media (max-width: 460px) {
  .page-hero-title { font-size: clamp(1.6rem, 8vw, 1.95rem); }
  .enquire-form { padding: 24px 20px; border-radius: 18px; }
  .office-body { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .page-hero-kicker, .page-hero-title, .page-hero-sub { opacity: 1 !important; transform: none !important; }
  .page-hero-rule { width: 34px !important; }
}
