/* CSS Variables - Matching saratogacap-mgt.com */
:root {
  --color-primary: #203961;
  --color-primary-dark: #1a2d4d;
  --color-secondary: #5c5763;
  --color-text: #5c5763;
  --color-text-light: #777777;
  --color-background: #ffffff;
  --color-background-alt: #f5f5f5;
  --color-border: #e0e0e0;
  --color-gold: #c9a227;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-width: 1200px;
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo img {
  max-height: 70px;
  width: auto;
}

.logo:hover {
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  padding: 1rem 1.25rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  min-width: 220px;
  padding: 0.5rem 0;
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.dropdown-menu li a:hover {
  background-color: var(--color-background-alt);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Main Content */
.main-content {
  /* No margin needed - hero sections extend under the header */
}

/* Hero Section */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content .container {
  max-width: 1200px;
}

.hero-content h1 {
  color: white;
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 3rem;
  font-family: var(--font-heading);
  text-align: center;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.8fr auto 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.hero-left p {
  font-size: 1.05rem;
  line-height: 1.9;
  opacity: 0.95;
  margin-bottom: 0;
}

.hero-divider {
  width: 1px;
  height: 200px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-right p {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.5;
  opacity: 1;
  margin-bottom: 0;
}

.hero-buttons {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-primary:hover {
  background: rgba(255, 255, 255, 0.35);
  color: white;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(32, 57, 97, 0.9), rgba(32, 57, 97, 0.9)), url('../images/wealth-management.jpg') center/cover no-repeat;
  color: white;
  padding: calc(var(--header-height) + 60px) 0 100px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  font-family: var(--font-body);
}

/* Page Content */
.page-content {
  padding: 80px 0;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  font-size: 1rem;
  line-height: 1.9;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-background-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

/* Image with Text Section */
.image-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.image-text-section img {
  width: 100%;
  height: auto;
}

.image-text-section.reverse {
  direction: rtl;
}

.image-text-section.reverse > * {
  direction: ltr;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--color-text-light);
}

/* Team Section */
.team-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.team-member {
  text-align: center;
}

.team-member-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  background-color: var(--color-background-alt);
  background-size: cover;
  background-position: center;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.team-member .title {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-member .roles {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Contact */
.contact-section {
  padding: 80px 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: white;
  padding: 60px 0 30px;
  position: relative;
}

.footer-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
}

.footer-fold::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 80px 80px 0;
  border-color: transparent var(--color-background) transparent transparent;
}

.footer-fold::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 80px 0 0 80px;
  border-color: transparent transparent transparent var(--color-primary-dark);
}

.footer-logo {
  max-height: 70px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info p {
  opacity: 0.85;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.footer-info .company-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 1;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: white;
  opacity: 0.85;
  font-size: 0.875rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  opacity: 1;
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 30px;
  text-align: center;
}

.risk-warning {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.copyright {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 50px;
  border-radius: 0;
  max-width: 650px;
  margin: 20px;
  text-align: center;
}

.modal-content h2 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.modal-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.service-item {
  padding: 40px;
  background: var(--color-background-alt);
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-item p {
  color: var(--color-text);
  margin-bottom: 0;
}

/* About page specific */
.about-intro {
  font-size: 1.125rem;
  max-width: 800px;
}

.about-section {
  margin-top: 60px;
}

/* Disclosures Page */
.disclosures-header {
  background: linear-gradient(rgba(32, 57, 97, 0.85), rgba(32, 57, 97, 0.85)), url('../images/disclosures.jpg') center/cover no-repeat;
  padding-bottom: 120px;
}

.disclosures-content {
  padding: 0 0 80px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.login-card {
  background: white;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.login-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.login-card > p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.login-card .form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.login-card label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.login-card input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-card input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(32, 57, 97, 0.1);
}

.login-card input::placeholder {
  color: #aaa;
}

.login-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

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

  .image-text-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 1rem 1.5rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    background: var(--color-background-alt);
  }

  .hero-video {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 80px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-divider {
    width: 80px;
    height: 1px;
    margin: 0 auto;
  }

  .hero-left p {
    font-size: 1rem;
  }

  .hero-right p {
    font-size: 1.4rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-fold {
    width: 50px;
    height: 50px;
  }

  .footer-fold::before {
    border-width: 0 50px 50px 0;
  }

  .footer-fold::after {
    border-width: 50px 0 0 50px;
  }

  .footer-logo {
    margin: 0 auto 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .disclosures-header {
    padding-bottom: 100px;
  }

  .disclosures-content {
    margin-top: -60px;
  }

  .login-card {
    padding: 30px 25px;
    margin: 0 15px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

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

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.last-updated {
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Info Box */
.info-box {
  padding: 30px;
  background-color: var(--color-background-alt);
  margin: 30px 0;
}

.info-box h3 {
  margin-bottom: 1rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}
