/**
 * Zelvixdateline — mobile-first styles
 * Inspired by automotive battery brand layouts (Heliar-like).
 */

:root {
  --zd-navy: #0b2a4a;
  --zd-navy-deep: #071c33;
  --zd-blue: #125a9c;
  --zd-blue-bright: #1a7ad4;
  --zd-accent: #e87722;
  --zd-accent-hover: #cf6516;
  --zd-bg: #f3f6f9;
  --zd-bg-soft: #e8eef4;
  --zd-surface: #ffffff;
  --zd-text: #1a2433;
  --zd-muted: #5a6b7d;
  --zd-border: #d5dde6;
  --zd-radius: 4px;
  --zd-shadow: 0 10px 30px rgba(7, 28, 51, 0.12);
  --zd-container: 1120px;
  --zd-font-display: "Montserrat", sans-serif;
  --zd-font-body: "Open Sans", sans-serif;
  --zd-header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--zd-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--zd-text);
  background: var(--zd-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--zd-blue);
  text-decoration: none;
}

a:hover {
  color: var(--zd-blue-bright);
}

h1, h2, h3, h4 {
  font-family: var(--zd-font-display);
  line-height: 1.2;
  color: var(--zd-navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--zd-container));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  left: 1rem;
  top: 1rem;
  z-index: 100000;
  background: var(--zd-navy);
  color: #fff;
  padding: 0.75rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--zd-radius);
  border: 2px solid transparent;
  font-family: var(--zd-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--zd-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--zd-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--zd-navy);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--zd-blue);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.text-link {
  font-family: var(--zd-font-display);
  font-weight: 700;
  color: var(--zd-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link::after {
  content: "→";
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--zd-surface);
  box-shadow: 0 2px 12px rgba(7, 28, 51, 0.08);
}

.site-header__top {
  display: none;
  background: var(--zd-navy-deep);
  color: #fff;
  font-size: 0.85rem;
}

.site-header__top a {
  color: #fff;
}

.site-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}

.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--zd-header-h);
  padding-block: 0.5rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.site-brand .custom-logo-link img,
.custom-logo {
  max-height: 42px;
  width: auto;
}

.site-brand__text {
  color: var(--zd-navy);
}

.site-brand__name {
  font-family: var(--zd-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-brand__tag {
  font-size: 0.68rem;
  color: var(--zd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--zd-border);
  background: var(--zd-surface);
  border-radius: var(--zd-radius);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--zd-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: var(--zd-header-h) 0 auto 0;
  background: var(--zd-surface);
  border-bottom: 1px solid var(--zd-border);
  padding: 1rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-height: calc(100vh - var(--zd-header-h));
  overflow: auto;
}

.primary-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.primary-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.primary-menu > .menu-item > a {
  display: block;
  padding: 0.85rem 0.5rem;
  color: var(--zd-navy);
  font-family: var(--zd-font-display);
  font-weight: 600;
  border-bottom: 1px solid var(--zd-bg-soft);
}

.primary-menu .sub-menu {
  padding-left: 0.75rem;
}

.primary-menu .sub-menu a {
  display: block;
  padding: 0.55rem 0.5rem;
  color: var(--zd-muted);
  font-size: 0.92rem;
}

.header-search {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.header-search input {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius);
  padding: 0 0.85rem;
  font: inherit;
}

.header-search button {
  min-height: 44px;
  border: 0;
  border-radius: var(--zd-radius);
  background: var(--zd-navy);
  color: #fff;
  padding: 0 1rem;
  font-family: var(--zd-font-display);
  font-weight: 700;
  cursor: pointer;
}

/* Hero — full bleed */
.home-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--zd-navy-deep);
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 28, 51, 0.35) 0%, rgba(7, 28, 51, 0.78) 55%, rgba(7, 28, 51, 0.92) 100%),
    radial-gradient(circle at 20% 20%, rgba(26, 122, 212, 0.25), transparent 50%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.5rem;
}

