/* ==========================================================================
   Farjad & Brothers — Main Stylesheet
   Brand: Real Estate, Construction & Home Services (Karachi, Pakistan)
   Colors: Navy Blue (#1A2A44), Premium Orange (#F58220), White (#FFFFFF)
   Fonts: 'Poppins' (Headings), 'Open Sans' (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Theming --- */
:root {
  --primary-navy: #1A2A44;
  --secondary-navy: #243859;
  --dark-navy: #111D30;
  --primary-orange: #F58220;
  --orange-hover: #D96F13;
  --orange-light: rgba(245, 130, 32, 0.12);
  --white: #FFFFFF;

  /* Default / Light Theme */
  --bg-body: #F8FAFD;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F0F4FA;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  --shadow-sm: 0 4px 12px rgba(26, 42, 68, 0.05);
  --shadow-md: 0 10px 30px rgba(26, 42, 68, 0.08);
  --shadow-lg: 0 18px 45px rgba(26, 42, 68, 0.12);
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-shadow: 0 4px 20px rgba(26, 42, 68, 0.08);
  --footer-bg: #111D30;
  --footer-text: #CBD5E1;
  --transition-speed: 0.3s;
}

body.dark-mode {
  --bg-body: #0C1420;
  --bg-surface: #142033;
  --bg-surface-alt: #1A2A44;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --border-color: #273A56;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(12, 20, 32, 0.96);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --footer-bg: #080D15;
  --footer-text: #94A3B8;
}

/* --- Reset & Global Defaults --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

ul {
  list-style: none;
}

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

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

.section-padding {
  padding: 90px 0;
}




/* --- Common Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 55px;
}

.badge-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--orange-light);
  color: var(--primary-orange);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-speed) ease;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(245, 130, 32, 0.35);
}

.btn-primary:hover {
  background-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 130, 32, 0.45);
}

.btn-outline {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-orange);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary-navy);
}

.btn-white:hover {
  background: var(--primary-orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Sticky Header & Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ye left aur right ko alag karega */
  height: 85px;
  position: relative; /* Ye zaroori hai center karne ke liye */
}
/* Logo (Geometric House FB Mark) */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #D96F13 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(245, 130, 32, 0.3);
  position: relative;
}

.logo-icon::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 5px solid var(--primary-orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.brand-name span {
  color: var(--primary-orange);
}

.brand-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  /* Absolute hata kar flexbox ka margin auto use karein */
  margin: 0 auto; 
}
.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-orange);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-orange);
}

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



.logo-image a img {
  width: 20%;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  /*margin-left: auto;*/
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
  background: var(--primary-orange);
  color: var(--white);
  border-color: var(--primary-orange);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Hero Section (Home) --- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(17, 29, 48, 0.94) 0%, rgba(26, 42, 68, 0.88) 100%),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.22) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(245, 130, 32, 0.18);
  border: 1px solid rgba(245, 130, 32, 0.4);
  color: #FFA552;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--primary-orange);
}

.hero-desc {
  font-size: 18px;
  color: #CBD5E1;
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Inner Page Banner */
.page-banner {
  background: linear-gradient(135deg, rgba(17, 29, 48, 0.95) 0%, rgba(26, 42, 68, 0.9) 100%),
              url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 90px 0;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 44px;
  color: var(--white);
  margin-bottom: 12px;
}

.page-banner p {
  color: #CBD5E1;
  font-size: 17px;
  max-width: 650px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 18px;
  font-size: 14px;
  color: var(--primary-orange);
}
.breadcrumb a {
  color: #CBD5E1;
}
.breadcrumb a:hover {
  color: var(--primary-orange);
}

/* --- Services Cards (Home & Services Page) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 35px 30px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--primary-orange);
  transition: width var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 130, 32, 0.4);
}

.service-card:hover::after {
  width: 100%;
}

.service-icon-box {
  width: 62px;
  height: 62px;
  background: var(--orange-light);
  color: var(--primary-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon-box {
  background: var(--primary-orange);
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  gap: 10px;
}

/* --- Why Choose Us Section --- */
.why-us-section {
  background-color: var(--bg-surface-alt);
}

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

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-orange);
}

.feature-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.feature-box h4 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --- Testimonials Slider --- */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonial-slider-container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 40px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stars {
  color: #F59E0B;
  font-size: 18px;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 18px;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 24px;
}

.client-info h5 {
  font-size: 17px;
  color: var(--primary-orange);
  margin-bottom: 4px;
}

.client-info span {
  font-size: 13.5px;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
}

.slider-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-speed) ease;
}

.slider-btn:hover {
  background: var(--primary-orange);
  color: var(--white);
  border-color: var(--primary-orange);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.dot.active {
  background: var(--primary-orange);
  width: 24px;
  border-radius: 6px;
}

/* --- About Page Elements --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: var(--primary-navy);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 12px;
  border-left: 5px solid var(--primary-orange);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.experience-badge h3 {
  font-size: 28px;
  color: var(--primary-orange);
}

.experience-badge span {
  font-size: 13px;
  color: #CBD5E1;
  text-transform: uppercase;
}

.vm-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 40px;
}

.vm-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  border-top: 4px solid var(--primary-orange);
  box-shadow: var(--shadow-sm);
}

.vm-box h4 {
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-orange);
}

/* --- Real Estate Page --- */
.re-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.re-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.re-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.re-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.re-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.re-card:hover .re-card-img img {
  transform: scale(1.06);
}

.re-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-orange);
  color: var(--white);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.re-card-body {
  padding: 24px;
}

.re-card-body h4 {
  font-size: 19px;
  margin-bottom: 10px;
}

.re-card-body p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.re-features-list {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  background: var(--bg-body);
  color: var(--text-main);
  transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
}

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

.contact-info-panel {
  background: var(--primary-navy);
  color: var(--white);
  border-radius: 16px;
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-panel h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(245, 130, 32, 0.2);
  color: var(--primary-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-text h5 {
  color: var(--primary-orange);
  font-size: 15px;
  margin-bottom: 4px;
}

.info-text p {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.6;
}

.map-wrapper {
  margin-top: 50px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 0;
  border-top: 3px solid var(--primary-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-orange);
}

.footer-about-text {
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 22px;
  color: #94A3B8;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background: var(--primary-orange);
  transform: translateY(-3px);
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #94A3B8;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list a:hover {
  color: var(--primary-orange);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-item i {
  color: var(--primary-orange);
  margin-top: 4px;
  font-size: 15px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: #64748B;
}

.footer-bottom span {
  color: var(--primary-orange);
}




.footer-bottom p a:hover {
  color: #fff;
}