/* ============================================================
   Contact — "Quiet night over the town"
   Deep indigo sky, warm golden window-light, glassy cards.
   Scoped with .co- prefix.
   ============================================================ */

.co-hero,
.co-main,
.co-faq {
  position: relative;
}

/* ---------- Night palette (page-local) ---------- */
body[data-page="contact"] {
  --co-night: #0e1530;
  --co-night-2: #16203c;
  --co-indigo: #1e2b4d;
  --co-glow: #f2c75a;          /* warm window light */
  --co-glow-soft: rgba(242, 199, 90, .55);
  --co-gold: var(--gold, #c2922f);
  --co-line: rgba(194, 146, 47, .42);   /* gold hairline */
  --co-line-soft: rgba(232, 215, 184, .14);
  --co-glass: rgba(20, 28, 54, .55);
  --co-glass-2: rgba(26, 36, 66, .42);
  --co-text: #ece3d2;
  --co-muted: rgba(232, 215, 184, .72);
}

/* dark, indigo backdrop for the whole page */
body[data-page="contact"] {
  background: radial-gradient(1200px 700px at 70% -10%, #243260 0%, transparent 60%),
              linear-gradient(180deg, #0e1530 0%, #121b38 55%, #0c1228 100%);
}

/* ============================================================
   HERO
   ============================================================ */
.co-hero {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.co-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  z-index: -3;
  transform: scale(1.04);
}
.co-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 12, 28, .55) 0%, rgba(10, 15, 34, .35) 40%, rgba(10, 14, 30, .92) 100%),
    linear-gradient(90deg, rgba(10, 14, 30, .65) 0%, rgba(10, 14, 30, 0) 55%);
}
/* soft warm glow suggesting lit windows */
.co-hero-glow {
  position: absolute;
  inset-block-start: 30%;
  inset-inline-end: 8%;
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(circle, var(--co-glow-soft) 0%, rgba(242, 199, 90, .12) 35%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .8;
}
.co-hero-inner {
  padding-block: 8rem 4.5rem;
  position: relative;
  z-index: 1;
}
.co-kicker {
  color: var(--co-glow);
  letter-spacing: .22em;
}
.co-title {
  font-family: var(--f-serif, "Spectral", serif);
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.04;
  margin-block: .4rem .8rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .5);
}
.co-sub {
  color: var(--co-muted);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  max-width: 46ch;
  line-height: 1.6;
}

/* ============================================================
   GLASS CARDS — shared
   ============================================================ */
.co-card {
  position: relative;
  background: var(--co-glass);
  border: 1px solid var(--co-line);
  border-radius: 16px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 24px 60px -28px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* gold hairline inner glow */
.co-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(242, 199, 90, .5), rgba(194, 146, 47, .05) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   MAIN GRID
   ============================================================ */
.co-main {
  padding-block: clamp(3rem, 7vw, 6rem);
}
.co-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

/* ---------- FORM ---------- */
.co-form-card {
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.co-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.co-field {
  display: flex;
  flex-direction: column;
  gap: .42rem;
}
.co-label {
  font-family: var(--f-display, "Commissioner", sans-serif);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--co-glow);
}
.co-input {
  width: 100%;
  font-family: var(--f-body, "Commissioner", sans-serif);
  font-size: 1rem;
  color: var(--co-text);
  background: rgba(8, 12, 28, .45);
  border: 1px solid var(--co-line-soft);
  border-radius: 10px;
  padding: .8rem .95rem;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.co-input::placeholder {
  color: rgba(232, 215, 184, .42);
}
.co-input:focus {
  outline: none;
  border-color: var(--co-glow-soft);
  background: rgba(8, 12, 28, .6);
  box-shadow: 0 0 0 3px rgba(242, 199, 90, .14);
}
.co-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.co-send {
  align-self: start;
  margin-block-start: .25rem;
}
.co-note {
  margin: 0;
  font-size: .82rem;
  color: var(--co-muted);
  font-style: italic;
}

/* ---------- INFO ---------- */
.co-info-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.co-info-title {
  font-family: var(--f-serif, "Spectral", serif);
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin: 0 0 1.3rem;
}
.co-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.co-info-row {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding-block: 1rem;
  border-block-start: 1px solid var(--co-line-soft);
}
.co-info-row:first-child {
  border-block-start: none;
  padding-block-start: 0;
}
.co-info-ic {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--co-glow);
  background: rgba(242, 199, 90, .1);
  border: 1px solid var(--co-line);
}
.co-info-ic svg {
  width: 19px;
  height: 19px;
}
.co-info-text {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}
.co-info-l {
  font-family: var(--f-display, "Commissioner", sans-serif);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--co-muted);
}
.co-info-v {
  color: var(--co-text);
  font-size: 1.02rem;
  line-height: 1.45;
}

/* ============================================================
   FAQ — accordion (main.js toggles .open on .acc-item)
   ============================================================ */
.co-faq {
  padding-block: 0 clamp(4rem, 9vw, 7rem);
}
.co-faq-inner {
  max-width: 820px;
  margin-inline: auto;
}
.co-faq-title {
  font-family: var(--f-serif, "Spectral", serif);
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.8rem;
}
.co-acc {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.co-acc .acc-item {
  background: var(--co-glass-2);
  border: 1px solid var(--co-line);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s ease, background .25s ease;
}
.co-acc .acc-item.open {
  background: rgba(30, 43, 77, .55);
  border-color: var(--co-glow-soft);
}
.co-acc .acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-family: var(--f-serif, "Spectral", serif);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--co-text);
  transition: color .2s ease;
}
.co-acc .acc-q:hover { color: #fff; }

/* chevron */
.co-chev {
  flex: none;
  width: 11px;
  height: 11px;
  border-inline-end: 2px solid var(--co-glow);
  border-block-end: 2px solid var(--co-glow);
  transform: rotate(45deg);
  margin-block-start: -4px;
  transition: transform .3s ease;
}
.co-acc .acc-item.open .co-chev {
  transform: rotate(-135deg);
  margin-block-start: 2px;
}

/* collapsed answer */
.co-acc .acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.co-acc .acc-item.open .acc-a {
  max-height: 320px;
}
.co-acc .acc-a p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--co-muted);
  line-height: 1.65;
  font-size: .98rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .co-grid {
    grid-template-columns: 1fr;
  }
  .co-hero-glow {
    inset-inline-end: -6%;
    width: 70vw;
  }
}

@media (max-width: 560px) {
  .co-hero {
    min-height: 54vh;
  }
  .co-hero-inner {
    padding-block: 6.5rem 3rem;
  }
  .co-form-card,
  .co-info-card {
    padding: 1.3rem;
  }
  .co-acc .acc-q {
    font-size: .98rem;
    padding: .9rem 1rem;
  }
}
