/* ============================================
   BAY AREA PACKAGING — Stylesheet
   Terracotta + Sand | Clean Minimalist
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: #2C2420;
  background-color: #F7F3EE;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg {
  display: block;
  max-width: 100%;
}

input, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

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

ul {
  list-style: none;
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #B56C4A;
  color: #F7F3EE;
  padding: 0.5rem 1rem;
  z-index: 200;
  font-size: 0.875rem;
  border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  top: 0;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B56C4A;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #2C2420;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: #6B5E57;
  max-width: 560px;
  line-height: 1.75;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #B56C4A;
  color: #F7F3EE;
  border-color: #B56C4A;
}
.btn-primary:hover {
  background: #9E5A3C;
  border-color: #9E5A3C;
}

.btn-ghost {
  background: transparent;
  color: #F7F3EE;
  border-color: rgba(247, 243, 238, 0.4);
}
.btn-ghost:hover {
  border-color: #F7F3EE;
  background: rgba(247, 243, 238, 0.08);
}

.btn-ghost-light {
  background: transparent;
  color: #B56C4A;
  border-color: #B56C4A;
}
.btn-ghost-light:hover {
  background: #B56C4A;
  color: #F7F3EE;
}

.btn-full {
  width: 100%;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 36, 32, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(44, 36, 32, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #2C2420;
}
.logo:hover {
  color: #B56C4A;
}
.logo-icon {
  color: #B56C4A;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  gap: 2.25rem;
}
.main-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B5E57;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B56C4A;
  transition: width 0.25s ease;
}
.main-nav a:hover {
  color: #B56C4A;
}
.main-nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #2C2420;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2C2420;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/33276443/pexels-photo-33276443.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  opacity: 0.35;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(44, 36, 32, 0.92) 0%,
    rgba(44, 36, 32, 0.82) 50%,
    rgba(181, 108, 74, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D4A574;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: #F7F3EE;
  margin-bottom: 1.5rem;
}
.hero-accent {
  font-style: italic;
  color: #D4A574;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(247, 243, 238, 0.7);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(247, 243, 238, 0.4);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- TRUST BAR --- */
.trust-bar {
  background: #F7F3EE;
  border-bottom: 1px solid rgba(44, 36, 32, 0.07);
  padding: 1.5rem 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6B5E57;
  letter-spacing: 0.02em;
  padding: 0 1.5rem;
}
.trust-item svg {
  color: #B56C4A;
  flex-shrink: 0;
}
.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(44, 36, 32, 0.12);
  flex-shrink: 0;
}

/* --- SERVICES --- */
.services {
  padding: 7rem 0;
  background: #F7F3EE;
}
.services > .container:first-child {
  text-align: center;
  margin-bottom: 3.5rem;
}
.services > .container:first-child .section-sub {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(44, 36, 32, 0.07);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  transition: all 0.3s ease;
}
.service-card:hover {
  border-color: rgba(181, 108, 74, 0.25);
  box-shadow: 0 8px 32px rgba(44, 36, 32, 0.06);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(181, 108, 74, 0.2);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  color: #B56C4A;
}
.service-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #2C2420;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.9375rem;
  color: #6B5E57;
  line-height: 1.75;
}

/* --- ABOUT --- */
.about {
  padding: 7rem 0;
  background: #F0EBE4;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap {
  border-radius: 4px;
  overflow: hidden;
}
.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.about-content .section-title {
  margin-bottom: 1.5rem;
}
.about-content p {
  font-size: 1rem;
  color: #6B5E57;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-content p:last-child {
  margin-bottom: 2.5rem;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem;
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #B56C4A;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B5E57;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(44, 36, 32, 0.12);
}

/* --- INDUSTRIES --- */
.industries {
  padding: 7rem 0;
  background: #F7F3EE;
}
.industries > .container:first-child {
  text-align: center;
  margin-bottom: 3.5rem;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(44, 36, 32, 0.07);
  border-radius: 4px;
  overflow: hidden;
}
.industry-item {
  background: #F7F3EE;
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.3s ease;
}
.industry-item:hover {
  background: #FDF9F5;
}
.industry-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: rgba(181, 108, 74, 0.18);
  line-height: 1;
  margin-bottom: 1rem;
}
.industry-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 500;
  color: #2C2420;
  margin-bottom: 0.625rem;
}
.industry-item p {
  font-size: 0.9375rem;
  color: #6B5E57;
  line-height: 1.75;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: #2C2420;
  padding: 5.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-text {
  flex: 1;
  min-width: 280px;
}
.cta-title {
  color: #F7F3EE;
  margin-bottom: 1rem;
}
.cta-text p {
  font-size: 1.0625rem;
  color: rgba(247, 243, 238, 0.65);
  line-height: 1.75;
  max-width: 440px;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- CONTACT --- */
.contact {
  padding: 7rem 0;
  background: #F0EBE4;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}
.contact-intro {
  font-size: 1rem;
  color: #6B5E57;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact-details {
  border-top: 1px solid rgba(44, 36, 32, 0.1);
}
.contact-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(44, 36, 32, 0.07);
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B56C4A;
}
.contact-row a {
  font-size: 1rem;
  color: #2C2420;
  transition: color 0.2s ease;
  line-height: 1.6;
}
.contact-row a:hover {
  color: #B56C4A;
}

/* Form */
.contact-form-wrap {
  background: #fff;
  border-radius: 4px;
  padding: 2.5rem;
  border: 1px solid rgba(44, 36, 32, 0.07);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B5E57;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #2C2420;
  background: #F7F3EE;
  border: 1px solid rgba(44, 36, 32, 0.12);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #B56C4A;
  box-shadow: 0 0 0 3px rgba(181, 108, 74, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A89890;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-success {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(181, 108, 74, 0.08);
  border: 1px solid rgba(181, 108, 74, 0.2);
  border-radius: 3px;
  font-size: 0.9375rem;
  color: #B56C4A;
}

/* --- FOOTER --- */
.site-footer {
  background: #2C2420;
  color: rgba(247, 243, 238, 0.6);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 243, 238, 0.08);
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 260px;
}
.footer-brand .logo {
  color: #F7F3EE;
}
.footer-brand .logo:hover {
  color: #D4A574;
}
.footer-links nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(247, 243, 238, 0.55);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #D4A574;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-contact a {
  font-size: 0.875rem;
  color: rgba(247, 243, 238, 0.55);
  transition: color 0.2s ease;
}
.footer-contact a:hover {
  color: #D4A574;
}
.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(247, 243, 238, 0.3);
}

/* --- SCROLL REVEAL (below fold only, progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(247, 243, 238, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 36, 32, 0.08);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav a {
    font-size: 0.9375rem;
  }

  .hero-content {
    padding: 7rem 1.5rem 5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .trust-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .trust-item {
    padding: 0;
  }
  .trust-divider {
    width: 40px;
    height: 1px;
  }

  .services {
    padding: 5rem 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 5rem 0;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-wrap img {
    height: 300px;
  }
  .about-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .stat-divider {
    display: none;
  }

  .industries {
    padding: 5rem 0;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 4rem 0;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-text p {
    margin: 0 auto;
  }
  .cta-actions {
    justify-content: center;
  }

  .contact {
    padding: 5rem 0;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-form-wrap {
    padding: 1.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-headline {
    font-size: 2rem;
  }
  .service-card {
    padding: 1.75rem 1.5rem;
  }
}
