/* ==========================================================================
   Contact Page — Light Green & Gold (demo design, PHP structure)
   Scoped strictly to .contact-page so header, footer & other pages stay
   untouched. Light theme only: no dark-mode override anywhere, so the page
   always renders in its light palette on every device.
   Fully responsive — Mobile, Tablet, Laptop, 14-inch, 21-inch,
   Desktop, even 4K screen. No sideways scroll, no cut-off image/text.
   ========================================================================== */

/* ---------- Theme colour variables (default: Light Green & Gold) ---------- */
.contact-page {
  --green: #35936c;
  --green2: #5fb28e;
  --green-soft: rgba(53, 147, 108, 0.88);
  --green-dark: #256b4c;
  --gold: #c6a15b;
  --gold-light: #e8cf8f;
  --bg: #f4faf6;
  --card: #ffffff;
  --ink: #1c3a2d;
  --muted: #5f7a6d;
  --line: #d9eadf;
  --chip-bg: #ebf5ee;
  --shadow: 0 10px 30px rgba(28, 58, 45, 0.10);
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

.contact-page img {
  max-width: 100%;
  height: auto;
}

.contact-page section,
.contact-page article {
  min-width: 0;
}

.contact-page .gold-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 0;
}

.contact-page .gold-rule::before,
.contact-page .gold-rule::after {
  content: "";
  height: 2px;
  width: min(80px, 20vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}

.contact-page .gold-rule::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.contact-page .gold-rule span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ===== Hero Banner (real photo, slow auto zoom in / zoom out) ===== */
/* The frame matches the hero photo's own shape (1920x700), and the
   photo is shown with object-fit:contain, so the complete photo is
   always visible. The zoom reuses the card photos' heroZoom: it runs
   from smaller up to exactly full size and never past it, so the zoom
   never crops the photo either. */
.contact-page .contact-hero {
  position: relative;
  background: var(--green-dark);
  aspect-ratio: 1920 / 700;
  overflow: hidden;
}

.contact-page .hero-media {
  position: absolute;
  inset: 0;
}

.contact-page .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: heroZoom 14s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center center;
}

/* Green shade over the whole banner so the hero text stays
   readable over the bright photo at every zoom step. */
.contact-page .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 52, 39, 0.55), rgba(23, 52, 39, 0.66));
}

.contact-page .contact-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}

.contact-page .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-page .eyebrow-line {
  width: 34px;
  height: 2px;
  background-color: var(--gold-light);
  border-radius: 2px;
}

.contact-page .contact-hero h1 {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #ffffff;
}

.contact-page .contact-hero h1 span {
  color: var(--gold-light);
}

.contact-page .contact-hero p {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  color: #eaf6ef;
  margin: 0 auto;
  max-width: 620px;
}

/* ===== Main Content Container ===== */
.contact-page .contact-sections {
  padding: 28px 0 72px;
}

.contact-page .contact-container {
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===== Location guide chips: each chip sits above its own card ===== */
.contact-page .card-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.contact-page .card-col .ccard {
  flex: 1;
  width: 100%;
}

.contact-page .col-tag {
  display: flex;
  justify-content: center;
  padding: 0 6px;
}

.contact-page .col-tag .gchip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.contact-page .gchip .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: none;
  font-size: 14px;
}

.contact-page .gchip b {
  color: var(--green-dark);
}

.contact-page .gchip .place {
  color: var(--muted);
  font-weight: 500;
}

/* ===== Section headings (centred) ===== */
.contact-page .section-head {
  text-align: center;
  margin: 30px 0 4px;
}

.contact-page .section-head h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

/* ===== Contact cards row (on top) ===== */
.contact-page .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 20px 0 8px;
}

.contact-page .ccard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-page .ccard:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(28, 58, 45, 0.16);
}

.contact-page .ccard .photo {
  position: relative;
  overflow: hidden;
  background: var(--chip-bg);
}

