/* ===== Reset & Base ===== */
html {
  scroll-behavior: smooth;
}
body {
  background-color: #070606;
  color: white;
  margin: 0;
  font-family: "Lexend", sans-serif;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* ===== Visually hidden (accessible) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Focus states ===== */
a:focus-visible,
button:focus-visible,
.email-link:focus-visible,
.cta-primary:focus-visible,
.hamburger-toggle:focus-visible + .hamburger-label {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #fff;
  color: #070606;
  padding: 8px 16px;
  z-index: 1000;
  font-size: 16px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* ===== Navigation (Step 1: Sticky Frosted Glass) ===== */
.nav-header-bg {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(7, 6, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  max-width: 80%;
  margin-left: 10%;
  background-color: transparent;
}
.navImage {
  padding: 10px;
}
.navImage a {
  display: inline-block;
}
.logo {
  width: 200px;
}
.navText {
  list-style: none;
  display: flex;
  gap: 20px;
}
/* Step 3: Nav link typography */
.navText li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}
.navText li a:hover,
.navText li a:focus {
  color: white;
  text-decoration: none;
}

/* Hamburger menu — visually hidden everywhere (sr-only handles checkbox), label hidden on desktop */
.hamburger-label {
  display: none;
}

/* ===== Main Content ===== */
.content {
  position: relative;
}

/* ===== Hero Section (Step 2) ===== */
.mainImageContainer {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.mainImageContainer picture {
  display: block;
  width: 100%;
  height: 100%;
}
.mainImage {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 1;
}
.mainImageContainer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 6, 6, 0.7) 0%,
    rgba(7, 6, 6, 0.3) 30%,
    rgba(7, 6, 6, 0.25) 50%,
    rgba(7, 6, 6, 0.3) 70%,
    rgba(7, 6, 6, 0.85) 100%
  );
  pointer-events: none;
}
.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 90%;
  z-index: 1;
  animation: heroFadeIn 1.2s ease forwards;
  text-align: center;
}
.title h1 {
  font-size: 48px;
  margin: 0;
  white-space: normal;
  word-wrap: break-word;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}
.tagline {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  margin: 24px auto 36px;
  max-width: 700px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.cta-primary {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.cta-primary:hover,
.cta-primary:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  z-index: 1;
  transition: border-color 0.3s ease;
}
.scroll-indicator:hover,
.scroll-indicator:focus {
  border-color: white;
}
.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  margin: 8px auto 0;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 0; }
  40%  { opacity: 1; }
  80%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ===== Typography (Step 3) ===== */
h2 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.06em;
}
h3 {
  font-weight: 500;
  letter-spacing: 0.04em;
}
p {
  font-size: 24px;
  line-height: 1.65;
}

/* ===== Section Separators (Step 4) ===== */
.aboutUs::before,
.services::before,
.whyUs::before,
.ourProducts::before,
.contactUs::before {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  margin: 0 auto 60px;
  background: linear-gradient(to right, transparent, rgba(172, 169, 169, 0.3), transparent);
}

/* ===== About Us (Step 5) ===== */
.aboutUs {
  padding: 100px 10%;
  text-align: center;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
}
.aboutUs h2 {
  position: relative;
  padding-bottom: 20px;
}
.aboutUs h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(172, 169, 169, 0.6), transparent);
}
.aboutUs p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Services ===== */
.services {
  padding: 80px 10%;
  text-align: center;
}
.services h2 {
  position: relative;
  padding-bottom: 20px;
}
.services h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(172, 169, 169, 0.6), transparent);
}
.section-intro {
  color: rgba(255, 255, 255, 0.75);
  max-width: 720px;
  margin: 30px auto 60px;
  font-size: 20px;
}
.servicesGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.serviceCard {
  padding: 2rem;
  text-align: left;
  background: linear-gradient(145deg, rgba(38, 36, 36, 0.4), rgba(10, 9, 9, 0.6));
  border: 1px solid rgba(172, 169, 169, 0.12);
  border-radius: 12px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.serviceCard:hover {
  border-color: rgba(172, 169, 169, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.serviceCard h3 {
  font-size: 24px;
  margin: 0 0 12px;
  color: white;
}
.serviceCard p {
  font-size: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Why Us ===== */
.whyUs {
  padding: 80px 10%;
  text-align: center;
}
.whyUs h2 {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 60px;
}
.whyUs h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(172, 169, 169, 0.6), transparent);
}
.pillarsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pillar {
  padding: 1.5rem;
  text-align: center;
}
.pillar h3 {
  font-size: 22px;
  margin: 0 0 14px;
  color: white;
}
.pillar p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* ===== Products (Step 6) ===== */
.ourProducts {
  padding: 50px 10%;
  text-align: center;
}
.gridContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4rem;
}
.productLogo {
  width: 300px;
}
.center {
  display: flex;
  justify-content: center;
  align-self: center;
}
.logoContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 200px;
  border: rgba(172, 169, 169, 0.15) solid 2px;
  border-radius: 15px;
  padding: 10px;
  background: linear-gradient(145deg, #0d0c0c, #0a0909);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.logoContainer:hover {
  border-color: #aca9a9;
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(172, 169, 169, 0.06), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.prodContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  width: 80%;
  padding: 1.5rem;
  border: 1px solid rgba(172, 169, 169, 0.1);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(38, 36, 36, 0.4), rgba(10, 9, 9, 0.6));
  transition: border-color 0.3s ease;
}
.prodContent:hover {
  border-color: rgba(172, 169, 169, 0.3);
}
.prodContent h3,
.prodContent p {
  margin: 5px 0;
}
.prodContent h3 {
  font-size: 32px;
}
.prodContent p {
  font-size: 20px;
}
.subText {
  color: #aca9a9;
}
.padBot {
  padding-bottom: 100px;
}

