@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --primary-color: #7f1d1d; /* Deep Crimson */
  --primary-hover: #991b1b;
  --secondary-color: #1c1917; /* Off-black */
  --accent-color: #b45309; /* Warm Gold */
  --accent-light: #d97706;
  --text-dark: #1c1917;
  --text-light: #78716c;
  --bg-light: #fafaf9; /* Cream/Warm Gray */
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
  --radius-sm: 2px; /* Professional, sharp edges */
  --radius-md: 4px;
}

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

body.defense-body {
  font-family: 'Lora', serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
}

/* Top bar */
.top-bar {
  background-color: var(--secondary-color);
  color: #d6d3d1;
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 2px solid var(--accent-color);
}

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

.phone-link {
  color: var(--bg-light);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phone-link:hover {
  color: var(--accent-light);
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid #e7e5e4;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-monogram {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bg-light);
  background-color: var(--primary-color);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent-color);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav .nav-list a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.header-nav .nav-list a:hover {
  color: var(--accent-color);
}

.header-nav .nav-list a.nav-cta {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1.25rem;
  transition: all 0.25s ease;
}

.header-nav .nav-list a.nav-cta:hover {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #1c1917 0%, #3a0d0d 100%);
  color: var(--bg-light);
  padding: 6rem 1.5rem;
  border-bottom: 3px solid var(--accent-color);
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  border-bottom: 2px solid var(--accent-color);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  max-width: 850px;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #d6d3d1;
  max-width: 700px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-light);
  border: 1px solid var(--accent-color);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--bg-white);
  background-color: rgba(255,255,255,0.05);
}

/* Layout Grid */
.main-content-wrapper {
  max-width: 1200px;
  margin: 4.5rem auto;
  padding: 0 1.5rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

/* Content Area */
.content-area {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e7e5e4;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e7e5e4;
  padding-bottom: 1.5rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.article-content {
  font-size: 1.1rem;
  color: #292524;
}

.article-content p {
  margin-bottom: 1.75rem;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin: 3rem 0 1.25rem 0;
  color: var(--primary-color);
  border-bottom: 1px solid #e7e5e4;
  padding-bottom: 0.5rem;
}

/* Sidebar */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-widget {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e7e5e4;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Consultation Widget */
.quote-widget {
  border-top: 3px solid var(--primary-color);
  background-color: #fafaf9;
}

.quote-widget p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.sidebar-form .form-group {
  margin-bottom: 1.25rem;
}

.sidebar-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: var(--secondary-color);
}

.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d6d3d1;
  border-radius: var(--radius-sm);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  background-color: var(--bg-white);
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(127, 29, 29, 0.1);
}

.btn-submit {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-light);
  border: 1px solid var(--accent-color);
  padding: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-submit:hover {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

/* Recent Posts widget */
.links-widget ul {
  list-style: none;
}

.links-widget ul li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f5f5f4;
}

.links-widget ul li:last-child {
  border-bottom: none;
}

.links-widget ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  display: block;
}

.links-widget ul li a:hover {
  color: var(--accent-color);
  padding-left: 0.25rem;
}

/* Footer */
.site-footer {
  background-color: var(--secondary-color);
  color: #a8a29e;
  padding: 5rem 1.5rem 2.5rem 1.5rem;
  margin-top: 6rem;
  border-top: 3px solid var(--accent-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--bg-light);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.8;
}

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

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

.footer-col ul li a {
  color: #a8a29e;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--accent-light);
}

.disclaimer-text {
  font-size: 0.75rem !important;
  line-height: 1.6;
  color: #78716c;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #44403c;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #78716c;
}

/* Responsive */
@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}

/* ==========================================
   Link Directory Styling
   ========================================== */
.directory-container {
  margin-top: 2rem;
}

.directory-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.search-box {
  flex: 1;
}

.directory-search {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}

.directory-search:focus {
  outline: none;
  border-color: #7f1d1d;
  box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.1);
}

.submit-listing-btn {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-listing-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(127, 29, 29, 0.2);
}

.directory-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
}

.directory-categories h3 {
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
  color: #7f1d1d;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0.5rem;
}

.directory-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.directory-categories li {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #4b5563;
}

.directory-categories li:hover {
  background-color: #f8fafc;
  color: #7f1d1d;
}

.directory-categories li.active {
  background-color: #7f1d1d;
  color: #fff;
  font-weight: 600;
}

.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.listing-card {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.listing-card:hover {
  border-color: #b45309;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.listing-title {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  margin: 0;
}

.listing-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.listing-title a:hover {
  color: #7f1d1d;
}

.listing-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #fef3c7;
  color: #b45309;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.listing-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.listing-footer {
  font-size: 0.85rem;
  color: #94a3b8;
}

.listing-link-text {
  color: #7f1d1d;
  font-weight: 500;
}

.no-listings {
  padding: 3rem;
  text-align: center;
  background-color: #f8fafc;
  border-radius: 8px;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.directory-modal {
  background-color: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  color: #7f1d1d;
  font-size: 1.4rem;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #475569;
}

.directory-form {
  padding: 1.5rem;
}

.directory-form .form-group {
  margin-bottom: 1.25rem;
}

.directory-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.directory-form input,
.directory-form textarea,
.directory-form select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #f8fafc;
}

.directory-form input:focus,
.directory-form textarea:focus,
.directory-form select:focus {
  outline: none;
  border-color: #7f1d1d;
  background-color: #fff;
}

.captcha-group input {
  max-width: 150px;
}

.btn-submit {
  width: 100%;
  padding: 0.8rem;
  border-radius: 6px;
  background-color: #7f1d1d;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #991b1b;
}

.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

@media (max-width: 768px) {
  .directory-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .directory-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .submit-listing-btn {
    text-align: center;
  }
}

/* ==========================================
   Contact Page Form Styling
   ========================================== */
.contact-form-container {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-page-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-page-form .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact-page-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
  text-align: left;
}

.contact-page-form input,
.contact-page-form select,
.contact-page-form textarea {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.contact-page-form input:focus,
.contact-page-form select:focus,
.contact-page-form textarea:focus {
  outline: none;
  border-color: #7f1d1d;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(127, 29, 29, 0.08);
}

.privilege-disclaimer {
  font-size: 0.85rem;
  color: #64748b;
  background-color: #f1f5f9;
  border-left: 4px solid #7f1d1d;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: left;
}

.btn-submit-large {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(127, 29, 29, 0.2);
}

@media (max-width: 600px) {
  .contact-page-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================
   Standalone Directory Form Styling
   ========================================== */
.directory-form-container {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.directory-form-container .directory-form {
  padding: 0;
}
