/*
 * AQUROV homepage styles.
 *
 * Scoped to .home-page so nothing here leaks into other templates. The header
 * and footer come from header.php / footer.php and are not restyled here.
 * Every photo sits in a fixed-ratio wrapper, so a real photo dropped in later
 * cannot shift the layout.
 */

.home-page {
  --h-blue: #0F5FB8;
  --h-blue-dark: #0A4D95;
  --h-cyan: #1697B8;
  --h-navy: #0D1B2A;
  --h-navy-2: #102438;
  --h-white: #FFFFFF;
  --h-surface: #EEF3F7;
  --h-alt: #F5F7FA;
  --h-border: #DBE3EA;
  --h-ink: #17212B;
  --h-body: #40505E;
  --h-muted: #687684;
  --h-green: #2F7B4B;
  --h-amber: #A86A12;
  --h-red: #B3261E;
  --h-radius: 8px;
  --h-wrap: 1220px;

  background: var(--h-white);
  color: var(--h-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-page .home-wrap {
  max-width: var(--h-wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/*
 * The theme has no global box-sizing rule, so a full-width button with padding
 * overflows its container on narrow screens. Scope border-box to this page.
 */
.home-page,
.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

/* Buttons ---------------------------------------------------------------- */

.home-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-btn-primary {
  background: var(--h-blue);
  color: #fff;
}

.home-btn-primary:hover {
  background: var(--h-blue-dark);
}

.home-btn-outline {
  background: #fff;
  color: var(--h-blue);
  border-color: #B9C8D6;
}

.home-btn-outline:hover {
  border-color: var(--h-blue);
  background: #F7FBFF;
}

.home-btn-darkghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.home-btn-darkghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.home-btn-block {
  width: 100%;
}

/* Media wrappers --------------------------------------------------------- */

.home-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--h-radius);
  background: #E4EBF1;
}

.home-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-media-hero { aspect-ratio: 760 / 560; }
.home-media-cat { aspect-ratio: 480 / 300; }
.home-media-product { aspect-ratio: 4 / 3; }
.home-media-app { aspect-ratio: 400 / 260; }
.home-media-trust { aspect-ratio: 560 / 420; }

/* 1. Hero ---------------------------------------------------------------- */

.home-hero {
  background: linear-gradient(158deg, #0D1B2A 0%, #102438 52%, #0E2C42 100%);
  color: #fff;
  padding: 72px 0 80px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.home-hero-content {
  min-width: 0;
}

.home-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6FC3DC;
  margin-bottom: 16px;
}

.home-hero h1 {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 15ch;
}

.home-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: #C3D2DF;
  margin: 0 0 30px;
  max-width: 52ch;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-hero-visual .home-media {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Sections --------------------------------------------------------------- */

.home-section {
  padding: 72px 0;
}

.home-section-white { background: var(--h-white); }
.home-section-alt { background: var(--h-alt); }
.home-section-surface { background: var(--h-surface); }

.home-section-dark {
  background: var(--h-navy);
  color: #fff;
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.home-section-head h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0;
}

.home-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-blue);
  margin-bottom: 12px;
}

.home-section-dark .home-eyebrow,
.home-section-dark .home-kicker {
  color: #6FC3DC;
}

.home-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--h-muted);
  margin: 0;
}

.home-section-dark .home-lead {
  color: #B9C9D6;
}

/* 2. Product Ecosystem --------------------------------------------------- */

.home-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-cat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-cat:hover {
  border-color: var(--h-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 95, 184, 0.12);
}

.home-cat-body {
  padding: 18px 20px 22px;
}

.home-cat-body h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 6px;
}

.home-cat-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-blue);
  margin: 0;
}

.home-cat-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--h-muted);
  margin: 10px 0 0;
}

/* 3. Featured / latest products ------------------------------------------ */

.home-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-product:hover {
  border-color: #C2D2E0;
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
}

.home-product-media {
  display: block;
  background: #F2F6F9;
}

.home-product-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.home-product-name {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
  overflow-wrap: break-word;
}

.home-product-name a {
  text-decoration: none;
  color: inherit;
}

