/* =========================
   MOBILE-FIRST RESPONSIVE CSS
   Foley Tank & Barrel
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f8fafc;
  color: #0f1724;
  line-height: 1.6;
}
/* =========================
   TYPOGRAPHY (FLUID)
   ========================= */
h1 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 0;
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}
h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}
p,
li {
  font-size: clamp(0.95rem, 2.5vw, 1rem);
}
img {
  width: 100%;
}
.small {
  font-size: clamp(0.85rem, 2.3vw, 0.95rem);
  color: #4a4c50;
}
/* =========================
   LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  margin: 0 auto;
}
.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #8fc5fa;
  padding: 1.25rem;
}
/* =========================
   HEADER & NAVIGATION
   ========================= */
.header {
  background: #eff1f2;
  border-bottom: 1px solid #8fc5fa;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header img {
  max-width: 100%;
}
.nav-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}
.nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.nav a {
  text-decoration: none;
  color: #0f1724;
  font-weight: 600;
}
.nav.open {
  display: flex;
}
/* =========================
   HERO
   ========================= */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-primary {
  background: #0c0a8a;
  color: #fff;
}
.btn-outline {
  border: 2px solid #0c0a8a;
  color: #0c0a8a;
}
/* =========================
   PRODUCTS (MOBILE FIRST)
   ========================= */
.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.product-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* =========================
   FORMS
   ========================= */
label {
  font-weight: 600;
  font-size: 0.9rem;
}
input,
textarea,
select {
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  border: 1px solid #8fc5fa;
  font-size: 0.95rem;
}
/* =========================
   FOOTER
   ========================= */
.footer {
  border-top: 1px solid #8fc5fa;
  margin-top: 3rem;
  padding: 1.5rem 1rem;
}
/* =========================
   MINIMAL BREAKPOINTS
   ========================= */
@media (min-width: 768px) {
  header {
    background: #eff1f2;
    padding: 1em 0;
    border-bottom: 1px solid #8fc5fa;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
  }
  .site-brand {
    width: 250px;
    height: auto;
  }
  .site-brand img {
    width: 100%;
  }
  .hero {
    flex-direction: row;
    align-items: center;
  }
  .nav {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    margin-top: 0;
  }
  .nav-toggle {
    display: none;
  }
  .nav {
    margin-left: auto;
  }
  .nav a {
    color: #0f1724;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
    padding: 1em;
  }
  .nav a:hover {
    color: #0c0a8a;
    background-color: #fefefe;
    border-radius: 10px;
  }
  .hero {
    background: linear-gradient(90deg, rgba(10, 90, 138, 0.06), transparent);
    padding: 40px;
    border-radius: 10px;
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
  }
  .hero .left {
    flex: 1 1 480px;
  }
  .hero h2 {
    margin-top: 0;
    color: #0c0a8a;
  }
  .cta-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
  }
  .btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
  }
  .btn-primary {
    background: #0c0a8a;
    color: #fff;
  }
  .btn-outline {
    border: 2px solid #0c0a8a;
    color: #0c0a8a;
    background: transparent;
  }
  .card {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e6eef6;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }
  .product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
  }
  .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
  }
  .small {
    font-size: 14px;
    color: #4a4c50;
  }
  footer {
    margin-top: 40px;
    padding: 24px 0;
    color: #4a4c50;
    font-size: 14px;
    border-top: 1px solid #e6eef6;
    background-color: #1d1c1c;
    color: #d6e6f4;
  }
  footer a,
  footer .small {
    color: #d6e6f4;
    text-decoration: none;
  }
  .footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .form-row {
    display: flex;
    gap: 12px;
  }
  .form-row .col {
    flex: 1;
  }
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d6e6f4;
    font-size: 14px;
  }
  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #4a4c50;
    font-size: 14px;
  }
}
@media (min-width: 1024px) {
  .product-layout {
    flex-direction: row;
  }
}
