:root {
  --ocean-blue: #0056b3;
  --white: #ffffff;
  --text-dark: #0f2745;
  --bg-light: #f4f8ff;
  --blue-soft: #dcecff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 40%, #f7fbff 100%);
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 86, 179, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ocean-blue);
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ocean-blue);
  color: var(--white);
  font-size: 0.9rem;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 86, 179, 0.25));
  transition: transform 0.35s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text {
  white-space: nowrap;
  font-size: 1.1rem;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(0, 86, 179, 0.08);
  color: var(--ocean-blue);
  transform: translateY(-1px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 86, 179, 0.15);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.2s ease;
}

.dropdown a {
  display: block;
  text-decoration: none;
  color: var(--text-dark);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(0, 86, 179, 0.08);
  color: var(--ocean-blue);
}

/* Hover dropdowns on desktop */
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-btn {
  text-decoration: none;
  background: var(--ocean-blue);
  color: var(--white);
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 86, 179, 0.3);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ocean-blue);
  margin: 5px 0;
}

.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.2) 0%, rgba(0, 86, 179, 0) 70%);
  top: -100px;
  right: -60px;
  animation: floatOrb 8s ease-in-out infinite;
}

.hero::after {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 86, 179, 0.12) 0%, rgba(0, 86, 179, 0) 70%);
  bottom: -90px;
  left: -40px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid rgba(0, 86, 179, 0.12);
  border-radius: 18px;
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: 0 14px 32px rgba(0, 39, 89, 0.12);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2.3vw + 1rem, 3rem);
  color: var(--ocean-blue);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.hero p {
  margin: 0;
  max-width: 65ch;
  line-height: 1.6;
}

.page-section {
  min-height: calc(100vh - 210px);
}

.site-footer {
  background: linear-gradient(135deg, #004999 0%, #0056b3 60%, #0066d4 100%);
  color: var(--white);
  padding: 2rem 0 1.25rem;
}

.home-section {
  padding: 1.5rem 0 2.25rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  color: var(--ocean-blue);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.4rem, 1vw + 1rem, 2rem);
}

.section-head p {
  margin: 0.5rem 0 0;
  color: #47617f;
}

.section-head.center {
  text-align: center;
}

.home-hero {
  min-height: min(72vh, 760px);
  padding: 6rem 0 4rem;
  display: grid;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(0, 39, 89, 0.7), rgba(0, 86, 179, 0.4)),
    url("https://images.unsplash.com/photo-1502920514313-52581002a659?auto=format&fit=crop&w=1920&q=80")
    center / cover no-repeat;
}

.home-hero-content {
  color: var(--white);
  max-width: 760px;
}

.home-hero h1 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.home-hero p {
  margin: 0;
  font-size: clamp(1rem, 0.8vw + 0.8rem, 1.2rem);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.primary-cta {
  margin-top: 1.3rem;
  display: inline-block;
  text-decoration: none;
  background: var(--white);
  color: var(--ocean-blue);
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 86, 179, 0.12);
  box-shadow: 0 8px 20px rgba(0, 56, 116, 0.12);
  transform-origin: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 56, 116, 0.18);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card-body {
  padding: 1rem;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.product-card p {
  margin: 0 0 0.9rem;
  color: #496384;
}

.amazon-btn {
  display: inline-block;
  text-decoration: none;
  background: var(--ocean-blue);
  color: var(--white);
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.amazon-btn:hover,
.amazon-btn:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.category-tile {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  background: var(--white);
  border: 1px solid rgba(0, 86, 179, 0.12);
  border-radius: 14px;
  padding: 0.75rem;
  color: inherit;
  box-shadow: 0 8px 20px rgba(0, 56, 116, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 13px 24px rgba(0, 56, 116, 0.16);
}

.category-tile img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 10px;
}

.category-tile h3 {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ocean-blue);
}

.category-tile p {
  margin: 0;
  color: #4c6888;
}

.trust-section {
  padding-bottom: 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(0, 86, 179, 0.12);
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 56, 116, 0.08);
}

.trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--blue-soft);
  margin-bottom: 0.55rem;
}

.trust-item h3 {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.trust-item p {
  margin: 0;
  color: #4e6b8b;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  text-align: right;
}

.page-section .container,
.site-footer .container {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.page-ready .page-section .container,
.page-ready .site-footer .container {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatOrb {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 86, 179, 0.2);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem 4%;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-link {
    width: 100%;
  }

  .dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0.6rem 0.8rem;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .contact-btn {
    margin: 0.5rem 0 0.75rem;
    text-align: center;
  }

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

  .copyright {
    text-align: left;
  }

  .home-hero {
    min-height: 62vh;
    padding: 5rem 0 2.6rem;
  }

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

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

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

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    grid-template-columns: 1fr;
  }

  .category-tile img {
    height: 150px;
  }
}
