/*
Theme Name: Ravinder Singh Dhull - Advocate
Theme URI: https://ravindersinghdhull.net
Author: Ravinder Singh Dhull
Author URI: https://ravindersinghdhull.net
Description: Professional WordPress theme for Advocate Ravinder Singh Dhull. Navy & gold design with bilingual (English/Hindi) support. Optimized for legal practice websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rsd-theme
Tags: legal, advocate, bilingual, one-column, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --gold: #C8A96E;
  --gold-light: #E8D5A8;
  --gold-dark: #9A7B3F;
  --navy: #1A1F3A;
  --navy-deep: #0E1225;
  --navy-light: #2A3156;
  --cream: #FAF6EE;
  --cream-dark: #EDE5D4;
  --text-dark: #1A1A2E;
  --text-body: #3A3A4A;
  --text-light: #6B6B7B;
  --white: #FFFFFF;
  --red-accent: #8B2020;
  --green-accent: #2D5A27;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', 'Noto Sans Devanagari', -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Noto Sans Devanagari', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

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

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--navy-deep);
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--gold); }
.top-bar .contact-strip {
  display: flex;
  gap: 24px;
  align-items: center;
}
.top-bar .contact-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-text .title {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Main Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 20px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  border-top: 2px solid var(--gold);
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu a {
  padding: 12px 20px;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  margin: 6px 0;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION (Front Page)
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.15;
}
.hero h1 .gold { color: var(--gold); }
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  font-weight: 300;
}
.hero .hindi-text {
  font-family: 'Noto Sans Devanagari', sans-serif;
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 40px;
  opacity: 0.85;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(200,169,110,0.2);
}
.hero-stats .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 700;
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
  color: var(--navy);
}
.btn-outline {
  border: 1.5px solid rgba(200,169,110,0.5);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(200,169,110,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section { padding: 80px 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-alt { background: var(--cream-dark); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-header .overline {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}
.section-navy .section-header h2 { color: var(--white); }
.section-navy .section-header p { color: rgba(255,255,255,0.65); }
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* ============================================
   PRACTICE AREAS / SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   BLOG / POSTS GRID
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-card .thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card .content {
  padding: 24px;
}
.post-card .meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-card .meta .cat {
  color: var(--gold-dark);
  font-weight: 600;
}
.post-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.post-card h3 a {
  color: var(--text-dark);
}
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card .excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}
.post-card .read-more {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card .read-more:hover { color: var(--gold); }

/* ============================================
   SINGLE POST / PAGE CONTENT
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
}
.page-header .breadcrumbs {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}
.page-header .breadcrumbs a { color: var(--gold-light); }

.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-area h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--navy);
}
.content-area h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--navy-light);
}
.content-area p {
  margin-bottom: 20px;
  line-height: 1.8;
}
.content-area ul, .content-area ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.content-area li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.content-area blockquote {
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 30px 0;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}
.content-area table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.content-area th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
}
.content-area td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.92rem;
}
.content-area tr:nth-child(even) { background: var(--cream); }

/* Post Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid var(--cream-dark);
}
.post-nav a {
  font-size: 0.88rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ============================================
   SIDEBAR
   ============================================ */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
.sidebar .widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.06);
}
.sidebar .widget-title {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.sidebar .widget ul {
  list-style: none;
}
.sidebar .widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.9rem;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li a { color: var(--text-body); }
.sidebar .widget li a:hover { color: var(--gold-dark); }

/* ============================================
   CONTACT SECTION / CTA
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 30px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.contact-card .icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.contact-card h4 {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.contact-card p, .contact-card a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-about .footer-logo .name {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-about p {
  font-size: 0.88rem;
  line-height: 1.7;
}
.site-footer h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: all var(--transition);
}
.site-footer li a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--gold-light); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--cream-dark);
  color: var(--text-body);
  transition: all var(--transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.84rem; color: var(--text-light); text-align: center; padding: 8px 0; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }

/* Comments */
.comments-area { margin-top: 60px; padding-top: 40px; border-top: 2px solid var(--cream-dark); }
.comment-list { list-style: none; }
.comment-body { padding: 20px; margin-bottom: 20px; background: var(--cream); border-radius: var(--radius); }
.comment-author { font-weight: 600; color: var(--navy); }
.comment-meta { font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px; }
.reply a { font-size: 0.82rem; color: var(--gold-dark); font-weight: 600; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .main-nav .sub-menu {
    position: static;
    border-top: none;
    padding-left: 20px;
  }
  .top-bar .contact-strip { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .cta-group { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .post-nav { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-stats .stat-number { font-size: 1.6rem; }
}
