/* Central Texas Legal Resource - Professional Attorney Theme */

:root {
  --navy-dark: #0f233c;
  --navy: #1a3a5c;
  --navy-light: #2d5a87;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #a88620;
  --cream: #f8f6f1;
  --white: #ffffff;
  --gray-light: #e8e6e1;
  --gray: #6b7280;
  --gray-dark: #374151;
  --text: #1f2937;
  --success: #059669;
  --error: #dc2626;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  margin: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--navy-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.875rem; border-bottom: 2px solid var(--gold); padding-bottom: 0.5rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; color: var(--navy); }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1.25rem; }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }

.header-top { background: var(--navy-dark); color: var(--white); padding: 0.5rem 0; font-size: 0.875rem; }
.header-top .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.header-contact { display: flex; gap: 2rem; flex-wrap: wrap; }
.header-phone { color: var(--gold-light); }

.header-main .container { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; padding-bottom: 1rem; }

.logo a { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-icon { font-size: 2.5rem; color: var(--gold); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy-dark); }
.logo-tagline { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.25rem; position: relative; }
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold-dark); border-bottom-color: var(--gold); }

/* Submenu Styles */
.nav-item-has-children > a::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 0.25rem;
  opacity: 0.7;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

.nav-item-has-children:hover .nav-submenu,
.nav-item-has-children.active .nav-submenu {
  display: block;
}

.nav-submenu li {
  margin: 0;
}

.nav-submenu a {
  padding: 0.75rem 1.25rem;
  border-bottom: none;
  border-left: 3px solid transparent;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-submenu a:hover {
  background: var(--cream);
  border-left-color: var(--gold);
  border-bottom-color: transparent;
}

.nav-submenu .submenu-alt {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Hero Section */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 2.75rem; margin-bottom: 1rem; }
.hero-subtitle { font-family: 'Libre Baskerville', serif; font-size: 1.25rem; color: var(--gold-light); font-style: italic; max-width: 700px; margin: 0 auto; }

/* Main Content Layout */
.site-main { padding: 3rem 0; }

.breadcrumbs {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--gray);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li::after {
  content: "/";
  color: var(--gray-light);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--navy-light);
  font-weight: 600;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--gray-dark);
  font-weight: 600;
}

.content-wrapper { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }

.main-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.related-resources {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  background: var(--cream);
}

.related-resources h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.related-resources p {
  margin-bottom: 1rem;
  color: var(--gray-dark);
}

.related-resources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.related-resources li {
  padding-left: 1.25rem;
  position: relative;
}

.related-resources li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.related-resources a {
  font-weight: 600;
  color: var(--navy);
}

.related-resources a:hover {
  color: var(--gold-dark);
}

/* Sidebar */
.sidebar { position: sticky; top: 120px; }

.ad-section {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.ad-label {
  display: block;
  background: var(--navy-dark);
  color: var(--gold-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  text-align: center;
}

.ad-card {
  padding: 1.25rem;
  border-bottom: 1px solid var(--gray-light);
}
.ad-card:last-child { border-bottom: none; }

.ad-card h4 { font-family: 'Libre Baskerville', serif; font-size: 1rem; color: var(--navy-dark); margin-bottom: 0.5rem; }
.ad-card .ad-specialty { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ad-card p { font-size: 0.875rem; color: var(--gray-dark); margin-bottom: 0.75rem; }
.ad-card .ad-contact { font-size: 0.875rem; margin-bottom: 0.25rem; }
.ad-card .ad-phone { font-weight: 600; color: var(--navy); font-size: 1rem; }
.ad-card .ad-phone a { color: var(--navy); }
.ad-card .ad-phone a:hover { color: var(--gold-dark); }
.ad-card .ad-email a { color: var(--navy-light); }
.ad-card .ad-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.ad-card .ad-cta:hover { background: var(--gold-light); }

.ad-card .ad-disclaimer {
  font-size: 0.7rem;
  color: var(--gray);
  margin: 0.75rem 0 0 0;
  line-height: 1.5;
  font-style: italic;
}

.sidebar-info {
  background: var(--navy-dark);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 4px;
}
.sidebar-info h3 { color: var(--gold-light); font-size: 1.125rem; margin-bottom: 0.75rem; }
.sidebar-info p { font-size: 0.875rem; opacity: 0.9; }

/* Sidebar Feed */
.sidebar-feed {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-feed h3 {
  margin-bottom: 0.75rem;
}

.sidebar-feed-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-dark);
}

.sidebar-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.sidebar-feed-item {
  border-top: 1px solid var(--gray-light);
  padding-top: 0.875rem;
}

.sidebar-feed-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sidebar-feed-title {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.sidebar-feed-meta {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

.sidebar-feed-excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-dark);
  line-height: 1.5;
}

.sidebar-feed-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-light);
}
.sidebar-feed-more:hover { color: var(--gold-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 3px;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-secondary { background: transparent; color: var(--gold-light); border: 2px solid var(--gold); }
.btn-secondary:hover { background: var(--gold); color: var(--navy-dark); }

/* Content Styling */
.intro-text { font-family: 'Libre Baskerville', serif; font-size: 1.125rem; color: var(--gray-dark); line-height: 1.8; margin-bottom: 2rem; }

.info-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box h4 { margin-bottom: 0.5rem; }

.legal-notice {
  background: #fef3c7;
  border: 1px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

ul.check-list { list-style: none; padding: 0; }
ul.check-list li { padding: 0.5rem 0 0.5rem 2rem; position: relative; }
ul.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: bold; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }

.card {
  background: var(--cream);
  border-radius: 4px;
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
}
.card h3 { font-size: 1.125rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 3rem 0 1.5rem; margin-top: 3rem; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-about p { font-size: 0.875rem; opacity: 0.85; line-height: 1.7; }
.disclaimer { font-size: 0.8rem !important; opacity: 0.7 !important; margin-top: 1rem !important; }

.site-footer h4 { color: var(--gold-light); font-size: 1rem; margin-bottom: 1rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--white); opacity: 0.85; font-size: 0.875rem; }
.footer-links a:hover { opacity: 1; color: var(--gold-light); }

.footer-contact p { font-size: 0.875rem; opacity: 0.85; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; opacity: 0.7; }
.attorney-advertising { margin-top: 0.5rem; font-style: italic; }

/* Responsive */
@media (max-width: 1024px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  .header-main .container { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; width: 100%; background: var(--white); position: absolute; top: 100%; left: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  .nav-menu.active { display: flex; }
  .nav-menu a { border-bottom: none; border-left: 3px solid transparent; }
  .nav-item-has-children > a::after { content: " ▶"; }
  .nav-submenu {
    position: static;
    display: none;
    box-shadow: none;
    background: var(--cream);
    margin-left: 1rem;
    border-left: 2px solid var(--gold);
    padding-left: 0.5rem;
  }
  .nav-item-has-children.active .nav-submenu {
    display: block;
  }
  .nav-submenu a {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .breadcrumbs { margin-bottom: 1.5rem; }
  .related-resources { margin-top: 2rem; }
}
