/*
Theme Name: R.K. Poddar & Associates
Theme URI: #
Author: R.K. Poddar & Associates
Author URI: #
Description: Professional legal services website for R.K. Poddar & Associates
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rkpoddar
Domain Path: /languages
*/

/* =============================================
   RESET & BASE STYLES
   ============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #1a2847;
  --secondary-dark: #2d3e50;
  --ivory: #f5f1e8;
  --white: #ffffff;
  --gold: #d4af37;
  --gold-light: #e8d4a8;
  --text-dark: #2c3e50;
  --text-light: #f5f1e8;
  --border-color: #e0e0e0;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: var(--primary-dark);
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--primary-dark);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.site-header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}

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

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  width: 50px;
  height: 50px;
  background-color: var(--primary-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.5rem;
}

.site-title {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 0;
}

.site-title small {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

nav a:hover:after {
  width: 100%;
}

.header-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-phone {
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(26, 40, 71, 0.8), rgba(26, 40, 71, 0.8)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231a2847" width="1200" height="800"/><path fill="%23d4af37" opacity="0.1" d="M0,200 Q300,100 600,200 T1200,200 L1200,800 L0,800 Z"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  animation: slideUp 1s ease-out;
}

.hero h1 {
  color: var(--gold);
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: var(--ivory);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   SECTIONS
   ============================================= */
section {
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

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

.section-header p {
  color: var(--text-dark);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  background-color: var(--ivory);
}

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

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-meta {
  background-color: var(--white);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
  margin: 2rem 0;
}

.about-meta p {
  margin: 0.5rem 0;
  font-weight: 600;
}

/* =============================================
   PRACTICE AREAS
   ============================================= */
.practice-areas {
  background-color: var(--white);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.practice-card {
  background-color: var(--ivory);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.practice-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.practice-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-card h3 {
  margin-bottom: 1rem;
}

.practice-card p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-choose {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  color: var(--white);
}

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

.why-choose .section-header h2:after {
  background-color: var(--gold);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background-color: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-item h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

/* =============================================
   CONSULTATION BANNER
   ============================================= */
.consultation-banner {
  background: linear-gradient(rgba(26, 40, 71, 0.85), rgba(26, 40, 71, 0.85)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231a2847" width="1200" height="400"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.consultation-banner h2 {
  color: var(--gold);
  margin-bottom: 2rem;
}

.consultation-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.consultation-actions a {
  color: var(--white);
}

/* =============================================
   EXPERIENCE TIMELINE
   ============================================= */
.experience {
  background-color: var(--ivory);
}

.experience-content {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  background-color: var(--white);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  position: relative;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -13px;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: var(--gold);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--gold);
}

.timeline-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--ivory);
  padding: 3rem 20px 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-section h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

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

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--ivory);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.7);
}

/* =============================================
   MOBILE BOTTOM BAR
   ============================================= */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  border-top: 2px solid var(--gold);
  z-index: 999;
  padding: 10px;
}

.mobile-bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  transition: var(--transition);
}

.mobile-bottom-bar a:hover {
  color: var(--white);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .about-wrapper {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--primary-dark);
    padding: 1rem 0;
    display: none;
  }

  nav.active {
    display: flex;
  }

  nav a {
    color: var(--white);
    padding: 0.5rem 1rem;
    text-align: left;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-cta {
    gap: 0.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  section {
    padding: 50px 20px;
  }

  .mobile-bottom-bar {
    display: flex;
    gap: 0;
  }

  body {
    padding-bottom: 80px;
  }

  .consultation-actions {
    gap: 1rem;
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .hero h1 {
    font-size: 2rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  nav {
    top: calc(100% + 5px);
  }
}
