/* Shelander Law Firm - Site Styles
   Matching shelanderlaw.com layout: light theme, Montaga/Hind fonts,
   diagonal hero split, gold/navy accents */

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

:root {
  --navy: #0A2D62;
  --gold: #AE7A1B;
  --gold-hover: #c4912a;
  --dark-blue: #274F8B;
  --dark-bg: #10233F;
  --darker-bg: #061326;
  --text: #343434;
  --text-light: #555;
  --text-muted: #777;
  --white: #FFFFFF;
  --light-bg: #F7F7F7;
  --border: #e0e0e0;
}

body {
  font-family: 'Hind', sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montaga', serif;
  color: var(--text);
  line-height: 1.3;
}
h1 { font-size: 3.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

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

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

/* ==== NAVIGATION ==== */
nav {
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 2px solid var(--text);
  padding: 10px 18px;
  font-family: 'Montaga', serif;
  font-size: 1rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color 0.3s;
}

.logo:hover { border-color: var(--gold); color: var(--text); }

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

.nav-links > li > a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 12px;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }

.nav-phone {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.nav-phone:hover { color: var(--gold); }

/* ==== HERO BANNER - DIAGONAL SPLIT ==== */
.page-hero-banner {
  position: relative;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  background: var(--white);
}

.hero-title-area {
  width: 38%;
  display: flex;
  align-items: flex-end;
  padding: 60px 48px;
  background: var(--white);
  z-index: 2;
  position: relative;
}

.hero-title-area h1 {
  font-family: 'Montaga', serif;
  font-size: 3.25rem;
  color: var(--text);
  line-height: 1.15;
  font-weight: 400;
}

.hero-image-area {
  width: 62%;
  position: relative;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}

.hero-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
}

.hero-gold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(to right, rgba(174, 122, 27, 0.65), rgba(174, 122, 27, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ==== PAGE CONTENT ==== */
.page-content-section {
  padding: 60px 0 80px;
  background: var(--white);
}

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

/* ==== CUSTOM PAGE CONTENT ==== */
.custom-page-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.75rem;
  color: var(--text);
  text-align: left;
}

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

.custom-page-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: var(--navy);
}

.custom-page-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.custom-page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text);
}

.custom-page-content ul {
  padding-left: 24px;
  margin: 16px 0;
  list-style: disc;
}

.custom-page-content li {
  padding: 6px 0;
  line-height: 1.8;
  color: var(--text);
}

.custom-page-content a { color: var(--gold); text-decoration: underline; }
.custom-page-content a:hover { color: var(--gold-hover); }

/* FAQ Section */
.custom-page-content .faq-section { margin-top: 40px; }

.custom-page-content .faq-item {
  margin: 20px 0;
  padding: 24px;
  background: var(--light-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.custom-page-content .faq-item h3 {
  color: var(--navy);
  margin-top: 0;
}

.custom-page-content .faq-item p { margin-bottom: 8px; }

.custom-page-content .faq-item ul {
  padding-left: 24px;
  list-style: disc;
}

/* CTA Box */
.custom-page-content .cta-box {
  margin-top: 40px;
  padding: 32px;
  background: var(--dark-bg);
  border-radius: 8px;
  text-align: center;
  color: var(--white);
}

.custom-page-content .cta-box h2 { text-align: center; color: var(--white); }
.custom-page-content .cta-box p { color: rgba(255,255,255,0.9); }
.custom-page-content .cta-box a { color: var(--gold); font-weight: 600; }

/* Attorney Profile */
.custom-page-content .attorney-profile-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.custom-page-content .attorney-profile-page img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--gold);
}

.custom-page-content .attorney-profile-page .bio-details h3 { margin-top: 24px; }
.custom-page-content .attorney-profile-page .bio-details h3:first-child { margin-top: 0; }

/* ==== HOMEPAGE HERO ==== */
.hero {
  padding: 80px 0;
  text-align: center;
  background: var(--dark-bg);
  color: var(--white);
}

.hero h1, .hero h2 { color: var(--white); }

.badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gold);
  background: rgba(174, 122, 27, 0.15);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 500;
  margin-bottom: 24px;
}

.tagline {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  margin: 0 auto 32px;
}

/* ==== BUTTONS ==== */
.btn {
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Hind', sans-serif;
}

.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-2px); }

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

.btn-block { width: 100%; text-align: center; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ==== SECTIONS ==== */
section { padding: 60px 0; }
section h2 { text-align: center; margin-bottom: 12px; }

.subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* Practice Areas Grid */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.practice-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.practice-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.practice-icon { margin-bottom: 16px; overflow: hidden; }
.practice-icon img { display: block; width: 100%; height: auto; border-radius: 8px; }

.practice-card h3 { color: var(--navy); margin-bottom: 12px; }
.practice-card p { color: var(--text-light); line-height: 1.6; }

/* Attorneys Grid */
.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.attorney-card {
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s;
}
.attorney-card:hover { transform: translateY(-4px); }

.attorney-photo, .placeholder-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--gold);
}
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-photo {
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
}
.attorney-card h3 { color: var(--text); }
.attorney-card .title { color: var(--gold); font-size: 0.9rem; }

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

