/* ===== contact/index.html =====
   Dark, glow-backed layout after an owner-supplied reference: a big faint
   "CONTACT" watermark, an intro + three contact cards on the left and a
   message form on the right. Built from the site's own tokens: the
   near-black --bg-dark with a brand-orange glow (the reference's teal glow,
   recoloured), Cairo titles, Manrope body, translucent bordered cards that
   lift to an orange border on hover (same as .about-stats__item), and the
   white pill / orange-on-hover button of .btn--account. The topbar and nav
   above it are the shared header, untouched. */
.contact-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70vh;
  /* Top padding clears the watermark (its top offset + its font-size), so the
     tiles start below it, on the plain black. */
  padding: calc(clamp(48px, 13vw, 200px) + 130px) 0 104px;
  background: var(--bg-dark);
  color: var(--text);
}
/* Orange glow spilling down from the top-centre, plus a faint vertical-line
   texture that fades out toward the bottom. */
.contact-page__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% calc(clamp(48px, 13vw, 200px) + 300px) at 50% 0%, rgba(245, 126, 32, .38) 0, transparent 82%),
    radial-gradient(ellipse 34% calc(clamp(48px, 13vw, 200px) + 80px) at 50% 4%, rgba(255, 178, 122, .16) 0, transparent 78%);
}
.contact-page__glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent calc(clamp(48px, 13vw, 200px) + 220px));
  mask-image: linear-gradient(180deg, #000 0, transparent calc(clamp(48px, 13vw, 200px) + 220px));
}
/* The oversized ghost word behind the header block: white fading to nothing
   downward, so it reads as part of the glow rather than as text. */
.contact-page__watermark {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: clamp(48px, 13vw, 200px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}
/* One bordered panel framing the whole Get in touch / Follow us section
   (owner request), rather than the two columns floating loose on the dark
   background. Same border/radius/fill the About page's stats panel uses for
   the identical "one translucent surface" idea (.about-stats__grid) — kept
   at 14px radius even though the tiles inside are 12px, the same relationship
   .about-stats__grid has to .about-stats__chip, so the panel doesn't read as
   just a bigger tile. */
.contact-panel {
  padding: 8px;
}
/* Two columns across the page (owner request): "Get in touch" on the left,
   "Follow us" on the right.

   Both hold a 2-row grid — 2x2 on the left, 3x2 on the right — and all ten
   tiles are the same size (owner request), which fixes where the divider sits.
   The left holds 2 across and the right 3, so for one tile width t the two
   columns must be 2t + 8px and 3t + 16px (their own 8px gaps), leaving the
   divider off-centre, well to the left of the page's middle.

   Rather than approximate that with fr units (2fr/3fr lands ~1px out, since fr
   splits the gaps evenly and these columns don't have equal numbers of them),
   t is solved for outright: subtract everything that isn't tile — the two 36px
   gaps, the 1px divider and the 8px + 16px inside the lists, 97px in all —
   then divide the rest by the 5 tiles across. The three tracks plus the gaps
   add back up to exactly 100%.

   Equal HEIGHT comes from the other direction: align-items:stretch gives the
   columns a shared height, each column is a flex box whose list grows into
   whatever is left under its heading, and both lists split that height between
   two 1fr rows. Both headings are one line over one line, so the lists start
   at the same y too, and every tile in the section lines up with every other. */
.contact-layout {
  --contact-tile: calc((100% - 73px) / 5);
  display: grid;
  grid-template-columns:
    calc(var(--contact-tile) * 2 + 8px)
    1px
    calc(var(--contact-tile) * 3 + 16px);
  gap: 24px;
  align-items: stretch;
}
.contact-col { display: flex; flex-direction: column; }
.contact-cards,
.contact-social__list { flex: 1 1 auto; }
/* Its own 1px track rather than a border on a column or an absolutely placed
   pseudo-element: the gap then sits evenly on both sides of it, and neither
   column has to reserve space for it. align-self:stretch is spelled out
   rather than inherited from the parent's align-items, so the rule survives
   if that ever changes — without it the track collapses to nothing. Stretched,
   it runs the full height of the two columns. Faded at both ends so it dissolves
   into the near-black instead of stopping dead, the same treatment the About
   page gives its flag videos. */
.contact-layout__divider {
  align-self: stretch;
  background: linear-gradient(180deg,
    transparent 0,
    rgba(255, 255, 255, .13) 10%,
    rgba(255, 255, 255, .13) 90%,
    transparent 100%);
}
/* margin-bottom stands in for the subtitle this column used to carry under
   its heading (removed per owner) — kept as space rather than letting the
   tiles sit flush under the title, and kept equal on both columns so their
   lists still start at the same y. */
.contact-col__title {
  margin: 0 0 24px;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 25px;
  font-weight: 600;
  line-height: 25px;
  color: rgb(255, 255, 255);
}
/* 2x2, filled column by column: email and address down the left, the two
   phone numbers down the right. That's why the list order in the HTML reads
   email, address, hotline, technical support. */
.contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 8px;
}
/* ONE tile, used by both columns — a contact tile and a social tile differ
   only in what goes inside them, so they share every dimension here and the
   section reads as ten identical boxes.

   The 44px chip and 15/12 type are smaller than the contact tiles carried when
   they were the page's only grid, and that's forced by the equal-width rule
   above: five tiles across .contact-panel's padded content makes each about
   212px at the widest, leaving ~126px of text once the chip, gap and padding
   are taken out. At the old 52px chip and 16/13 type the left column's
   longest lines ("info@serversalad.com", "[Address to be added]") no longer
   fit on one line.

   .contact-card__value / .contact-social__handle carry a min-height for 2
   lines (below) rather than 1 — the Follow us column's taglines (e.g.
   "Culture & Behind-the-Scenes") don't fit ~126px on one line, and letting
   only THOSE wrap would make their tiles taller than their neighbours. The
   min-height is unconditional, on every tile in both columns, so a short
   single-line value (most of Get in touch) just leaves blank space under it
   rather than the box shrinking to fit — checked in headless Chrome at 11
   widths from 1920px to 360px: every width gives one tile height (never
   three lines' worth), so the ten-box-same-size rule always holds. */
