/* Marcellus = main section heading (same as the home page headings) */
@import url("https://fonts.googleapis.com/css2?family=Marcellus&display=swap");

/* =========================================================================
   Contact page — hero image, floating info cards, then a WHITE
   "Send Us an Enquiry" section with a pale blue top-left corner, an enquiry
   form card (left) and a gold-framed map (right).

   Typography matches the home page:
     main heading  = Marcellus, capitals, clamp(2rem, 4vw, 3.1rem), weight 400
     sub headings  = Cormorant Garamond (var(--font-head)), weight 400/500
     paragraphs    = var(--font-body), 1.22rem, weight 400 + 0.15px stroke
   Colours of the page are unchanged, except: all text in the enquiry form is black,
   and the map opens Google Maps when clicked.
   ========================================================================= */

/* Fonts scoped to this page's own content only, so the shared navbar
   from base.css is untouched */
.contact-hero,
.contact-form-section {
  font-family: var(--font-body);
}

/* ---------- Hero (placeholder image, 1920x600 ratio) ---------- */
.contact-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 600;
  overflow: visible;
  margin: 0;               /* no gap — the white section starts right below */
  padding: 0;
  box-sizing: border-box;
  display: block;
}

/* Placeholder shown behind the real photo; if contact-hero.jpg is
   missing, onerror removes the <img> and this pattern stays visible. */
.contact-hero-media {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--blue-tint), var(--orange-tint));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; color: var(--ink-soft);
  z-index: 0;
}
.contact-hero-media i { font-size: 2.6rem; color: var(--blue); opacity: .55; }
.contact-hero-media span { font-size: 0.85rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.contact-hero-media small { font-size: 0.78rem; opacity: .75; }

.contact-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  z-index: 1;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,26,58,0.08) 0%, rgba(9,26,58,0.02) 55%, rgba(9,26,58,0.32) 100%);
  z-index: 2;
}

