/* ===================================
   Law Offices of Joseph Rabanipour PLLC
   Luxury Real Estate Law Website
   =================================== */

:root {
  --navy: #0B2242;
  --gold: #D4AF37;
  --gold-light: #F4E5B8;
  --white: #FFFFFF;
  --gray-light: #F8F9FA;
  --gray-dark: #6C757D;
  --shadow-lg: 0 20px 60px rgba(11, 34, 66, 0.3);
  --shadow-xl: 0 30px 90px rgba(11, 34, 66, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }

.gold-accent {
  color: var(--gold);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand img {
  height: 100px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--navy) !important;
  margin: 0 1.5rem;
  font-size: 1.05rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

.navbar-nav .nav-link:hover {
  color: var(--gold) !important;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 34, 66, 0.85), rgba(11, 34, 66, 0.65));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  transform: scale(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-weight: 600;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  background: #c19b2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  color: var(--navy);
}

/* Section Styling */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title .lead {
  color: #666;
  font-size: 1.1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* Practice Areas Cards */
.practice-card {
  background: var(--white);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(11, 34, 66, 0.08);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border-color: var(--gold);
}

.practice-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.practice-card:hover .practice-icon {
  transform: scale(1.05);
}

.practice-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.practice-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}

/* Why Choose Section */
.why-choose {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5a 100%);
  color: var(--white);
}

.why-choose .section-title,
.why-choose .section-title h2 {
  color: var(--white);
}

.why-choose .section-title .lead {
  color: rgba(255, 255, 255, 0.85);
}

.feature-box {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.feature-box h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.feature-box p {
  color: rgba(255,255,255,0.85);
}

/* About Page - Split Layout */
.about-hero {
  background: linear-gradient(135deg, rgba(11, 34, 66, 0.92), rgba(11, 34, 66, 0.82)),
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
  color: var(--white);
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}

.about-split {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 5rem;
  align-items: start;
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow-xl);
  border: 5px solid var(--gold);
}

.about-hero h1,
.about-hero h2,
.about-hero h3 {
  color: var(--white);
}

.about-content h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.about-content h2 {
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: #555;
}

.credentials {
  background: var(--gray-light);
  padding: 2rem;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  margin-top: 2rem;
}

.credentials h4 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.credentials ul {
  list-style: none;
}

.credentials li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.credentials li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Thank You page hero (full-width, no half-image seam) */
.thankyou-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 110px;
  background: linear-gradient(135deg, rgba(11, 34, 66, 0.93), rgba(11, 34, 66, 0.82)),
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
}

.thankyou-hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.thankyou-hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.thankyou-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .thankyou-hero h1 { font-size: 2.25rem; }
  .thankyou-hero .lead { font-size: 1.05rem; }
}

/* About sidebar: photo + credentials stacked (About page) */
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-sidebar .credentials {
  margin-top: 0;
}

/* Contact Page - Glass Morphism */
.contact-hero {
  position: relative;
  min-height: auto;
  padding: 150px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=1920') center/cover fixed;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 34, 66, 0.85), rgba(11, 34, 66, 0.75));
}

.glass-container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
}

.glass-container h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.glass-container p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.contact-info {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--gold);
  margin-right: 1rem;
  width: 30px;
}

.contact-info-item a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: var(--gold);
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  outline: none;
}

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

/* Footer */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer-credit {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-credit a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 991px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .navbar-brand img {
    height: 70px;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .glass-container {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .navbar-brand img {
    height: 60px;
  }
  
  .practice-card {
    margin-bottom: 1.5rem;
  }
  
  .btn-gold {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .glass-container {
    padding: 1.5rem 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  section {
    padding: 40px 0;
  }
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  height: 100%;
}

.testimonial-stars {
  color: var(--gold);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
}

/* Contact Page Fixes */
.contact-section {
  padding: 175px 0 80px;
  background: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=1920') center/cover fixed;
  position: relative;
  min-height: calc(100vh - 80px);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 34, 66, 0.88), rgba(11, 34, 66, 0.78));
  z-index: 1;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.map-section {
  padding: 0;
  margin-top: 0;
}

/* Touch devices: 'fixed' backgrounds render zoomed/misaligned on iOS.
   Use scroll + cover so every background image fits correctly at any size. */
@media (max-width: 991px) {
  .contact-section,
  .contact-hero {
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }
}

/* Service Items (About Page) */
.service-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.service-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.service-item p {
  margin-bottom: 0;
  color: #666;
  font-size: 0.95rem;
}

.text-gold {
  color: var(--gold);
}

/* Service detail lists (Services page) */
.service-list {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.service-list li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: #555;
  font-size: 0.97rem;
}

.service-list li::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Left-aligned practice cards (Services page) */
.practice-card.text-start h3,
.practice-card.text-start p,
.practice-card.text-start .practice-icon {
  text-align: left;
}

/* FAQ Accordion */
.accordion-item {
  border: 1px solid rgba(11, 34, 66, 0.1);
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.accordion-button {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  color: var(--navy);
  background: var(--gold-light);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
}

.accordion-button:not(.collapsed)::after {
  filter: sepia(1) saturate(5) hue-rotate(5deg);
}

.accordion-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #555;
  background: var(--white);
}
