/* ===================================================
   Tensor Advisory Group, LLC — Main Stylesheet
   =================================================== */

:root {
  --navy:       #030a49;
  --navy-mid:   #0b1768;
  --gold:       #c47b25;
  --gold-light: #e3a24b;
  --off-white:  #f4f9fc;
  --light-gray: #dce8f0;
  --mid-gray:   #587083;
  --text:       #203746;
  --white:      #ffffff;
  --font-sans:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --radius:     4px;
  --shadow:     0 2px 16px rgba(0,0,0,0.08);
  --transition: 0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===================================================
   NAVIGATION
   =================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5%;
  height: 72px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-logo {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.955rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-logo:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 65vh;
  background: linear-gradient(135deg, #eef0ff 0%, #fbfbff 58%, #e8ebff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 88px 5% 44px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  color: var(--mid-gray);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,149,63,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(3,10,73,0.35);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(3,10,73,0.08);
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===================================================
   SECTION SHELL
   =================================================== */
section { padding: 56px 5%; }

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner--narrow { max-width: 780px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading { margin-bottom: 1.5rem; }

/* ===================================================
   SOCIAL PROOF / INTRO
   =================================================== */
.intro { background: var(--off-white); }

.intro-grid {
  display: block;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
}

.intro-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 420px;
}

.intro-text .section-heading { color: var(--navy); }
.intro-text p { color: var(--mid-gray); }

.expertise-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.tag {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 2px;
}

.tag-note {
  font-size: 0.82rem;
  color: var(--mid-gray);
  font-style: italic;
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* ===================================================
   SERVICES OVERVIEW (HOME)
   =================================================== */
.services-overview { background: var(--white); padding-top: 32px; }

.services-overview .section-heading { color: var(--navy); }
.services-overview > .section-inner > p { color: var(--mid-gray); max-width: 680px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  border-top: 3px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card h3 { color: var(--navy); margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.92rem; color: var(--mid-gray); margin: 0; }

.services-cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.link-arrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 0.6rem; }

/* ===================================================
   PULL QUOTE / PHILOSOPHY
   =================================================== */
.philosophy {
  background: var(--navy);
  text-align: center;
  padding: 48px 5%;
}

.philosophy blockquote {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: var(--font-serif);
}

.philosophy blockquote em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 500;
}

/* ===================================================
   SERVICES PAGE — FULL SECTIONS
   =================================================== */
.page-hero {
  background: var(--navy);
  padding: 88px 5% 44px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.service-block {
  padding: 48px 5%;
}

.service-block:nth-child(even) { background: var(--off-white); }
.service-block:nth-child(odd)  { background: var(--white); }

.service-block-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.service-block-intro h2 { color: var(--navy); margin-bottom: 0.75rem; }
.service-block-intro .section-label { display: block; margin-bottom: 0.5rem; }

.service-block-body p { color: var(--mid-gray); }

.service-list {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.service-list li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.service-note {
  font-size: 0.85rem;
  color: var(--mid-gray);
  font-style: italic;
  border-left: 3px solid var(--light-gray);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* ===================================================
   ABOUT PAGE
   =================================================== */
.about-hero { background: var(--navy); }

.about-principal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-context-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0.9;
}

.about-principal h2 { color: var(--navy); margin-bottom: 1rem; }
.about-principal p  { color: var(--mid-gray); }

.associates { background: var(--off-white); }

.associates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.associate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.associate-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.associate-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; }
.associate-card p  { font-size: 0.85rem; color: var(--mid-gray); margin: 0; }

/* ===================================================
   CONTACT / CTA SECTION
   =================================================== */
.contact-cta {
  background: var(--navy);
  text-align: center;
  padding: 56px 5%;
}

.contact-cta h2 { color: var(--white); margin-bottom: 1rem; }
.contact-cta p  { color: rgba(255,255,255,0.68); max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.contact-cta .btn-secondary-note {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* ===================================================
   CONTACT FORM PAGE
   =================================================== */
.contact-section { background: var(--off-white); padding: 56px 5%; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-info p  { color: var(--mid-gray); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  padding: 60px 5% 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 63px; width: auto; margin-bottom: 1rem; opacity: 0.85; }
.footer-brand p   { font-size: 0.85rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .nav-logo { font-size: 1.275rem; }
  .nav-links { gap: 1rem; }

  .intro-grid,
  .about-principal,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .services-grid { grid-template-columns: 1fr 1fr; }

  .service-block-inner { grid-template-columns: 1fr; gap: 2rem; }

  .associates-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 5%; }
  .services-grid { grid-template-columns: 1fr; }
  .associates-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy); padding: 1.5rem 5%; gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-logo { font-size: 0.978rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
