/* ============================================================
   ADFINZ — style.css
   Design System: Clean sans-serif, conversion-first, fully responsive
============================================================ */

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

:root {
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-300: #d1d1d6;
  --gray-400: #a0a0ab;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #3b82f6;
  --blue-50: #eff6ff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --nav-height: 60px;
  --container-max: 1100px;
  --container-pad: clamp(20px, 5vw, 48px);

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 56px;
  --space-xl: 80px;
  --space-2xl: 112px;

  /* Section vertical padding — kept tight so gaps equal the nav height */
  --section-v: 60px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .05);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-v) var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ─── HIGHLIGHT UTILITY ──────────────────────────────────────── */
.highlight {
  color: var(--blue);
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* Center nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

/* CTA pill */
.nav-link.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px;
  transition: background var(--transition);
}

/* Pinned to the right corner of the navbar */
.nav-link.nav-cta-corner {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-link.nav-cta:hover {
  background: var(--blue);
  color: var(--white);
}

/* Chevron */
.nav-chevron {
  width: 13px;
  height: 13px;
  transition: transform var(--transition);
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.dropdown-open .nav-chevron {
  transform: rotate(180deg);
}

/* ─── DROPDOWN ─────────────────────────────────────────────── */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  /* Seamless hover: padding-top bridges visual gap, margin-top overlaps trigger */
  padding: 18px 6px 6px;
  margin-top: -6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.dropdown-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--blue-50);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--blue);
}

.dropdown-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  transition: color var(--transition);
}

.dropdown-item-sub {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.4;
}

/* ─── HAMBURGER ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.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);
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  /* clear fixed nav */
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  padding-bottom: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 120vw);
  height: min(800px, 120vw);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  width: 100%;
  position: relative;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Two-line heading — explicit line break preserved via <br> in HTML */
.hero-heading {
  font-size: clamp(18px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--black);
  white-space: nowrap;
  margin-bottom: var(--nav-height);
  /* red line gap = 60px */
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 21px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  margin-bottom: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-cta:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, .22);
}

.cta-arrow {
  width: 15px;
  height: 15px;
  transition: transform var(--transition);
}

.hero-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* Scroll hint — removed */
.hero-scroll-hint,
.scroll-line {
  display: none;
}

/* ─── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-height) + clamp(48px, 8vw, 72px)) var(--container-pad) clamp(40px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-content {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-hero-heading {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--black);
}

/* ─── CLARITY SECTION ────────────────────────────────────────── */
.clarity-section {
  background: transparent;
  padding: var(--section-v) var(--container-pad);
  text-align: center;
}

.clarity-inner {
  max-width: 560px;
  margin: 0 auto;
}

.clarity-heading {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.clarity-body {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--black);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── CONTACT SECTION (CENTERED) ────────────────────────────── */
.contact-section {
  padding: var(--section-v) var(--container-pad);
}

.contact-centered {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contact-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: var(--space-md);
  line-height: 1.25;
  text-align: center;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.required {
  color: red;
  margin-left: 4px;
  font-weight: 600;
}

.form-input,
.form-textarea {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-submit:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .22);
}

.form-submit svg {
  width: 15px;
  height: 15px;
}

.form-success {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 11px;
}

/* ─── SERVICES PAGE ─────────────────────────────────────────── */
.services-section {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--section-v) var(--container-pad);
}

.section-alt-bg {
  background: var(--gray-100);
  max-width: 100%;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section.services-section.section-alt-bg {
  max-width: 100%;
}

.service-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.service-badge-hero {
  background: var(--blue);
  color: var(--white);
}

.service-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.25;
}

.service-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-700);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 11px;
  top: 3px;
}

/* ─── PLACEHOLDER (clients / results) ───────────────────────── */
.placeholder-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.placeholder-content {
  text-align: center;
}

.placeholder-label {
  font-size: 15px;
  color: var(--gray-400);
  font-weight: 400;
  font-style: italic;
}

/* ─── TERMS PAGE ─────────────────────────────────────────────── */
.terms-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--container-pad) var(--section-v);
}

.terms-content h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  margin-top: 32px;
}

.terms-content h2:first-child {
  margin-top: 0;
}

.terms-content p {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-700);
  line-height: 1.75;
}

.terms-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── PRIVACY PAGE ───────────────────────────────────────────── */
.privacy-content p {
  margin-bottom: 24px;
}

.privacy-content h2 {
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 12px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: clamp(28px, 4vw, 40px) var(--container-pad) clamp(16px, 3vw, 24px);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.footer-col-left {
  display: flex;
  align-items: center;
}

.footer-col-center {
  text-align: center;
}

.footer-col-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.footer-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.footer-contact-label {
  font-size: 13px;
  color: var(--black);
}

.footer-email {
  color: var(--black);
  transition: opacity var(--transition);
}

.footer-email:hover {
  opacity: 0.6;
}

.footer-link {
  font-size: 13px;
  color: var(--black);
  transition: opacity var(--transition);
}

.footer-link:hover {
  opacity: 0.6;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 16px;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--black);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION SPACING SYSTEM ─────────────────────────────────
   --section-v is now exactly 60px (= nav height).
   Sections already carry 60px top+bottom padding each, so the
   visible gap between back-to-back sections would be 120px.
   We collapse that to 60px by pulling each subsequent section
   up by the amount of the preceding section's bottom padding.
──────────────────────────────────────────────────────────── */

/* Hero bottom padding is var(--nav-height) = 60px.
   Next section's top padding is also 60px.
   Visual gap = 60px + 0 + 60px = 120px — pull up by 60px */
#hero+#what-we-bring {
  margin-top: calc(-1 * var(--section-v));
}

/* What We Bring → Contact: same logic */
#what-we-bring+#contact {
  margin-top: calc(-1 * var(--section-v));
}

/* Contact → Footer */
main+.site-footer {
  margin-top: 0;
}

/* ─── RESPONSIVE — TABLET (≤ 900px) ─────────────────────────── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col-right {
    justify-content: flex-start;
  }

  .footer-col-center {
    grid-column: 1 / -1;
    order: 3;
  }
}

/* ─── RESPONSIVE — MOBILE (≤ 768px) ─────────────────────────── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--container-pad) 28px;
    gap: 2px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .07);
    /* Reset the absolute centering trick */
    position: fixed;
    transform: none;
    left: 0;
    /* Slide in/out */
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--blue-50);
    color: var(--blue);
  }

  .nav-link.nav-cta {
    text-align: center;
    margin-top: 6px;
    margin-left: 0;
    padding: 11px 20px;
  }

  /* Dropdown: inline on mobile */
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-top: 4px;
    padding: 4px;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }

  .nav-item-dropdown.dropdown-open .nav-dropdown {
    display: block;
  }

  /* Hero adjustments */
  .hero-section {
    min-height: 70vh;
  }

  .hero-heading {
    font-size: clamp(26px, 8vw, 38px);
  }

  /* Contact form */
  .contact-form {
    padding: 20px;
  }

  /* Footer: single column */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .footer-col-left,
  .footer-col-center,
  .footer-col-right {
    justify-content: center;
    text-align: center;
    order: unset;
  }

  .footer-col-center {
    grid-column: auto;
  }
}

/* ─── RESPONSIVE — SMALL MOBILE (≤ 480px) ───────────────────── */
@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }

  .hero-heading {
    font-size: clamp(24px, 9vw, 32px);
  }

  .page-hero-heading {
    font-size: 22px;
  }

  .clarity-heading {
    font-size: 18px;
  }

  .contact-heading {
    font-size: 18px;
  }

  .service-title {
    font-size: 20px;
  }
}