/* ==========================================================
   TRIPLE R DESIGNS – Site CSS
   Purpose: Keep it clean, add only what you need
========================================================== */

/* ---------- Theme Variables (light / dark ready) ---------- */

:root {
  /* Light Mode */
  --clr-bg: #ffffff;
  --clr-text: #111111;
  --clr-muted: #555555;
  --clr-accent: #0a2342;      /* navy */
  --clr-accent-red: #c62828;  /* red accent */
  --clr-section: #f5f5f5;
  --clr-nav-bg: #ffffff;

  /* Hero */
  --hero-overlay: rgba(10, 35, 66, 0.65);
}

[data-theme="dark"] {
  /* Dark Mode */
  --clr-bg: #0b0b0d;
  --clr-text: #f5f7fa;
  --clr-muted: #d0d0d0;
  --clr-accent: #6ea8ff;
  --clr-accent-red: #ff7676;
  --clr-section: #1a1a1d;
  --clr-nav-bg: #141418;

  /* Hero */
  --hero-overlay: rgba(10, 35, 66, 0.7);
}

/* ---------- Global Typography ---------- */

html,
body {
  font-size: 18px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  padding-top: 0;  /* or drop this line if you want */
  line-height: 1.5;
}

/* Heading scale */
h1, h2, h3, h4 {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--clr-text);
}

h1 {
  font-size: 2.4rem;        /* ~43px */
  line-height: 1.15;
}

h2 {
  font-size: 1.8rem;        /* ~32px */
  line-height: 1.2;
}

h3 {
  font-size: 1.4rem;        /* ~25px */
  line-height: 1.3;
}

h4 {
  font-size: 1.2rem;        /* ~22px */
  line-height: 1.35;
}

/* Helper text styles */
.lead {
  font-size: 1.1rem;        /* ~20px */
  line-height: 1.6;
  color: var(--clr-muted);
}

/* ---------- Layout Helpers ---------- */

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Slightly trim W3 padding if needed */
.w3-padding-16 {
  padding: 16px !important;
}


/* ---------- Nav tweaks ---------- */

/* Make sure the fixed nav always sits above the hero */
.w3-top {
  z-index: 1000;
}

