/* ==========================================================
   Paxonpilot — styles.css
   Visual structure modelled on ejhadaway.com.au
   ========================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #333;
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ==========================================================
   TOP BAR  –  thin dark strip with phone & address
   ========================================================== */
.top-bar {
  background: #1e1e1e;
  color: #b0b0b0;
  font-size: 13px;
  padding: 7px 0;
  letter-spacing: 0.3px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact {
  font-weight: 600;
  color: #d4d4d4;
}


/* ==========================================================
   HEADER  –  white bar, sticky, red bottom border
   ========================================================== */
.site-header {
  background: #fff;
  border-bottom: 3px solid #c8102e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: 800;
  color: #1e1e1e;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo:hover {
  color: #c8102e;
}

/* ---- Primary Navigation ---- */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul > li > a {
  display: block;
  padding: 24px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e1e1e;
  position: relative;
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: #c8102e;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-nav > ul > li:hover > a::after,
.main-nav > ul > li > a:focus::after {
  transform: scaleX(1);
}

.main-nav > ul > li:hover > a {
  color: #c8102e;
}

/* ---- Dropdown Menus ---- */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-top: 3px solid #c8102e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 2000;
}

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

.dropdown li a {
  display: block;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: #f7f7f7;
  color: #c8102e;
  padding-left: 24px;
}


/* ==========================================================
   HERO BANNER  –  dark gradient, centred text, CTA button
   ========================================================== */
.hero {
  position: relative;
  padding: 130px 0 120px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #1a1a1a 0%, #2b2b2b 40%, #1a1a1a 100%);
  z-index: 0;
}

/* subtle diagonal stripe texture */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.015) 4px,
    rgba(255, 255, 255, 0.015) 8px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero p {
  font-size: 16px;
  color: #b8b8b8;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}


/* ==========================================================
   BUTTONS  –  solid red primary, outlined secondary
   ========================================================== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #c8102e;
  background: #c8102e;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  background: #a50d24;
  border-color: #a50d24;
}

.btn-outline {
  background: transparent;
  color: #c8102e;
}

.btn-outline:hover {
  background: #c8102e;
  color: #fff;
}


/* ==========================================================
   SECTIONS  –  shared section rhythm
   ========================================================== */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e1e1e;
  text-align: center;
  margin-bottom: 14px;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

.section .btn,
.section .btn-outline {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
}


/* ==========================================================
   CARD GRID  –  capabilities & products
   ========================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  padding: 32px 20px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  color: #c8102e;
}

.card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e1e1e;
}


/* ==========================================================
   CAPABILITIES  –  white background (default)
   ========================================================== */
.capabilities {
  background: #fff;
}


/* ==========================================================
   FEATURED PRODUCTS  –  light grey band
   ========================================================== */
.products {
  background: #f0f0f0;
}

.product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
}

.product-card .product-img {
  height: 150px;
  background: #d8d8d8;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 13px;
}

.product-card h3 a {
  color: #1e1e1e;
}

.product-card h3 a:hover {
  color: #c8102e;
}


/* ==========================================================
   STORY  –  dark full-width band (like EJH "Hadaway Story")
   ========================================================== */
.story {
  background: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 90px 0;
}

.story h2 {
  color: #fff;
  margin-bottom: 20px;
}

.story p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #aaa;
  font-size: 15px;
  line-height: 1.85;
}

.story .btn-outline {
  border-color: #fff;
  color: #fff;
}

.story .btn-outline:hover {
  background: #fff;
  color: #1e1e1e;
}


/* ==========================================================
   COMPETITIVE ADVANTAGES  –  white, 3-col grid with icons
   ========================================================== */
.advantages {
  background: #fff;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
  margin-top: 40px;
}

.advantage-item {
  text-align: center;
  padding: 0 10px;
}

.advantage-item h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1e1e1e;
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}


/* ==========================================================
   FOOTER  –  dark charcoal, multi-column layout
   ========================================================== */
.site-footer {
  background: #1a1a1a;
  color: #999;
  padding-top: 56px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 44px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 16px;
}

.footer-col p {
  color: #999;
  line-height: 1.7;
  margin-bottom: 4px;
}

.footer-col p strong {
  color: #ddd;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #c8102e;
}

.footer-col ul li {
  margin-bottom: 7px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #888;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
  color: #c8102e;
  padding-left: 4px;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.footer-bottom p {
  color: #666;
}

.footer-bottom ul {
  display: flex;
  gap: 20px;
}

.footer-bottom ul li a {
  color: #666;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-bottom ul li a:hover {
  color: #c8102e;
}


/* ==========================================================
   PAGE HERO  –  shorter hero for inner pages
   ========================================================== */
.page-hero {
  position: relative;
  padding: 70px 0 60px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a1a1a 0%, #2b2b2b 40%, #1a1a1a 100%);
  z-index: 0;
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 15px;
  color: #b8b8b8;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ==========================================================
   BREADCRUMB BAR
   ========================================================== */
.breadcrumb-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 14px 0;
  font-size: 13px;
  color: #888;
}

.breadcrumb-bar a {
  color: #666;
}

.breadcrumb-bar a:hover {
  color: #c8102e;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #bbb;
}

.breadcrumb-current {
  color: #1e1e1e;
  font-weight: 600;
}


/* ==========================================================
   PRODUCTS LISTING PAGE  –  enhanced product cards
   ========================================================== */
.products-listing {
  background: #f0f0f0;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-link .product-img {
  height: 200px;
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-link .product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

.product-card-link:hover .product-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1e1e1e;
  margin-bottom: 8px;
}

.product-short-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}

.btn-text {
  font-size: 13px;
  font-weight: 700;
  color: #c8102e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: padding-left 0.2s ease;
}

.product-card-link:hover .btn-text {
  padding-left: 6px;
}


/* ==========================================================
   PRODUCT DETAIL PAGE
   ========================================================== */
.product-detail {
  background: #fff;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-detail-image {
  background: #1a1a1a;
  border: 1px solid #e0e0e0;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
}

.product-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c8102e;
  background: rgba(200, 16, 46, 0.08);
  padding: 5px 14px;
  margin-bottom: 16px;
}

.product-detail-info h1 {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1e1e1e;
  margin-bottom: 18px;
  line-height: 1.3;
}

.product-full-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 32px;
}


/* ---- Specifications Table ---- */
.specs-table-wrap {
  margin-bottom: 32px;
}

.specs-table-wrap h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e1e1e;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c8102e;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 11px 0;
  font-size: 14px;
  vertical-align: top;
}

.spec-label {
  font-weight: 700;
  color: #1e1e1e;
  width: 40%;
  padding-right: 16px;
}

.spec-value {
  color: #555;
}


/* ---- Product Actions ---- */
.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-actions .btn,
.product-actions .btn-outline {
  display: inline-block;
  width: auto;
  margin: 0;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 3px;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 14px 20px;
    gap: 12px;
  }

  .main-nav > ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .main-nav > ul > li > a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .hero h1 {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .hero p {
    font-size: 14px;
  }

  .section {
    padding: 50px 0;
  }

  .section h2 {
    font-size: 20px;
  }

  .card-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-detail-info h1 {
    font-size: 22px;
  }

  .page-hero h1 {
    font-size: 24px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn,
  .product-actions .btn-outline {
    text-align: center;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