.home-hero__eyebrow {
  font-family: var(--zd-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  animation: zd-fade-up 0.7s ease both;
}

.home-hero__title {
  color: #fff;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  animation: zd-fade-up 0.8s ease 0.05s both;
}

.home-hero__text {
  font-size: 1.05rem;
  max-width: 34rem;
  opacity: 0.95;
  animation: zd-fade-up 0.8s ease 0.1s both;
}

.home-hero__bullets {
  display: grid;
  gap: 0.4rem;
  margin: 1.1rem 0 1.4rem;
  animation: zd-fade-up 0.8s ease 0.15s both;
}

.home-hero__bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-weight: 600;
}

.home-hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--zd-accent);
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: zd-fade-up 0.8s ease 0.2s both;
}

.home-hero__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

.home-hero--inner {
  min-height: 56vh;
}

/* Finder */
.home-finder,
.page-shell .home-finder {
  background: var(--zd-surface);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--zd-border);
}

.section-title {
  font-size: clamp(1.45rem, 5vw, 2rem);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title strong {
  color: var(--zd-blue);
}

.finder-form__grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.finder-field span,
.contact-form label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zd-muted);
}

.finder-field select,
.finder-field input,
.contact-form input,
.contact-form textarea,
.store-form input,
.store-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius);
  padding: 0.65rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--zd-text);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Why */
.home-why {
  padding: 3rem 0;
  background:
    linear-gradient(180deg, var(--zd-bg) 0%, var(--zd-bg-soft) 100%);
}

.why-grid {
  display: grid;
  gap: 1.25rem;
}

.why-item {
  background: var(--zd-surface);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid var(--zd-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--zd-shadow);
}

.why-item__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--zd-bg-soft);
}

.why-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-item__title {
  font-size: 1.15rem;
}

.why-item__text {
  color: var(--zd-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Products */
.home-products {
  padding: 0.5rem 0 3rem;
}

.products-list {
  display: grid;
  gap: 1.5rem;
}

.product-block {
  background: var(--zd-surface);
  overflow: hidden;
  border: 1px solid var(--zd-border);
}

.product-block__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--zd-navy-deep);
}

.product-block__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-block:hover .product-block__img {
  transform: scale(1.04);
}

.product-block__body {
  padding: 1.35rem 1.25rem 1.6rem;
}

.product-block__title {
  font-size: 1.4rem;
}

.product-block__text {
  color: var(--zd-muted);
}

/* Express CTA */
.home-express {
  background: linear-gradient(135deg, var(--zd-navy) 0%, var(--zd-blue) 100%);
  color: #fff;
  padding: 2.5rem 0;
}

.home-express__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.home-express__title,
.home-network__title {
  color: inherit;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
}

.home-express__text {
  font-size: 1.05rem;
  opacity: 0.95;
}

.home-express__note {
  font-size: 0.8rem;
  opacity: 0.75;
}

.home-express__media {
  max-width: 320px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--zd-shadow);
}

.home-express__img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Network */
.home-network {
  padding: 3rem 0;
  background: var(--zd-surface);
}

.home-network__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.home-network__media {
  overflow: hidden;
  border-radius: var(--zd-radius);
}

.home-network__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-network__text {
  color: var(--zd-muted);
}

/* Blog */
.home-blog {
  padding: 0 0 3.5rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.section-head .section-title {
  text-align: left;
  margin: 0;
}

.blog-grid {
  display: grid;
  gap: 1.25rem;
}

.blog-card {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--zd-shadow);
}

.blog-card__link {
  color: inherit;
  display: block;
}

.blog-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.1rem 1.15rem 1.35rem;
}

