/*
 * styles.css for Northline & Co. LLC B2B wholesale website
 *
 * This stylesheet defines design tokens, layout styles and
 * component styles. Colors and typography are pulled from
 * the brand system specified in the brief. Utility classes
 * simplify spacing and alignment. Responsive breakpoints
 * ensure the site remains usable across mobile, tablet and
 * desktop sizes.
 */

/* Design tokens */
:root {
  /* Brand colors */
  --color-deep-navy: #0C1B2A;
  --color-navy-500: #1F4E79;
  --color-emerald: #00A37A;
  --color-emerald-hover: #029368;
  --color-neutral-900: #2C3440;
  --color-neutral-700: #6B7380;
  --color-neutral-200: #E6E9EE;
  --color-neutral-100: #F6F8FB;

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sizing */
  --max-width: 1200px;
  --border-radius: 12px;
  --transition-speed: 0.2s;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-100);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* Container wrapper */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-deep-navy);
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav li {
  position: relative;
}

nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: white;
  padding: 0.5rem 0;
  transition: color var(--transition-speed);
}

nav a:hover,
nav a.active {
  color: var(--color-emerald);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin-bottom: 4px;
  transition: transform var(--transition-speed);
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-deep-navy);
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-speed) ease-out;
  }

  nav ul.open {
    max-height: 300px;
  }

  nav li {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-toggle {
    display: flex;
  }
}

/* Hero Section */
.hero {
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  position: relative;
  padding: 6rem 1rem;
  margin-top: 70px; /* offset for fixed header */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero .content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed);
}

.btn-primary {
  background-color: var(--color-emerald);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-emerald-hover);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid var(--color-emerald);
}
.btn-secondary:hover {
  background-color: var(--color-emerald);
  color: white;
}

/* Section base styles */
section {
  padding: 4rem 0;
}

section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-deep-navy);
}

/* Why Partner */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card i {
  font-size: 2rem;
  color: var(--color-emerald);
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-deep-navy);
}

.card p {
  font-size: 0.95rem;
  color: var(--color-neutral-700);
}

/* Process section */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  position: relative;
}

.step .num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-emerald);
  color: white;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
}

.step h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  color: var(--color-deep-navy);
}

.step p {
  font-size: 0.9rem;
  color: var(--color-neutral-700);
}

/* Categories grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.category-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed);
}

.category-item:hover {
  transform: translateY(-3px);
}

.category-item span {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-deep-navy);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Trust & compliance */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed);
}

.trust-card:hover {
  transform: translateY(-3px);
}

.trust-card i {
  font-size: 2rem;
  color: var(--color-emerald);
  margin-bottom: 1rem;
}

.trust-card h3 {
  font-family: var(--font-heading);
  color: var(--color-deep-navy);
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--color-neutral-700);
}

/* CTA band */
.cta-band {
  background-color: var(--color-navy-500);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: var(--border-radius);
}

.cta-band h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-band a {
  font-weight: 600;
  background-color: var(--color-emerald);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  color: white;
  display: inline-block;
  transition: background-color var(--transition-speed);
}

.cta-band a:hover {
  background-color: var(--color-emerald-hover);
}

/* Footer */
footer {
  background-color: var(--color-deep-navy);
  color: white;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/*
 * Icon trust bar used in the footer. It was previously styled via
 * `.trust-bar` but has been renamed to avoid conflicts with the new
 * slim trust bar displayed under the header on every page. The
 * `.icon-trust-bar` class now controls the footer bar layout and
 * styling for the mini icons.
 */
.icon-trust-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-trust-bar .icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.icon-trust-bar i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--color-emerald);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: white;
  font-size: 0.9rem;
  transition: color var(--transition-speed);
}

.footer-nav a:hover {
  color: var(--color-emerald);
}

/*
 * New slim trust bar that appears under the navigation on every page.
 * Displays key compliance documents in a single line. On mobile the
 * font size is slightly reduced. The bar uses a dark emerald shade
 * for contrast against the header.
 */
.trust-bar {
  background: #0B5;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-bar span {
  margin: 0 4px;
  opacity: 0.95;
}
@media (max-width: 640px) {
  .trust-bar {
    font-size: 0.8rem;
    padding: 6px;
  }
}

/* Category card grid: replaces the grey pills on the home page. */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  color: inherit;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.cat-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
}
.cat-card h3 {
  margin: 0.25rem 0 0.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-deep-navy);
}
.cat-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Sticky call-to-action button that floats over the page on mobile and desktop. */
.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #2fb344;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(47, 179, 68, 0.35);
  font-weight: 600;
  z-index: 999;
  display: inline-block;
}
@media (min-width: 1024px) {
  .sticky-cta {
    bottom: 24px;
    right: 24px;
  }
}

/* Site footer styling. Shows full business info and badge list. */
.site-footer {
  background: #0b1220;
  color: #cfd6e4;
  padding: 32px 0;
  margin-top: 32px;
}
.site-footer a {
  color: #fff;
}
.foot-grid {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.badges {
  opacity: 0.8;
  margin-top: 8px;
}

/* Form status message styles for success and error after submission. */
#form-status {
  margin-top: 8px;
  font-size: 0.95rem;
}
#form-status.success {
  color: #2fb344;
}
#form-status.error {
  color: #d63939;
}

/* Ensure form controls have adequate height and padding for mobile */
form input,
form select,
form textarea {
  min-height: 44px;
  padding: 0.75rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--color-neutral-200);
}

/* Back-to-top button */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-emerald);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

/* Form styles */
form {
  max-width: 600px;
  margin: 0 auto;
}

form .form-group {
  margin-bottom: 1.25rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-deep-navy);
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: white;
  color: var(--color-neutral-900);
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 2px rgba(0, 163, 122, 0.2);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form .form-actions {
  text-align: center;
}

form .form-actions button {
  background-color: var(--color-emerald);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

form .form-actions button:hover {
  background-color: var(--color-emerald-hover);
}

form .small-text {
  font-size: 0.8rem;
  color: var(--color-neutral-700);
  margin-top: 0.5rem;
}

/* About page specifics */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-grid .block {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.about-grid h3 {
  font-family: var(--font-heading);
  color: var(--color-deep-navy);
  margin-bottom: 1rem;
}

.about-grid ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.about-grid li {
  margin-bottom: 0.5rem;
  color: var(--color-neutral-700);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Legal page */
.legal-section {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

.legal-section h3 {
  font-family: var(--font-heading);
  color: var(--color-deep-navy);
  margin-bottom: 1rem;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--color-neutral-700);
  margin-bottom: 1rem;
}
