/* ===========================
   XYZ Supply — Main Stylesheet
   Colors from logo:
   Blue: #1a4fa0  Dark Blue: #0d2d6b
   Green: #3aaa35
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1a4fa0;
  --blue-dark: #0d2d6b;
  --green:     #3aaa35;
  --green-dark:#2a8028;
  --gray-light:#f5f7fa;
  --gray:      #e5e8ed;
  --text:      #1a1a2e;
  --text-muted:#5a6272;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar-inner span { display: flex; align-items: center; gap: 6px; }
.topbar-cta {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}
.topbar-cta:hover { color: #5dd658; }

/* ---- HEADER ---- */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 32px;
}
.logo-link { flex-shrink: 0; }
.logo { height: 56px; width: auto; }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--green); }
.nav-cta { margin-left: 16px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #1a6b3a 100%);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Subtle geometric texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 2px,
      transparent 2px,
      transparent 20px
    );
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,45,107,0.7) 40%, transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 620px;
  padding: 80px 24px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- PRODUCT CARDS ---- */
.products { background: var(--gray-light); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.13); }
.card-icon { font-size: 2.8rem; margin-bottom: 16px; }
.card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.card p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; }
.card-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.card-link:hover { color: var(--green-dark); }

/* ---- BANNER STRIP ---- */
.banner-strip {
  background: var(--blue-dark);
  padding: 20px 0;
}
.banner-strip-inner {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: space-around;
}
.strip-item {
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- SERVICES ---- */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.service-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: var(--gray-light);
  transition: background 0.2s;
}
.service-item:hover { background: var(--gray); }
.service-icon { font-size: 2.4rem; margin-bottom: 14px; }
.service-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.service-item p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

/* ---- WHY US ---- */
.why-us { background: var(--gray-light); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 24px;
  line-height: 1.25;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-list li {
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.why-stat-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--blue);
}
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- CONTACT ---- */
.contact-section { background: var(--white); }
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--text);
  background: var(--gray-light);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}
.contact-form .btn { align-self: flex-start; }

/* ---- FOOTER ---- */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 8px; }
.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  background: rgba(0,0,0,0.25);
  padding: 16px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav { gap: 16px; margin-left: 0; }
  .nav-cta { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .why-stat-box { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 60px 24px; }
}
