/* Goler Agency — Component Styles (Overview Design System v2) */
@import './tokens.css';

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

.agency-page {
  font-family: var(--agency-font-body);
  color: var(--agency-text);
  background: var(--agency-cream);
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ────────────────────────────────────────────── */
.agency-display {
  font-family: var(--agency-font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.agency-overline {
  font-family: var(--agency-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--agency-muted);
}

/* ─── Navigation ────────────────────────────────────────────── */
.agency-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,251,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--agency-border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.agency-nav-logo {
  font-family: var(--agency-font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--agency-forest);
  text-decoration: none;
}

.agency-nav-logo span { color: var(--agency-forest-mid); }

.agency-nav-links { display: flex; align-items: center; gap: 1.5rem; }

.agency-nav-links a {
  color: var(--agency-slate);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--agency-duration) var(--agency-ease);
}

.agency-nav-links a:hover { color: var(--agency-text); }
.agency-nav-links a.agency-btn-primary { color: #fff; }
.agency-nav-links a.agency-btn-primary:hover { color: #fff; }

/* ─── Buttons ───────────────────────────────────────────────── */
.agency-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--agency-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--agency-duration) var(--agency-ease), transform var(--agency-duration) var(--agency-ease), box-shadow var(--agency-duration) var(--agency-ease);
  white-space: nowrap;
}

.agency-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.agency-btn-primary {
  background: var(--agency-forest);
  color: #fff;
}

.agency-btn-primary:hover { background: var(--agency-forest-light); }

.agency-btn-outline {
  background: transparent;
  color: var(--agency-text);
  border: 1px solid var(--agency-sand);
}

.agency-btn-outline:hover {
  border-color: var(--agency-forest);
  color: var(--agency-forest);
}

.agency-btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ─── Section wrapper ───────────────────────────────────────── */
.agency-section {
  padding: var(--agency-space-3xl) 0;
}

.agency-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.agency-section-label {
  text-align: center;
  margin-bottom: 3rem;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.agency-hero {
  background: var(--agency-forest);
  padding: 140px 2rem 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.agency-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,106,79,0.3) 0%, transparent 70%);
}

.agency-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.agency-hero h1 {
  font-family: var(--agency-font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.agency-hero h1 em {
  font-style: italic;
  color: var(--agency-forest-pale);
  -webkit-text-fill-color: var(--agency-forest-pale);
}

.agency-hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.agency-hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.agency-hero-scroll {
  margin-top: 3.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.agency-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--agency-border);
  padding: 1.75rem;
  transition: border-color var(--agency-duration) var(--agency-ease), box-shadow var(--agency-duration) var(--agency-ease), transform var(--agency-duration) var(--agency-ease);
}

.agency-card:hover {
  border-color: var(--agency-forest-pale);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.agency-card-icon {
  width: 48px; height: 48px;
  background: var(--agency-forest-faint);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.agency-card h3 {
  font-family: var(--agency-font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--agency-text);
  margin-bottom: 0.4rem;
}

.agency-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--agency-text-secondary);
}

/* ─── Grid layouts ──────────────────────────────────────────── */
.agency-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.agency-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ─── Comparison Table ──────────────────────────────────────── */
.agency-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--agency-border);
}

.agency-table thead { background: var(--agency-forest); color: white; }
.agency-table thead th { padding: 0.875rem 1.25rem; font-size: 0.8rem; font-weight: 600; text-align: left; }
.agency-table tbody tr:nth-child(even) { background: var(--agency-warm-white); }
.agency-table tbody tr:nth-child(odd)  { background: white; }
.agency-table tbody tr:hover { background: var(--agency-surface-hover); }
.agency-table td { padding: 0.8rem 1.25rem; font-size: 0.875rem; color: var(--agency-text); border-top: 1px solid var(--agency-border); }
.agency-table td.agency-gold-cell { color: var(--agency-forest); font-weight: 600; }

/* ─── Steps ─────────────────────────────────────────────────── */
.agency-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.agency-step { text-align: center; }

.agency-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--agency-gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.agency-step h3 {
  font-family: var(--agency-font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--agency-text);
  margin-bottom: 0.4rem;
}

.agency-step p { font-size: 0.875rem; color: var(--agency-text-secondary); line-height: 1.65; }

/* ─── FAQ Accordion ─────────────────────────────────────────── */
.agency-accordion { border-top: 1px solid var(--agency-border); }

.agency-faq-item { border-bottom: 1px solid var(--agency-border); }

.agency-faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
  font-family: var(--agency-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--agency-text);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.agency-faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--agency-forest-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--agency-forest);
  transition: transform var(--agency-duration) var(--agency-ease),
              background var(--agency-duration) var(--agency-ease);
}

.agency-faq-item.open .agency-faq-icon {
  transform: rotate(45deg);
  background: var(--agency-forest);
  color: #fff;
}

.agency-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--agency-ease);
}

.agency-faq-a-inner {
  padding-bottom: 1.1rem;
  font-size: 0.9rem;
  color: var(--agency-text-secondary);
  line-height: 1.75;
}

