/*
Theme Name: Sagient Partners
Theme URI: https://sagientpartners.com
Description: Custom theme matching the Sagient Partners website
Version: 1.0
Author: Sagient Partners
*/

/* ── Variables ── */
:root {
  --navy:    #0C447C;
  --navy-dark: #0A1628;
  --blue:    #378ADD;
  --ice:     #B5D4F4;
  --ice-light: #EBF4FD;
  --text:    #0A1628;
  --muted:   #64748B;
  --white:   #ffffff;
  --radius:  12px;
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--ice-light); }

/* ── Navbar ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #e8f0f8;
  box-shadow: 0 1px 4px rgba(12,68,124,0.07);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand svg { width: 40px; height: 40px; flex-shrink: 0; }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-brand-name span { color: var(--blue); }

.nav-brand-tagline {
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--blue);
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.current { color: var(--blue); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); text-decoration: none; }

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover { background: var(--ice-light); text-decoration: none; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 16px rgba(12,68,124,0.08);
}

/* ── Tags / Labels ── */
.tag {
  display: inline-block;
  background: var(--ice-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 40px;
}

/* ── Blog: Post Grid ── */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 80px 0 64px;
  color: var(--white);
}

.blog-hero h1 { color: var(--white); }
.blog-hero p { color: var(--ice); font-size: 1.1rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(12,68,124,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(12,68,124,0.13);
}

.post-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.post-card-title a { color: var(--navy); text-decoration: none; }
.post-card-title a:hover { color: var(--blue); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 20px;
}

.post-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.post-card-link:hover { text-decoration: underline; }

/* ── Single Post ── */
.single-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 72px 0 56px;
  color: var(--white);
}

.single-hero h1 { color: var(--white); max-width: 780px; }
.single-hero .post-meta { color: var(--ice); font-size: 0.9rem; margin-top: 16px; }

.single-content {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.single-content h2,
.single-content h3 { margin: 2rem 0 0.75rem; }

.single-content p { margin-bottom: 1.25rem; }

.single-content ul,
.single-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.single-content li { margin-bottom: 0.4rem; }

.single-content blockquote {
  border-left: 4px solid var(--blue);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--ice-light);
  border-radius: 0 8px 8px 0;
  color: var(--navy);
  font-style: italic;
}

.single-content img {
  border-radius: 10px;
  margin: 1.5rem 0;
}

.single-content a { color: var(--blue); }

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ice);
  font-size: 0.88rem;
  margin-bottom: 24px;
  text-decoration: none;
  opacity: 0.85;
}
.back-link:hover { opacity: 1; color: var(--white); }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--ice);
  color: var(--navy);
  text-decoration: none;
  transition: all 0.15s;
}

.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: var(--ice);
  padding: 48px 0 32px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { font-weight: 700; color: var(--white); font-size: 1rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ice); font-size: 0.88rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: #5a7a9a; margin-top: 24px; text-align: center; }

/* ── Mobile hamburger ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.2s;
}

.hide-mobile { display: flex; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }

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

  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .section { padding: 56px 0; }
}
