/* =============================================================
   DAMIAN ENGINEERING – Stylesheet
   Brand Colors:
     Navy:  #233256
     Cyan:  #0E92C1
     Dark:  #272525
   Font:    Helvetica Neue (system), fallback to Arial
   ============================================================= */

/* ---------- CUSTOM FONTS ---------- */
/*
  If you have the Helvetica Neue font files, uncomment and update paths:

  @font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueLTStd-Roman.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueLTStd-HvCn.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
  }
*/

/* ---------- CSS VARIABLES ---------- */
:root {
  --navy:      #233256;
  --navy-dark: #1a2540;
  --cyan:      #0E92C1;
  --cyan-dark: #0b7aa3;
  --dark:      #272525;
  --white:     #ffffff;
  --light-bg:  #f8f9fb;
  --mid-gray:  #e5e8ee;
  --text:      #2d2d2d;
  --text-light:#6b7280;

  --font: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(35, 50, 86, 0.12);
  --shadow-lg: 0 12px 40px rgba(35, 50, 86, 0.18);
  --transition: 0.25s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-light { background: var(--light-bg); }
.section-dark  { background: var(--navy); color: var(--white); }
.section-cyan  { background: var(--cyan); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header p {
  max-width: 640px;
  margin: 1rem auto 0;
  opacity: 0.85;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.section-label.light { color: rgba(255,255,255,0.7); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-nav {
  background: var(--cyan);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
}
.btn-nav:hover { background: var(--cyan-dark); }

/* (placeholder styles removed — no image placeholders used) */

/* =============================================================
   NAVIGATION
   ============================================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 90px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 75px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: color var(--transition);
}
.lang-btn.active,
.lang-btn:hover { color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,37,64,0.92) 0%, rgba(35,50,86,0.75) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: 72px;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; color: var(--white); }
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  animation: bounce 2s infinite;
  z-index: 1;
}
.hero-scroll svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================================
   ABOUT
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-label { margin-bottom: 0.5rem; }
.about-text h2 { color: var(--navy); margin-bottom: 1.25rem; }
.about-text p  { color: var(--text-light); }
.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--mid-gray);
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
/* About visual panel */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-inner {
  background: var(--navy);
  border-radius: 12px;
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-pipe-icon {
  width: 160px;
  height: 160px;
  opacity: 0.9;
}
.about-visual-tagline {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

/* =============================================================
   SECTORS
   ============================================================= */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.sector-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform var(--transition), background var(--transition);
}
.sector-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}
.sector-icon {
  width: 52px;
  height: 52px;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.sector-icon svg { width: 100%; height: 100%; }
.sector-card h3 { color: var(--white); margin-bottom: 0.75rem; font-size: 1rem; }
.sector-card p  { color: rgba(255,255,255,0.65); font-size: 0.875rem; }

/* =============================================================
   SERVICES
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--mid-gray);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.service-card h3 { color: var(--navy); margin-bottom: 1rem; }
.service-card ul {
  list-style: none;
  flex: 1;
}
.service-card ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
}

/* =============================================================
   STANDARDS
   ============================================================= */
.section-cyan .section-label { color: rgba(255,255,255,0.7); }
.section-cyan h2 { color: var(--white); }
.standards-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.standard-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
  flex: 1;
  max-width: 200px;
  transition: background var(--transition);
}
.standard-badge:hover { background: rgba(255,255,255,0.25); }
.standard-code {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.standard-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

/* =============================================================
   SUCCESS STORIES / TIMELINE
   ============================================================= */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mid-gray);
}
.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-number {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content {
  padding-top: 0.85rem;
}
.timeline-content h3 { color: var(--navy); margin-bottom: 0.5rem; }
.timeline-content p  { color: var(--text-light); font-size: 0.9rem; }

/* =============================================================
   REGIONAL OPERATIONS
   ============================================================= */
.regions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.regions-offices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.office-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 1.5rem;
}
.office-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--white);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.office-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.office-card p  { color: rgba(255,255,255,0.65); font-size: 0.875rem; margin-bottom: 0.25rem; }
.office-card a  { display: block; color: var(--cyan); font-size: 0.875rem; margin-top: 0.25rem; }
.office-card a:hover { text-decoration: underline; }
.countries-list {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.countries-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.countries-list p:last-child { color: rgba(255,255,255,0.65); font-size: 0.875rem; margin: 0; }

/* =============================================================
   CONTACT
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-item strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.contact-item span,
.contact-item a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
}
.contact-item a:hover { color: var(--cyan); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--mid-gray);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; }
.form-success {
  background: #e8f8ed;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: var(--navy-dark); color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 1.5rem;
}
.footer-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-brand .footer-sub { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }
.footer-links h4,
.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a,
.footer-contact a,
.footer-contact p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.footer-bottom span { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .sectors-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual    { order: -1; }
  .about-visual-inner { min-height: 260px; }
  .regions-offices { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-links li:last-child a { border-bottom: none; }
  .btn-nav { display: inline-block; margin-top: 0.5rem; text-align: center; }

  .sectors-grid    { grid-template-columns: 1fr; }
  .services-grid   { grid-template-columns: 1fr; }
  .regions-offices { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid     { grid-template-columns: 1fr; gap: 2rem; }
  .form-row        { grid-template-columns: 1fr; }
  .timeline::before { left: 19px; }
  .timeline-item { grid-template-columns: 40px 1fr; gap: 1.25rem; }
  .timeline-number { width: 40px; height: 40px; font-size: 0.85rem; }

  .about-stats { flex-wrap: wrap; }
  .standards-grid { gap: 1rem; }
  .standard-badge { min-width: 120px; padding: 1.25rem; }
  .hero-content { max-width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  h2 { font-size: 1.5rem; }
  .stat-number { font-size: 2rem; }
  .standard-badge { min-width: 100px; flex: 0 0 calc(50% - 0.5rem); max-width: none; }
}
