/* ============================================
   Alliance Dairy Service & Supplies Inc.
   Modern Professional Website - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --blue-primary: #1a5694;
  --blue-dark: #0e3a66;
  --blue-light: #2a7bc8;
  --blue-accent: #4a9fe5;
  --gray-dark: #2c2c2c;
  --gray-medium: #5a5a5a;
  --gray-light: #8a8a8a;
  --gray-pale: #e8ecf0;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue-dark);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img,
.nav-logo svg {
  height: 50px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-dark);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-dark);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-primary);
  background: var(--off-white);
}

.nav-links .btn-nav {
  background: var(--blue-primary);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
}

.nav-links .btn-nav:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gray-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat,
              url('https://images.pexels.com/photos/11357096/pexels-photo-11357096.jpeg?auto=compress&cs=tinysrgb&w=1920') center center / cover no-repeat;
  background-color: var(--blue-dark);
  margin-top: 74px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(14,58,102,0.82) 0%, rgba(26,86,148,0.65) 50%, rgba(42,123,200,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
}

.hero-logo {
  max-width: 420px;
  margin: 0 auto 30px;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .tagline {
  font-size: 1.35rem;
  font-style: italic;
  opacity: 0.92;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

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

.btn-blue:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* ---------- Section Styles ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--gray-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--blue-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-pale);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-accent);
}

.service-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.service-card .icon svg {
  width: 36px;
  height: 36px;
  fill: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-medium);
  font-size: 0.95rem;
}

/* ---------- Partners / Brands ---------- */
.partners-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.partners-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: var(--transition);
}

.partners-strip a:hover {
  opacity: 1;
  transform: scale(1.08);
}

.partners-strip img,
.partners-strip svg {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* ---------- About / Info Section ---------- */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray-medium);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text .highlight {
  font-style: italic;
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 1.15rem;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  padding: 40px;
  text-align: center;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--blue-accent);
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gray-pale), var(--blue-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}

.team-card .info {
  padding: 24px;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.team-card .role {
  color: var(--blue-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card p {
  color: var(--gray-medium);
  font-size: 0.9rem;
}

/* ---------- Contact Section ---------- */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail .icon-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--blue-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail .icon-circle svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.contact-detail h4 {
  font-size: 1rem;
  color: var(--gray-dark);
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--gray-medium);
  font-size: 0.95rem;
}

/* ---------- Contact Form ---------- */
.contact-form {
  background: var(--off-white);
  padding: 40px;
  border-radius: 12px;
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-pale);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 148, 0.1);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
  text-align: center;
  padding: 60px 20px;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-brand .logo-footer {
  height: 40px;
  width: auto;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, rgba(14,58,102,0.88), rgba(26,86,148,0.78)),
              url('../images/hero-bg.jpg') center center / cover no-repeat,
              url('https://images.pexels.com/photos/11357096/pexels-photo-11357096.jpeg?auto=compress&cs=tinysrgb&w=1920') center center / cover no-repeat;
  background-color: var(--blue-dark);
  padding: 60px 20px;
  text-align: center;
  margin-top: 74px;
  color: var(--white);
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
}

/* ---------- 24/7 Badge ---------- */
.badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 20px;
}

.badge-247 .dot {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-row,
  .contact-row {
    grid-template-columns: 1fr;
  }

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

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

  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 20px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

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

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .partners-strip {
    gap: 30px;
  }

  .partners-strip img {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-logo {
    max-width: 280px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
