/* =========
   American Development Partners™  — Pure CSS Theme
   Drop this into Zoho Sites → Customization → Code → Custom CSS Editor
   ========= */

/* Design tokens */
:root{
  --brand-sky:#0ea5e9;
  --brand-emerald:#22c55e;
  --ink-900:#0f172a;
  --ink-800:#1f2937;
  --ink-700:#334155;
  --ink-600:#475569;
  --ink-200:#e2e8f0;
  --paper:#ffffff;
  --paper-50:#f8fafc;
  --radius-lg:16px;
  --radius-xl:20px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.06);
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink-900);
  background:var(--paper-50);
  font:16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
p{margin:.75rem 0 0}

/* Headings */
.h1{font-weight:800;letter-spacing:-.01em;font-size:40px;line-height:1.15;margin:16px 0 0}
.h2{font-weight:800;letter-spacing:-.01em;font-size:32px;line-height:1.2;margin:0}
.h3{font-weight:700;font-size:22px;margin:0}

/* Layout */
.container{max-width:72rem;margin:0 auto;padding:0 1rem}
.section{padding:80px 0}
.section--alt{background:var(--paper)}
.section--soft{background:linear-gradient(145deg,#f0f9ff,#ecfdf5)}

/* Header */
.site-header{
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--ink-200);
}
.site-header__row{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.nav{display:none;gap:24px;font-weight:600}
@media (min-width:768px){ .nav{display:flex} }

/* Logo */
.logo{display:flex;align-items:center;gap:8px;font-weight:800}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;font-weight:700;border-radius:14px;box-shadow:var(--shadow-sm);padding:10px 18px;border:0}
.btn--primary{background:#0b1220;color:#fff}
.btn--primary:hover{background:#111827}
.btn--accent{background:var(--brand-emerald);color:#fff}
.btn--accent:hover{background:#10b981}
.btn--ghost{background:#fff;color:var(--ink-900);border:1px solid var(--ink-200)}
.btn--ghost:hover{background:#f8fafc}

/* Hero */
.hero{position:relative;overflow:hidden}
.hero__bg{
  position:absolute;inset:0;z-index:-1;opacity:.2;
  background:radial-gradient(1200px 600px at 0% 0%, var(--brand-sky), transparent 60%),
             radial-gradient(1200px 600px at 100% 0%, var(--brand-emerald), transparent 60%);
}
.pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.8);padding:6px 10px;border-radius:999px;border:1px solid var(--ink-200);font-size:12px;font-weight:700}

/* Feature chips */
.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:24px}
@media (min-width:640px){ .feature-grid{grid-template-columns:repeat(4,1fr)} }
.feature{background:#fff;border:1px solid var(--ink-200);border-radius:12px;padding:12px}

/* Cards & grids */
.grid-3, .grid-2, .grid-4{display:grid;gap:24px;margin-top:24px}
.grid-3{grid-template-columns:1fr}
.grid-2{grid-template-columns:1fr}
.grid-4{grid-template-columns:1fr}
@media (min-width:768px){
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-2{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1024px){
  .grid-4{grid-template-columns:repeat(4,1fr)}
}
.card{
  background:#fff;border:1px solid var(--ink-200);
  border-radius:var(--radius-xl);padding:24px;box-shadow:var(--shadow-sm);
}
.card h3,.card h4{margin:0 0 8px}

/* Lists */
.list{margin:10px 0 0;padding-left:20px}
.list li{margin:4px 0;color:var(--ink-700);font-size:14px}

/* Approach steps */
.step{background:#f8fafc;border:1px solid var(--ink-200);border-radius:var(--radius-xl);padding:24px}

/* Testimonials */
.quote{background:#fff;border:1px solid var(--ink-200);border-radius:var(--radius-xl);padding:24px;box-shadow:var(--shadow-sm)}

/* Forms (generic wrappers; you’ll embed Zoho Forms iframes) */
.embed{border:1px solid var(--ink-200);border-radius:var(--radius-xl);background:#fff;padding:24px;color:var(--ink-600)}
.embed iframe{width:100%;height:900px;border:0;border-radius:var(--radius-xl)}
.small-note{font-size:12px;color:var(--ink-600);margin-top:8px}

/* Footer */
.site-footer{background:#fff;border-top:1px solid var(--ink-200);padding:40px 0}
.footer-row{display:flex;flex-direction:column;gap:16px}
@media (min-width:768px){ .footer-row{flex-direction:row;align-items:center;justify-content:space-between} }
.footer-nav{display:flex;flex-wrap:wrap;gap:16px;color:var(--ink-600)}
.footer-nav a:hover{color:var(--ink-800)}

/* Anchor offset so sticky header doesn’t cover section titles */
section{scroll-margin-top:96px}

/* === NAV FIX: keep items on one line, fix spacing, allow swipe/scroll if narrow === */
.site-header__row{gap:12px}
.site-header .nav{
  display:flex !important;
  gap:18px;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow-x:auto;        /* if the CTA buttons make it too tight, allow horizontal scroll */
  -ms-overflow-style:none;scrollbar-width:none;
}
.site-header .nav::-webkit-scrollbar{display:none}
.site-header .nav a{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:12px;
  line-height:1;
  word-break:keep-all !important;  /* prevent mid-word wraps */
  overflow-wrap:normal !important;
}

/* --- Sticky offset so in-page anchors aren't hidden by the header --- */
:root{ --sticky-offset: 180px; }   /* bump up if your theme's top bar is taller */
section{ scroll-margin-top: var(--sticky-offset); }

/* --- Header layout: put CTAs on their own row below the nav --- */
.site-header__row{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.site-header .logo{ flex:0 0 auto; }
.site-header .nav{
  display:flex !important; gap:18px; flex:1 1 auto; min-width:320px;
  white-space:nowrap; flex-wrap:nowrap; overflow-x:auto; -ms-overflow-style:none; scrollbar-width:none;
}
.site-header .nav::-webkit-scrollbar{ display:none; }
.site-header .nav a{
  display:inline-flex; align-items:center; padding:8px 12px; border-radius:12px; line-height:1;
  word-break:keep-all !important; overflow-wrap:normal !important;
}
/* CTA row always below nav */
.site-header .cta{
  order:3; width:100%;
  display:flex; gap:12px; justify-content:flex-end; padding-top:8px;
}

/* Make the green button clearly green */
.btn--accent{ background:#22c55e; color:#fff; }
.btn--accent:hover{ background:#16a34a; }

/* ===== Approach: mobile stacking & readable text ===== */
@media (max-width: 640px){
  /* The grid/wrapper that holds the 4 cards */
  .approach-grid,
  section[id*="approach"] .cards,
  [data-approach-grid]{
    display: grid !important;
    grid-template-columns: 1fr !important; /* one per row */
    gap: 16px !important;
  }

  /* Each card */
  .approach-card,
  section[id*="approach"] .card,
  [data-approach-card]{
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px 18px !important;
    border-radius: 16px;
  }

  /* Titles & body text inside cards */
  .approach-card h3,
  section[id*="approach"] .card h3{
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
  .approach-card *,
  section[id*="approach"] .card *{
    white-space: normal !important;
    word-break: normal !important;       /* stop letter-by-letter wrapping */
    overflow-wrap: normal !important;
    hyphens: auto !important;
    letter-spacing: 0 !important;
    writing-mode: horizontal-tb !important; /* in case vertical writing was set */
  }
}
/* === FINAL OVERRIDE: Approach on mobile === */
@media (max-width: 768px){
  /* Target any section whose id contains 'approach' (case-insensitive) */
  section[id*="approach" i]{
    /* kill any vertical writing or multi-column layout */
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    column-count: initial !important;
    column-gap: normal !important;
  }

  /* Force the cards to stack and fill the width */
  section[id*="approach" i] .cards,
  section[id*="approach" i] .approach-grid,
  section[id*="approach" i] [data-approach-grid]{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    overflow: visible !important;
  }

  /* Card box sizing */
  section[id*="approach" i] .card,
  section[id*="approach" i] .step,
  section[id*="approach" i] [data-approach-card]{
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
  }

  /* Make all text flow normally (no per-letter blocks, no vertical writing) */
  section[id*="approach" i] *,
  section[id*="approach" i] h2,
  section[id*="approach" i] h3,
  section[id*="approach" i] h4{
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: auto !important;
    letter-spacing: 0 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;           /* in case headings were rotated */
  }

  /* If a split-text script wrapped characters as spans and set display:block, undo it */
  section[id*="approach" i] [class*="char"],
  section[id*="approach" i] [class*="letter"],
  section[id*="approach" i] [class*="split"],
  section[id*="approach" i] span{
    display: inline !important;
  }

  /* Heading size on mobile */
  section[id*="approach" i] h3{
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
}
/* ===== Approach: full-width stacking on mobile ===== */
@media (max-width: 640px){
  /* target your actual grid wrapper */
  #approach .grid-3{
    display: grid !important;
    grid-template-columns: 1fr !important;   /* ONE column */
    gap: 16px !important;
  }

  /* each step "card" */
  #approach .step{
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 18px !important;
    border-radius: 16px;
  }

  /* make text wrap normally */
  #approach .step *{
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: auto !important;
    letter-spacing: 0 !important;
    writing-mode: horizontal-tb !important;
  }
}
