@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============ Structural constants (colors live in theme.css) ============ */
:root {
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(30px, 5.5vw, 48px); }
h2 { font-size: clamp(24px, 3.8vw, 34px); }
h3 { font-size: 17px; }
p { margin: 0; color: var(--ink-soft); }
.accent { color: var(--primary); }

/* ============ Nav (solid dark bar) ============ */
.nav { background: var(--ink); padding: 16px 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--paper); }
.nav-logo .mark { width: 24px; height: 24px; border-radius: 6px; background: var(--primary) url('logo.svg') center/contain no-repeat; }
.nav-logo .accent { font-weight: 800; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--footer-text); }
.nav-links a:hover { color: var(--paper); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--paper); margin: 4px 0; border-radius: 2px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: none; white-space: nowrap; min-height: 44px;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-primary { background: var(--primary); color: var(--paper); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-block { width: 100%; }

/* ============ Hero (diagonal gradient wedge + photo bleed) ============ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: linear-gradient(100deg, var(--hero-tone-1) 0%, var(--hero-tone-2) 65%, var(--paper) 65%, var(--paper) 100%);
}
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 42%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(150deg, var(--hero-tone-2), var(--stone));
}
.hero-inner { position: relative; z-index: 2; padding: 64px 0 40px; max-width: 560px; }
.hero-inner h1 { color: var(--ink); }
.hero-inner p.lead { margin-top: 14px; max-width: 42ch; font-size: 15px; }

/* ============ Floating category pill row (overlaps hero bottom edge) ============ */
.pill-row { position: relative; margin-top: -28px; z-index: 3; padding-bottom: 20px; }
.pill-row .wrap { display: flex; gap: 14px; flex-wrap: wrap; }
.pill-btn {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  flex: 1;
  text-align: center;
  min-width: 130px;
}
.pill-btn:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.14); }

/* ============ "For X" split section with decorative accents ============ */
.split-section { padding: 70px 0; }
.split-section .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-photo-wrap { position: relative; }
.split-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--stone), var(--ink-soft));
}
.split-accent-stripes {
  position: absolute; top: -14px; right: -14px;
  width: 70px; height: 50px;
  background-image: repeating-linear-gradient(135deg, var(--primary) 0 4px, transparent 4px 10px);
  z-index: 1;
}
.split-accent-tag {
  position: absolute; bottom: -14px; left: -14px;
  width: 46px; height: 46px;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 1;
}
.split-copy h2 span.accent { display: block; }
.split-copy p { margin-top: 16px; font-size: 14.5px; }
.split-copy p + p { margin-top: 12px; }
.split-copy .btn { margin-top: 24px; }

/* ============ Services cards (circular avatar + label + title + desc) ============ */
.services-cards { padding: 20px 0 80px; background: var(--cloud); }
.services-cards .section-head { text-align: center; padding-top: 60px; margin-bottom: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
}
.service-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto;
  background: linear-gradient(150deg, var(--stone), var(--primary));
}
.service-card .label { display: block; margin-top: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.service-card h3 { margin-top: 8px; }
.service-card p { margin-top: 10px; font-size: 13.5px; }

/* ============ CTA band ============ */
.cta-band { background: var(--ink); color: var(--paper); padding: 60px 0; text-align: center; }
.cta-band h2 { color: var(--paper); max-width: 22ch; margin: 0 auto; }
.cta-band .btn { margin-top: 24px; }

/* ============ Inner pages (contact / subscribe / legal / unsubscribe) ============ */
.page-hero { padding: 56px 0 40px; }
.page-hero .lead { margin-top: 12px; max-width: 60ch; }

.form-grid { display: grid; gap: 16px; max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: inherit; font-size: 14.5px;
  background: var(--cloud);
  min-height: 44px;
}
.field textarea { min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.checkbox-row input { margin-top: 3px; min-height: auto; width: 16px; height: 16px; }
.success-msg {
  display: none;
  background: var(--cloud);
  border: 1.5px solid var(--primary);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 16px; font-weight: 600; font-size: 14px; margin-top: 4px;
}
.success-msg.show { display: block; }
.success-msg.error { border-color: var(--error); }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.offer-card { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.offer-card h3 { margin-bottom: 8px; }
.offer-card p { font-size: 14px; margin-bottom: 14px; }

.legal-section { padding: 20px 0 60px; }
.legal-body { max-width: 740px; }
.legal-body h2 { font-size: 16px; font-weight: 700; margin-top: 30px; margin-bottom: 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 14.5px; margin-bottom: 10px; color: var(--ink-soft); }
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--primary); text-decoration: underline; }

.inner-section { padding: 20px 0 60px; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--paper); padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-col h4 { font-size: 12px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--footer-label); }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--footer-text); margin-bottom: 9px; }
.footer-col a:hover { color: var(--primary); }
.footer-logo { font-weight: 800; font-size: 18px; color: var(--paper); display:flex; align-items:center; gap:8px; }
.footer-logo::before { content:""; width:24px; height:24px; background:url('logo.svg') center/contain no-repeat; flex:0 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: var(--footer-faint); flex-wrap: wrap; gap: 10px; }

/* ============ Mobile menu ============ */
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--paper); z-index: 60; padding: 20px; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-close { background: none; border: none; font-size: 30px; cursor: pointer; padding: 4px 10px; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; font-size: 20px; font-weight: 700; }

/* ============ Mobile-first responsive rules ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; background: linear-gradient(160deg, var(--hero-tone-1), var(--hero-tone-2)); }
  .hero-photo { display: none; }
  .hero-inner { padding: 40px 0 30px; max-width: none; }
  .pill-row .wrap { flex-direction: column; }
  .split-section .wrap { grid-template-columns: 1fr; gap: 30px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .form-grid { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
}
