/* ============================================================
   SCALED OBJECTS — Fractional CTO Site
   Light, minimal, warm off-white + olive/sage green palette
   ============================================================ */

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

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

:root {
  --bg:           #ffffff;
  --bg-white:     #ffffff;
  --bg-alt:       #f8f8f5;
  --border:       #e4e2da;
  --border-light: #edebe5;
  --text:         #1a1a14;
  --text-muted:   #5c5c50;
  --text-dim:     #aaa9a0;
  --accent:       #5e6c1e;       /* deep olive — small text tags (contrast safe) */
  --accent-text:  #6b7a32;       /* olive green — large decorative text */
  --accent-icon:  #7c8c3e;       /* olive green — icons, bullets, highlights */
  --accent-dark:  #1a1a14;       /* near-black — buttons */
  --accent-dark-h:#2e2e24;       /* hover */
  font-size: 14.8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FECD01;
  color: #1a1a14;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary:hover { background: #e8bc00; transform: translateY(-1px); }
.btn-primary.btn-full { width: 100%; justify-content: center; }
.g-recaptcha { margin-bottom: 1rem; }
.btn-primary .arrow { font-style: normal; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.btn-text:hover { color: var(--text); }

/* ---------- Section ---------- */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 64px;
}

/* ---------- NAV ---------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 48px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  height: 69px;
  width: 69px;
  object-fit: contain;
  border-radius: 0;
}
.logo-text {
  font-size: 2.21rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-scaled { color: #9a9a9a; }
.logo-objects { color: #FECD01; }
.logo-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo-tagline {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  display: inline-block;
  background: #FECD01;
  color: #1a1a14;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 7px;
  margin-left: 8px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-nav:hover { background: #e8bc00; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 48px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.mobile-link:hover { color: var(--text); }
.mobile-cta {
  margin: 8px 48px 0;
  padding: 11px 20px;
  background: #FECD01;
  color: #1a1a14;
  border-radius: 7px;
  text-align: center;
  font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
  padding: 160px 0 0;
  overflow: hidden;
}

.hero .container {
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-eyebrow .dot { font-size: 1rem; }

.hero-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 780px;
}
.hero-headline .accent {
  color: var(--accent-text);
  font-style: italic;
  white-space: nowrap;
}

.hero-sub {
  max-width: 580px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 80px;
  background: #FECD01;
}
.stats-tagline {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  padding-top: 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 0 28px;
}
.stat {
  padding: 0 40px;
  border-left: 1px solid rgba(0,0,0,0.12);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat:last-child { padding-right: 0; }

.stat-number {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #1a1a14;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,26,20,0.55);
}

/* ---------- FDA BADGE ---------- */
.stat-fda {
  display: flex;
  align-items: center;
}
.fda-badge {
  height: 28px;
  width: auto;
}

/* ---------- COMPLIANCE STRIP ---------- */
.compliance-strip {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg-white);
}
.compliance-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.compliance-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.compliance-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
}
.compliance-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent-icon);
  flex-shrink: 0;
}

/* ---------- SERVICES ---------- */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-light);
}
.service-item:first-child { border-top: 1px solid var(--border-light); }

.service-icon {
  width: 26px;
  height: 26px;
  color: var(--accent-icon);
  flex-shrink: 0;
  margin-top: 3px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.service-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
}

/* ---------- INDUSTRIES ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.industry-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  transition: background 0.15s;
}
.industry-card:hover { background: var(--bg); }
.industry-card:nth-child(3n) { border-right: none; }
.industry-card:nth-child(4),
.industry-card:nth-child(5),
.industry-card:nth-child(6) { border-bottom: none; }

.industry-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-icon);
  margin-bottom: 20px;
}
.industry-icon svg { width: 100%; height: 100%; }

.industry-card h3 {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.industry-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- PREVIOUS WORK ---------- */
.work-section { background: var(--bg-alt); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.work-card {
  background: var(--bg-white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.work-company {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.work-outcome {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.work-outcome--exit    { background: #fef9e7; color: #7a5c00; border: 1px solid #f5e08a; }
.work-outcome--funding { background: #edfaf1; color: #1a6e3a; border: 1px solid #a3e4b7; }
.work-outcome--scale   { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }

.work-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.work-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.work-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  background: #f3f5ec;
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 20px;
}

@media (max-width: 680px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- APPROACH ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.approach-card {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}
.approach-card:nth-child(even) { border-right: none; }
.approach-card:nth-child(3),
.approach-card:nth-child(4) { border-bottom: none; }

.approach-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.approach-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.approach-num {
  font-size: 3rem;
  font-weight: 300;
  color: #FECD01;
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
}

.approach-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about-section {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.2;
}
.about-left p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.about-bullets li {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.bullet-dot {
  color: var(--accent-icon);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 1.1rem;
}

/* ---------- CONTACT ---------- */
.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-left > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.contact-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-link:hover { color: var(--text); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus { border-color: #FECD01; box-shadow: 0 0 0 3px rgba(254,205,1,0.12); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer .logo-icon {
  height: 55px;
  width: 55px;
}
.footer .logo-text {
  font-size: 1.77rem;
}
.footer-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}
.footer-location svg {
  width: 15px;
  height: 15px;
  color: var(--accent-icon);
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 0.87rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-alt); }

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 48px;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  gap: 16px;
  transition: background 0.15s, color 0.15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent-icon);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] > .faq-question { color: var(--accent); }
.faq-item[open] > .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: var(--bg-white); }

.faq-answer {
  padding: 0 28px 22px;
  background: var(--bg-white);
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------- FOOTER (updated for address) ---------- */
.footer-address {
  font-style: normal;
  text-align: right;
}
.footer-address > span:first-child {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .container { padding: 0 32px; }
  .nav-inner { padding: 18px 32px; }
  .mobile-link { padding: 12px 32px; }
  .mobile-cta { margin: 8px 32px 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat { border-left: none; padding: 0; }

  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .industry-card:nth-child(even) { border-right: none; }
  .industry-card:nth-child(5),
  .industry-card:nth-child(6) { border-bottom: none; }
  .industry-card:nth-child(3),
  .industry-card:nth-child(4) { border-bottom: 1px solid var(--border); }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 680px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 16px 24px; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-link { padding: 12px 24px; }
  .mobile-cta { margin: 8px 24px 0; }

  .hero { padding: 120px 0 0; }
  .hero .container { padding-bottom: 48px; }
  .section { padding: 72px 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .industries-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
  }
  .industry-card { border-right: none !important; }
  .industry-card:nth-child(n) { border-bottom: 1px solid var(--border) !important; }
  .industry-card:last-child { border-bottom: none !important; }

  .approach-grid { grid-template-columns: 1fr; }
  .approach-card { border-right: none !important; }
  .approach-card:nth-child(3),
  .approach-card:nth-child(4) { border-bottom: 1px solid var(--border) !important; }
  .approach-card:last-child { border-bottom: none !important; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-address { margin: 0; }
}