/* Background is handled in nav.asp via .navbar wrapper */
.navbar {
  background: #ffffff;    /* was var(--clr-nav-bg); */
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Refine nav typography a bit so it doesn’t feel shouty */
.navbar .w3-bar-item,
.navbar .w3-button {
  font-size: 0.95rem;       /* ~17px */
}

/* ==========================================================
   VALUE PROPS (Personalized / Hand-Crafted / Veteran-Owned)
========================================================== */
.section {
  padding: 48px 0;
}

/* Make the value strip crisper */
.section--value {
  background: #ffffff;               /* back to white */
  padding-bottom: 72px;   /* extra breathing room under the cards */
}

.feature-row {
  max-width: 1200px;
  margin: 0 auto;
}

/* Default (desktop/tablet) */
.feature-item {
  background: #fff;
  padding: 32px 28px 40px;  /* << this is the breathing room */
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 8px;
}

/* Mobile override */
@media (max-width: 600px) {
  .feature-item {
    padding: 20px 18px 28px;   /* smaller but still comfortable */
  }
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

/* Stronger, darker text inside cards */
.feature-title {
  color: var(--clr-text);
}

.feature-text {
  color: #333333;                    /* darker than the muted gray */
}

/* Stack nicely on phones */
@media (max-width: 600px) {
  .section {
    padding: 40px 0;
  }

  .feature-item {
    padding: 20px 18px 24px;
  }

  .feature-title {
    font-size: 1.15rem;
  }
}

/* Stack value cards on small + mid screens */
@media (max-width: 900px) {
  .section--value .w3-row-padding .w3-third {
    width: 100% !important;
    float: none !important;
    display: block !important;
  }

  .section--value .w3-margin-bottom {
    margin-bottom: 16px !important;
  }
}

/* ==========================================================
   SHOP BY CATEGORY
========================================================== */

.section--categories {
  background: #ffffff;
}

.section--categories .section-heading {
  margin-bottom: 4px;
}

.section--categories .section-sub {
  margin-bottom: 24px;
}

/* Grid spacing */
.shop-category-grid {
  margin-top: 12px;
}

.shop-category-grid .w3-col {
  display: flex;            /* lets card stretch vertically */
}
.shop-category-grid .w3-margin-bottom {
  margin-bottom: 32px !important;   /* more vertical gap between rows */
}

/* Stronger gutters between category tiles */
.shop-category-grid {
  margin-left: -16px;           /* cancel inner padding so grid stays aligned */
  margin-right: -16px;
}

.shop-category-grid .w3-col {
  padding: 0 16px 32px;         /* left/right + bottom spacing */
}

/* Premium category tiles */
.category-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  text-decoration: none;
  color: inherit;

  background: #f7f7f7;
  border-radius: 18px;                  /* a bit softer */
  padding: 32px 22px;                   /* more air */
  min-height: 230px;                    /* PREMIUM HEIGHT */

  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Icon bigger to match */
.category-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  color: #333;
}

/* Lock the name height so 1–2 lines align */
.category-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;

  min-height: 70px;                     /* room for up to ~3 lines */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

/* CTA */
.category-cta {
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0070c9;
  margin-top: 10px;
}

/* Stack category cards on small + mid screens */
@media (max-width: 900px) {
  .section--categories .w3-col {
    width: 100% !important;
    float: none !important;
    display: block !important;
  }

  .section--categories .w3-margin-bottom {
    margin-bottom: 16px !important;
  }
}

/* Idea grid */

/* Idea / category sample grid reusing product cards */
.idea-grid .w3-col {
  display: flex;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

/* Optional: a little extra gap below this section */
.section-idea-list {
  padding-bottom: 56px;
}

/* ============================================
   SPECIAL CARD (Design Your Own)
   ============================================ */

.special-card {
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.special-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* Custom pill */
.pill-custom {
  background: rgba(0, 96, 170, 0.15);
  color: #005a9c;
  margin-top: 10px;
}

/* ==========================================================
   HOW IT WORKS
========================================================== */

.section--how {
  background: #f5f5f5;
}

.how-steps {
  max-width: 1200px;
  margin: 0 auto;
}

.how-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px 28px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
  position: relative;
}

.how-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--clr-accent);
  color: var(--clr-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1rem;
}

.how-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.how-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--clr-muted);
}

/* Stack steps on smaller screens */
@media (max-width: 900px) {
  .section--how .w3-third {
    width: 100% !important;
    float: none !important;
    display: block !important;
  }

  .section--how .w3-margin-bottom {
    margin-bottom: 16px !important;
  }

  .how-card {
    padding: 20px 18px 24px;
  }
}

/* ==========================================================
   ABOUT SECTION
========================================================== */

.section--about {
  background: #ffffff;
}

/* Stack + center adjustments for mobile */
@media (max-width: 900px) {
  .about-wrap {
    flex-direction: column;
    align-items: center;      /* centers the badge horizontally */
  }

  .about-text {
    width: 100%;
    text-align: left;         /* keep paragraphs readable */
  }

  .about-badge {
    width: 100%;
    display: flex;
    justify-content: center;  /* centers the card itself */
    flex: 0 0 auto;
    margin-top: 1rem;
  }

  .about-card {
    max-width: 260px;         /* keeps badge nicely sized on mobile */
    width: 100%;
  }
}

.about-text p {
  margin-bottom: 0.85rem;
}

.about-badge {
  flex: 0 0 220px;
}