.testimonial-card {
  background: var(--light-bg);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 16px; }
.testimonial-card .content { font-style: italic; margin-bottom: 16px; line-height: 1.8; }
.testimonial-card .author { font-weight: 600; color: var(--navy); }
.testimonial-card .practice-area { font-size: 0.85rem; color: var(--text-muted); }

/* CTA Section */
.cta-section {
  background: var(--dark-bg);
  text-align: center;
  color: var(--white);
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.7); }

/* Page Hero (legacy class) */
.page-hero {
  padding: 60px 0 40px;
  background: var(--dark-bg);
  color: var(--white);
}
.page-hero h1 { color: var(--white); }

.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }

.lead {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 800px;
}

/* Content Section */
.content-section {
  padding: 40px 0 80px;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 48px;
}

.main-content { color: var(--text); }
.main-content h2 { text-align: left; margin-top: 32px; }
.main-content h3 { margin-top: 32px; color: var(--navy); }
.main-content p { margin-bottom: 16px; line-height: 1.8; }

.benefits-list { list-style: none; padding: 0; }
.benefits-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar .contact-card {
  background: var(--light-bg);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: sticky;
  top: 104px;
}
.sidebar .contact-card h3 { margin-bottom: 12px; }
.sidebar .contact-card p { color: var(--text-light); margin-bottom: 24px; }

/* Attorney Profile Page */
.attorney-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.attorney-photo-large, .placeholder-photo-large {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--gold);
}
.attorney-photo-large img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-photo-large {
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--text-muted);
}

.check-icon { color: var(--gold); font-weight: bold; margin-right: 4px; }

.attorney-info .bio { margin: 24px 0; line-height: 1.8; }
.attorney-info .bio h3 { color: var(--navy); margin-top: 32px; margin-bottom: 16px; font-size: 1.3rem; }
.attorney-info .bio h3:first-child { margin-top: 0; }
.attorney-info .bio ul { list-style: none; padding: 0; margin: 16px 0; }
.attorney-info .bio li {
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.8;
}
.attorney-info .bio li:before {
  content: "\2713";
  color: var(--gold);
  font-weight: bold;
  position: absolute;
  left: 0;
}
.attorney-info .bio p { margin: 16px 0; line-height: 1.8; }

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info .info-item { margin-bottom: 32px; }
.contact-info .info-item strong {
  display: block;
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.contact-info a { color: var(--text); text-decoration: none; }
.contact-info a:hover { color: var(--gold); }

/* Contact Form */
.contact-form .form-group { margin-bottom: 24px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 500; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: 'Hind', sans-serif;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(174, 122, 27, 0.1);
}

.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; }

.success-message {
  padding: 16px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4CAF50;
  border-radius: 8px;
  margin-top: 16px;
  color: #2E7D32;
}

.error-message {
  padding: 16px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #F44336;
  border-radius: 8px;
  margin-top: 16px;
  color: #C62828;
}

/* Footer */
footer {
  background: var(--dark-bg);
  border-top: none;
  padding: 48px 0;
  text-align: center;
}
footer p { color: rgba(255,255,255,0.7); margin-bottom: 8px; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-hover); }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
}
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* Chat Widget */
#ai-chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.chat-button:hover { transform: scale(1.1); }

/* Dropdown Navigation */
.nav-links li { position: relative; list-style: none; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  list-style: none;
  padding: 8px 0;
  min-width: 220px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { padding: 0; border: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.dropdown-menu a:hover { background: var(--light-bg); color: var(--gold); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1200px) {
  .nav-links > li > a { font-size: 0.8rem; padding: 8px 8px; }
  .nav-phone { font-size: 1.1rem; }
}

@media (max-width: 1024px) {
  nav .container { flex-wrap: wrap; }
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    padding: 16px 0;
    gap: 4px;
    order: 3;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links > li > a { display: block; padding: 12px 16px; font-size: 0.9rem; }
  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: var(--light-bg);
    border-radius: 0;
    padding-left: 16px;
    display: none;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu { display: block; }

  .page-hero-banner { flex-direction: column; min-height: auto; }
  .hero-title-area { width: 100%; padding: 40px 24px; }
  .hero-image-area { width: 100%; clip-path: none; }
  .hero-image-area img { min-height: 250px; }
  .hero-title-area h1 { font-size: 2.5rem; }

  .custom-page-content .attorney-profile-page { grid-template-columns: 1fr; }
  .custom-page-content .attorney-profile-page img { width: 200px; height: 200px; margin: 0 auto; display: block; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-title-area h1 { font-size: 2rem; }

  .content-with-sidebar,
  .attorney-profile,
  .contact-layout { grid-template-columns: 1fr; }
  .sidebar .contact-card { position: static; }
  .cta-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .logo { font-size: 0.85rem; padding: 8px 12px; }
}
