@import url("colors_and_type.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--gs-white);
  color: var(--color-fg-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gs-red); text-decoration: none; }
a:hover { color: var(--gs-red-deep); }

/* ===== Layout ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow    { max-width: 800px;  margin: 0 auto; padding: 0 32px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--gs-black); color: var(--gs-white); }
.section-paper { background: var(--gs-paper); }

/* ===== Type helpers ===== */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gs-red);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gs-red);
}
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}
.h1 { font-size: clamp(48px, 7vw, 92px); line-height: 0.96; }
.h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.lead {
  font-family: var(--font-body); font-weight: 400;
  font-size: 19px; line-height: 1.6; color: var(--color-fg-3);
}

.section-dark .lead { color: #BFBFC6; }
.section-dark .eyebrow { color: var(--gs-red-bright); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 4px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn-primary { background: var(--gs-red); color: #fff; box-shadow: 0 8px 24px rgba(226,35,26,0.30); }
.btn-primary:hover { background: var(--gs-red-deep); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(226,35,26,0.40); color: #fff; text-decoration: none; }
.btn-dark { background: var(--gs-black); color: #fff; }
.btn-dark:hover { background: #2B2B2F; transform: translateY(-2px); color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: var(--gs-black); }
.btn-light:hover { background: var(--gs-fog); transform: translateY(-2px); color: var(--gs-black); text-decoration: none; }
.btn-ghost { background: transparent; color: currentColor; border: 2px solid currentColor; padding: 14px 26px; }
.btn-ghost:hover { background: currentColor; color: var(--gs-black); transform: translateY(-2px); text-decoration: none; }
.section-dark .btn-ghost:hover { color: var(--gs-black); }
.btn .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gs-mist);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 72px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gs-black); text-decoration: none; position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gs-red); transition: width 200ms var(--ease-out);
}
.nav-link:hover { color: var(--gs-red); text-decoration: none; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gs-red); }
.nav-cta {
  background: var(--gs-red); color: #fff; padding: 12px 22px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 200ms;
}
.nav-cta:hover { background: var(--gs-red-deep); color: #fff; text-decoration: none; }
.nav-toggle { display: none; }
.nav-mobile { display: none; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; background: none; border: 0; cursor: pointer; padding: 6px; }
  .nav-toggle svg { display: block; }
  .nav-mobile { padding: 16px 32px 24px; border-top: 1px solid var(--gs-mist); flex-direction: column; gap: 14px; }
  .nav-mobile:not(.hidden) { display: flex; }
  .nav-mobile.hidden { display: none; }
}

/* ===== Footer ===== */
.footer {
  background: var(--gs-black); color: var(--gs-white); padding: 80px 0 0;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gs-red) 0%, var(--gs-red) 33%, transparent 33%, transparent 66%, var(--gs-red) 66%, var(--gs-red) 100%);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}
.footer-col h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gs-red); margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block; color: #C4C4CA; font-size: 14px; line-height: 1.9;
  text-decoration: none; margin: 0;
}
.footer-col a:hover { color: var(--gs-white); text-decoration: none; }
.footer-blurb { color: #A3A3AA; font-size: 14px; line-height: 1.7; max-width: 320px; margin: 16px 0 0; }
.footer-bottom {
  max-width: 1240px; margin: 56px auto 0; padding: 22px 32px;
  border-top: 1px solid #2B2B2F;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #6B6B72;
}
.footer-credit { color: #8A8A92; }
.footer-credit a { color: var(--gs-red); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.card {
  background: #fff; border: 1px solid var(--gs-mist);
  border-radius: 4px; padding: 28px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms;
}
.card-accent { border-top: 3px solid var(--gs-red); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(14,14,16,0.12); border-color: transparent; }
.card-dark { background: #1A1A1D; border: 1px solid #2B2B2F; color: #fff; }
.card-dark:hover { border-color: var(--gs-red); }

/* ===== Service tile ===== */
.service-tile {
  background: var(--tile-bg, var(--gs-red-50));
  color: var(--tile-fg, var(--gs-red));
  border-radius: 4px;
  padding: 48px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.service-tile-dark {
  --tile-bg: var(--gs-black);
  --tile-fg: var(--gs-white);
}
.service-tile-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 72px; line-height: 1;
  opacity: 0.22; color: currentColor;
}
.service-tile-icon { color: var(--tile-fg, var(--gs-red)); }
.service-tile-label {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tile-fg, var(--gs-red));
}

/* ===== Form controls ===== */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gs-graphite);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px; border: 1px solid var(--gs-mist); border-radius: 4px;
  background: #fff; color: var(--gs-ink); outline: none;
  transition: border-color 200ms, box-shadow 200ms;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gs-red); box-shadow: 0 0 0 3px rgba(226,35,26,0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-help { font-size: 12px; color: var(--gs-steel); }
.field-error { font-size: 12px; color: var(--gs-red); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--gs-red); }
.field.has-error .field-error { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

/* radio chip group */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--gs-mist); border-radius: 999px;
  background: #fff; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; color: var(--gs-graphite);
  transition: all 180ms var(--ease-out);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--gs-graphite); color: var(--gs-black); }
