/* KCPC Modern Static Site — mobile-first CSS */
:root {
  --navy: #0b1d36;
  --navy-2: #11294a;
  --navy-3: #16335c;
  --gold: #f5a623;
  --gold-2: #e09400;
  --sand: #f5e6d3;
  --cream: #fbf7f2;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #e2e2e2;
  --shadow: 0 10px 40px rgba(11, 29, 54, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max: 1200px;
  --space: clamp(1rem, 3vw, 3rem);
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, .btn { font: inherit; cursor: pointer; border: none; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.6rem); color: var(--navy); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--gold-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 0.5rem; }
.section-intro { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

/* Container */
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(11, 29, 54, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.site-header .container { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; }
.logo { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; }
.logo img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.logo span { color: var(--white); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; line-height: 1; }
.desktop-nav, .header-cta { display: none; }
.menu-toggle { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }

/* Desktop nav */
.desktop-nav { display: none; }
.desktop-nav ul { display: flex; gap: 0.25rem; }
.desktop-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--gold); background: rgba(255,255,255,0.06); }
.header-cta {
  display: none;
  background: var(--gold);
  color: var(--navy);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s, background 0.2s;
}
.header-cta:hover { background: var(--gold-2); transform: translateY(-1px); }

/* Mobile menu toggle */
.menu-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
}
.menu-toggle svg { width: 26px; height: 26px; }
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  padding: 1.5rem;
  z-index: 999;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: grid; gap: 0.5rem; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a.active { color: var(--gold); }
.mobile-nav .cta-mobile {
  margin-top: 1.5rem;
  display: block;
  text-align: center;
  background: var(--gold);
  color: var(--navy);
  padding: 0.9rem;
  border-radius: var(--radius);
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding-top: var(--header-h);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(11,29,54,0.92) 0%, rgba(17,41,74,0.82) 55%, rgba(11,29,54,0.75) 100%),
    url('../images/project-jumeirah.jpg') center/cover no-repeat;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(245,166,35,0.12), transparent 55%);
  z-index: -1;
}
.hero-content { padding: 2rem 1rem; max-width: 880px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); margin-bottom: 1rem; font-weight: 800; }
.hero p.lead { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: rgba(255,255,255,0.88); margin-bottom: 2rem; max-width: 700px; margin-inline: auto; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 6px 20px rgba(245,166,35,0.35); }
.btn-primary:hover { background: var(--gold-2); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stats strip */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
.stat .number { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.4rem; }

/* Services */
.services { background: var(--white); }
.services-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}
.service-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.5s, opacity 0.3s;
  z-index: 0;
}
.service-card:hover img { transform: scale(1.06); opacity: 0.7; }
.service-card h3, .service-card p, .service-card .link { position: relative; z-index: 1; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-bottom: 0.75rem; }
.service-card .link { color: var(--gold); font-weight: 700; font-size: 0.9rem; display: inline-flex; gap: 0.3rem; align-items: center; }

/* Projects */
.projects-section { background: var(--cream); }
.projects-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(11,29,54,0.15); }
.project-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .thumb img { transform: scale(1.08); }
.project-card .body { padding: 1.25rem; }
.project-card .tag {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: var(--gold-2);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.project-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.35rem; }
.project-card p { font-size: 0.9rem; color: var(--muted); }

/* About preview */
.about-preview { background: var(--navy); color: var(--white); }
.about-preview .container { display: grid; gap: 2rem; align-items: center; }
.about-preview h2 { color: var(--white); }
.about-preview p { color: rgba(255,255,255,0.85); margin: 1rem 0; }
.about-preview .checks { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.about-preview .checks li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.95rem; }
.about-preview .checks svg { flex: 0 0 20px; color: var(--gold); margin-top: 2px; }
.about-preview .image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* Clients */
.clients { background: var(--white); }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.client-logos img { max-height: 56px; width: auto; max-width: 140px; filter: grayscale(100%) opacity(0.65); transition: filter 0.3s, transform 0.3s; }
.client-logos img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

/* Investors */
.investor-section { background: var(--white); }
.investor-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.investor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.investor-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.investor-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 0.5rem; }
.investor-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.investor-card a { color: var(--gold-2); font-weight: 700; font-size: 0.9rem; display: inline-flex; gap: 0.3rem; align-items: center; }

/* Contact */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
.contact-info { display: grid; gap: 1.25rem; }
.contact-block {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-block .icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(245,166,35,0.12); color: var(--gold-2); display: grid; place-items: center; flex: 0 0 44px; }
.contact-block h4 { font-size: 1rem; color: var(--navy); margin-bottom: 0.2rem; }
.contact-block p, .contact-block a { font-size: 0.95rem; color: var(--muted); }
.contact-form {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 45svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  color: var(--white);
  text-align: center;
  background: linear-gradient(120deg, rgba(11,29,54,0.94) 0%, rgba(17,41,74,0.88) 100%), url('../images/about-hero.jpg') center/cover no-repeat;
}
.page-hero .container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero .container > * { max-width: 800px; width: 100%; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0.5rem auto 0; }

/* Content sections (about page) */
.content-section { background: var(--white); }
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { margin-top: 2.5rem; }
.content-block p { margin: 1rem 0; color: var(--text); }
.leadership-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.leader-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}
.leader-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.leader-card .info { padding: 1.25rem; }
.leader-card h3 { font-size: 1.15rem; color: var(--navy); }
.leader-card p { font-size: 0.9rem; color: var(--muted); }

/* Careers */
.careers-list { display: grid; gap: 1rem; margin-top: 2rem; }
.job-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.job-card h3 { color: var(--navy); font-size: 1.15rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* Utilities */
.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto; text-align: center; margin-bottom: 2.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .investor-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview .container { grid-template-columns: 1fr 1fr; }
  .leader-card img { aspect-ratio: 4/3; }
}
@media (min-width: 768px) {
  .site-header .container { justify-content: space-between; }
  .menu-toggle { display: none; position: static; right: auto; top: auto; transform: none; }
  .desktop-nav { display: block; }
  .header-cta { display: inline-flex; }
  .mobile-nav { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .investor-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .job-card { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Print adjustments for audit report */
@media print {
  .site-header, .site-footer, .menu-toggle { display: none; }
}
