/* ============================================================
   Agentrify shared stylesheet — used by landing pages
   Design tokens match the main site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&family=DM+Mono:wght@400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white:      #FAFAF8;
  --off:        #F2F0EB;
  --navy:       #0D1B2A;
  --navy-mid:   #1E3347;
  --blue:       #00C2FF;
  --muted:      #7A7D8A;
  --border:     rgba(13,27,42,0.08);
  --border-mid: rgba(13,27,42,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--blue);
}
p {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
p:last-child { margin-bottom: 0; }

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul li a {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

nav ul li a:hover { color: var(--navy); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ── LOGO ── */
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}

/* ── NAV BUTTONS ── */
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-mid) !important; }

.nav-book {
  border: 1px solid var(--border-mid) !important;
  color: var(--navy) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: border-color 0.2s, color 0.2s;
}
.nav-book:hover { border-color: var(--blue) !important; color: var(--blue) !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--border-mid);
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 4rem;
  border-bottom: 1px solid var(--border);
}

.label, .section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.label::before, .section-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--blue);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off);
}

.stat {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-num span {
  color: var(--blue);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

/* ── CONTENT SECTIONS ── */
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
}

/* ── SERVICES GRID ── */
.services-grid, .diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-item, .diff-item {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 1.75rem;
}

.differentiator { background: var(--off); max-width: 100%; padding: 5rem 3rem; }
.differentiator .diff-grid { max-width: 1100px; margin: 3rem auto 0; }

/* ── TESTIMONIALS ── */
.testimonials {
  background: var(--navy);
  padding: 5rem 3rem;
}

.testimonials .section-label { color: rgba(250,250,248,0.45); }
.testimonials .section-label::before { background: rgba(250,250,248,0.45); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 2rem;
}

.testimonial-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.25rem;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.testimonial blockquote {
  font-size: 1rem;
  color: rgba(250,250,248,0.85);
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial blockquote::before { content: '\201C'; color: var(--blue); font-style: normal; font-weight: 700; }
.testimonial blockquote::after  { content: '\201D'; color: var(--blue); font-style: normal; font-weight: 700; }

.testimonial cite {
  font-size: 0.8rem;
  color: rgba(250,250,248,0.45);
  font-style: normal;
  font-weight: 500;
}

/* ── HOW-GRID (3-card steps) ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.how-item {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.how-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.how-item:hover { border-color: var(--border-mid); box-shadow: 0 4px 20px rgba(13,27,42,0.06); }
.how-item:hover::before { transform: scaleX(1); }

.how-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: rgba(13,27,42,0.07);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.how-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.how-item p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── STEPS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--blue);
  padding-top: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.step h3 {
  margin-bottom: 0.75rem;
}

.step p {
  grid-column: 2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ── CASE STUDY ── */
.case-study {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.case-study-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.case-study-quote {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-study-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  opacity: 0.85;
}

.case-study-quote blockquote {
  padding: 1.5rem;
  background: var(--off);
  border-radius: 6px;
  border-left: 3px solid var(--blue);
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.65;
  font-weight: 300;
  font-style: italic;
}

.case-study-quote cite {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  font-style: normal;
  padding-left: 0.25rem;
}

.case-study-detail h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.case-study-detail p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

.case-study-detail ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.case-study-detail ul li {
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
  font-weight: 400;
}

.case-study-detail ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--navy);
  padding: 5rem 3rem;
  text-align: center;
}

.cta-section h2 { color: var(--white); }
.cta-section h2 em { color: var(--blue); }
.cta-section p { color: rgba(250,250,248,0.55); max-width: 580px; margin: 0 auto 2rem; }

/* ── FOOTER ── */
footer {
  padding: 2.5rem 3rem 8rem;
  border-top: 1px solid var(--border);
  background: var(--off);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  flex-direction: column;
}

footer .logo { font-size: 1.2rem; }

footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

footer ul li a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--navy); }

footer p {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  margin: 0;
}

footer a { color: var(--muted); text-decoration: none; }

/* ── ALSO WORKED WITH ── */
.also-section {
  padding: 3.5rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--off);
}

.also-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.also-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.also-card {
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.also-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,194,255,0.07);
}

.also-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.also-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

.also-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.25rem;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 10000;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-banner p { color: rgba(250,250,248,0.8); margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--blue); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-accept {
  background: var(--blue);
  color: var(--navy);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-decline {
  background: transparent;
  color: rgba(250,250,248,0.6);
  border: 1px solid rgba(250,250,248,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; position: relative; }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250,250,248,0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
  nav ul li a { display: block; padding: 0.9rem 1.5rem; font-size: 1rem; color: var(--navy); }
  nav ul li:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { background: none !important; color: var(--navy) !important; font-weight: 600 !important; }
  .nav-book { border: none !important; }

  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-ctas { flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }
  .stat:last-child { border-bottom: none; }
  .content-section { padding: 3rem 1.5rem; }
  .differentiator { padding: 3rem 1.5rem; }
  .services-grid, .diff-grid { grid-template-columns: 1fr; gap: 1rem; }
  .how-grid { grid-template-columns: 1fr; }
  .case-study { padding: 3rem 1.5rem; }
  .case-study-inner { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials { padding: 3rem 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem 0;
  }
  .step-num { padding-top: 0; }
  .cta-section { padding: 3rem 1.5rem; }
  footer { padding: 2rem 1.5rem 8rem; }
}
