/* ================================================
   CDIC - CÔNG TY CP TƯ VẤN KHẢO SÁT THIẾT KẾ XÂY DỰNG HÀ NỘI
   Main Stylesheet
   ================================================ */

/* ----- CSS Variables ----- */
:root {
  --primary: #1B3A5C;
  --primary-dark: #0F2640;
  --primary-light: #2C5F8A;
  --accent: #E8A838;
  --accent-dark: #D4922A;
  --accent-light: #F0C060;
  --white: #FFFFFF;
  --light: #F8F9FA;
  --light-gray: #EDF0F2;
  --border: #DEE2E6;
  --text-dark: #2D3436;
  --text-body: #4A5568;
  --text-muted: #718096;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --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: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

ul, ol { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- HEADER & NAVIGATION ----- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: rgba(255,255,255,0.8);
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar i {
  margin-right: 6px;
  color: var(--accent);
}

header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

nav {
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.3;
  font-weight: 800;
}

.logo-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

nav ul li a {
  display: block;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

@media (max-width: 1280px) {
  .logo-text p {
    display: none;
  }

  nav ul {
    gap: 2px;
  }

  nav ul li a {
    padding: 9px 12px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1024px) {
  .logo-mark {
    width: 48px;
    height: 48px;
  }

  .logo-text h1 {
    font-size: 0.92rem;
  }

  nav ul li a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
  background: var(--light);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* ----- HERO SECTION ----- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,168,56,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44,95,138,0.3) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,168,56,0.2);
  border: 1px solid rgba(232,168,56,0.4);
  color: var(--accent-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h2 {
  font-size: 2.8rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h2 span {
  color: var(--accent);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat h3 {
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 800;
}

.hero-stat p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,168,56,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

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

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

/* ----- SECTIONS ----- */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header .label::before,
.section-header .label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ----- SERVICE CARDS ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card-media {
  height: 180px;
  margin: -40px -28px 20px;
  overflow: hidden;
  background: var(--light-gray);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

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

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
  transition: all var(--transition);
}

.service-card .read-more:hover {
  color: var(--accent);
  gap: 10px;
}

/* ----- ABOUT PREVIEW ----- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-main {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-lg);
  height: 420px;
  position: relative;
  overflow: hidden;
}

.about-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-main::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(232,168,56,0.2);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-badge h3 {
  font-size: 2rem;
  color: var(--primary-dark);
}

.about-badge p {
  font-size: 0.85rem;
  font-weight: 600;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content > p {
  margin-bottom: 24px;
  font-size: 1.02rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: var(--radius);
}

.about-feature i {
  color: var(--accent);
  font-size: 1.1rem;
}

.about-feature span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ----- STATS BAR ----- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: transparent;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
}

.stat-item i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* ----- PROJECT CARDS ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

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

.project-thumb {
  height: 220px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  position: relative;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.project-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.project-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 2;
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.project-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project-info .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.project-info .read-more:hover {
  color: var(--accent);
}

/* ----- FILTER TABS ----- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  font-family: inherit;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--primary);
  color: var(--white);
  background: var(--primary);
}

/* ----- EQUIPMENT SECTION ----- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.equipment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.equipment-media {
  height: 190px;
  margin: -32px -32px 20px;
  overflow: hidden;
  background: var(--light-gray);
}

.equipment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.equipment-card:hover .equipment-media img {
  transform: scale(1.05);
}

.equipment-card .eq-icon {
  width: 60px;
  height: 60px;
  background: var(--light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.equipment-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.equipment-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ----- CONTACT SECTION ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.contact-card .card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ----- MAP SECTION ----- */
.map-section {
  background: var(--light);
  padding: 0;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----- CTA SECTION ----- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(232,168,56,0.1);
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- FOOTER ----- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .logo-mark-footer {
  width: 78px;
  height: 78px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}

.footer-about .logo-mark-footer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links ul li a::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact ul li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-contact ul li i {
  color: var(--accent);
  margin-top: 4px;
  width: 16px;
  text-align: center;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
}

/* ----- PAGE BANNER ----- */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.page-banner .breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  position: relative;
}

.page-banner .breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.page-banner .breadcrumb a:hover {
  color: var(--accent);
}

.page-banner .breadcrumb .sep {
  color: var(--accent);
}

.page-banner .breadcrumb .current {
  color: var(--accent);
  font-weight: 600;
}

/* ----- ABOUT PAGE ----- */
.about-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.legal-info {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
}

.legal-info h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.legal-info table {
  width: 100%;
}

.legal-info table td {
  padding: 10px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-info table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  width: 45%;
  padding-right: 16px;
}

.team-section {
  margin-top: 32px;
}

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

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.team-photo {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

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

.leadership-photo {
  width: 100%;
  max-width: 520px;
  height: 280px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- ISO BADGE ----- */
.iso-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.iso-badge .iso-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.iso-badge h4 {
  color: var(--accent-light);
  font-size: 1rem;
  margin-bottom: 4px;
}

.iso-badge p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ----- SERVICES PAGE DETAIL ----- */
.service-detail-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  border: 1px solid var(--border);
  align-items: start;
  transition: all var(--transition);
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.service-detail-media {
  width: 220px;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light-gray);
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-detail-card > div > p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.service-list {
  list-style: none;
}

.service-list li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
}

.service-list li i {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ----- PROFILE PAGE ----- */
.profile-intro-section {
  padding-bottom: 40px;
}

.profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.profile-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--light);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-nav a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
}

.profile-grid-single {
  grid-template-columns: 1fr;
}

.profile-grid-wide {
  grid-template-columns: 1fr 1fr;
}

.profile-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.panel-heading h3 {
  font-size: 1.35rem;
}

.info-list {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}

.info-list strong {
  color: var(--text-dark);
}

.panel-actions {
  margin-top: 24px;
}

.document-checklist {
  display: grid;
  gap: 14px;
}

.document-checklist li {
  list-style: none;
}

.document-checklist a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.document-checklist a:hover {
  color: var(--primary);
  border-color: rgba(232, 168, 56, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.document-title {
  flex: 1;
}

.document-checklist i {
  color: var(--accent);
  margin-top: 3px;
}

.document-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding-left: 12px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.document-hint i {
  margin-top: 0;
  color: var(--primary);
}

.org-grid,
.scope-grid,
.experience-grid {
  display: grid;
  gap: 24px;
}

.org-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.experience-grid {
  grid-template-columns: repeat(3, 1fr);
}

.org-card,
.scope-card,
.experience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
}

.org-card:hover,
.scope-card:hover,
.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.org-card.accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
}

.org-card.accent h3,
.org-card.accent p {
  color: var(--white);
}

.org-card h3,
.scope-card h3,
.experience-card h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
}

.scope-card h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.compact-list {
  list-style: disc;
  padding-left: 18px;
  color: var(--text-body);
}

.compact-list li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.compact-list.two-col {
  columns: 2;
  column-gap: 28px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--light);
  color: var(--text-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.project-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.summary-pills span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--light);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

/* ----- TIMELINE ----- */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-detail {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .service-detail-icon,
  .service-detail-media {
    margin: 0 auto;
  }
  .org-grid,
  .experience-grid,
  .profile-grid,
  .profile-grid-wide,
  .project-columns {
    grid-template-columns: 1fr;
  }
  .scope-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .menu-toggle { display: block; }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--primary);
  }

  nav ul.show { display: flex; }

  nav ul li a {
    padding: 12px 16px;
    width: 100%;
  }

  .hero {
    min-height: 500px;
    padding: 40px 0;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section { padding: 50px 0; }

  .section-header h2 { font-size: 1.6rem; }

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

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

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

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

  .form-row { grid-template-columns: 1fr; }

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

  .page-banner h1 { font-size: 1.8rem; }

  .stats-bar { grid-template-columns: 1fr 1fr; }

  .stat-item h3 { font-size: 1.8rem; }

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

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

  .hero-buttons { flex-direction: column; }

  .filter-tabs { gap: 6px; }

  .filter-tab { padding: 8px 16px; font-size: 0.8rem; }

  .profile-panel { padding: 24px; }

  .compact-list.two-col { columns: 1; }

  .profile-nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h2 { font-size: 1.5rem; }
  .stats-bar { grid-template-columns: 1fr; }
}

/* ----- ANIMATIONS ----- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- UTILITY ----- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.pt-0 { padding-top: 0; }

/* ----- PDF PREVIEW MODAL ----- */
.pdf-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.pdf-modal.active {
  display: flex;
}

.pdf-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1000px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

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

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--light);
  flex-shrink: 0;
}

.pdf-modal-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-modal-header h3 i {
  color: #E74C3C;
  font-size: 1.3rem;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-modal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--border);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--transition);
  line-height: 1;
}

.pdf-modal-close:hover {
  background: #E74C3C;
  color: var(--white);
}

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .pdf-modal {
    padding: 10px;
  }

  .pdf-modal-content {
    height: 95vh;
    border-radius: var(--radius);
  }

  .pdf-modal-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pdf-modal-header h3 {
    font-size: 0.95rem;
  }
}