.blog-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.blog-card__excerpt {
  color: var(--zd-muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.blog-card__meta {
  font-size: 0.8rem;
  color: var(--zd-blue);
  font-weight: 600;
}

/* Pages */
.page-shell {
  padding: 2rem 0 3rem;
}

.entry-title,
.archive-title {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.page-lead {
  color: var(--zd-muted);
  max-width: 40rem;
}

.entry-content {
  max-width: 48rem;
}

.entry-thumb {
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  border-radius: var(--zd-radius);
}

.entry-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.layout-with-sidebar {
  display: grid;
  gap: 2rem;
}

.sidebar .widget {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.sidebar .widget-title {
  font-size: 1rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  padding: 1.25rem;
}

.form-notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--zd-radius);
  font-weight: 600;
}

.form-notice--ok {
  background: #e6f6ea;
  color: #1d6b35;
}

.form-notice--erro {
  background: #fdecea;
  color: #9b1c1c;
}

.faq-item {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  margin-bottom: 0.75rem;
  padding: 0.25rem 1rem;
}

.faq-item__q {
  cursor: pointer;
  font-family: var(--zd-font-display);
  font-weight: 700;
  padding: 1rem 0;
  color: var(--zd-navy);
}

.faq-item__a {
  color: var(--zd-muted);
  padding-bottom: 1rem;
}

.store-form {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.store-list {
  display: grid;
  gap: 1rem;
}

.store-item {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  padding: 1.1rem 1.2rem;
}

.store-item h3 {
  margin-bottom: 0.35rem;
}

.finder-result {
  margin-top: 2rem;
}

.finder-result__meta {
  color: var(--zd-muted);
  text-transform: capitalize;
}

.sitemap-list {
  columns: 1;
  margin-bottom: 2rem;
}

.sitemap-list li {
  margin-bottom: 0.4rem;
}

.error-404 {
  text-align: center;
  padding: 3rem 0;
}

/* Footer */
.site-footer {
  background: var(--zd-navy-deep);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__top {
  padding: 2.5rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

.site-brand--footer .site-brand__name,
.site-brand--footer a {
  color: #fff;
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__heading {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-menu,
.footer-quick-menu,
.social-links,
.legal-menu {
  display: grid;
  gap: 0.45rem;
}

.site-footer__friends {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 0;
}

.site-footer__friends--bottom {
  background: #04111f;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.25rem 0 1.6rem;
}

.friend-links__title {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.friend-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.friend-links__item a {
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.4rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

/* Motion */
@keyframes zd-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Tablet */
@media (min-width: 640px) {
  .home-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .finder-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-express__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .home-express__media {
    margin-inline: 0 0 auto;
  }

  .sitemap-list {
    columns: 2;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .site-header__top {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: transparent;
  }

  .primary-menu {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .primary-menu > .menu-item {
    position: relative;
  }

  .primary-menu > .menu-item > a {
    border: 0;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
  }

  .primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--zd-border);
    box-shadow: var(--zd-shadow);
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
  }

  .primary-menu > .menu-item:hover > .sub-menu,
  .primary-menu > .menu-item:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-search {
    margin-top: 0;
    width: 200px;
  }

  .header-search button {
    display: none;
  }

  .home-hero {
    align-items: center;
  }

  .home-hero__content {
    padding: 5rem 0;
    max-width: 40rem;
    margin-left: 0;
    margin-right: auto;
  }

  .product-block {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }

  .product-block:nth-child(even) .product-block__media {
    order: 2;
  }

  .product-block__media {
    aspect-ratio: auto;
    min-height: 280px;
  }

  .product-block__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
  }

  .home-network__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
  }

  .blog-grid,
  .blog-grid--archive {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .site-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

  .site-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .site-brand__tag {
    max-width: none;
  }
}

@media (min-width: 1200px) {
  :root {
    --zd-header-h: 72px;
  }

  .home-hero {
    min-height: min(88vh, 820px);
  }
}

/* WP alignment helpers */
.alignwide {
  max-width: min(100%, 1200px);
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-block-image img {
  height: auto;
}
