/* ============================================================
   Harborside Data Analytic Advisors — Global Stylesheet
   Color Palette: Navy + Slate
   ============================================================ */

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

:root {
  --navy:       #1B2E4B;
  --navy-dark:  #111E33;
  --navy-mid:   #243653;
  --slate:      #4A5D78;
  --slate-light:#6B7F99;
  --accent:     #2E6DA4;
  --accent-light:#4A8EC4;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --gray-100:   #EEF1F5;
  --gray-300:   #CBD3DC;
  --gray-600:   #4A5D78;
  --text-dark:  #1A2535;
  --text-body:  #3A4A60;
  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --max-width:  1100px;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(27,46,75,0.10);
  --shadow-lg:  0 6px 32px rgba(27,46,75,0.16);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout Utilities ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
section.tight { padding: 3rem 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* --- Navigation ------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-brand .brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav-brand .brand-sub {
  font-size: 0.7rem;
  color: var(--slate-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-links .nav-cta a {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-links .nav-cta a:hover {
  background: var(--accent-light);
}

/* Mobile nav toggle */
.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: all 0.3s;
}

/* --- Hero ------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.hero .hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

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

/* --- Service Cards ---------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 2.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

/* --- Stat Row --------------------------------------------- */
.stat-row {
  background: var(--navy);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Page Hero (inner pages) ------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 4.5rem 0 3.5rem;
  color: var(--white);
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 560px; }

/* --- Bio Section ------------------------------------------ */
.bio-section { background: var(--white); }

.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-sidebar {
  position: sticky;
  top: 100px;
}

.bio-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 3px solid var(--gray-300);
  overflow: hidden;
}

.bio-avatar-initials {
  font-size: 4rem;
  font-weight: 800;
  color: var(--slate);
  letter-spacing: -0.02em;
}

.bio-sidebar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.bio-sidebar .bio-title {
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.bio-sidebar .btn { width: 100%; text-align: center; }

.credentials-list {
  list-style: none;
  margin-top: 1.5rem;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}

.credentials-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.bio-content h2 { margin-bottom: 1rem; }
.bio-content p { font-size: 1.025rem; color: var(--text-body); }
.bio-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.15rem; color: var(--navy); }

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

.tag {
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--gray-300);
}

/* --- Contact Form ----------------------------------------- */
.contact-section { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--slate); margin-bottom: 2rem; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-method-text .method-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  display: block;
}

.contact-method-text a,
.contact-method-text span {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-method-text a:hover { color: var(--accent); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 { margin-bottom: 1.5rem; }

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

.form-group {
  margin-bottom: 1.25rem;
}

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

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,109,164,0.12);
}

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

.form-submit { width: 100%; padding: 0.95rem; font-size: 1rem; }

/* Form success message */
.form-success {
  display: none;
  background: #e8f4ec;
  border: 1px solid #72c785;
  border-radius: var(--radius);
  padding: 1.25rem;
  color: #276738;
  font-weight: 500;
  margin-top: 1rem;
  text-align: center;
}

/* --- CTA Band --------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.72); margin-bottom: 2.25rem; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Footer ----------------------------------------------- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand .brand-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand .brand-since {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: right;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-sidebar { position: static; }
  .bio-avatar { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 700px) {
  section { padding: 3.5rem 0; }
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); padding: 1.5rem 2rem; gap: 1.25rem; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
