/* =============================================
   CENTRIX CONSTRUCTION PRIVATE LIMITED
   Professional Stylesheet — Upgraded Design
   ============================================= */

/* === CSS VARIABLES === */
:root {
  --navy:       #0a1f52;
  --navy-dark:  #061238;
  --navy-mid:   #0d2c6c;
  --gold:       #c9a227;
  --gold-light: #e8bf52;
  --white:      #ffffff;
  --off-white:  #f7f8fc;
  --light-gray: #edf0f7;
  --text-dark:  #1a1e2e;
  --text-body:  #4a506a;
  --border:     #dde2f0;
  --shadow-sm:  0 4px 16px rgba(10,31,82,0.08);
  --shadow-md:  0 8px 32px rgba(10,31,82,0.12);
  --shadow-lg:  0 16px 48px rgba(10,31,82,0.16);
  --radius:     12px;
  --radius-lg:  20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Selective transitions — NOT the blanket "* {transition}" anti-pattern */
a, button, .service-card, .strength-card, .director-card, .cert-card, .cert-img, .floating-icons a {
  transition: all 0.3s ease;
}

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

/* === UTILITY === */
.gold { color: var(--gold); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 36px;
}

/* === TOP BAR === */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 7px 0;
  font-size: 13px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-brand {
  font-weight: 500;
}

.topbar-phone {
  color: var(--gold-light);
  font-weight: 600;
}

/* === NAVBAR === */
#navbar {
  background: rgba(10, 31, 82, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 10px 0;
  transition: top 0.4s ease, box-shadow 0.3s ease;
  z-index: 9999;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.navbar-nav {
  flex-wrap: nowrap;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 7px 14px !important;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-light) !important;
  background: rgba(255,255,255,0.07);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: url('images/hero.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,18,56,0.88) 0%,
    rgba(10,31,82,0.72) 60%,
    rgba(10,31,82,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8% ;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.4s; }
.hero-line:nth-child(3) { animation-delay: 0.6s; }

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

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  letter-spacing: 1.5px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: fadeUp 0.7s ease 1s forwards;
  box-shadow: 0 8px 24px rgba(201,162,39,0.35);
}

.btn-hero:hover {
  background: transparent;
  color: var(--gold-light);
  box-shadow: 0 12px 32px rgba(201,162,39,0.25);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* === STATS STRIP === */
.stats-strip {
  background: var(--navy);
  padding: 28px 0;
  border-bottom: 3px solid var(--gold);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 48px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number i {
  font-size: 32px;
  color: var(--gold);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* === SECTION BASE PADDING === */
.section-about,
.section-strengths,
.section-directors,
.section-services,
.section-certs,
.section-contact,
.section-flex-block {
  padding: 90px 0;
}

/* === ABOUT === */
.section-about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 18px;
  font-size: 15px;
}

.about-text strong {
  color: var(--navy);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}

.about-card i {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 12px;
}

.about-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-body);
  font-size: 14px;
  margin: 0;
}

/* === STRENGTHS === */
.section-strengths {
  background: var(--off-white);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strength-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

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

.strength-icon {
  width: 52px;
  height: 52px;
  background: rgba(10,31,82,0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.strength-icon i {
  font-size: 22px;
  color: var(--navy);
}

.strength-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.strength-card p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}

/* === DIRECTORS === */
.section-directors {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.section-directors::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(201,162,39,0.06);
}

.section-directors .section-label {
  background: rgba(201,162,39,0.15);
  border-color: rgba(201,162,39,0.35);
}

.section-directors .section-title {
  color: var(--white);
}

.directors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
}

.director-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.director-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.director-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(201,162,39,0.15);
}

.director-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.director-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.director-card p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
}

/* === SERVICES === */
.section-services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.3);
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: rgba(10,31,82,0.06);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
}

.service-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon i {
  font-size: 18px;
  color: var(--gold);
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-card h3 span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.service-card p {
  color: var(--text-body);
  font-size: 13.5px;
  line-height: 1.75;
}

/* === WHY CHOOSE US / WORK PROCESS === */
.section-flex-block {
  background: var(--off-white);
}

.section-flex-block.alt-bg {
  background: var(--white);
}

.section-flex-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}

.section-flex-inner.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
}

.image-content {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-content img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* WHY CHOOSE LIST */
.why-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-body);
  font-size: 15px;
}

.why-list li i {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

/* PROCESS LIST */
.process-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-body);
  font-size: 15px;
}

.step-num {
  min-width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

/* === CERTIFICATIONS === */
.section-certs {
  background: var(--off-white);
}

/* Row wrappers */
.cert-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cert-row:last-child {
  margin-bottom: 0;
}

/* Card shell */
.cert-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

/* Portrait A4 proportions ≈ 1:1.414 */
.cert-portrait {
  width: 210px;
  height: 297px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.3s ease;
}

.cert-portrait:hover {
  transform: scale(1.03);
}

/* Landscape A4 proportions ≈ 1.414:1 */
.cert-landscape {
  width: 380px;
  height: 268px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.3s ease;
}

.cert-landscape:hover {
  transform: scale(1.03);
}

.cert-card p {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* CERT MODAL */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(6,18,56,0.93);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}

.cert-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* === CONTACT === */
.section-contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--gold);
  font-size: 16px;
}

.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

.contact-map iframe {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* === FLOATING ELEMENTS === */
.floating-icons {
  position: fixed;
  right: 18px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.floating-icons a {
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 17px;
  box-shadow: 0 4px 16px rgba(10,31,82,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}

.floating-icons a:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(201,162,39,0.35);
}

.floating-banner {
  position: fixed;
  bottom: 24px;
  left: 20px;
  background: var(--navy);
  color: var(--white);
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--gold);
  animation: slideUp 0.6s ease;
}

.floating-banner i {
  color: var(--gold);
}

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

/* === FOOTER === */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 28px 0;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

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

.footer-social a {
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  text-decoration: none;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-cards {
    flex-direction: row;
  }
  .about-card {
    flex: 1;
  }
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-strip .stats-row {
    gap: 4px;
  }
  .stat-item {
    padding: 10px 24px;
  }
  .stat-divider {
    display: none;
  }
  .section-flex-inner,
  .section-flex-inner.reverse {
    flex-direction: column;
    gap: 40px;
  }
  .about-cards {
    flex-direction: column;
  }
  .strengths-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .directors-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .hero-content {
    padding: 0 6%;
  }
}

@media (max-width: 480px) {
  .cert-card {
    width: 100%;
  }
  .cert-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.414;
  }
  .cert-landscape {
    width: 100%;
    height: auto;
    aspect-ratio: 1.414 / 1;
  }
  .floating-banner {
    font-size: 11px;
    padding: 9px 13px;
    max-width: 200px;
  }
}
