/* TAI Lawyers - Clean Professional Stylesheet */
/* Theme Colors: #EE1C25 (Red) & #F6821F (Orange) */

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

:root {
  /* Clean Background Palette */
  --bg-main: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-dark: #121620;

  /* Accent Colors */
  --color-red: #EE1C25;
  --color-red-hover: #D0141C;
  --color-orange: #F6821F;
  --color-orange-hover: #D96F15;
  --color-gold-text: #D4A017;

  /* Text & Border */
  --text-heading: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --border-gold: rgba(246, 130, 31, 0.4);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.07);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* Typography */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.text-red { color: var(--color-red); }
.text-orange { color: var(--color-orange); }

/* Layout Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

/* Header Navbar */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 62px;
  width: auto;
  max-width: 380px;
  display: block;
  transition: var(--transition);
}

.logo-brand:hover .brand-logo-img {
  transform: scale(1.02);
}

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

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--color-red);
  transition: var(--transition);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
}

.btn-header {
  background: #111827;
  color: #FFFFFF;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid #111827;
}

.btn-header:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #FFFFFF;
}

.btn-red {
  background: var(--color-red);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(238, 28, 37, 0.22);
}

.btn-red:hover {
  background: var(--color-red-hover);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-orange {
  background: var(--color-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(246, 130, 31, 0.22);
}

.btn-orange:hover {
  background: var(--color-orange-hover);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-glass-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass-dark:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #FFFFFF;
}

/* Section Header */
.section-header {
  margin-bottom: 3rem;
}

.eyebrow-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 0.6rem;
  display: block;
}

.main-title {
  font-size: 3rem;
  color: var(--text-heading);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.accent-line-gold {
  width: 65px;
  height: 3px;
  background: var(--color-orange);
  margin-bottom: 1.2rem;
  border-radius: 2px;
}

.accent-line-red {
  width: 65px;
  height: 3px;
  background: var(--color-red);
  margin-bottom: 1.2rem;
  border-radius: 2px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Hero Section (Matching Reference Image 1) */
.hero-section {
  position: relative;
  padding: 5rem 0;
  background: url('../assets/hero_bg.png') center/cover no-repeat;
  border-bottom: 1px solid var(--border-light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(255, 255, 255, 0.94) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* PRACTICE AREAS SECTION (Matching Reference Image 3 - Comes IMMEDIATELY after Hero!) */
.practice-section {
  background: var(--bg-main);
  padding: 5rem 0;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
}

.practice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.practice-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-orange);
  transition: var(--transition);
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.practice-card:hover::before {
  width: 100%;
}

.practice-card-title {
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 0.8rem;
}

.practice-card-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.practice-card-link {
  color: var(--color-orange);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.practice-card-link:hover {
  color: var(--color-red);
  gap: 0.8rem;
}

/* READY TO SPEAK WITH A LAWYER? SECTION (Matching Reference Image 1) */
.speak-section {
  background: #FFFFFF;
  padding: 5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.speak-box-dark {
  background: #111827;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 3.5rem 3rem;
  text-align: center;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-md);
}

.speak-box-text {
  font-size: 1.2rem;
  color: #E5E7EB;
  max-width: 720px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* ABOUT US SECTION */
.about-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* FOOTER (Matching Reference Image 2) */
.footer {
  background: var(--bg-dark);
  color: #D1D5DB;
  padding: 5rem 0 2.5rem 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-img {
  height: 58px;
  width: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-tagline {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #9CA3AF;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1.5rem;
}

.footer-office-block {
  margin-bottom: 1.4rem;
}

.office-name {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.office-text {
  color: #9CA3AF;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--color-orange);
}

.footer-bottom-bar {
  border-top: 1px solid #1F2937;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #6B7280;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.8rem;
}

.footer-bottom-links a {
  color: #6B7280;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: #9CA3AF;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border-top: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  width: 92%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-md);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.3rem; }
  .main-title { font-size: 2.2rem; }
  .speak-box-dark { padding: 2.5rem 1.5rem; }
}