/* ===== Contact Us (Step 7) ===== */
.contactUs {
  text-align: center;
  padding: 50px 10%;
  clear: both;
}
.office {
  padding: 30px;
  position: relative;
  text-align: left;
  background: linear-gradient(145deg, #2a2828, #1e1c1c);
  border: 1px solid rgba(172, 169, 169, 0.1);
  border-radius: 0px 15px 0px 15px;
  max-width: 700px;
  margin: 0 auto;
}
.office::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(172, 169, 169, 0.3), transparent);
  border-radius: 1px;
}
.office h3 {
  font-size: 30px;
}
.office p {
  font-size: 24px;
}
.contact-row {
  display: flex;
  align-items: center;
}
.contact-icon {
  width: 30px;
  flex-shrink: 0;
}
.contact-text {
  padding-left: 20px;
}
.email-link {
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(172, 169, 169, 0.3);
  border-radius: 6px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.email-link:hover,
.email-link:focus {
  background-color: rgba(172, 169, 169, 0.1);
  border-color: rgba(172, 169, 169, 0.5);
  text-decoration: none;
}

/* ===== Footer (Step 8) ===== */
footer {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  clear: both;
  border-top: 1px solid rgba(172, 169, 169, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover,
.footer-links a:focus {
  color: white;
}

/* ===== Legal / PAIA page ===== */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 10% 100px;
  color: rgba(255, 255, 255, 0.85);
}
.legal-header {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(172, 169, 169, 0.15);
  margin-bottom: 50px;
}
.legal-eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(172, 169, 169, 0.9);
  margin: 0 0 16px;
}
.legal-header h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
}
.legal-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.legal-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(172, 169, 169, 0.9);
  margin: 0;
}
.legal-download {
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(172, 169, 169, 0.4);
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.legal-download:hover,
.legal-download:focus {
  background-color: rgba(172, 169, 169, 0.1);
  border-color: rgba(172, 169, 169, 0.7);
}
.legal-content section {
  margin-bottom: 48px;
}
.legal-content h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(172, 169, 169, 0.15);
}
.legal-content h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 28px 0 12px;
  color: rgba(255, 255, 255, 0.95);
}
.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
}
.legal-content ul,
.legal-content ol {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 24px;
  margin: 0 0 16px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content ul ul {
  margin-top: 8px;
}
.legal-content a {
  color: #d4d4d4;
  text-decoration: underline;
  text-decoration-color: rgba(172, 169, 169, 0.4);
  text-underline-offset: 3px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
  word-break: break-word;
}
.legal-content a:hover,
.legal-content a:focus {
  color: white;
  text-decoration-color: white;
}
.legal-content strong {
  color: white;
  font-weight: 500;
}
.numbered-list {
  list-style: none;
  padding-left: 0;
  counter-reset: paia-counter;
}
.numbered-list li {
  counter-increment: paia-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 14px;
}
.numbered-list li::before {
  content: "2." counter(paia-counter);
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(172, 169, 169, 0.9);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.contact-list {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 12px 24px;
  margin: 0 0 20px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(38, 36, 36, 0.4), rgba(10, 9, 9, 0.6));
  border: 1px solid rgba(172, 169, 169, 0.12);
  border-radius: 12px;
}
.contact-list dt {
  font-weight: 500;
  color: rgba(172, 169, 169, 0.9);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: center;
}
.contact-list dd {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  align-self: center;
}

@media (max-width: 600px) {
  .legal-page {
    padding: 40px 6% 60px;
  }
  .legal-header h1 {
    font-size: 32px;
  }
  .legal-subtitle {
    font-size: 15px;
  }
  .legal-content h2 {
    font-size: 22px;
  }
  .legal-content h3 {
    font-size: 17px;
  }
  .legal-content p,
  .legal-content ul,
  .legal-content ol {
    font-size: 14px;
  }
  .numbered-list li {
    padding-left: 42px;
  }
  .contact-list {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 18px;
  }
  .contact-list dt {
    margin-top: 8px;
  }
  .contact-list dt:first-child {
    margin-top: 0;
  }
}

/* ===== Scroll Animations (Step 9) ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  .scroll-indicator span { animation: none; }
}

/* ===== Tablet (Step 10) ===== */
@media (min-width: 601px) and (max-width: 1024px) {
  .title {
    width: auto;
    padding: 0 20px;
  }
  .title h1 {
    font-size: 36px;
    width: auto;
  }
  .tagline {
    font-size: 18px;
    margin: 20px auto 28px;
  }
  .gridContainer {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 1rem;
  }
  .servicesGrid {
    grid-template-columns: 1fr;
  }
  .pillarsGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .order {
    order: 1;
  }
  .padBot {
    padding-bottom: 0px;
  }
  .navBar {
    width: 90%;
    margin-left: 10%;
  }
  .aboutUs::before,
  .services::before,
  .whyUs::before,
  .ourProducts::before,
  .contactUs::before {
    width: 50%;
  }
}

/* ===== Mobile (Step 10) ===== */
@media (max-width: 600px) {
  /* Hamburger menu */
  .hamburger-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
  }
  .hamburger-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .navText {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #070606;
    padding: 20px 0;
    gap: 10px;
    z-index: 9;
  }
  .hamburger-toggle:checked ~ .navText {
    display: flex;
  }
  .hamburger-toggle:checked ~ .hamburger-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .hamburger-toggle:checked ~ .hamburger-label span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-toggle:checked ~ .hamburger-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .navBar {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    margin: 0;
    left: 0;
    right: 0;
    padding: 0 10px;
    position: relative;
  }
  .navImage {
    padding: 0;
  }
  .logo {
    width: 100px;
  }
  .navText li a {
    gap: 0px;
    font-size: 16px;
    text-wrap: nowrap;
  }
  .content {
    position: relative;
  }
  .mainImageContainer {
    height: 60vh;
  }
  .mainImage {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .title {
    padding: 0 20px;
  }
  .title h1 {
    font-size: 24px;
    white-space: normal;
    word-wrap: break-word;
    width: auto;
  }
  .tagline {
    font-size: 14px;
    margin: 14px auto 22px;
  }
  .cta-primary {
    padding: 10px 22px;
    font-size: 13px;
  }
  .scroll-indicator {
    width: 22px;
    height: 36px;
    bottom: 20px;
  }
  h2 {
    font-size: 24px;
  }
  p {
    font-size: 15px;
  }
  .aboutUs {
    padding: 20px 0px;
    text-align: center;
    justify-self: center;
    width: 80%;
  }
  .aboutUs::before,
  .services::before,
  .whyUs::before,
  .ourProducts::before,
  .contactUs::before {
    width: 40%;
    margin-bottom: 30px;
  }
  .services {
    padding: 40px 0;
    width: 80%;
    margin: 0 auto;
  }
  .section-intro {
    font-size: 14px;
    margin: 20px auto 30px;
  }
  .servicesGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .serviceCard {
    padding: 1.25rem;
  }
  .serviceCard h3 {
    font-size: 18px;
  }
  .serviceCard p {
    font-size: 14px;
  }
  .whyUs {
    padding: 40px 0;
    width: 80%;
    margin: 0 auto;
  }
  .whyUs h2 {
    margin-bottom: 30px;
  }
  .pillarsGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pillar {
    padding: 0.5rem;
  }
  .pillar h3 {
    font-size: 17px;
  }
  .pillar p {
    font-size: 14px;
  }
  .ourProducts {
    padding: 20px 0px;
    text-align: center;
    justify-self: center;
    width: 80%;
  }
  .contactUs {
    text-align: center;
    justify-self: center;
    padding: 20px 0px;
    width: 80%;
  }
  .gridContainer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 1rem;
  }
  .productLogo {
    width: 200px;
  }
  .logoContainer {
    width: 250px;
    height: 125px;
    padding: 10px;
  }
  .prodContent {
    text-align: left;
    width: 80%;
    padding: 1rem;
  }
  .prodContent h3 {
    font-size: 18px;
  }
  .prodContent p {
    font-size: 14px;
  }
  .order {
    order: 1;
  }
  .padBot {
    padding-bottom: 0px;
  }
  .office {
    padding: 30px;
    border-radius: 0px 15px 0px 15px;
  }
  .office h3 {
    font-size: 20px;
  }
  .office p {
    font-size: 14px;
  }
  .email-link {
    padding: 8px 16px;
    font-size: 14px;
  }
  footer {
    font-size: 12px;
  }
}
