/* ===========================
   ALVAREZ & ASSOCIATES LLC
   Premium Gold & Navy Theme
   =========================== */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07830;
  --navy: #0F1B2D;
  --navy-mid: #1A2B42;
  --navy-light: #243550;
  --white: #FFFFFF;
  --off-white: #F8F6F1;
  --text-light: #8A9BB0;
  --text-mid: #C5CDD8;
  --border: rgba(201, 168, 76, 0.2);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
.gold { color: var(--gold); }
a { color: inherit; text-decoration: none; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-full { width: 100%; text-align: center; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(15, 27, 45, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Horizontal wordmark */
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-crest { height: 64px; width: auto; object-fit: contain; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0A1520 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201, 168, 76, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 50%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663333346691/kBjZ5CbguNth9oC5Zrke9i/AlvarezandAssoc.GoldLogoTransparent_c5e30b00.png') center/400px no-repeat;
  opacity: 0.03;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2rem 2rem 3rem;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  background: rgba(201,168,76,0.08);
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===========================
   INTRO STRIP
   =========================== */
.intro-strip {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.intro-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.intro-label {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.4;
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===========================
   SERVICES
   =========================== */
.services {
  padding: 7rem 0;
  background: var(--navy);
}
.services-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.track-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.track-header {
  padding: 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.track-header.nonprofit {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.05));
}
.track-header.business {
  background: linear-gradient(135deg, rgba(36, 53, 80, 0.8), rgba(26, 43, 66, 0.8));
}
.track-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.track-header h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.track-header p { color: var(--text-mid); font-size: 0.9rem; }
.service-list {
  list-style: none;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  align-items: flex-start;
}
.service-list li:last-child { border-bottom: none; }
.service-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.service-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.service-list span {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  padding: 7rem 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-image-wrap { position: sticky; top: 6rem; }
.about-image-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 8px;
  z-index: 1;
  opacity: 0.4;
}
.about-photo {
  width: 100%;
  display: block;
  filter: grayscale(10%);
}
.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.credential {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.credential strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.credential span { font-size: 0.72rem; color: var(--text-mid); line-height: 1.4; }
.about-content .section-tag { display: block; margin-bottom: 0.75rem; }
.about-content .section-title { text-align: left; margin-bottom: 1.5rem; }
.about-content p {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.9;
}
.about-content p strong { color: var(--white); }
.about-content p em { color: var(--gold); font-style: italic; }
.about-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.role-badge {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* ===========================
   FEATURED SERVICE
   =========================== */
.featured-service {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--border);
}
.featured-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.featured-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.featured-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}
.featured-inner p {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.9;
}
.featured-inner .btn { margin-top: 1rem; }

/* ===========================
   CONTACT
   =========================== */
.contact {
  padding: 7rem 0;
  background: var(--navy);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.25rem; flex-shrink: 0; }
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.contact-item a, .contact-item span {
  font-size: 0.9rem;
  color: var(--text-mid);
}
.contact-item a:hover { color: var(--gold); }
.booking-cta {
  margin-top: 1rem;
  padding: 2rem;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.booking-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.booking-cta p { font-size: 0.875rem; color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.7; }
.cal-placeholder {
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.cal-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.cal-placeholder p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1.25rem; }

/* CONTACT FORM */
.contact-form-wrap {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}
.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
  color: var(--gold);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--navy);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--gold);
  font-size: 0.875rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #080F1A;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo { height: 80px; width: auto; margin-bottom: 1rem; }

/* Hero logo */
.hero-logo-wrap { margin-bottom: 1.5rem; }
.hero-logo-img { height: 220px; width: auto; max-width: 500px; object-fit: contain; filter: drop-shadow(0 4px 24px rgba(201,168,76,0.3)); }
.footer-brand p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; }
.footer-tagline { margin-top: 0.25rem; font-size: 0.8rem !important; color: var(--text-light) !important; }
.footer-links h4 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-light); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Cal.com booking buttons */
.cal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.cal-buttons .btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.meeting-duration {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  background: rgba(255,255,255,0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.75rem;
  white-space: nowrap;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { position: static; max-width: 400px; }
  .services-tracks { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem; }
  .nav-toggle { display: flex; z-index: 1000; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .about-credentials { grid-template-columns: 1fr; }
}
