/* Westmont Law Offices - Natural Warm Styling - TEST UPDATE Sep 7 */
:root {
  /* Primary Colors */
  --primary-color: #D9B15D; /* Warm Gold - buttons and key elements */
  --primary-dark: #C4A052; /* Rich Gold - hover states */
  --primary-darker: #B8963D; /* Darker Gold - hero button hover */
  --primary-light: #E5C578; /* Light Gold - subtle accents */
  
  /* Backgrounds */
  --background-main: #F4E9D5; /* Light Cream - main background */
  --background-warm: #FEFCF7; /* Warm White - pure backgrounds */
  --background-soft: #D1BA9B; /* Soft Beige - cards and sections */
  
  /* Text Colors */
  --text-primary: #5B3C2B; /* Deep Brown - primary readable text */
  --text-secondary: #8C8C8C; /* Muted Gray - secondary information */
  --text-inverse: #FEFCF7; /* Warm White - text on dark backgrounds */
  
  /* Accent Colors */
  --accent-green: #87a96b;
  --accent-green-old: #4C7A42; /* Natural Green - trust indicators */
  --accent-green-dark: #3A5E33; /* Forest Green - hover states */
  --accent-blue: #C7D7E5; /* Sky Blue - links and highlights */
  
  /* Functional Colors */
  --success-color: #4C7A42; /* Natural Green */
  --warning-color: #D9B15D; /* Warm Gold */
  --error-color: #B85C3E; /* Warm red tone */
  
  /* Border */
  --border-color: #E0D0B8; /* Subtle warm border */
  --border-light: #F0E6D2; /* Very light border */
  
  /* Shadows - using warm brown tones */
  --shadow-sm: 0 2px 4px rgba(91, 60, 43, 0.08);
  --shadow-md: 0 4px 12px rgba(91, 60, 43, 0.12);
  --shadow-lg: 0 8px 24px rgba(91, 60, 43, 0.16);
  --shadow-xl: 0 16px 32px rgba(91, 60, 43, 0.20);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-main);
  overflow-x: hidden;
}

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

/* Header & Navigation - Raycast inspired */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(254, 252, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.nav-brand i {
  font-size: 1.5rem;
  color: var(--gold-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.25rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Button Styles - Stripe inspired */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.btn-consultation {
  background: var(--accent-green);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-consultation:hover {
  background: var(--accent-green-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary-color);
  color: var(--text-inverse);
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.hero .btn-secondary:hover {
  background: var(--primary-darker);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section - Linear gradient inspired */
.hero {
  color: white;
  padding: 6rem 0 4rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-inverse);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-placeholder i {
  font-size: 6rem;
  opacity: 0.3;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section - Notion grid inspired */
.services {
  padding: 6rem 0;
  background: var(--background-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: var(--background-soft);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: white;
}

.service-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  color: #565555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-link {
  color: var(--accent-green-old);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--accent-green);
}

/* About Section - Basecamp story scroll inspired */
.about {
  background: var(--background-warm);
}

.about-hero {
  position: relative;
  height: 480px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(to right, #a8b5a0, #f5f2f0, #d4c5b0, #a68b73);
  background: var(--text-primary);
  background: var(--primary-light);
  background: var(--accent-blue);
  background: var(--accent-green);
}

.about-hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.about-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin: 0;
  backdrop-filter: blur(5px);
  max-width: 450px;
  line-height: 1.1;
  text-align: center;
  transform: translateX(-100px);
}

.about-mobile-header {
  display: none;
  padding: 2rem 0 1rem;
  text-align: center;
  background: var(--background-warm);
}

.about-mobile-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Below 1075px - use auto height to prevent background showing above/below */
@media (max-width: 1075px) {
  .about-hero {
    height: auto;
  }
}

/* Medium screens (901-1075px) - slightly smaller overlay */
@media (max-width: 1075px) and (min-width: 901px) {
  .about-hero-title {
    font-size: 3.2rem;
    padding: 1.2rem 1.8rem;
    max-width: 380px;
    transform: translateX(-80px);
  }
}

/* Tablet sizes (600-900px) - smaller overlay on left */
@media (max-width: 900px) and (min-width: 601px) {
  .about-hero-overlay {
    padding: 0 1rem;
    justify-content: center;
  }
  
  .about-hero-title {
    font-size: 2.8rem;
    padding: 1rem 1.5rem;
    max-width: 320px;
    line-height: 1.1;
    text-align: center;
    transform: translateX(-60px);
  }
}

/* Mobile sizes (<600px) - header above image, hide overlay */
@media (max-width: 600px) {
  .about-mobile-header {
    display: block;
  }
  
  .about-hero-overlay {
    display: none;
  }
  
  .about-mobile-header h2 {
    font-size: 2rem;
  }
}

.theme-toggle{
  display:none;
}

.about-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.full-about-content {
  padding: 0 0;
}

.about-content .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.about-features {
  margin-bottom: 2rem;
}

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

.feature i {
  color: var(--accent-green);
  font-size: 1.2rem;
}


/* Testimonials - Superhuman inspired */
.testimonials {
  padding: 6rem 0;
  background: var(--background-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--background-warm);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-details h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Form Styles */
.contact-form {
  background: var(--background-soft);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: var(--background-warm);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(76, 122, 66, 0.1);
}

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

/* FAQ Section - Intercom inspired */
.faq {
  padding: 6rem 0;
  background: var(--background-warm);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: var(--background-soft);
}

.faq-question h4 {
  color: var(--text-primary);
  font-weight: 600;
}

.faq-question i {
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  padding-top:20px;
}

.faq-item.active .faq-question {
  border-bottom: 1px solid var(--text-primary);
}

/* Values Section - Clean card design */
.values {
  padding: 6rem 0;
  background: var(--background-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
}

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

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}

.value-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: white;
  border-radius: 18px;
}

.value-icon i {
  font-size: 2rem;
  color: var(--gold-color);
  position: relative;
  z-index: 1;
}

.value-card h4 {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Footer - Tailscale grid inspired */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand i {
  font-size: 1.5rem;
  color: var(--gold-color);
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: white;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--gold-color);
  width: 16px;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.9rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
    position: absolute;
    right:7px;
    top: 15px;
    transform: translateY(-50%);
  }
  
  .nav-brand {
    flex: 1;
    justify-content: center;
  }
  
  .nav-cta {
    order: 3;
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-content {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form {
    order: 1;
  }
  
  .contact-info {
    order: 2;
  }
  
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-placeholder {
    width: 250px;
    height: 250px;
  }
  
  .about-placeholder {
    width: 100%;
    height: 250px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .value-card {
    padding: 2.5rem 1.5rem;
  }
  
  .value-icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card,
  .contact-form {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling offset for fixed header */
section {
  scroll-margin-top: 100px;
}


/* Brand and accent colors for various elements */
.nav-brand i {
  color: var(--primary-color);
}

.footer-brand i {
  color: var(--text-primary);
}

/* Social links */
.social-links a {
  color: var(--text-primary);
}

.social-links a:hover {
  color: var(--primary-color);
}