.chip:has(input:checked) { background: var(--gs-black); color: #fff; border-color: var(--gs-black); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-mist); }
.chip:has(input:checked) .chip-dot { background: var(--gs-red); }

/* ===== Reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

/* ===== WhatsApp floating button ===== */
.fab-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 200ms var(--ease-out);
}
.fab-wa:hover { transform: translateY(-3px) scale(1.05); color: #fff; text-decoration: none; }
.fab-wa svg { width: 28px; height: 28px; }

/* ===== Tabs (services) ===== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--gs-mist); flex-wrap: wrap; }
.tab {
  padding: 18px 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gs-graphite); border: 0; background: transparent;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color 200ms, border-color 200ms;
}
.tab:hover { color: var(--gs-black); }
.tab.active { color: var(--gs-red); border-bottom-color: var(--gs-red); font-weight: 700; }
.tab-panel { display: none; padding: 56px 0 0; }
.tab-panel.active { display: block; animation: fadeUp 500ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Misc ===== */
.divider-stripe {
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--gs-red) 0 16px, var(--gs-black) 16px 32px);
}
.kbd-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.kbd-strip span {
  font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gs-steel);
  display: inline-flex; align-items: center; gap: 8px;
}
.kbd-strip span::before { content: ""; width: 6px; height: 6px; background: var(--gs-red); border-radius: 50%; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(120%);
  bottom: 32px; background: var(--gs-black); color: #fff;
  padding: 16px 24px; border-radius: 4px; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gs-red);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  z-index: 200; transition: transform 350ms var(--ease-out);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive grid helpers ===== */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .h1 { font-size: clamp(40px, 11vw, 72px); }
  .h2 { font-size: clamp(28px, 8vw, 48px); }
}

/* ===== Page-level two-column grids =====
   Add class="page-grid" to section containers that use an inline
   grid-template-columns. The !important beats the inline style at
   the breakpoint so no inline value needs to be removed.          */
.page-grid { display: grid; gap: 64px; align-items: center; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 768px) {
  .page-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .grid-3    { grid-template-columns: 1fr 1fr; }
  .grid-4    { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .card    { padding: 18px !important; }
}

/* ===== Mobile polish ===== */
@media (max-width: 860px) {
  .nav-logo img { height: 52px; }
}
@media (max-width: 640px) {
  .gs-hero      { padding: 72px 0 80px !important; }
  .service-tile { padding: 32px 24px; }
  .tab          { padding: 12px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .toast { white-space: normal; max-width: 90vw; text-align: center; }
}

/* ===== Mobile tabs: 2×2 grid so all 4 labels are visible ===== */
@media (max-width: 640px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: none; }
  .tab  { border-bottom: 1px solid var(--gs-mist); margin-bottom: 0; text-align: center; padding: 14px 8px; font-size: 11px; }
  .tab.active { border-bottom-color: var(--gs-red); }
}
