/* --------------------------------------------------
   BASE STYLES
-------------------------------------------------- */
:root {
  --font-body: system-ui, sans-serif;
  --font-title: Georgia, serif;

  --color-bg: #f8f9fa;
  --color-text: #222;
  --color-accent: #2a5f8f;

  --space-s: 0.75rem;
  --space-m: 1.5rem;
  --space-l: 3rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: var(--space-s) var(--space-m);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.site-title {
  font-family: var(--font-title);
  margin: 0;
}

/* --------------------------------------------------
   MAIN NAV (DESKTOP)
-------------------------------------------------- */
.site-nav {
  margin-left: 1rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 600;
}

@media (min-width: 801px) {
  .site-nav {
    padding-right: 60px;
  }
}

/* --------------------------------------------------
   MOBILE-ONLY NAV ITEMS
-------------------------------------------------- */
.mobile-only {
  display: none;
}

/* --------------------------------------------------
   MOBILE HAMBURGER MENU
-------------------------------------------------- */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-icon span {
  width: 25px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* --------------------------------------------------
   DESKTOP SUPPORT HAMBURGER
-------------------------------------------------- */
.support-toggle {
  display: none;
}

.support-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.support-icon span {
  width: 22px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.support-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ddd;
  padding: 0.5rem 0;
  list-style: none;
  width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.support-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-accent);
  text-decoration: none;
}

.support-toggle:checked + .support-icon + .support-menu {
  display: block;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------
   INTRO SECTION
-------------------------------------------------- */
.intro {
  padding: var(--space-l) var(--space-m);
}

.intro-inner {
  max-width: 900px;
  margin: 0 auto;
}

.intro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

.intro-text {
  flex: 2 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-image-wrap {
  flex: 1 1 0%;
  display: flex;
  justify-content: center; /* centers horizontally */ 
  align-items: center; /* centers vertically */
  align-self: start;
  padding-top: 3.20rem;
  flex-direction: column; 
  gap: 1rem; /* optional spacing */
}

/* Vertical image (large screens) */
.vert-img {
  width: 100%;
  height: auto;
  max-width: 180px; /* adjust to taste */
  object-fit: contain;
}

/* Horizontal image (hidden by default) */
.hori-img {
  display: none;
  width: 100%;
  height: auto;
  max-width: 300px; /* adjust to taste */
  margin: 0 auto;
}

@media (min-width: 700px) {
  .intro-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* --------------------------------------------------
   IMAGE SWAP BEHAVIOR
-------------------------------------------------- */

/* Medium screens: hide vertical image, show horizontal */
@media (max-width: 800px) {
  .intro-image-wrap {
    display: none;
  }

  .hori-img {
    display: block;
  }
}

/* Small screens: stack layout */
@media (max-width: 768px) {
  .intro-grid {
    flex-direction: column;
  }
}

/* --------------------------------------------------
   FEATURE GRID
-------------------------------------------------- */
.feature-grid {
  display: grid;
  gap: var(--space-m);
  padding: var(--space-m);
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------
   FEATURE CARDS
-------------------------------------------------- */
.feature-card {
  background: white;
  padding: var(--space-m);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);

  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: var(--space-s);
  align-items: start;
}

.feature-card h3 {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}

.feature-card p {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.feature-card .button {
  grid-column: 1 / 3;
  grid-row: 3;
  text-align: center;
  width: 100%;
  display: block;
  margin-top: var(--space-s);
}

.feature-card .card-icon {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 100px;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  align-self: start;
}

.card-icon {
  float: right;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-left: 10px;
  margin-bottom: 5px;
  border-radius: 4px;
}

.button {
  display: inline-block;
  margin-top: var(--space-s);
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* --------------------------------------------------
   SECONDARY HERO (match top hero width)
-------------------------------------------------- */

main .secondary-hero {
  padding-left: 0;
  padding-right: 0;
}

.secondary-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-m);
  background: var(--color-bg);
}

.secondary-hero img.hero-image {
  width: 100%;
  height: auto;
  display: block;
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: var(--space-m);
  color: #555;
}

/* --------------------------------------------------
   MOBILE OVERRIDES (max-width: 800px)
-------------------------------------------------- */
@media (max-width: 800px) {

  :root {
    --space-m: 0.5rem;
    --space-l: 1rem;
  }

  .mobile-only {
    display: block;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .menu-icon {
    display: flex;
    margin-left: auto;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border: 1px solid #ddd;
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .menu-toggle:checked + .menu-icon + .site-nav ul {
    display: flex;
  }

  .support-icon,
  .support-menu {
    display: none;
  }

  .intro {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }

  p {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  h2 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
  }

  .feature-grid {
    padding: 0.75rem;
  }
  
  .usb-c-mobile { max-width: 140px; /* about 2/3 of original */ }
}

.support-button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 1rem;
  margin: 1rem auto 1.5rem; /* top | sides | bottom */
  max-width: 300px;
  justify-content: center;
}



.support-btn {
  display: block;
  text-align: center;
  padding: 0.4rem 0.6rem;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.support-btn:hover {
  background: #1e4a70;
}

