/*
Theme Name: Rafay Asim & Co Pro
Theme URI: http://example.com/
Author: AI Assistant
Description: Professional Law Firm Theme with full templates (Home, About, Services, Contact, People).
Version: 2.1
Text Domain: rafay-asim
*/

/* --- Reset & Variables --- */
:root {
  --primary-color: #C8102E;
  --primary-hover: #a00d24;
  --dark-bg: #0b0b0b;
  --card-black: #141414;
  --light-bg: #141414;
  --text-dark: #ffffff;
  --text-light: #b0b0b0;
  --border-color: #262626;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--dark-bg); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 15px; color: #fff; }
a { color: var(--primary-color); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 14px 30px; font-size: 13px; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; letter-spacing: 1px; border-radius: 2px; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-dark { background: #1a1a1a; color: #fff; border: 1px solid var(--border-color); }
.btn-dark:hover { background: #262626; color: #fff; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* --- Preloader --- */
/* #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 999999; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #000; transition: opacity 0.5s ease; }
.preloader-logo-wrap { max-width: 380px; width: 90%; margin-bottom: 25px; text-align: center; }
.preloader-img { width: 100%; height: auto; animation: fadeInDown 1s ease; }
.preloader-text { font-size: 10px; letter-spacing: 4px; color: #888; animation: pulse 1.5s infinite; text-transform: uppercase; margin-top: 15px; }
@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } } */

/* --- High-End Professional Preloader --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #141414 0%, #080808 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  width: 85%;
}

.preloader-logo-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
}

.preloader-img {
  width: 100%;
  height: auto;
  opacity: 0;
  animation: luxuryReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

/* Sleek Minimalist Progress Line */
.preloader-bar {
  width: 100px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.preloader-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: lineShimmer 2s ease-in-out infinite;
}

.preloader-text {
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-left: 6px; /* Balance letter-spacing visual alignment */
  animation: textFade 2s ease-in-out infinite alternate;
}

/* --- Keyframe Animations --- */
@keyframes luxuryReveal {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineShimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

@keyframes textFade {
  0% {
    opacity: 0.35;
  }
  100% {
    opacity: 0.75;
  }
}


/* --- Header --- */
.site-header { padding: 15px 0; border-bottom: 1px solid var(--border-color); background: rgba(14, 14, 14, 0.98); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* 
  UPDATED: Removed `.brand-logo-img` styles since the image logo is replaced by text.
  Adjusted `.site-branding` layout to support clear text alignment.
*/
.site-branding { display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.site-branding .brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; letter-spacing: 1.5px; color: #fff; }
.brand-sub { font-size: 9.5px; letter-spacing: 1px; color: var(--text-light); text-transform: uppercase; }

.main-navigation ul { display: flex; gap: 30px; align-items: center; }
.main-navigation a { color: #fff; font-size: 0.85rem; text-transform: uppercase; font-weight: 500; letter-spacing: 1px; }
.main-navigation a:hover { color: var(--primary-color); }

/* --- Page Heroes --- */
.page-hero { background: linear-gradient(rgba(11, 11, 11, 0.8), rgba(11, 11, 11, 0.85)), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&q=80&w=1920') center/cover; color: #fff; padding: 120px 0; text-align: center; }
.page-hero h1 { font-size: 48px; color: #fff; margin-bottom: 10px; }
.page-hero .breadcrumb { font-size: 13px; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }

/* --- Home Hero --- */
.home-hero { background: linear-gradient(180deg, rgba(11, 11, 11, 0.75) 0%, rgba(11, 11, 11, 0.92) 100%), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&q=80&w=1920') center/cover; padding: 180px 0 140px; color: #fff; }
.home-hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: #fff; max-width: 700px; }
.home-hero h1 span { color: var(--primary-color); }
.home-hero p { font-size: 1.1rem; max-width: 550px; margin-bottom: 30px; color: var(--text-light); }

/* --- Stats Bar --- */
.stats-bar { background: var(--card-black); color: #fff; padding: 30px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item { border-right: 1px solid var(--border-color); padding-right: 20px; }
.stat-item:last-child { border: none; }
.stat-item span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 5px; }
.stat-item span i { color: var(--primary-color); font-size: 14px; }
.stat-item strong { font-size: 1.6rem; font-family: var(--font-heading); color: #fff; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--card-black); border: 1px solid var(--border-color); padding: 40px 30px; transition: 0.3s; }
.service-card:hover { border-color: var(--primary-color); transform: translateY(-5px); }
.service-icon { font-size: 36px; color: var(--primary-color); margin-bottom: 20px; }
.service-card h4, .service-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: #fff; font-family: var(--font-heading); }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

.services-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* --- Additional Services --- */
.additional-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.add-service-card { background: var(--card-black); border: 1px solid var(--border-color); padding: 30px; display: flex; align-items: center; gap: 20px; }
.add-service-card i { font-size: 32px; color: var(--primary-color); }
.add-service-card h4 { margin: 0; font-size: 16px; color: #fff; font-family: var(--font-body); }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h3 { font-size: 28px; line-height: 1.4; margin-bottom: 20px; color: #fff; }
.about-content p { color: var(--text-light); margin-bottom: 20px; }
.about-date { font-weight: bold; color: #fff; font-size: 16px; margin-top: 30px; display: block; border-left: 3px solid var(--primary-color); padding-left: 15px; }
.about-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; border-top: 1px solid var(--border-color); padding-top: 60px; }
.feature-box { text-align: center; }
.feature-box i { font-size: 30px; color: var(--primary-color); margin-bottom: 15px; }
.feature-box h5 { font-size: 16px; margin-bottom: 10px; color: #fff; }
.feature-box p { font-size: 13px; color: var(--text-light); }

/* --- CTA Banner --- */
.cta-banner { background: var(--card-black); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); color: #fff; padding: 50px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; }
.cta-inner h3 { color: #fff; margin: 0 0 5px; }
.cta-inner p { color: var(--text-light); margin: 0; }

/* --- Contact Section --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info-block { margin-bottom: 30px; display: flex; gap: 20px; }
.contact-info-block i { color: var(--primary-color); font-size: 24px; margin-top: 5px; }
.contact-info-block h4 { margin-bottom: 5px; font-size: 18px; color: #fff; }
.contact-info-block p { color: var(--text-light); font-size: 15px; }

/* Contact Form */
.custom-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: 1 / -1; }
.custom-form input, .custom-form textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); background: var(--card-black); color: #fff; font-family: var(--font-body); font-size: 14px; outline: none; }
.custom-form input:focus, .custom-form textarea:focus { border-color: var(--primary-color); }
.custom-form textarea { height: 150px; resize: vertical; }

.linkedin-banner { background: var(--card-black); border: 1px solid var(--border-color); color: #fff; padding: 40px; margin-top: 60px; display: flex; justify-content: space-between; align-items: center; }
.linkedin-banner h3 { color: #fff; margin-bottom: 5px; }
.linkedin-banner p { color: var(--text-light); margin: 0; font-size: 14px; }
.linkedin-banner i { font-size: 40px; color: #0077b5; }

/* --- People Section --- */
/* .people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.person-card { text-align: center; background: var(--card-black); padding-bottom: 30px; border: 1px solid var(--border-color); }
.person-img { width: 100%; height: 350px; object-fit: cover; margin-bottom: 20px; border-bottom: 3px solid var(--primary-color); }
.person-card h3 { font-size: 20px; margin-bottom: 5px; color: #fff; }
.person-card p { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.person-card a { color: #0077b5; font-size: 20px; } */
/* --- People Section (Updated for 4 columns & no images) --- */
.people-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px; 
}

.person-card { 
  text-align: center; 
  background: var(--card-black); 
  padding: 40px 20px 30px; /* Added top padding to balance out the missing image */
  border: 1px solid var(--border-color); 
  border-top: 3px solid var(--primary-color); /* Added top accent border for a clean look */
}

.person-card h3 { 
  font-size: 20px; 
  margin-bottom: 5px; 
  color: #fff; 
}

.person-card p { 
  font-size: 13px; 
  color: var(--text-light); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 20px; 
}

.person-card a { 
  color: #0077b5; 
  font-size: 20px; 
}
.quote-section { text-align: center; padding: 80px 0 40px; max-width: 800px; margin: 0 auto; }
.quote-section i { font-size: 30px; color: #444; margin-bottom: 20px; }
.quote-section blockquote { font-family: var(--font-heading); font-size: 24px; font-style: italic; color: #fff; margin-bottom: 20px; }

/* --- Footer --- */
.site-footer { background: var(--card-black); color: var(--text-light); padding: 80px 0 30px; border-top: 1px solid var(--border-color); }
.footer-widgets { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-widget h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; }
.footer-widget ul li { margin-bottom: 12px; font-size: 14px; }
.footer-widget a { color: var(--text-light); }
.footer-widget a:hover { color: #fff; }
.site-info { text-align: center; border-top: 1px solid var(--border-color); padding-top: 30px; font-size: 13px; color: var(--text-light); }

/* Mobile Responsive */
@media (max-width: 991px) {
  .stats-inner, .services-grid, .services-grid-3, .about-grid, .about-features, .contact-grid, .people-grid { grid-template-columns: 1fr; }
  .additional-services { grid-template-columns: 1fr; }
  .custom-form { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .main-navigation { display: none; }
  .home-hero h1 { font-size: 2.5rem; }
}