.contact-card,
.contact-social__card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;   /* fill the stretched 1fr row */
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .18s, background .18s, transform .18s;
}
/* Scoped to a. — the address tile and the three social tiles with no URL yet
   are <div>s, so they never lift or glow, and neither needs a rule undoing a
   hover it was never offered. */
a.contact-card:hover,
a.contact-card:focus-visible,
a.contact-social__card:hover,
a.contact-social__card:focus-visible {
  border-color: rgba(245, 126, 32, .5);
  background: rgba(255, 255, 255, .07);
  transform: translateY(-2px);
}
.contact-card__icon,
.contact-social__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--brand-orange);
}
.contact-card__icon svg,
.contact-social__icon svg { width: 21px; height: 21px; }
/* min-height:65px (label 24 + gap 1 + a 2-line value's 40) reserves the same
   floor on EVERY tile — not just the ones whose text needs it — so a wrapped
   Follow us tagline that doesn't fit this tile's narrow text budget on one
   line at the widest two-column width never makes its tile taller than its
   nine neighbours; the ten-tile equal-size rule holds regardless of what
   each tile's second line says. justify-content:center is what makes that
   floor actually look centred: without it the label+value pair sits pinned
   to the top of the reserved 65px, so a one-line value (most of Get in
   touch) looks visibly lower/off-centre against its icon than a wrapped
   two-line value that happens to fill the space — same bug, moved from
   "boxes are different sizes" to "boxes are the same size but their content
   isn't centred in them". */
