/* CDB Civil — style.css (Bold Industrial) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #F5B800;
  --yellow-hover: #d9a200;
  --dark:      #111111;
  --dark-2:    #181818;
  --dark-3:    #222222;
  --dark-card: #2a2a2a;
  --text:      #1a1a1a;
  --text-light: #e0e0e0;
  --text-muted: #999;
  --white: #ffffff;
  --light: #f5f5f5;
  --border-dark: rgba(255,255,255,0.08);
  --border: #e0e0e0;
  --nav-h: 72px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--yellow-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--yellow); color: #000; }
.btn-primary:hover { background: var(--yellow-hover); }

.btn-outline-white { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline-white:hover { background: #fff; color: #000; }

.btn-outline-yellow { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn-outline-yellow:hover { background: var(--yellow); color: #000; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #333; }

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: #111;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Header background.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: #fff;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

/* ── LAYOUT ──────────────────────────────────────── */
section { padding: 5.5rem 1.5rem; }

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

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.section-intro.muted { color: var(--text-muted); }
.section-intro.light { color: rgba(255,255,255,0.6); }
.section-intro.max { max-width: 580px; }

/* ── HOME: INTRO STRIP ───────────────────────────── */
.intro-strip { background: var(--dark); padding: 5rem 1.5rem; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text .section-title { color: var(--white); margin-bottom: 1.25rem; }

.intro-text p {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.stat-box {
  background: var(--dark-3);
  border-top: 3px solid var(--yellow);
  padding: 1.5rem 1.25rem;
}

.stat-box strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-box span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* ── HOME: SERVICES PREVIEW ──────────────────────── */
.services-section { background: var(--dark-2); padding: 5.5rem 1.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--dark-card);
  border-top: 3px solid transparent;
  padding: 2rem 1.5rem 2.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover { border-top-color: var(--yellow); transform: translateY(-4px); }

.service-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--yellow);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.services-cta { text-align: center; }

/* ── HOME: GALLERY PREVIEW ───────────────────────── */
.gallery-section { background: var(--dark-3); padding: 5.5rem 1.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.75; }
.gallery-cta { text-align: center; }

/* ── HOME: TESTIMONIALS ──────────────────────────── */
.testimonials-section { background: var(--dark); padding: 5.5rem 1.5rem; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.testimonial-card {
  background: var(--dark-3);
  border-left: 3px solid var(--yellow);
  padding: 2rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── HOME: CTA BAND ──────────────────────────────── */
.cta-band { background: var(--yellow); padding: 4rem 1.5rem; }

.cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #000;
  max-width: 560px;
  line-height: 1.2;
}

/* ── FOOTER ──────────────────────────────────────── */
footer { background: #fff; color: #111; padding: 3.5rem 1.5rem 1.5rem; }

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 52px;
}

.footer-nav { display: flex; gap: 4rem; }

.footer-nav-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 1rem;
}

.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav-col a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #999;
  font-size: 0.8rem;
}

.footer-bottom a { color: #999; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--yellow); }

/* ── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Header background.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.page-hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: var(--yellow); }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.page-hero p { color: rgba(255,255,255,0.55); font-size: 1.05rem; max-width: 540px; }

/* ── ABOUT PAGE ──────────────────────────────────── */
.about-story { background: var(--white); padding: 5.5rem 1.5rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-grid p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.8; }

.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about-values { background: var(--dark-2); padding: 5.5rem 1.5rem; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.value-card {
  background: var(--dark-card);
  border-top: 3px solid var(--yellow);
  padding: 2.5rem 2rem;
}

.value-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.value-card p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.75; }

/* ── SERVICES PAGE ───────────────────────────────── */
.services-page { background: var(--dark-2); padding: 5.5rem 1.5rem; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: none; padding-bottom: 0; }

.service-block-reverse { direction: rtl; }
.service-block-reverse > * { direction: ltr; }

.service-block-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.service-block-text p { color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 1.5rem; }

.service-block-text ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.service-block-text li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.93rem;
}

.service-block-text li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  flex-shrink: 0;
}

.service-block-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── PROJECTS PAGE ───────────────────────────────── */
.projects-section { background: var(--dark-2); padding: 5.5rem 1.5rem; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--dark-card);
  border-left: 3px solid var(--yellow);
  padding: 1.75rem 2rem;
  transition: background 0.2s;
}

.project-card:hover { background: #333; }

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.project-client {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.project-card p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.65; }

/* ── CONTACT PAGE ────────────────────────────────── */
.contact-section { background: var(--dark-2); padding: 5.5rem 1.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-title { color: var(--white); margin-bottom: 2rem; }

.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }

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

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: #111;
  fill: none;
}

.contact-detail-text p { color: rgba(255,255,255,0.45); font-size: 0.82rem; margin-bottom: 0.2rem; }

.contact-detail-text a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-detail-text a:hover { color: var(--yellow); }

.contact-form { background: var(--dark-card); padding: 2.5rem; }

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

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

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

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

.form-group select option { background: var(--dark-3); }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--yellow);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--yellow-hover); }

/* ── REVEAL ANIMATIONS ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    border-top: 3px solid var(--yellow);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }

  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.9rem 0; }

  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { order: -1; }
  .values-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 2rem; }
  .service-block-reverse { direction: ltr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 560px) {
  section { padding: 3.5rem 1rem; }
  .intro-strip { padding: 3.5rem 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
