/* ============================================================
   AmplifyFlow Master Brand Kit — style.css
   Shared across amplifyflow.ca (AF) and amplifyflow.studio (AFS)
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --rust:    #B34637;
  --charcoal:#303030;
  --cream:   #F9F8F3;
  --yellow:  #D0CD93;
  --blue:    #3A6C8C;

  --glass-bg:      rgba(48, 48, 48, 0.72);
  --glass-border:  rgba(209, 205, 147, 0.18);
  --glass-blur:    blur(12px);

  --glow-yellow:   0 0 18px rgba(208, 205, 147, 0.55), 0 0 6px rgba(208, 205, 147, 0.35);
  --glow-blue:     0 0 18px rgba(58, 108, 140, 0.65), 0 0 6px rgba(58, 108, 140, 0.40);
  --glow-rust:     0 0 18px rgba(179, 70, 55, 0.55), 0 0 6px rgba(179, 70, 55, 0.35);

  --nav-height: 64px;
  --radius-card: 14px;
  --radius-btn:  8px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med:  0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: #0e0a09; /* canvas draws over this; fallback for no-JS */
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout Shell ────────────────────────────────────────── */
.page-content {
  position: relative;
  z-index: 1;
}

/* ── Sticky Glass Nav ────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 3rem);
  background: rgba(30, 30, 30, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  will-change: transform;
  transform: translateZ(0);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

/* ── Inline SVG Logo Sizing ─────────────────────────────── */

/* Nav SVG sizing only — colors are baked into source SVG */
.nav-logo svg {
  height: 50px;
  width: auto;
  display: block;
}

/* ── Circuit animation overlay is handled by circuit-anim.js ── */

.nav-logo .wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-logo .tagline-small {
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(249, 248, 243, 0.72);
  transition: color var(--transition-fast), background var(--transition-fast);
  will-change: transform;
  transform: translateZ(0);
}

.nav-links a:hover {
  color: var(--cream);
  background: rgba(208, 205, 147, 0.1);
}

.nav-links a.active {
  color: var(--yellow);
  background: rgba(208, 205, 147, 0.12);
  font-weight: 600;
}

.nav-bridge-label {
  font-size: 0.72rem;
  color: rgba(249, 248, 243, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
  margin: 0 0.5rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: calc(90vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vh, 7rem) clamp(1rem, 6vw, 4rem);
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: 1.4rem;
}

.hero h1 .accent {
  color: var(--yellow);
}

.hero h2 {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(249, 248, 243, 0.78);
  max-width: 52ch;
  margin-bottom: 2.6rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition:
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
  will-change: transform, box-shadow;
  transform: translateZ(0);
  white-space: nowrap;
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c84f3e;
  box-shadow: var(--glow-yellow);
  transform: translateY(-2px) translateZ(0);
}

.btn-primary:active {
  transform: translateY(0) translateZ(0);
}

.btn-outline {
  background: transparent;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(208, 205, 147, 0.1);
  box-shadow: var(--glow-yellow);
  transform: translateY(-2px) translateZ(0);
}

/* ── Glass Cards ─────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  transition:
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    transform var(--transition-med);
  will-change: transform, box-shadow;
  transform: translateZ(0);
}

.glass-card:hover {
  box-shadow: var(--glow-yellow);
  border-color: rgba(208, 205, 147, 0.42);
  transform: translateY(-4px) translateZ(0);
}

/* ── Services Triptych ───────────────────────────────────── */
.services-section {
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 6vw, 4rem);
}

.section-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: rgba(249, 248, 243, 0.62);
  max-width: 52ch;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.triptych {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
}

.service-card p {
  font-size: 0.92rem;
  color: rgba(249, 248, 243, 0.72);
  line-height: 1.65;
  flex: 1;
}

.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(179, 70, 55, 0.2);
  color: var(--rust);
  border: 1px solid rgba(179, 70, 55, 0.35);
  align-self: flex-start;
}

/* ── Pitch / Trust Block ─────────────────────────────────── */
.pitch-section {
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1rem, 6vw, 4rem);
}

.pitch-block {
  max-width: 780px;
  margin: 0 auto;
}

.pitch-block h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}

.pitch-block p {
  font-size: 1rem;
  color: rgba(249, 248, 243, 0.72);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(58, 108, 140, 0.18);
  border: 1px solid rgba(58, 108, 140, 0.38);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.trust-pill:hover {
  box-shadow: var(--glow-blue);
  border-color: rgba(58, 108, 140, 0.7);
}

.trust-pill .check {
  color: var(--blue);
  font-size: 1rem;
}

/* ── Lead Capture Form ───────────────────────────────────── */
.form-section {
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 6vw, 4rem);
}

.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.form-wrapper .form-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  text-align: center;
  margin-bottom: 0.6rem;
}

.form-wrapper h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-wrapper .form-sub {
  font-size: 0.95rem;
  color: rgba(249, 248, 243, 0.62);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(249, 248, 243, 0.62);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(30, 30, 30, 0.7);
  border: 1.5px solid rgba(249, 248, 243, 0.14);
  border-radius: 7px;
  padding: 0.72rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--cream);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  will-change: box-shadow;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D0CD93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-field select option {
  background: var(--charcoal);
  color: var(--cream);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(249, 248, 243, 0.3);
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  position: relative;
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(249, 248, 243, 0.35);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form feedback */
.form-feedback {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  display: none;
}

.form-feedback.success {
  background: rgba(58, 108, 140, 0.18);
  border: 1px solid rgba(58, 108, 140, 0.45);
  color: var(--cream);
  display: block;
}

.form-feedback.error {
  background: rgba(179, 70, 55, 0.18);
  border: 1px solid rgba(179, 70, 55, 0.45);
  color: var(--cream);
  display: block;
}

.retry-link {
  cursor: pointer;
  color: var(--yellow);
  text-decoration: underline;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.88rem;
  padding: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 2.5rem clamp(1rem, 6vw, 4rem);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(249, 248, 243, 0.38);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(249, 248, 243, 0.42);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--yellow);
}

/* ── Utility ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-rust   { color: var(--rust); }
.text-yellow { color: var(--yellow); }
.text-blue   { color: var(--blue); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-bridge-label,
  .nav-divider { display: none; }

  .nav-links a {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-links { gap: 0.25rem; }
}

/* ── GHL Full-Bleed Fix ──────────────────────────────────── */
/* Forces nav and footer to span full viewport width         */
/* regardless of GHL column/section width constraints       */
.nav,
.footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box !important;
}

.nav {
  position: sticky !important;
  left: 0 !important;
}

/* GHL wrapper resets — covers all known GHL class variants */
.fgnl-page-section,
.fgnl-page-section-body,
.hl-page-section,
.hl-page-section-body,
.c-custom-html,
.c-custom-html > div,
.custom-code-container,
.custom-code-container > div,
[data-type="custom-code"],
[data-type="custom-code"] > div {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