.agency-faq-item.open .agency-faq-a { max-height: 400px; }

/* ─── CTA section ──────────────────────────────────────────── */
.agency-cta-dark {
  background: var(--agency-forest);
  color: white;
  padding: var(--agency-space-3xl) 2rem;
  text-align: center;
  border-radius: var(--agency-radius-xl);
  position: relative;
  overflow: hidden;
}

.agency-cta-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,106,79,0.3) 0%, transparent 70%);
}

.agency-cta-dark h2 {
  font-family: var(--agency-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  position: relative;
}

.agency-cta-dark h2 em {
  font-style: italic;
  color: var(--agency-forest-pale);
}

.agency-cta-dark p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
}

/* ─── Form styles ───────────────────────────────────────────── */
.agency-form-section {
  background: white;
  border-radius: var(--agency-radius-lg);
  border: 1px solid var(--agency-border);
  padding: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.agency-field { margin-bottom: 1.25rem; }

.agency-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--agency-text);
  margin-bottom: 0.3rem;
}

.agency-label .req { color: var(--agency-error); margin-left: 2px; }

.agency-input,
.agency-select,
.agency-textarea {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--agency-border);
  border-radius: var(--agency-radius-sm);
  font-family: var(--agency-font-body);
  font-size: 0.9rem;
  color: var(--agency-text);
  background: white;
  transition: border-color var(--agency-duration) var(--agency-ease);
  outline: none;
  appearance: none;
}

.agency-input:focus,
.agency-select:focus,
.agency-textarea:focus {
  border-color: var(--agency-forest);
  box-shadow: 0 0 0 2px rgba(27,67,50,0.12);
}

.agency-select-wrap { position: relative; }
.agency-select-wrap::after {
  content: '\25BE';
  position: absolute; right: 0.875rem; top: 50%; transform: translateY(-50%);
  color: var(--agency-muted);
  pointer-events: none;
}

.agency-radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }

.agency-radio-label {
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--agency-text);
}

.agency-radio-label input[type="radio"] { accent-color: var(--agency-forest); width: 16px; height: 16px; }

.agency-form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--agency-forest);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--agency-font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--agency-duration) var(--agency-ease), transform var(--agency-duration) var(--agency-ease);
}

.agency-form-submit:hover {
  background: var(--agency-forest-light);
  transform: translateY(-1px);
}

.agency-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes agencyFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.agency-fade-up { animation: agencyFadeUp 0.6s var(--agency-ease) both; }
.agency-fade-up-1 { animation-delay: 0.1s; }
.agency-fade-up-2 { animation-delay: 0.2s; }
.agency-fade-up-3 { animation-delay: 0.3s; }
.agency-fade-up-4 { animation-delay: 0.4s; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .agency-grid-3 { grid-template-columns: 1fr; }
  .agency-grid-2 { grid-template-columns: 1fr; }
  .agency-steps  { grid-template-columns: 1fr; }
  .agency-nav-links { display: none; }
  .agency-hero { padding: 110px 1.5rem 70px; }
  .agency-form-section { padding: 2rem 1.5rem; }
  .agency-table thead th, .agency-table td { padding: 0.6rem 0.875rem; font-size: 0.8rem; }
}

/* ─── Callout / Highlight ───────────────────────────────────── */
.agency-callout {
  background: var(--agency-forest-faint);
  border-left: 3px solid var(--agency-forest);
  border-radius: 0 var(--agency-radius-sm) var(--agency-radius-sm) 0;
  padding: 0.875rem 1.25rem;
}

.agency-stat-row { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }

.agency-stat { text-align: center; }

.agency-stat-num {
  font-family: var(--agency-font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--agency-forest);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.agency-stat-label { font-size: 0.8rem; color: var(--agency-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Section with warm-white bg */
.agency-section-navy {
  background: var(--agency-warm-white);
  color: var(--agency-text);
}

.agency-section-navy .agency-overline { color: var(--agency-forest-mid); }

.agency-layer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.875rem; margin-top: 2rem; }

.agency-layer-card {
  background: white;
  border: 1px solid var(--agency-sand);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
  transition: background var(--agency-duration) var(--agency-ease), box-shadow var(--agency-duration) var(--agency-ease), transform var(--agency-duration) var(--agency-ease);
}

.agency-layer-card:hover {
  background: var(--agency-warm-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.agency-layer-card-icon { font-size: 1.3rem; flex-shrink: 0; }

.agency-layer-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--agency-text); margin-bottom: 0.2rem; }
.agency-layer-card p  { font-size: 0.8rem; color: var(--agency-slate); line-height: 1.5; }

/* Qualifying criteria */
.agency-criteria-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.agency-criteria-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; color: var(--agency-text); line-height: 1.5;
}
.agency-criteria-list li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--agency-forest-faint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--agency-forest);
  margin-top: 1px;
}

/* Footer */
.agency-footer {
  background: var(--agency-cream);
  color: var(--agency-muted);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  border-top: 1px solid var(--agency-sand);
}

.agency-footer a { color: var(--agency-forest-mid); text-decoration: none; }