.about-card {
  background: #f5f5f5;
  border-radius: 16px;
  padding: 18px 16px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-flag {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.about-label {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.about-sub {
  font-size: 0.9rem;
  color: var(--clr-muted);
}

/* ==========================================================
   FINAL CTA
========================================================== */

.section--final-cta {
  background: #082947; /* same navy family as hero */
  color: #ffffff;
  text-align: center;
}

.final-cta-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.section--final-cta h2 {
  color: #ffffff;
}

.final-cta-text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

/* Reuse button styles but adapt for dark background */
.btn-primary,
.btn-secondary {
  min-width: 190px;
  font-weight: 600;
}

.section--final-cta .btn-primary {
  background: #c62828;          /* red */
  border: none;
  color: #ffffff;
}

.section--final-cta .btn-primary:hover {
  background: #b71c1c;
}

.section--final-cta .btn-secondary {
  background: #ffffff;
  border: none;
  color: #082947;
}

.section--final-cta .btn-secondary:hover {
  background: #f5f5f5;
}

.final-cta-buttons .w3-button {
  margin: 0 6px 8px;
}

/* ==========================================================
   FOOTER – FLAG BACKGROUND
========================================================== */

.footer-bg {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #021c33;          /* solid navy fallback if image fails */
  padding: 40px 0 28px;
}

/* Flag + dark overlay behind everything */
/* Stronger, more fabric-like waving motion */
.footer-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65)),
    url("img/footer-flag-1600.webp") no-repeat;

  background-size: 140% 140%;      /* lots of room to move */
  background-position: 50% 50%;
  opacity: 1;

  /* Layered fabric-wave movement */
  animation: flag-fabric-wave 34s ease-in-out infinite;
}

@keyframes flag-fabric-wave {
  0% {
    background-position: 50% 44%;   /* lifted slightly */
  }
  12% {
    background-position: 54% 52%;   /* dip right & down */
  }
  25% {
    background-position: 48% 60%;   /* deep downward wave */
  }
  40% {
    background-position: 46% 54%;   /* rise to midpoint */
  }
  55% {
    background-position: 52% 48%;   /* crest up & right */
  }
  70% {
    background-position: 50% 58%;   /* slow sinking motion */
  }
  84% {
    background-position: 47% 50%;   /* return upward */
  }
  100% {
    background-position: 50% 44%;   /* perfect seamless loop */
  }
}

/* Main footer content container */
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/* Light text shadow helps on bright parts of the flag */
.footer-bg p,
.footer-bg a {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Tagline */
.footer-tagline {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* "We're Social!" */
.footer-social-label {
  margin: 10px 0 4px;
  font-size: 0.95rem;
}

/* Social icons row */
.footer-social {
  margin-bottom: 14px;
}

.footer-social a {
  font-size: 1.25rem;
  margin: 0 6px;
  color: #ffe5e5;
}

.footer-social a:hover {
  opacity: 0.75;
}

/* Links row */
.footer-links {
  margin: 8px 0 4px;
  font-size: 0.9rem;
}

.footer-links a {
  color: #ffe5e5;
  font-weight: 500;
  margin: 0 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Copyright */
.footer-copy {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Security badge (if you want it later) */
.footer-badge {
  margin: 12px 0 4px;
}

/* “Powered with ❤️ by …” */
.footer-powered {
  margin-top: 8px;
  font-size: 0.9rem;
}

.footer-powered .footer-heart {
  color: #ff4b4b;
}

.footer-powered a {
  color: #ffe5e5;
  font-weight: 600;
}

/* Slightly tighter on very small screens */
@media (max-width: 480px) {
  .footer-bg {
    padding: 32px 0 24px;
  }

  .footer-tagline {
    font-size: 0.95rem;
  }
}

/* ==========================================================
   WHAT'S HOT RIGHT NOW – FEATURED SAMPLES GRID
========================================================== */

.section--featured {
  background: #f5f5f5;
}

/* Overall section padding is already .section { padding: 40px 0; } */
/* .section-narrow already exists (1200px max width) */
/* .product-card, .product-body, .product-title, .product-meta, .pill-label already exist */

/* Flex grid so 1, 2, 3, 4+ items all look good */
.featured-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;    /* new */
}


/* Each card wrapper */
.featured-item {
  flex: 1 1 220px;           /* grows but doesn’t get smaller than ~220px */
  max-width: 260px;          /* keeps them from getting huge on wide screens */
}

/* Generic section padding helper */
.section {
  padding: 40px 0;
}

/* Narrow content wrapper (like "content") */
.section-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.product-card {
  background: #fff;
  border-radius: 18px;                           /* match category tiles */
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);       /* a little richer */
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* Full-bleed image unchanged */
.product-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Padded content area */
.product-body {
  padding: 24px 22px 36px;
  font-size: 0.95rem;
  flex: 1;
}

/* Optional: keep cards from feeling stubby if there’s short text */
.product-card {
  min-height: 260px;      /* tweak 240–280px to taste */
}

.product-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #111;
}

.product-meta {
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;        /* a bit bolder */
  margin-bottom: 10px;
}


.pill-label {
  display: inline-block;
  margin-top: 10px;      /* was 4–6px */
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(198, 40, 40, 0.1);
  color: #c62828;
}


.product-card img {
  display: block;
  width: 100%;
}

.product-sub {
  font-size: 0.85rem;
  color: #777;
  margin: -6px 0 12px;
}

.hot-price {
  font-weight: 700;
  color: #c00;
  margin-bottom: 12px;
}

.tag-new {
  background: #e60023;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: inline-block;
}

/* ------- old what's hot stuff that wasn't overwritten is below --------- */

.product-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Little pill label for the season tag */
.pill-label {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(198, 40, 40, 0.1);  /* red tint */
  color: #c62828;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .section {
    padding: 32px 0;
  }
}

@media (max-width: 600px) {
  .section-narrow {
    padding: 0 12px;
  }

  /* Let W3’s s6 stacking work, no extra overrides needed */
}

/* ==========================================================
   SAMPLE DETAIL PAGE — Premium Layout
========================================================== */

.section--detail {
  padding-top: 125px;      /* pushes content off the nav bar */
  padding-bottom: 72px;   /* gives breathing room above footer */
  background: #f5f5f5;    /* matches “What’s Hot” background */
}

.sample-detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;   /* sides only — no top/bottom */
}

