/* Saudiawtad Engineering & Technologies - PDF-Aligned Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Base tokens — brand-accurate values from PDF */
:root {
  --color-bg: #0f141a;
  --color-text: #0f1720;
  --color-muted: #4b5563;
  --brand-700: #0a6a73; /* primary */
  --brand-600: #0e7f8a;
  --brand-100: #e6f7f9;
  --surface: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgb(0 0 0 / 12%);
  --container: clamp(16rem, 92vw, 1200px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Typography Scale - PDF Specification */
h1 {
  font-size: clamp(2.75rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #fff;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.375rem 0;
  color: var(--color-text);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  color: var(--color-text);
}

p {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1rem 0;
  color: var(--color-muted);
  max-width: 75ch;
}

/* Hero - PDF p.1 */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 10 15 / .72) 0%, rgb(5 10 15 / .55) 45%, rgb(5 10 15 / .15) 100%),
    url('/assets/hero-homepage.svg') center/cover no-repeat;
}

.hero__content {
  position: relative;
  max-width: 900px;
  z-index: 2;
}

.lead {
  font-size: clamp(1rem, 1.2vw + .9rem, 1.25rem);
  color: rgb(255 255 255 / .88);
  margin: 14px 0 26px;
  max-width: 70ch;
}

/* Buttons - PDF Specification */
.btn {
  display: inline-block;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
  transition: .2s ease;
  border: 2px solid transparent;
  font-size: 1rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: var(--brand-700);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline:hover {
  background: rgb(255 255 255 / .1);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* Sections */
.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section.alt {
  background: var(--brand-100);
}

.section__title {
  font-size: clamp(1.25rem, 1.2vw + 1.1rem, 2rem);
  margin: 0 0 22px;
  text-align: center;
}

/* Grid System - PDF Specification */
.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sectors {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .differentiators {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .capabilities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .sectors {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .differentiators {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .capabilities {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards - PDF Specification */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgb(0 0 0 / 15%);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.card p {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card__link {
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: none;
  font-size: 0.9rem;
}

.card__link:hover {
  text-decoration: underline;
}

/* Case Studies - PDF p.17 */
.case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.case-study__image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.case-study__content h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
}

.case-study__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study__content li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.case-study__content li strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (min-width: 768px) {
  .case-study {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
  
  .case-study__image {
    height: 250px;
  }
}

/* Metrics - PDF p.18 */
.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.metric {
  text-align: center;
}

.metric h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text);
}

.metric__value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-700);
  margin: 0 0 4px;
  line-height: 1;
}

.metric__label {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

@media (min-width: 768px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CTA Band - PDF p.19 */
.cta {
  background: var(--brand-100);
  padding: clamp(40px, 5.5vw, 64px) 0;
}

.cta__inner {
  display: grid;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--color-text);
}

.cta p {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 1.1rem;
}

@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: 1fr auto;
    text-align: left;
  }
  
  .cta .actions {
    margin-top: 0;
  }
}

/* Closing Section - PDF p.20 */
.closing {
  background: var(--surface);
}

.capability {
  text-align: center;
  padding: 24px 16px;
}

.capability h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-text);
}

.capability p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design - PDF Breakpoints */
@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .section {
    padding: 32px 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Management */
*:focus {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-text: #000000;
    --color-muted: #333333;
    --shadow: 0 8px 24px rgba(0,0,0,.2);
  }
}