.home-product-name a:hover {
  color: var(--h-blue);
}

.home-product-specs {
  margin: 0;
  display: grid;
  gap: 6px;
}

.home-spec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  border-bottom: 1px dashed #E3EAF0;
  padding-bottom: 5px;
}

.home-spec-label {
  color: var(--h-muted);
  margin: 0;
}

.home-spec-value {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.home-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.home-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--h-ink);
}

.home-price del {
  font-size: 13px;
  font-weight: 600;
  color: var(--h-muted);
  margin-right: 4px;
}

.home-price ins {
  text-decoration: none;
}

.home-stock {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.home-stock-in {
  color: #1F5E39;
  background: #E4F2E9;
}

.home-stock-order {
  color: #7A4E0C;
  background: #FBF0DD;
}

.home-stock-out {
  color: var(--h-amber);
  background: #FDF5E7;
}

.home-more {
  margin: 32px 0 0;
  text-align: center;
}

/* 4. Engineering support path -------------------------------------------- */

.home-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.home-path-step {
  background: #fff;
  border: 1px solid var(--h-border);
  border-top: 3px solid var(--h-blue);
  border-radius: var(--h-radius);
  padding: 22px 20px 24px;
}

.home-path-num {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--h-blue);
  margin-bottom: 10px;
}

.home-path-step h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 8px;
}

.home-path-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--h-muted);
  margin: 0;
}

.home-path-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* 5. Technical resources ------------------------------------------------- */

.home-res-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.home-res-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--h-border);
}

.home-res-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--h-blue);
  padding-top: 3px;
}

.home-res-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.home-res-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--h-muted);
  margin: 3px 0 0;
}

.home-res-cta {
  margin-top: 30px;
}

/* 6. Applications -------------------------------------------------------- */

.home-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-app {
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  overflow: hidden;
}

.home-app-body {
  padding: 16px 18px 20px;
}

.home-app-body h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 8px;
}

.home-app-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--h-muted);
  margin: 0;
}

/* 7. Trust / evidence ---------------------------------------------------- */

.home-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.home-trust .home-media {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.home-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
}

.home-trust-item {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 14px;
}

.home-trust-title {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.home-trust-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #A9BCCB;
  margin: 0;
}

/* 8. Engineering depth behind AQUROV ------------------------------------- */

.home-depth {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.home-depth-panel {
  background: #fff;
  border: 1px solid var(--h-border);
  border-left: 3px solid var(--h-blue);
  border-radius: var(--h-radius);
  padding: 30px 32px;
}

.home-depth-panel h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin: 0 0 14px;
}

.home-depth-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--h-body);
  margin: 0 0 14px;
}

.home-depth-note {
  font-size: 11px;
  line-height: 1.6;
  color: #7E93A6;
  margin: 0 0 20px;
}

.home-depth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-depth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.home-depth-list li {
  position: relative;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--h-body);
  padding-left: 22px;
}

.home-depth-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--h-cyan);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1000px) {
  .home-hero {
    padding: 56px 0 64px;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-hero h1 {
    font-size: 40px;
    max-width: 20ch;
  }

  .home-section {
    padding: 56px 0;
  }

  .home-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .home-section-head h2 {
    font-size: 28px;
  }

  .home-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-res-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-trust {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-depth {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .home-page .home-wrap {
    padding: 0 16px;
  }

  .home-hero {
    padding: 44px 0 52px;
  }

  .home-hero h1 {
    font-size: 32px;
    max-width: none;
  }

  .home-hero p {
    font-size: 16px;
  }

  .home-section {
    padding: 44px 0;
  }

  .home-section-head h2 {
    font-size: 24px;
  }

  .home-cats,
  .home-products,
  .home-path,
  .home-apps {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-trust-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-hero-actions,
  .home-path-actions,
  .home-depth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-btn {
    width: 100%;
  }

  .home-path-step {
    padding: 18px 16px 20px;
  }

  .home-depth-panel {
    padding: 22px 18px;
  }

  .home-depth-panel h2 {
    font-size: 22px;
  }
}