.sample-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.sample-image {
  flex: 1 1 600px;
  max-width: 600px;
}

.sample-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}

.sample-info {
  flex: 1 1 360px;
  padding: 16px;
}

.sample-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.sample-sub {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 20px;
}

.sample-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.55;
}

.sample-cta {
  margin-top: 24px;
}


/* ==========================================================
   HERO – FINAL OVERRIDES (clean + predictable)
========================================================== */

.hero-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  z-index: 0;                 /* sits under the navbar */
}

/* make sure picture doesn't leave a little white gap */
.hero-wrap picture {
  display: block;
  line-height: 0;
}

.hero-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Base hero text block – wide desktop first */
.hero-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 720px;
  margin: 0;
  z-index: 2;                 /* above overlay */
  text-align: left;
}

/* Gradient overlay – wide desktop only */
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55),       /* darker over metal */
    rgba(0, 0, 0, 0.15)        /* lighter over right */
  );
  z-index: 1;
  pointer-events: none;       /* never intercept clicks */
}

/* Text + badge styles */
.hero-heading {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hero-sub {
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
  max-width: 40rem;
}

.badge-veteran {
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Keep hero text white */
.hero-heading,
.hero-sub,
.badge-veteran {
  color: #ffffff !important;
}

/* ---------------------------------------------
   A) “Big but not huge” (1201–1400px):
      drop the text a bit so it clears the nav
--------------------------------------------- */
@media (max-width: 1400px) and (min-width: 1201px) {
  .hero-inner {
    transform: translate(-50%, -45%);  /* was -50% */
  }
}

/* ---------------------------------------------
   B) Stacked layout for ≤1200px:
      image on top, blue block with centered text
--------------------------------------------- */
@media (max-width: 1200px) {
  .hero-wrap::before {
    content: none;                 /* kill overlay */
  }

  .hero-inner {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 16px 32px;
    text-align: center;
    background: #082947;           /* navy block under text & buttons */
  }

  .hero-heading {
    font-size: 2.3rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero-sub {
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
  }

  .hero-buttons a {
    margin: 4px 6px;
  }
}

/* Slightly tighter on phones / narrow stacked */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.0rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
}