/* Each photo frame matches its photo's own shape (Advance World
   poster 355x205, Flexopack board 355x240), so the whole image
   fits inside the frame — nothing is cropped at any screen size. */
.contact-page .card-col:nth-child(1) .ccard .photo {
  aspect-ratio: 355 / 205;
}

.contact-page .card-col:nth-child(2) .ccard .photo {
  aspect-ratio: 355 / 240;
}

/* Contact hero photos: slow automatic zoom in / zoom out.
   The zoom runs from smaller up to exactly full size and never
   past it, so the complete photo stays visible the whole time. */
.contact-page .ccard .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: heroZoom 14s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center center;
}

.contact-page .card-col:nth-child(2) .ccard .photo img {
  animation-delay: -7s;
}

@keyframes heroZoom {
  from { transform: scale(.93); }
  to { transform: scale(1); }
}

.contact-page .role-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: #2c2110;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.contact-page .role-chip i {
  font-size: 14px;
}

.contact-page .ccard .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.contact-page .ccard h2 {
  font-family: "Lora", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}

.contact-page .ccard .addr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 8px auto 4px;
  max-width: 460px;
  text-align: center;
}

.contact-page .ccard .addr i {
  font-size: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

.contact-page .contact {
  padding: 14px 0 2px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  text-align: center;
}

.contact-page .contact:first-of-type {
  border-top: none;
  margin-top: 6px;
  padding-top: 10px;
}

.contact-page .contact h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  flex-wrap: wrap;
}

.contact-page .contact h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* Plain block lines: the whole line is one text link with the
   glyph, label and value as plain text inside the anchor — no
   flex, no child spans, nothing that can be clipped or hidden
   on the live server. */
.contact-page .contact .row {
  margin: 5px 0;
  text-align: center;
}

.contact-page .contact .row a {
  display: block;
  visibility: visible;
  opacity: 1;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1c3a2d !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-page .contact .row a:hover,
.contact-page .contact .row a:focus-visible {
  color: var(--green-dark) !important;
  text-decoration: underline;
}

/* ===== Map previews (below the contact cards) ===== */
.contact-page .maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 20px 0 40px;
}

.contact-page .map-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 16px;
}

/* Map header: heading + pin icon centred. The icon sits on the same
   line as the title, vertically centred; the subtitle sits below,
   also centred. */
.contact-page .map-link-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--green-soft);
  color: #fff;
  padding: 14px 18px;
  text-align: center;
}

.contact-page .map-link-head .mh-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-page .map-link-head .mh-title i {
  font-size: 19px;
  flex: none;
  line-height: 1;
}

.contact-page .map-link-head .t1 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.contact-page .map-link-head .t2 {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.92;
  line-height: 1.2;
  text-align: center;
}

/* Map preview: live Google Maps embed with a white place card
   on the map like the sample preview. */
.contact-page .map-view {
  position: relative;
  height: 330px;
  background: #e7efe9;
  overflow: hidden;
}

.contact-page .map-view iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-page .map-credit {
  padding: 9px 18px 13px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.contact-page .map-credit a {
  color: var(--muted);
}

.contact-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--green);
}

.contact-page .btn i {
  font-size: 15px;
  flex: none;
}

.contact-page .btn-solid {
  background: var(--green);
  color: #fff;
}

.contact-page .btn-solid:hover {
  background: var(--green-dark);
  color: #fff;
}

/* ==========================================================================
   Tablet Breakpoint (<= 1199.98px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .contact-page .cards,
  .contact-page .maps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mobile Breakpoint (<= 767.98px)
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Taller banner so the heading fits comfortably; the photo
     still shows in full (object-fit:contain, never cropped). */
  .contact-page .contact-hero {
    aspect-ratio: auto;
    height: 380px;
  }

  .contact-page .contact-sections {
    padding: 20px 0 54px;
  }

  .contact-page .contact-container {
    gap: 22px;
  }

  .contact-page .ccard .body {
    padding: 18px 16px 20px;
  }

  .contact-page .map-view {
    height: 270px;
  }

  .contact-page .map-card {
    border-radius: 14px;
  }
}

