/* ============================================
   Dakapa Engineering & Solutions — Site Styles
   ============================================ */

:root {
  --navy: #0d2b45;
  --navy-deep: #081b2e;
  --steel: #5b7285;
  --light-blue: #cfe6f6;
  --light-blue-tint: #f2f8fc;
  --slate: #a6b2bf;
  --ink: #101820;
  --white: #ffffff;
  --accent: #1c6fb0;
  --accent-dark: #14567e;
  --border: #e0e8ee;
  --shadow: 0 10px 30px rgba(13, 43, 69, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 43, 69, 0.14);
  --radius: 14px;
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--steel); }

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

/* Decorative circuit background (fixed, very subtle) */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 92% 4%, rgba(13,43,69,0.05) 0, transparent 40%),
    radial-gradient(circle at 4% 96%, rgba(13,43,69,0.04) 0, transparent 35%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { height: 42px; width: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  font-weight: 600;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a { color: var(--navy); position: relative; padding: 6px 0; }
.site-nav a:not(.nav-cta):after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.site-nav a:not(.nav-cta):hover:after { width: 100%; }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 6px 2.6px !important;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
  display: inline-block;
}
.nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 65%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero:before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(207,230,246,0.14) 0%, transparent 70%);
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero .eyebrow { color: var(--light-blue); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-lede {
  color: var(--light-blue);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: var(--light-blue); color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--light-blue-tint); }
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}
.section-lede {
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ---------- Capabilities ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.capability-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.capability-icon { width: 46px; height: 46px; object-fit: contain; margin-bottom: 18px; }
.capability-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.capability-card p { font-size: 0.92rem; margin-bottom: 0; }

.sourcing-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.sourcing-icon { width: 52px; height: 52px; flex-shrink: 0; filter: brightness(0) invert(1); }
.sourcing-strip h3 { color: var(--white); margin-bottom: 8px; font-size: 1.1rem; }
.sourcing-strip p { color: var(--light-blue); margin-bottom: 0; }
.sourcing-strip strong { color: var(--white); }

/* ---------- Experience ---------- */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.experience-item {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 18px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.experience-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.experience-icon { width: 40px; height: 40px; object-fit: contain; margin: 0 auto 16px; }
.experience-item h3 { font-size: 0.98rem; margin-bottom: 8px; }
.experience-item p { font-size: 0.85rem; margin-bottom: 0; }

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.project:last-child { border-bottom: none; }
.project.reverse .project-media { order: 2; }
.project.reverse .project-copy { order: 1; }
.project-media picture { display: block; }
.project-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}
.project-media-dual {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.project-media-dual > picture,
.project-media-dual > img {
  width: 50%;
}
.project-media-dual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--white);
}
.project-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #155A91;
  background: var(--light-blue);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.project-copy h3 { font-size: 1.4rem; margin-bottom: 14px; }
.project-copy p { margin-bottom: 0; }

/* ---------- Brands ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.brand-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  height: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-logo img { max-height: 56px; max-width: 100%; object-fit: contain; }

/* ---------- Contact ---------- */
.contact-section { background: var(--navy); color: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-intro h2 { color: var(--white); }
.contact-intro p { color: var(--light-blue); }
.contact-intro .eyebrow { color: var(--light-blue); }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.contact-detail img { width: 32px; height: 32px; filter: brightness(0) invert(1); flex-shrink: 0; }
.contact-detail strong { display: block; color: var(--white); font-size: 0.85rem; margin-bottom: 2px; }
.contact-detail span, .contact-detail a { color: var(--light-blue); font-weight: 500; }
.contact-detail a { font-weight: 600; }
.contact-detail a:hover { color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 14px;
  margin-bottom: 6px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--light-blue-tint);
  resize: vertical;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}
.contact-form .btn { margin-top: 22px; width: 100%; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: var(--steel);
}
.form-status.success { color: #1a8a4a; }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--slate);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { height: 36px; width: auto; opacity: 0.9; }
.footer-name {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.footer-tag { font-size: 0.78rem; color: var(--slate); }
.footer-links { display: flex; gap: 20px; font-size: 0.88rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.82rem;
}
.footer-meta a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .contact-inner { grid-template-columns: 1fr; }
  .project, .project.reverse { grid-template-columns: 1fr; }
  .project .project-media, .project.reverse .project-media,
  .project .project-copy, .project.reverse .project-copy { order: initial; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    gap: 18px;
  }
  .site-nav.open { display: flex; }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 64px 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .sourcing-strip { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { align-items: center; }
  .contact-form { padding: 26px; }
}

/* Privacy footnote under the contact form */
.form-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--slate);
}
.contact-form .form-note { color: #5B7285; }

/* Shown only when JavaScript is unavailable, and on the ?sent=1 return */
.noscript-note,
.sent-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  background: var(--light-blue-tint);
  border: 1px solid var(--border);
  color: #2F4356;
}
.sent-banner { background: #E7F5EC; border-color: #BFE3CC; color: #1F5133; }

/* Respect a reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Inline links inside body copy need to look like links. The global rule above
   strips underlines for the nav and buttons, so put them back here. */
.project-copy p a,
.section-lede a,
.capability-card p a {
  color: #155A91;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.project-copy p a:hover,
.section-lede a:hover,
.capability-card p a:hover {
  color: var(--navy);
  text-decoration-thickness: 2px;
}
.project-copy p a:focus-visible,
.section-lede a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