.contact-card__text,
.contact-social__text {
  flex: 1;
  min-width: 0;
  min-height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.contact-card__label,
.contact-social__name {
  font-family: "Manrope", "Manrope Fallback", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgb(255, 255, 255);
}
.contact-card__value,
.contact-social__handle {
  font-family: "Manrope", "Manrope Fallback", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
  color: rgba(255, 255, 255, .76);
  overflow-wrap: anywhere;
}

/* ===== contact/index.html: Follow us =====
   The right-hand column of .contact-layout, beside the email/phone tiles
   rather than below them or stranded after 25 FAQ answers — a social account
   is another way to reach us. Nothing above needed adjusting to make room:
   the glow and the vertical-line texture are sized in px, not as a share of
   the page height, exactly so content can be added here without stretching
   them.

   The tile itself is defined once, up with .contact-card, and shared — only
   what goes inside differs. The second line is owner-supplied copy: what
   each account is FOR ("Global Community" / "Sri Lanka Region" for the two
   Facebook pages, a content focus for the rest) rather than a handle — see
   the min-height/justify-content note on .contact-card__text above for how
   a tagline this long stays inside a same-size tile, centred against its
   icon the same way a handle-length one is, without either wrapping unevenly.

   Brand glyphs are solid fills rather than the 1.6px outline icons opposite. A
   brand mark is recognised by its silhouette, so outlining it would cost more
   than the consistency it bought; the shared chip, border and type already
   keep the two sets reading as one family. Instagram is the exception and
   stays a stroked outline — its mark IS a line drawing.

   Three tiles per row, filled row by row, so the two Facebook tiles sit beside
   each other in the top row and read as one account split by audience. */
.contact-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* FAQ: a white band under the dark hero (same treatment as the About page's
   light sections), holding a native <details> accordion. The chevron is
   CSS-only and flips when a question is open. */
.contact-faq { background: #fff; }
.contact-faq__inner { padding-block: 88px; }
.contact-faq__title {
  margin: 0 0 48px;
  text-align: center;
  font-family: "Cairo", "Cairo Fallback", var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 46px;
  color: rgb(45, 42, 53);
}
.contact-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  counter-reset: faq-question;
}
.contact-faq__item {
  border: 1px solid rgba(45, 42, 53, .12);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.contact-faq__item:hover,
.contact-faq__item[open] {
  border-color: rgba(245, 126, 32, .55);
  box-shadow: 0 8px 24px rgba(45, 42, 53, .07);
}
.contact-faq__question {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-family: "Cairo", "Cairo Fallback", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 21px;
  color: rgb(27, 27, 31);
  counter-increment: faq-question;
}
.contact-faq__question::-webkit-details-marker { display: none; }
/* Numbers the questions 1, 2, 3... via CSS counter rather than typed into
   the HTML, so adding/removing/reordering a question never needs renumbering
   by hand. Sits before the text node as its own flex item, flush against it;
   justify-content was dropped in favour of margin-left:auto on the chevron
   (::after) below — with 3 flex items, space-between would have split the
   leftover width evenly between BOTH gaps, shoving the number away from the
   question text instead of leaving it flush. */
.contact-faq__question::before {
  content: counter(faq-question) ".";
  flex-shrink: 0;
  margin-right: 8px;
  color: var(--brand-orange);
}
.contact-faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0 auto;
  border-right: 2px solid var(--brand-orange);
  border-bottom: 2px solid var(--brand-orange);
  transform: rotate(45deg);
  transition: transform .2s, margin .2s;
}
.contact-faq__item[open] > .contact-faq__question::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
.contact-faq__question:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; border-radius: 12px; }
.contact-faq__answer {
  margin: 0;
  padding: 0 22px 20px;
  font-family: "Manrope", "Manrope Fallback", var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgb(122, 122, 122);
}
.contact-faq__link {
  color: rgb(45, 42, 53);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-faq__link:hover { color: var(--brand-orange); }

/* Below this the two columns can't both hold a tile comfortably — the social
   side needs room for three abreast — so they stack, centred on the 900px
   measure the tiles used before the page split in two, headings centred with
   them.

   1280px, not a value close to the 900px measure this stacks onto: the
   .contact-panel border adds padding around .contact-layout, and the
   equal-width rule ties every tile to what's left of the viewport after that
   padding, the .container gutter and .container's own 1240px cap are all
   taken out. The two longest lines in the section — "info@serversalad.com"
   and "[Address to be added]" — need about 122-126px of text width, and a
   tile only clears that once .container has reached its FULL 1240px cap: the
   .container box itself stops growing at a ~1255px viewport (measured; the
   exact figure shifts a few px with the browser's own scrollbar width), and
   past that point every extra viewport pixel is wasted on margin outside
   .container, not fed to the tiles. So rather than chase the exact cutoff
   (measured at ~1231-1233px, with almost no margin for error) the two-column
   layout is held back until .container is provably at its widest — 1280px
   leaves a safe ~25px past the measured 1255px cap for that scrollbar
   variance — where the tile is always exactly 212px and every line fits with
   room to spare, never approaching the cutoff at all. Checked in headless
   Chrome with real webfonts loaded and getBoundingClientRect() height (a
   canvas measureText estimate reads a few px too generous next to actual
   layout — it said "fits" at some widths the real DOM had already wrapped). */
@media (max-width: 1280px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-col { width: 100%; max-width: 900px; margin-inline: auto; }
  .contact-col__title { text-align: center; }
  /* Stacked, the two columns sit in separate grid rows, so there's no shared
     height left to divide — drop the stretching and let the rows size to
     their content.

     The rows are NOT set to none on the contact grid, though: it fills column
     by column, and with no explicit rows the browser answers that by adding
     implicit COLUMNS instead — all four tiles in one row, at four different
     auto widths. Two auto rows keep it 2x2.

     The one-size rule carries over. The social list is 3 across at the full
     column width, so a tile is (100% - 2 gaps) / 3; the contact grid is 2
     across, so it is exactly two of those plus the gap between them, centred. */
  .contact-cards,
  .contact-social__list { flex: none; }
  .contact-cards {
    grid-template-rows: repeat(2, auto);
    width: calc((100% - 16px) / 3 * 2 + 8px);
    margin-inline: auto;
  }
  .contact-social__list { grid-template-rows: none; }
  /* Same hairline turned on its side, now separating the stacked sections. */
  .contact-layout__divider {
    width: 100%;
    max-width: 900px;
    height: 1px;
    margin-inline: auto;
    background: linear-gradient(90deg,
      transparent 0,
      rgba(255, 255, 255, .13) 10%,
      rgba(255, 255, 255, .13) 90%,
      transparent 100%);
  }
}
@media (max-width: 900px) {
  .contact-page { padding: calc(clamp(48px, 13vw, 200px) + 100px) 0 80px; }
  .contact-page__watermark { top: 40px; }
  /* 2 across in both, so both fill the column and the tiles match again. */
  .contact-social__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { width: 100%; }
}
@media (max-width: 560px) {
  .contact-page { padding-bottom: 64px; }
  .contact-faq__inner { padding-block: 56px; }
  .contact-faq__title { margin-bottom: 32px; font-size: 28px; line-height: 36px; }
  .contact-faq__question { padding: 16px 18px; font-size: 16px; }
  .contact-faq__answer { padding: 0 18px 18px; }
  .contact-panel { padding: 16px 12px; }
  .contact-col__title { font-size: 24px; line-height: 32px; }
  /* One per row on a phone — both grids, so neither is two narrow tiles. */
  .contact-cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .contact-social__list { grid-template-columns: minmax(0, 1fr); }
}
