/* ==========================================================================
   FAMOUS E-LAW (famouselaw.com) - Main Stylesheet
   Designed to replicate sresolutionlaw.com clean & elegant law firm style
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #8c1d20;
  --primary-hover: #6d1518;
  --secondary-color: #1c2d42;
  --dark-bg: #111111;
  --light-bg: #f8f9fa;
  --border-color: #e5e5e5;
  --text-dark: #222222;
  --text-muted: #666666;
  --text-light: #ffffff;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --transition-fast: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  margin-bottom: 15px;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Top Utility Bar & Main Header
   -------------------------------------------------------------------------- */
.top-utility-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 13px;
}

.top-utility-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact-info {
  display: flex;
  gap: 25px;
  align-items: center;
}

.top-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.top-contact-item i {
  color: var(--primary-color);
}

.top-phone-link {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-phone-link:hover {
  color: var(--primary-hover);
}

/* Navigation Bar */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 2px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary-color);
  font-weight: 600;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #333333;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-btn {
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

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

.nav-btn::after {
  display: none !important;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Split Grid Section (matching sresolutionlaw.com)
   -------------------------------------------------------------------------- */
.hero-split-section {
  background-color: var(--dark-bg);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  min-height: 480px;
  position: relative;
}

.hero-column {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.hero-column::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  transition: var(--transition-fast);
}

.hero-column:hover::after {
  background: rgba(0, 0, 0, 0.35);
}

/* Main Hero Box */
.hero-column-main {
  grid-column: span 1;
  background-image: url('assets/images/hero-bg.png');
  align-items: center;
  padding: 30px;
}

.hero-column-main::after {
  background: rgba(17, 17, 17, 0.88);
}

.hero-main-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 45px 25px;
  text-align: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.hero-main-content h1 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 2px;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 18px;
}

.hero-main-content p {
  font-size: 13px;
  color: #dddddd;
  margin-bottom: 25px;
  font-style: italic;
  line-height: 1.6;
}

.hero-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 22px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(140, 29, 32, 0.4);
}

.hero-column-title {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Background images for tiles */
.hero-column-2 {
  background-image: url('assets/images/civil-rights.png');
}

.hero-column-3 {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=800&q=80');
}

.hero-column-4 {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=800&q=80');
}

/* --------------------------------------------------------------------------
   Section Layouts & Intro
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 70px 0;
}

.intro-split-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
}

.intro-left-text h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 20px;
}

.intro-left-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 18px;
  text-align: justify;
}

.intro-left-text p strong {
  color: var(--text-dark);
}

.intro-right-sidebar {
  border-left: 1px solid var(--border-color);
  padding-left: 45px;
}

.sidebar-box h3 {
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.sidebar-item {
  margin-bottom: 22px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Practice Areas Banner
   -------------------------------------------------------------------------- */
.practice-areas-banner {
  background: linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.85)), 
              url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}

.practice-areas-banner h2 {
  font-size: 26px;
  letter-spacing: 3px;
  margin-bottom: 40px;
  color: #ffffff;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.practice-card {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 45px 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.practice-card-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.practice-card h3 {
  font-size: 16px;
  color: var(--text-dark);
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.read-more-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.read-more-btn:hover {
  background-color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Feature Rows (Alternating Layout)
   -------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid #f0f0f0;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-text h2 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 15px;
  text-align: justify;
}

.feature-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
  background-color: var(--light-bg);
  text-align: center;
  padding: 70px 0;
}

.testimonials-section h2 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 40px;
}

.quote-box {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 30px;
}

.quote-mark {
  font-size: 80px;
  line-height: 1;
  color: rgba(140, 29, 32, 0.15);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: -30px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.8;
  color: #444444;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   Contact Form Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 70px 0;
  background-color: #ffffff;
}

.contact-section-title {
  text-align: center;
  color: var(--text-dark);
  font-size: 24px;
  margin-bottom: 40px;
}

.contact-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-full {
  grid-column: span 2;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(140, 29, 32, 0.1);
}

textarea.form-control {
  height: 130px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  border-radius: 4px;
}

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

.contact-info-text h3 {
  color: var(--primary-color);
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

.contact-details-list {
  list-style: none;
}

.contact-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-dark);
}

.contact-details-list i {
  color: var(--primary-color);
  font-size: 16px;
  margin-top: 3px;
}

/* Success Message Alert */
.form-alert {
  padding: 12px 15px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  margin-bottom: 15px;
  display: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-wrapper {
  background-color: #1a1a1a;
  color: #999999;
  padding: 40px 0 20px 0;
  font-size: 13px;
  border-top: 3px solid var(--primary-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 20px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #888888;
  font-size: 13px;
  line-height: 1.6;
}

.footer-links h5 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #999999;
}

.footer-links ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.copyright-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
}

.copyright-text strong {
  color: #ffffff;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-fast);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Responsive Layout (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-split-section {
    grid-template-columns: 1fr 1fr;
  }
  
  .intro-split-layout {
    grid-template-columns: 1fr;
  }
  
  .intro-right-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
  }
  
  .practice-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .feature-row.reverse {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .contact-split-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-utility-bar {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--primary-color);
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-split-section {
    grid-template-columns: 1fr;
  }

  .hero-column {
    min-height: 250px;
  }

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

  .form-full {
    grid-column: span 1;
  }
  
  .copyright-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
