/* Blatt & Sorell Tax Group, Inc. - Stylesheet */

:root {
  --navy: #1a2e4a;
  --navy-dark: #0f1e33;
  --gold: #b8963e;
  --gold-light: #d4a84b;
  --text: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --off-white: #f7f5f0;
  --border: #e0d9ce;
  --font-sans: 'Open Sans', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

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

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-dark);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
}

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

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.top-bar a { color: rgba(255,255,255,0.75); }
.top-bar a:hover { color: var(--gold-light); }
.top-bar .phone { font-weight: 600; letter-spacing: 0.03em; }

/* ===== Header ===== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.01em;
}
.logo-tagline {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
a.logo:hover .logo-name { color: var(--gold); }
a.logo:hover .logo-tagline { color: var(--text-light); }

/* ===== Navigation ===== */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
nav ul li { position: relative; }
nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-dark);
  border-radius: 2px;
  transition: all 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
  background: var(--off-white);
}

/* Dropdown */
nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  min-width: 240px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: none;
  gap: 0;
}
nav ul li:hover > ul { display: flex; }
nav ul li ul li a {
  padding: 10px 18px;
  font-size: 0.775rem;
  border-radius: 0;
  letter-spacing: 0.04em;
}
nav ul li ul li a:hover {
  background: var(--off-white);
  color: var(--gold);
  padding-left: 24px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #2a4a6e 100%);
  color: var(--white);
  padding: 100px 0;
  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.02'%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");
}
.hero-content { position: relative; max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}
.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 56px 0;
  position: relative;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.page-banner h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { margin: 0 6px; }

/* ===== Sections ===== */
section { padding: 72px 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-header {
  margin-bottom: 52px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
}
.section-header.centered { text-align: center; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* Divider */
.divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 18px 0 24px;
}
.centered .divider { margin-left: auto; margin-right: auto; }

/* ===== Intro Section ===== */
.intro-section { background: var(--off-white); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-text blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 24px;
  font-size: 1.05rem;
  color: var(--text-light);
  font-style: italic;
  margin: 28px 0;
  line-height: 1.75;
}
.intro-text .attribution {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.intro-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  padding: 36px;
}
.intro-sidebar h3 { margin-bottom: 12px; font-size: 1.3rem; }
.contact-info { list-style: none; margin: 20px 0 28px; }
.contact-info li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.contact-info li:first-child { border-top: 1px solid var(--border); }
.contact-info .ci-label {
  font-weight: 600;
  color: var(--navy);
  min-width: 48px;
}

/* ===== Services Grid ===== */
.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 32px 28px;
  transition: all 0.25s;
}
.service-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.service-card .service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card:hover .service-icon { background: var(--gold); }
.service-card .service-icon svg { fill: var(--white); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy-dark); }
.service-card p { font-size: 0.9rem; color: var(--text-light); }
.service-card a.learn-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.service-card a.learn-more:hover { color: var(--navy); }

/* ===== Industries / Clients ===== */
.industries-section { background: var(--navy-dark); padding: 64px 0; }
.industries-section .section-label { color: var(--gold-light); }
.industries-section h2 { color: var(--white); }
.industries-section .divider { background: var(--gold); }
.industries-section > .container > .section-header p { color: rgba(255,255,255,0.65); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.industry-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 28px 16px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.industry-item:hover {
  background: rgba(184,150,62,0.2);
  border-color: var(--gold);
  color: var(--white);
}
.industry-item svg {
  display: block;
  margin: 0 auto 12px;
  opacity: 0.7;
}
.industry-item:hover svg { opacity: 1; }

/* ===== Case Studies ===== */
.case-studies-section { background: var(--off-white); }
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px;
  position: relative;
}
.case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}
.case-amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.case-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.case-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ===== About Page ===== */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.partner-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 36px;
  text-align: center;
  border-top: 4px solid var(--gold);
}
.partner-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-avatar svg { fill: rgba(255,255,255,0.5); }
.partner-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.partner-card .title { color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.partner-card p { font-size: 0.9rem; color: var(--text-light); }
.values-list { list-style: none; margin-top: 28px; }
.values-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.values-list li .check {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Services Page ===== */
.service-detail {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.service-detail-meta h3 { font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 10px; }
.service-detail-meta .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.service-detail p { color: var(--text-light); }
.service-bullets { list-style: none; margin-top: 20px; }
.service-bullets li {
  padding: 6px 0;
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
}
.service-bullets li::before { content: '—'; color: var(--gold); flex-shrink: 0; }

/* ===== SALT Page ===== */
.salt-intro { background: var(--off-white); }
.salt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.salt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  padding: 32px;
  transition: all 0.2s;
}
.salt-card:hover { border-left-color: var(--gold); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.salt-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.salt-card p { font-size: 0.9rem; color: var(--text-light); }

/* ===== Contact Page ===== */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}
.contact-info-block { padding-top: 8px; }
.contact-info-block h3 { font-size: 1.4rem; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:first-of-type { border-top: 1px solid var(--border); }
.contact-detail-icon {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { fill: var(--white); }
.contact-detail-text strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 2px; }
.contact-detail-text span, .contact-detail-text a { font-size: 1rem; color: var(--navy-dark); font-weight: 500; }
.contact-detail-text a:hover { color: var(--gold); }

/* Contact Form */
.contact-form h3 { font-size: 1.4rem; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
label .req { color: var(--gold); margin-left: 2px; }
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--navy); background: var(--white); }
textarea { min-height: 140px; resize: vertical; }

/* ===== Footer ===== */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.footer-grid p { font-size: 0.875rem; line-height: 1.75; margin-bottom: 20px; }
.footer-grid h4 {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.footer-links { list-style: none; }
.footer-links li { padding: 5px 0; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-contact-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
}
.footer-contact-item strong { color: rgba(255,255,255,0.85); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.45); }
.footer-legal a:hover { color: var(--gold-light); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .intro-grid,
  .about-grid,
  .case-studies-grid,
  .contact-grid,
  .salt-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  nav { display: none; }
  .nav-toggle { display: block; }
  nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  nav.open ul { flex-direction: column; gap: 2px; }
  nav.open ul li ul { position: static; display: none; border: none; box-shadow: none; padding-left: 16px; }
  nav.open ul li ul { display: flex; }
}