/* ==========================================================================
   Small Mobile Breakpoint (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .contact-page .hero-eyebrow {
    font-size: 0.74rem;
    gap: 8px;
  }

  .contact-page .eyebrow-line {
    width: 22px;
  }

  .contact-page .ccard .body {
    padding: 18px 16px 20px;
  }

  .contact-page .contact .row a {
    font-size: 14px;
  }

  .contact-page .contact-hero {
    height: 320px;
  }

  .contact-page .contact-hero-content {
    padding: 18px 14px;
  }

  .contact-page .contact-hero p {
    font-size: 14px;
  }

  .contact-page .col-tag .gchip {
    font-size: 13px;
    line-height: 1.35;
  }

}

@media (prefers-reduced-motion: reduce) {
  .contact-page {
    scroll-behavior: auto;
  }

  .contact-page .ccard .photo img,
  .contact-page .hero-media img {
    animation: none;
  }
}

/* ==========================================================================
   Large Screens / 4K (min-width: 1600px)
   Wide screens stay centred; the container just widens a little.
   ========================================================================== */
@media (min-width: 1600px) {
  .contact-page .contact-container {
    max-width: 1440px;
  }
}

/* ==========================================================================
   EFFECTS — added 2026-12-02 (visual effects only, no other change).
   Scroll fade-in/reveal, hero content entrance, chip/map-card hover
   lift, gold rule draw-in. [data-fx] is tagged at runtime by global.js
   and is hidden ONLY while <html> has .fx-on (added only when
   IntersectionObserver exists and reduced motion is off) — if the
   script fails, everything stays fully visible. Maps, place details
   and phone/email links are untouched.
   ========================================================================== */
/* Scroll reveal */
html.fx-on .contact-page [data-fx] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.fx-on .contact-page [data-fx].fx-in {
  opacity: 1;
  transform: none;
}
/* Hero content: gentle entrance on page load */
.contact-page .contact-hero-content {
  animation: fxHeroIn .9s ease both;
}
@keyframes fxHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Guide chips + map cards: hover lift */
.contact-page .col-tag .gchip {
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-page .col-tag .gchip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(28, 58, 45, 0.14);
}
.contact-page .map-card {
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-page .map-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(28, 58, 45, 0.16);
}
/* Gold rule draw-in under section headings */
.contact-page .fx-in .gold-rule::before,
.contact-page .fx-in .gold-rule::after {
  animation: fxGoldGrow .9s ease .2s both;
}
@keyframes fxGoldGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Photo hover zoom + filter — ported from the approved demo 2026-12-03.
   Standalone `scale` (NOT transform) so it composes with the running
   heroZoom transform animation instead of fighting it. */
.contact-page .hero-media img {
  filter: saturate(1.04);
}
.contact-page .ccard .photo img {
  transition: scale .6s ease, filter .6s ease;
}
.contact-page .ccard:hover .photo img {
  scale: 1.05;
  filter: brightness(1.03) saturate(1.06);
}

@media (prefers-reduced-motion: reduce) {
  html.fx-on .contact-page [data-fx] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .contact-page .contact-hero-content {
    animation: none;
  }
  .contact-page .col-tag .gchip,
  .contact-page .map-card {
    transition: none;
  }
  .contact-page .col-tag .gchip:hover,
  .contact-page .map-card:hover {
    transform: none;
  }
  .contact-page .ccard .photo img {
    transition: none;
  }
  .contact-page .ccard:hover .photo img {
    scale: none;
    filter: none;
  }
  .contact-page .fx-in .gold-rule::before,
  .contact-page .fx-in .gold-rule::after {
    animation: none;
  }
}
