/* 
   Rana Pratap Associates - Premium Law Firm Website
   Style Guide
   Colors: Deep Navy, Ivory, Charcoal, Antique Gold
*/

:root {
  --deep-navy: #0B1B2B;
  --dark-navy: #13283D;
  --antique-gold: #B99555;
  --light-gold: #D6BB82;
  --ivory: #F7F4EE;
  --white: #FFFFFF;
  --text-dark: #18212B;
  --muted-text: #66717D;
  --border-light: #E0E0E0;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  --transition-smooth: all 0.3s ease-in-out;
  --radius-sm: 4px;
  --radius-md: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--deep-navy);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--antique-gold);
  transition: var(--transition-smooth);
}

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

ul {
  list-style: none;
}

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

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

/* BCI Disclaimer Modal */
.bci-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 27, 43, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.bci-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.bci-modal {
  background-color: var(--white);
  max-width: 700px;
  width: 100%;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  text-align: left;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  border-top: 4px solid var(--antique-gold);
}

.bci-modal-overlay.show .bci-modal {
  transform: translateY(0);
}

.bci-modal h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--deep-navy);
}

.bci-modal p {
  color: var(--muted-text);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.bci-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: flex-end;
}

/* Typography Utility */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--deep-navy);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-text);
  margin-bottom: 3rem;
  max-width: 700px;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--antique-gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(185, 149, 85, 0.3);
}

.btn-primary:hover {
  background-color: var(--light-gold);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(185, 149, 85, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--deep-navy);
  border-color: var(--deep-navy);
}

.btn-secondary:hover {
  background-color: var(--deep-navy);
  color: var(--white);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--antique-gold);
  border-color: var(--antique-gold);
}

.btn-outline-gold:hover {
  background-color: var(--antique-gold);
  color: var(--white);
}

/* Header & Nav */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  transition: padding 0.3s ease;
}

.logo a {
  display: flex;
  flex-direction: column;
  color: var(--deep-navy);
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted-text);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.desktop-nav a.nav-link {
  color: var(--deep-navy);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

nav.desktop-nav a.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--antique-gold);
  transition: var(--transition-smooth);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  font-weight: 600;
  color: var(--deep-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link:hover {
  color: var(--antique-gold);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--deep-navy);
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 0 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
  
  /* Smooth Slide In */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu.active {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  padding: 24px;
}

.mobile-menu a {
  font-size: 1.1rem;
  color: var(--deep-navy);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  display: block;
}

/* Hero Section */
.hero {
  background-color: var(--deep-navy);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(11,27,43,0.95) 0%, rgba(11,27,43,0.7) 100%), url('assets/images/hero.jpg');
  background-size: cover;
  background-position: center right;
  background-attachment: scroll;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 500px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  color: var(--ivory);
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Sections General */
section {
  padding: 100px 0;
}

.bg-ivory { background-color: var(--ivory); }
.bg-white { background-color: var(--white); }
.bg-navy { background-color: var(--deep-navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* Intro / Trust Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--muted-text);
}

.intro-accent {
  width: 60px;
  height: 3px;
  background-color: var(--antique-gold);
  margin-bottom: 32px;
}

.intro-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.intro-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.intro-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Practice Areas */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.practice-card {
  background-color: var(--white);
  padding: 40px 32px;
  border-top: 3px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.practice-card:hover {
  border-top-color: var(--antique-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.practice-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--antique-gold);
  margin-bottom: 16px;
  opacity: 0.7;
}

.practice-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.practice-card p {
  color: var(--muted-text);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Why Choose Us */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.principle-item {
  display: flex;
  gap: 24px;
}

.principle-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(185, 149, 85, 0.1);
  color: var(--antique-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.principle-content h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* Presence / Locations */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.location-card {
  background-color: var(--ivory);
  padding: 40px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--antique-gold);
  transition: var(--transition-smooth);
}

.location-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.location-card h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Contact Section */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.contact-form {
  background-color: var(--white);
  padding: 48px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 24px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--antique-gold);
  box-shadow: 0 0 0 3px rgba(185, 149, 85, 0.1);
}

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

/* Footer */
footer {
  background-color: var(--dark-navy);
  color: var(--white);
  padding: 80px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--antique-gold);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--antique-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Page Header */
.page-header {
  background-color: var(--deep-navy);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  background-image: linear-gradient(rgba(11,27,43,0.9), rgba(11,27,43,0.9)), url('assets/images/about.jpg');
  background-size: cover;
  background-position: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 16px;
}

/* SEO content block */
.seo-block {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-top: 60px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.seo-block h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.seo-block p {
  color: var(--muted-text);
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
  .desktop-nav, .nav-cta { display: none !important; }
  .hamburger { display: block; }

  .hero h1 { font-size: 3.2rem; }
  .intro-grid, .location-grid, .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 15px 20px !important; }

  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; margin-bottom: 30px; }
  .hero { padding: 80px 0 60px; background-position: center; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; display: block; }
  
  section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  
  .principles-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .intro-grid { gap: 40px; }
  
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 32px 24px; }
  
  .page-header { padding: 100px 0 60px; }
  .page-header h1 { font-size: 2.25rem; }
  
  .bci-modal {
    padding: 24px;
    margin: 16px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
  }
  .bci-modal-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .bci-modal-buttons .btn { width: 100%; text-align: center; }
  
  .practice-grid { grid-template-columns: 1fr; gap: 24px; }
  .practice-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .header-inner { padding: 15px 20px; }
  .logo-main { font-size: 1.3rem; }
  .logo-sub { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
