/* =============================================================
   Dasho EWP Service Solutions – Industrial Precision Design
   ============================================================= */

/* ---- Custom Properties ---- */
:root {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --accent: #667eea;
  --accent2: #764ba2;
  --accent-grad: linear-gradient(135deg, #667eea, #764ba2);
  --text: #e8eefc;
  --muted: #b7c3e6;
  --line: rgb(255 255 255 / 12%);
  --card-bg: rgb(15 25 48 / 55%);
  --radius: 10px;
  --shadow: 0 8px 32px rgb(0 0 0 / 40%);
  --max-w: 1100px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Barlow, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

ul {
  list-style: none;
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---- Visually Hidden ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Topbar / Navbar ---- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgb(11 18 32 / 85%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
  letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgb(102 126 234 / 12%);
  outline: none;
}

.nav-cta {
  flex-shrink: 0;
  background: var(--accent-grad);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    box-shadow 0.2s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #fff;
  opacity: 0.9;
  box-shadow: 0 4px 20px rgb(102 126 234 / 40%);
  outline: none;
}

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

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('img/background-lrg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 6rem 1.5rem 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(102 126 234 / 75%) 0%, rgb(118 75 162 / 75%) 100%);
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 25%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero-logo {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}

.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgb(0 0 0 / 40%);
}

.hero-region {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgb(255 255 255 / 85%);
  margin-bottom: 1rem;
}

.hero-pillars {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgb(255 255 255 / 70%);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.trust-pill {
  background: rgb(255 255 255 / 15%);
  border: 1px solid rgb(255 255 255 / 30%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero-cta {
  display: inline-block;
  background: var(--accent-grad);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgb(102 126 234 / 45%);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgb(102 126 234 / 60%);
  outline: none;
}

.hero-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---- Inner container ---- */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Section Bands ---- */
.section-band {
  padding: 5rem 0;
  background: var(--bg);
}

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

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.section-sub {
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 3rem;
}

/* ---- Cards ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgb(0 0 0 / 50%);
}

.card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card-wide {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.card-wide .card-icon {
  font-size: 2.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ---- Service card extras ---- */
.card-subtitle {
  font-family: Barlow, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.service-list li {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.service-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* ---- Service Grids ---- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.grid1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ---- How It Works ---- */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.how-step h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.how-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--accent-grad);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ---- Brands ---- */
.badge-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.badge-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.brand-favicon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-badge:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cred-list li {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cred-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.cred-list li:last-child {
  border-bottom: none;
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-decoration: underline;
}

.contact-dl {
  margin-bottom: 1.5rem;
}

.contact-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
}

.contact-dl dt:first-child {
  margin-top: 0;
}

.contact-dl dd {
  color: var(--text);
  font-size: 1rem;
  margin: 0.2rem 0 0;
}

.contact-dl dd a {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-dl dd a:hover {
  color: var(--accent);
}

.contact-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ---- Contact Form ---- */
.contact-form-card {
  backdrop-filter: blur(8px);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.req {
  color: #ff6b8a;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgb(255 255 255 / 6%);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: Barlow, sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgb(183 195 230 / 45%);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(102 126 234 / 25%);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b7c3e6' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-field select option {
  background: #0f1a2e;
  color: var(--text);
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.field-error {
  color: #ff6b8a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #ff6b8a;
}

.submit-btn {
  width: 100%;
  background: var(--accent-grad);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-family: Barlow, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 1rem;
  padding: 0.9rem 1.5rem;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgb(102 126 234 / 40%);
}

.submit-btn:active {
  transform: translateY(0);
}

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

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.is-success {
  background: rgb(72 199 116 / 18%);
  border: 1px solid rgb(72 199 116 / 45%);
  color: #48c774;
}

.form-status.is-error {
  background: rgb(255 107 138 / 18%);
  border: 1px solid rgb(255 107 138 / 45%);
  color: #ff6b8a;
}

/* ---- Footer ---- */
.site-footer {
  background: rgb(0 0 0 / 35%);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-legal {
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---- Mobile Sticky Call Bar ---- */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--accent-grad);
  text-align: center;
  padding: 0;
}

.sticky-call-link {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.sticky-call-link:hover {
  color: #fff;
  opacity: 0.9;
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* Tablet — nav collapses, grids reduce */
@media (width <= 980px) {
  .nav-links {
    display: none;
  }

  .topbar-inner {
    justify-content: space-between;
  }

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

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

  .badge-row {
    flex-flow: row wrap;
    justify-content: center;
  }

  .badge-line {
    display: contents;
  }

  .card-wide {
    flex-direction: column;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

/* Mobile */
@media (width <= 767px) {
  .hero-section {
    background-attachment: scroll;
    padding-bottom: 6rem;
  }

  .hero-logo {
    height: 65px;
  }

  .section-band {
    padding: 3.5rem 0;
  }

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

  .sticky-call {
    display: block;
  }
}