/* ---------- Floating info cards (overlap the hero's bottom edge) ---------- */
.contact-cards {
  position: absolute;
  left: 0; right: 0;
  bottom: -55px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-s, 10px);
  box-shadow: 0 10px 26px rgba(9,26,58,0.16);
  padding: 14px 16px;
  text-decoration: none;
  position: relative;
}
.cc-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.95rem; color: #fff;
}
.cc-ico.tone-forest { background: #2fae66; }
.cc-ico.tone-blue { background: #3aa0e8; }
.cc-ico.tone-orange { background: #f5a623; }
.cc-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

/* Card titles (Call Us / Email Us / Visit Us): same style as the
   home-page card names (Cormorant Garamond, medium weight) */
.cc-body b {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.cc-main {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 400; color: var(--ink);
  -webkit-text-stroke: 0.15px currentColor;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px;
}
.cc-sub {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 400; color: var(--ink-soft);
  -webkit-text-stroke: 0.1px currentColor;
}
.cc-arrow { margin-left: auto; color: var(--ink-soft); flex-shrink: 0; font-size: 0.8rem; }

/* =========================================================================
   SEND US AN ENQUIRY — white section
   ========================================================================= */
.contact-form-section {
  position: relative;
  z-index: 1;
  overflow: hidden;         /* fallback for very old browsers */
  overflow-x: clip;
  overflow-y: visible;
  background: #ffffff;
  /* top padding = the 55px the cards hang below the hero + breathing room */
  padding: 125px 0 120px;
  --enq-navy: #0a1f4d;
  --enq-blue: #0b57d0;
  --enq-blue-dark: #0a3fae;
  --enq-gold: #ffd21f;
  --enq-line: #a9bbe0;
  --enq-ph: #5b6f96;
}
.contact-form-section .container { position: relative; z-index: 1; }

/* ---------- Corner shape (top-left only) ---------- */
.enq-shape { position: absolute; height: auto; pointer-events: none; z-index: 0; }
.enq-shape-tl { top: 0; left: 0;  width: clamp(120px, 15vw, 240px); }

/* ---------- Heading ---------- */
.enq-head { margin-bottom: 40px; }

/* Main heading: same font / size / weight as the home-page section headings
   (Marcellus, capitals, 400) */
.contact-form-section .enq-title {
  font-family: "Marcellus", var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--enq-navy);
  margin: 0;
}
.enq-title span { color: var(--enq-blue); }

/* Sub line: same as the home-page paragraph text */
.enq-lede {
  margin: 22px 0 0;
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 400;
  -webkit-text-stroke: 0.15px currentColor;
  line-height: 1.9;
  color: #1c2a4a;
  max-width: 680px;
}

/* ---------- Form card (left) + map (right) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.enquiry-form {
  background: #ffffff;
  border-radius: 32px;
  padding: 26px 28px 34px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 26px 60px -28px rgba(10, 45, 120, 0.35), 0 2px 10px rgba(10, 45, 120, 0.06);
}

.enq-form-head { display: flex; align-items: center; gap: 20px; margin-bottom: 6px; }
.enq-form-ico {
  flex: 0 0 auto;
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(145deg, #1a66e8, var(--enq-blue-dark));
  color: #fff; display: grid; place-items: center; font-size: 1.8rem;
  box-shadow: 0 12px 22px -10px rgba(10, 63, 174, 0.7);
}

/* "Enquiry Form" title: same as the home-page sub headings
   (Cormorant Garamond, 400, same size scale) */
.contact-form-section .enq-form-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: #000;                               /* black */
  margin: 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1.08fr; gap: 16px; }

.enq-field { position: relative; }
.enq-ico {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: #000; font-size: 1.15rem; pointer-events: none;
}
.enq-field.is-area .enq-ico { top: 24px; transform: none; }
.enq-caret {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: #000; font-size: 0.95rem; pointer-events: none;
}

.enq-field input,
.enq-field select,
.enq-field textarea {
  width: 100%;
  border: 1.5px solid var(--enq-line);
  border-radius: 10px;
  padding: 16px 18px 16px 58px;
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 400; color: #000;   /* black text */
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.enq-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 52px; }
.enq-field select:invalid { color: rgba(0, 0, 0, 0.6); }
.enq-field select option { color: #000; }
.enq-field textarea { resize: vertical; min-height: 150px; padding-top: 20px; }
.enq-field input::placeholder,
.enq-field textarea::placeholder { color: #000; opacity: 0.6; }
.enq-field input:focus,
.enq-field select:focus,
.enq-field textarea:focus {
  outline: none;
  border-color: var(--enq-blue);
  box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.14);
}

/* Blue pill button with a gold under-edge */
.btn-enq {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 8px;
  padding: 16px 38px;
  border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #0f5be0 0%, var(--enq-blue-dark) 100%);
  color: #fff;
  font-family: var(--font-body); font-size: 1.15rem; font-weight: 500;
  box-shadow: 0 6px 0 var(--enq-gold), 0 16px 26px -10px rgba(10, 63, 174, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-enq:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--enq-gold), 0 20px 30px -10px rgba(10, 63, 174, 0.55); }
.btn-enq:focus-visible { outline: 3px solid var(--enq-navy); outline-offset: 4px; }
.btn-enq i { font-size: 1.05rem; }
.btn-enq .fa-paper-plane { font-size: 1.3rem; }

/* Gold-framed map with an "Our Location" badge */
.contact-map {
  position: relative;
  border: 6px solid var(--enq-gold);
  border-radius: 22px;
  overflow: hidden;
  background: #eaf3ee;
  min-height: 520px;
  box-shadow: 0 26px 60px -28px rgba(10, 45, 120, 0.35);
}
.contact-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  pointer-events: none;                 /* the whole map is a link to Google Maps */
}
.contact-map-link {
  position: absolute; inset: 0; z-index: 1;
  display: block; cursor: pointer;
}

/* "Our Location" badge: heading font (Cormorant Garamond, medium weight) */
.enq-map-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 28px 12px 20px;
  border-radius: 999px;
  background: var(--enq-gold);
  color: var(--enq-navy);
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 500; line-height: 1.15;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.enq-map-badge i { font-size: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* cards drop below the hero, stacked in one column */
  .contact-hero { aspect-ratio: auto; height: 300px; }
  .contact-cards {
    grid-template-columns: 1fr;
    bottom: auto; top: calc(100% - 40px);
  }
  .contact-form-section { padding: 320px 0 96px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 380px; }
}

@media (max-width: 700px) {
  .enq-lede { font-size: 1.05rem; }   /* same mobile step-down as the home paragraph */
}

@media (max-width: 560px) {
  .cc-main { max-width: 150px; }
  .enquiry-form { padding: 22px 18px 28px; border-radius: 24px; }
  .enq-form-ico { width: 60px; height: 60px; font-size: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .enq-field input,
  .enq-field select,
  .enq-field textarea { padding-left: 52px; font-size: 1rem; }
  .btn-enq { padding: 14px 30px; font-size: 1.05rem; }
  .enq-map-badge { font-size: 1.2rem; padding: 10px 20px 10px 16px; }
}