/* ============================================================
   PINNACLE SUPPLY CHAIN LLC — styles.css
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */

:root {
  --clr-navy:        #0d1e37;
  --clr-navy-mid:    #1a3251;
  --clr-accent:      #1c4f8a;

  --clr-text:        #1a1a1a;
  --clr-text-mid:    #4a5568;
  --clr-text-muted:  #718096;

  --clr-bg:          #ffffff;
  --clr-bg-warm:     #f7f6f3;

  --clr-border:      #e0dbd4;
  --clr-border-dark: #c5c0ba;

  /* Single sans-serif stack — no serif font */
  --font-sans: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;

  --nav-h:     76px;
  --container: 1160px;

  --radius-sm: 3px;
  --radius-md: 6px;

  --shadow-nav:  0 1px 0 var(--clr-border);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.05);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.22s;
}

/* ============================================================
   2. RESET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
ul       { list-style: none; }
button   { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   3. LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section { padding-block: 6rem; }

.bg-warm { background: var(--clr-bg-warm); }

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--clr-navy);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.section-intro {
  margin-top: 1.1rem;
  font-size: 1.0625rem;
  color: var(--clr-text-mid);
  line-height: 1.78;
  max-width: 600px;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--clr-navy);
  color: #fff;
  border-color: var(--clr-navy);
}
.btn-primary:hover {
  background: var(--clr-navy-mid);
  border-color: var(--clr-navy-mid);
}

/* Used on dark hero background */
.btn-light {
  background: #ffffff;
  color: var(--clr-navy);
  border-color: #ffffff;
}
.btn-light:hover { background: rgba(255,255,255,0.92); }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.38);
}
.btn-outline-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}

/* ============================================================
   5. NAVIGATION — always white, stable corporate header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: #ffffff;
  border-bottom: 1px solid var(--clr-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  position: relative;
}

/* Logo image — sized to fit the nav bar */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  padding: 0.4rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--clr-text-mid);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover  { color: var(--clr-navy); }
.nav-link.active { color: var(--clr-accent); font-weight: 600; }

/* Contact CTA link in nav */
.nav-cta {
  margin-left: 0.75rem;
  padding: 0.4375rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--clr-navy);
  color: #fff !important;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.nav-cta:hover { background: var(--clr-navy-mid); color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--clr-navy);
  border-radius: 1px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}

.hamburger.is-active .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   6. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, #16294c 0%, #0d1e37 55%, #0b1a30 100%);
  color: #fff;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 1; width: 100%; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 5rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.25vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
  margin-bottom: 2.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ============================================================
   7. ABOUT
   ============================================================ */

.about .section-label { margin-bottom: 2rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text .section-title { margin-bottom: 1.75rem; }

.lead-text {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--clr-text-mid);
  line-height: 1.78;
  margin-bottom: 1.1rem;
}

.about-sidebar {
  padding-top: 0.25rem;
  border-left: 2px solid var(--clr-navy);
  padding-left: 2.25rem;
}

.sidebar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
}

.capability-list { display: flex; flex-direction: column; }

.capability-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9375rem;
  color: var(--clr-text);
  font-weight: 500;
  line-height: 1.4;
}

.capability-list li:first-child { border-top: 1px solid var(--clr-border); }

/* ============================================================
   8. SERVICES
   ============================================================ */

.services .section-title { margin-bottom: 0.75rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 2.5rem;
  margin-top: 3.5rem;
}

.service-item {
  grid-column: span 2;
  padding-top: 1.75rem;
  border-top: 1.5px solid var(--clr-navy);
  margin-bottom: 2.5rem;
}

.service-item:nth-child(4) { grid-column: 2 / span 2; }
.service-item:nth-child(5) { grid-column: 4 / span 2; }

.service-num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-item > p {
  font-size: 0.875rem;
  color: var(--clr-text-mid);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.service-list { display: flex; flex-direction: column; gap: 0.3rem; }

.service-list li {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--clr-accent);
  font-size: 0.7rem;
  line-height: 1.55;
}

/* ============================================================
   9. INDUSTRIES
   ============================================================ */

.industries .section-title { margin-bottom: 0.75rem; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2.5rem;
  margin-top: 3.5rem;
}

.industry-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--clr-border);
}

.industry-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.industry-item p {
  font-size: 0.875rem;
  color: var(--clr-text-mid);
  line-height: 1.7;
}

/* ============================================================
   10. APPROACH
   ============================================================ */

.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1.75fr;
  gap: 5rem;
  align-items: start;
}

.approach-header .section-title { margin-bottom: 1.25rem; }

.approach-summary {
  font-size: 0.9375rem;
  color: var(--clr-text-mid);
  line-height: 1.75;
}

.approach-list { display: flex; flex-direction: column; padding-top: 0.5rem; }

.approach-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--clr-border);
}

.approach-item:last-child { border-bottom: 1px solid var(--clr-border); }

.approach-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.approach-item p {
  font-size: 0.875rem;
  color: var(--clr-text-mid);
  line-height: 1.75;
}

/* ============================================================
   11. CONTACT
   ============================================================ */

.contact-inner { max-width: 680px; }

.contact .section-title { margin-bottom: 1rem; }

.contact-description {
  font-size: 1rem;
  color: var(--clr-text-mid);
  line-height: 1.78;
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  background: var(--clr-bg-warm);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.firm-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 0.2rem;
}

.firm-location {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.625rem;
}

.firm-email {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--clr-accent);
  transition: color var(--dur) var(--ease);
}
.firm-email:hover { color: var(--clr-navy); text-decoration: underline; }

/* ============================================================
   12. FOOTER
   ============================================================ */

.footer {
  background: var(--clr-navy);
  color: rgba(255,255,255,0.55);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer logo — white background box so navy logo reads on dark footer */
.footer-logo-link {
  display: inline-block;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.72;
  max-width: 260px;
  margin-bottom: 0.75rem;
}

.footer-location {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.32);
}

.footer-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: #fff; }

.footer-links .footer-loc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.25rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
}

/* ============================================================
   13. SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   14. RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-sidebar {
    border-left: none;
    border-top: 2px solid var(--clr-navy);
    padding-left: 0;
    padding-top: 2rem;
  }

  .approach-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .service-item,
  .service-item:nth-child(4),
  .service-item:nth-child(5) { grid-column: span 1; }

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

/* ============================================================
   15. RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  .container { padding-inline: 1.25rem; }
  .section   { padding-block: 4rem; }

  .hamburger { display: flex; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 0.625rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease),
                visibility 0.2s var(--ease),
                transform 0.2s var(--ease);
    z-index: 800;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    color: var(--clr-text-mid);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: block;
  }
  .nav-link:hover  { color: var(--clr-navy); background: var(--clr-bg-warm); }
  .nav-link.active { color: var(--clr-accent); }

  .nav-cta {
    margin: 0.375rem 0 0;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .logo-img { height: 42px; }

  .hero { min-height: 85svh; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 4rem 3.5rem; }
  .hero-visual { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  .services-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .service-item,
  .service-item:nth-child(4),
  .service-item:nth-child(5) { grid-column: 1; }

  .industries-grid { grid-template-columns: 1fr; }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-card .btn { align-self: stretch; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
}
