/* Self-hosted fonts (Inter, Inter Tight) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-tight-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-tight-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-tight-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-tight-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-tight-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-tight-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/inter-tight-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/inter-tight-800-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

/* Good Capital — supplemental styles (works alongside Tailwind) */

:root {
  --gc: #0862f4;
  --gc-deep: #103165;
  --gc-soft: #3d76e6;
  --gc-tint: #dfe5f2;
  --gc-mist: #f3f9f9;
  --accent: #f20762;
  --ink: #0c264e;
  --slate: #475569;
  --paper: #ffffff;
  --line: #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Hero — Good Capital blue gradient with subtle mountain line motif */
.hero-bg {
  background:
    linear-gradient(115deg, var(--gc-deep) 0%, #14397a 48%, var(--gc) 100%);
  position: relative;
  overflow: hidden;
}

/* Hero — photo with brand gradient overlay for legible text */
.hero-photo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(16,49,101,0.92) 0%, rgba(16,49,101,0.72) 42%, rgba(8,98,244,0.45) 100%),
    url('../img/hero.webp');
  background-size: cover;
  background-position: center center;
}
.hero-mountains {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='xMidYMax slice'><g fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'><path d='M0,540 L120,500 L220,520 L340,460 L460,500 L580,440 L720,500 L860,440 L1000,500 L1160,460 L1300,500 L1440,460'/><path d='M0,500 L120,460 L220,480 L340,420 L460,460 L580,400 L720,460 L860,400 L1000,460 L1160,420 L1300,460 L1440,420'/><path d='M0,460 L120,420 L220,440 L340,380 L460,420 L580,360 L720,420 L860,360 L1000,420 L1160,380 L1300,420 L1440,380'/></g></svg>");
  background-size: cover;
  background-position: center bottom;
}

/* Light editorial hero (About, Loan Program, Contact) */
.hero-light {
  background: var(--gc-mist);
  position: relative;
  overflow: hidden;
}
.hero-light::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(8,98,244,0.06), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(16,49,101,0.05), transparent 42%);
}

/* Footer logo — invert PNG to white on dark background */
.logo-footer { filter: brightness(0) invert(1); opacity: 0.95; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gc); color: #fff; }
.btn-primary:hover { background: var(--gc-soft); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(8,98,244,.55); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-secondary:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-dark { background: var(--gc-deep); color: #fff; }
.btn-dark:hover { background: #0c264e; transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(16,49,101,.45); }
.btn-ghost { color: var(--gc-deep); border: 1px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--gc); color: var(--gc); }

/* Feature cards — soft, rounded, friendly (no top-border motif) */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(8,98,244,.30); border-color: var(--gc-tint); }

/* Hero accent panel behind the photo */
.hero-accent {
  position: absolute; border-radius: 28px;
  background: linear-gradient(150deg, var(--gc) 0%, var(--gc-deep) 100%);
}

/* Pill eyebrow — rounded chip instead of a line prefix */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 700; color: var(--gc);
  background: var(--gc-tint);
  padding: .4rem .85rem; border-radius: 999px;
}
.eyebrow.on-dark { color: #fff; background: rgba(255,255,255,.14); }

/* Nav link — soft pill hover */
.nav-link { position: relative; padding: .5rem .9rem; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.nav-link:hover { background: var(--gc-tint); color: var(--gc-deep); }
.nav-link.active { background: var(--gc-tint); color: var(--gc-deep); }

/* Section dividers */
.hairline { height: 1px; background: var(--line); }

/* Mobile menu */
#mobile-menu { transition: max-height .35s ease, opacity .25s ease; max-height: 0; opacity: 0; overflow: hidden; }
#mobile-menu.open { max-height: 600px; opacity: 1; }

/* Footer */
.footer-link { color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-link:hover { color: #fff; }

/* Accessibility focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gc);
  outline-offset: 3px;
  border-radius: 4px;
}
