/*
Theme Name: gunclub.app
Theme URI: https://gunclub.app
Author: Wonderboy Creative
Description: The gunclub.app marketing site, built from the approved Claude Design canvas. Every view in views/ carries the design's own inline styles; this file holds the reset, the type, the interactive states the canvas expressed as computed style strings, and the mobile layer the canvas does not have.
Version: 3.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: gunclubapp
*/

@import url('css/fonts.css');

/* ------------------------------------------------------------- the reset -- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #041D41;
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #B8171C; text-decoration: none; }
a:hover { color: #041D41; text-decoration: underline; }
::selection { background: #D31F24; color: #FFFFFF; }
img, svg { max-width: 100%; }
/* gc_img() writes the real width and height so nothing jumps while the page
   loads. Without this the height attribute wins over a CSS width and a phone
   screenshot renders 2,838px tall. An inline height still overrides it. */
img[width][height] { height: auto; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

[data-wide-only] { display: none; }
@media (min-width: 1120px) { [data-wide-only] { display: inline-flex; } }

/* Keyboard users get a visible ring everywhere, which the canvas only set in
   a couple of places. */
:focus-visible { outline: 3px solid #D31F24; outline-offset: 2px; }

.gc-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gc-skip {
  position: absolute; left: -9999px; z-index: 300;
  background: #FFFFFF; color: #041D41; padding: 12px 18px; border-radius: 0 0 10px 0;
  font: 700 14px/1 'Public Sans', sans-serif;
}
.gc-skip:focus { left: 0; top: 0; }

/* ------------------------------------------------ the states, as classes --
   chipStyle() / rowStyle() / cardStyle() / stepStyle() in the design canvas
   rebuilt a whole style string per render. Here they are two classes and a
   modifier, so the same element can flip without rewriting its style. */

.gc-chip {
  font: 700 15px/1 'Public Sans', sans-serif; letter-spacing: .04em;
  padding: 16px 22px; border-radius: 12px; cursor: pointer;
  border: 2px solid #BFC8D6; background: #FFFFFF; color: #22314A;
}
.gc-chip.is-on { border-color: #041D41; background: #AE1A1F; color: #FFFFFF; }

.gc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.22); background: transparent; color: #F4F6F9;
}
.gc-row.is-on { border-color: #B7C7DF; background: rgba(255,255,255,.12); }

.gc-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: 20px 24px; border-radius: 12px; cursor: pointer;
  border: 2px solid #D5DCE6; background: #FFFFFF; color: #22314A; width: 100%;
}
.gc-card.is-on { border-color: #041D41; background: #041D41; color: #F4F6F9; }

.gc-step {
  background: #FFFFFE; color: #45536A; padding: 20px 18px;
  display: grid; gap: 6px; min-height: 84px; align-content: center;
}
.gc-step.is-on { background: #041D41; color: #B7C7DF; }
.gc-step.is-done { background: #E8ECF2; color: #45536A; }

.gc-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 20px 22px; border-radius: 16px; color: #F4F6F9;
  border: 1px solid rgba(255,255,255,.22); background: transparent;
}
.gc-slot-open { border-color: #D31F24; background: rgba(211,31,36,.16); }
.gc-slot-badge {
  font: 700 11px/1 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap; color: #0A2A56; background: #B7C7DF;
}
.gc-slot-badge-open { color: #FFFFFF; background: #D31F24; }

/* Doors and the letter are hidden markup until js/site.js opens one. */
[data-door], [data-letter] { display: none; }
[data-door].is-open, [data-letter].is-open { display: flex; }
body.gc-locked { overflow: hidden; }

/* The five intake steps are all in the page; one is shown at a time. */
[data-step] { display: none; }
[data-step].is-on { display: block; }

/* ---------------------------------------------------------- form fields --
   The canvas draws inputs with a style attribute on each one. These are the
   handful that carry no inline style because they were added for the build. */
.gc-field {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 2px solid #D5DCE6; background: #FFFFFF; color: #041D41;
  font: 400 16px/1.3 'Public Sans', sans-serif;
}
.gc-field:focus-visible { outline: 3px solid #D31F24; outline-offset: 2px; border-color: #041D41; }
.gc-label {
  display: block; margin-bottom: 7px;
  font: 600 12px/1 'Public Sans', sans-serif; letter-spacing: .08em;
  text-transform: uppercase; color: #5C6B80;
}
.gc-error {
  margin: 0 0 20px; padding: 14px 18px; border-radius: 12px;
  border-left: 3px solid #D31F24; background: #FCF0F0;
  font: 400 15px/1.5 'Public Sans', sans-serif; color: #22314A;
}

/* ------------------------------------------------------------- the phone --
   The canvas is drawn at desktop width and has no small-screen layout, so
   this is the whole of it. Board members read cold email on a phone.

   Rules, in order of how much they matter:
   the navigation folds into a menu; every fixed multi-column grid becomes one
   column; nothing that was sized for a 1280px canvas keeps a width a phone
   does not have; and the page never scrolls sideways. */

/* --------------------------------------------------------- the menu ------ */

.gc-burger { display: none; }

@media (max-width: 980px) {
  /* The strapline and the phone line stack at this width; they do not each
     need the padding they were given for one line on a 1280px canvas. */
  header + *, body > div > div:first-child { padding-top: 6px !important; padding-bottom: 6px !important; }

  .gc-burger {
    display: grid; align-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 12px 11px; justify-self: start;
    background: transparent; border: 1px solid rgba(255,255,255,.3);
    border-radius: 12px; cursor: pointer;
  }
  .gc-burger span {
    display: block; height: 2px; width: 100%; background: #F4F6F9; border-radius: 2px;
    transition: transform .18s ease, opacity .14s ease;
  }
  .gc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .gc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* logo left, burger right, and nothing else on the bar */
  header > div {
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    padding: 10px 20px !important;
  }
  header > div > a:first-child { order: 1; justify-self: start; }
  header > div > a:first-child img,
  header > div > a:first-child span { max-width: min(62vw, 300px); }
  .gc-burger { order: 2; justify-self: end; }
  .gc-head-cta { display: none !important; }

  /* the menu itself: closed is closed, not just small */
  .gc-nav {
    order: 3; grid-column: 1 / -1; justify-self: stretch !important;
    display: grid !important; grid-auto-flow: row; justify-content: stretch !important;
    gap: 2px !important; margin-top: 8px;
    max-height: 0; overflow: hidden;
    transition: max-height .26s ease;
  }
  .gc-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .gc-nav > a {
    padding: 16px 14px !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .gc-nav-foot {
    display: grid; gap: 10px; padding: 18px 0 10px;
  }
  .gc-nav-foot .dh4 {
    display: block; text-align: center;
    font: 700 14px/1 'Public Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase;
    background: #D31F24; color: #FFFFFF; padding: 19px 20px; border-radius: 999px;
  }
  .gc-nav-login, .gc-nav-tel {
    display: block; text-align: center;
    font: 700 13px/1 'Public Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase;
    color: #CFD9E6; border: 1px solid rgba(255,255,255,.3); padding: 17px 20px; border-radius: 999px;
  }
  .gc-nav-login:hover, .gc-nav-tel:hover { color: #FFFFFF; text-decoration: none; }
}
@media (min-width: 981px) {
  .gc-nav-foot { display: none; }
}

/* ------------------------------------------------------- the layout ------ */

@media (max-width: 900px) {
  body { overflow-x: hidden; }

  /* Any grid the canvas pinned to fixed tracks becomes one column - in the
     page, not in the header, whose own two-column rule this used to beat on
     specificity and stack the logo above the burger. */
  main [style*="grid-template-columns"]:not([data-keep-grid]),
  footer [style*="grid-template-columns"]:not([data-keep-grid]) { grid-template-columns: 1fr !important; }
  [data-keep-grid] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* A hero drawn 520px tall around an illustration that is now underneath it */
  [style*="min-height:520px"] { min-height: 0 !important; }
  [style*="position:absolute"][style*="right:-24px"] {
    position: static !important; height: auto !important; width: 100% !important;
    max-width: 420px !important; margin: 24px auto -40px !important;
  }

  /* Nothing keeps a width the screen does not have */
  [style*="max-width:1280px"], [style*="max-width:1180px"], [style*="max-width:1080px"] { max-width: 100% !important; }
  main [style*="min-width:"], footer [style*="min-width:"] { min-width: 0 !important; }
  main [style*="position:sticky"], footer [style*="position:sticky"] { position: static !important; }

  section { padding-left: 20px !important; padding-right: 20px !important; }
  h1 { font-size: clamp(38px, 11vw, 56px) !important; }
  h2 { font-size: clamp(28px, 8vw, 40px) !important; }

  /* A card is a row of "what it is" and "what it costs"; at this width the
     two crush each other, so the price goes underneath. */
  .gc-card, .gc-row { flex-direction: column; align-items: stretch !important; gap: 12px; }
  .gc-card > *, .gc-row > * { justify-items: start !important; text-align: left !important; }

  /* The pricing page's own sticky bar, and the room it needs */
  [style*="position:fixed"][style*="bottom:0"] { padding: 10px 16px !important; }
}

@media (max-width: 900px) {
  /* The canvas sets some labels at 10px - fine in a 1280px table, too small to
     read on a phone. Nothing on the site goes under 12px on a small screen. */
  [style*="font:700 10px"], [style*="font:600 10px"], [style*="font:500 10px"], [style*="font:400 10px"],
  [style*="font-size:10px"], [style*="font:700 11px"], [style*="font:600 11px"],
  [style*="font:500 11px"], [style*="font:400 11px"], [style*="font-size:11px"] {
    font-size: 12px !important;
  }
}

@media (max-width: 560px) {
  section { padding-top: 48px !important; padding-bottom: 48px !important; }
  /* Type set for a 1280px canvas is a shout on a 390px screen */
  [style*="font:700 76px"], [style*="font:700 64px"] { font-size: 54px !important; }
  [style*="font:700 42px"], [style*="font:700 40px"] { font-size: 34px !important; }
  [style*="border-radius:26px"], [style*="border-radius:24px"], [style*="border-radius:22px"] { border-radius: 18px !important; }
  [style*="padding:44px"], [style*="padding:40px"] { padding: 26px 22px !important; }
}

/* A table of capabilities is the one thing allowed to scroll sideways. */
.gc-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* The portal's own sidebar. The canvas rebuilt this style string per tab; it
   is a class and a modifier here so the markup carries one attribute. */
.gc-tab {
  display: block; text-align: left; width: 100%;
  font: 600 15px/1.3 'Public Sans', sans-serif;
  padding: 14px 16px; border-radius: 12px; border: 0;
  background: transparent; color: #45536A; text-decoration: none;
}
.gc-tab:hover { background: #E8ECF2; color: #041D41; text-decoration: none; }
.gc-tab.is-on { background: #041D41; color: #F4F6F9; font-weight: 700; }
.gc-tab.is-on:hover { background: #041D41; color: #F4F6F9; }

/* A card the board picks is a label wrapping a radio; the radio itself is for
   the keyboard and the form, not for looking at. */
.gc-card:has(input:checked) { border-color: #041D41; background: #041D41; color: #F4F6F9; }
.gc-card:focus-within { outline: 3px solid #D31F24; outline-offset: 2px; }

.gc-said {
  margin: 0 0 20px; padding: 15px 20px; border-radius: 12px;
  border-left: 3px solid #1F7A44; background: #EAF5EE;
  font: 400 15.5px/1.6 'Public Sans', sans-serif; color: #22314A;
}
