/*
Theme Name: Linch Financial
Theme URI:
Author: Lakehue
Author URI:
Description: Custom WordPress theme for Linch Financial
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: linch-financial
*/

/* ============================================================
   SHARED STYLES — sourced from styles.css prototype
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --white: rgba(15, 23, 41, 0.04);
  --deep: #0f1729;
  --deep-soft: #1e2a42;
  --blue: #16a4e9;
  --blue-light: rgba(22, 164, 233, 0.12);
  --blue-dark: #0f7fb8;
  --teal: #0f7fb8;
  --teal-light: rgba(15, 127, 184, 0.12);
  --cta: #e87d00;
  --cta-light: #fdecd8;
  --primary: #16a4e9;
  --text: #0f1729;
  --text-secondary: rgba(15, 23, 41, 0.75);
  --text-muted: rgba(15, 23, 41, 0.55);
  --border: rgba(15, 23, 41, 0.12);
  --navbar-bg: rgba(248, 250, 252, 0.92);
  --top-banner-h: 42px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top banner */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--top-banner-h);
  display: flex;
  align-items: center;
  background: var(--blue-dark);
}
.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.top-banner-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-banner-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.top-banner-social a:hover {
  opacity: 1;
}
.top-banner-social a svg {
  width: 19px;
  height: 19px;
}
.top-banner-tagline {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
}
.top-banner-tagline .accent {
  color: #089e1b;
  font-weight: 700;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Nav */
.navbar {
  position: fixed;
  top: var(--top-banner-h);
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: "Tinos", serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.logo-text {
  transform: translateY(11px);
}
.logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a {
  color: var(--blue-dark);
}
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a {
  position: relative;
}
.nav-links .current-menu-item > a::after,
.nav-links .current-page-ancestor > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cta);
  border-radius: 2px;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--blue);
}
.section-tag-bold {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: block;
}
.section-h2 {
  font-family: "Tinos", serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* Buttons */
.btn-action {
  background: var(--cta);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn-action:hover {
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--border);
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: var(--cta);
  color: var(--cta);
}
.btn-white-bold {
  background: #fff;
  color: var(--deep);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border: 2px solid var(--border);
  transition: all 0.3s;
}
.btn-white-bold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 23, 41, 0.08);
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(100px + var(--top-banner-h)) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden; /* clip decorative pseudo-elements that extend beyond viewport */
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  position: relative;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: underline;
  font-weight: 500;
}
.page-hero .section-h2 {
  position: relative;
}
.page-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  position: relative;
}

/* Check list */
.check-list {
  list-style: none;
  margin-bottom: 32px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
}
.check-list li .ck {
  width: 24px;
  height: 24px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-list li .ck svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

/* CTA band */
.big-cta {
  padding: 80px 0;
  background: var(--blue-light);
  text-align: center;
  color: var(--text);
}
.big-cta .section-h2 {
  color: var(--blue);
}
.big-cta p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
  font-weight: 300;
}

/* Footer */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.footer p {
  margin-bottom: 6px;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   RESPONSIVE — 768px breakpoint
   ============================================================ */

/* Nav switches to the hamburger/drawer before the inline nav-links run out
   of room and wrap to a second line — wrapping silently grows .navbar past
   the height the fixed hero/page-hero padding assumes, hiding content
   behind it. 900px gives headroom beyond where wrapping was observed. */
@media (max-width: 900px) {
  /* Show hamburger, hide horizontal nav */
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
  }

  /* Mobile drawer (toggled by .nav-open class on <nav>) */
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-height: 100dvh;
    overflow-y: auto;
    z-index: 999;
    background: rgba(248, 250, 252, 0.98);
    padding: 16px 24px 24px;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(15, 23, 41, 0.12);
  }
  .nav-open .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  .nav-open .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-open .nav-links a {
    padding: 14px 0;
    display: block;
    font-size: 15px;
  }

  /* Hamburger → X animation when open */
  .nav-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  /* Top banner — icons only, tagline hidden for space */
  .top-banner-tagline {
    display: none;
  }

  .page-hero .section-h2 {
    font-size: 30px;
  }
}

/* Narrow phones — logo + hamburger have almost no slack in the navbar
   row at the full desktop logo size, so the wordmark wraps to two lines.
   Shrink it enough to keep a comfortable margin. */
@media (max-width: 360px) {
  .logo {
    font-size: 22px;
    gap: 6px;
  }
  .logo svg {
    width: 32px;
    height: 32px;
  }
}
