/*
Theme Name: Summit Packaging
Theme URI: https://www.summitpackagingcorp.com
Author: Summit Packaging Corporation
Description: Custom WordPress theme for Summit Packaging Corporation — Indianapolis, IN. Built 2026.
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: summit
*/

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

:root {
  --green:       #2D5A27;
  --green-mid:   #3D7A36;
  --green-light: #5A9E52;
  --green-pale:  #EAF3E8;
  --gray-dark:   #2C2C2A;
  --gray-mid:    #5F5E5A;
  --gray-light:  #B4B2A9;
  --gray-pale:   #F4F3F0;
  --white:       #FFFFFF;
  --border:      #E2E0DA;
  --overlay:     rgba(20,45,18,0.42);
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--gray-dark); -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
p    { line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--gray-dark); }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container       { max-width: 1180px; margin: 0 auto; padding: 0 48px; }
.container--sm   { max-width: 820px; }
.section         { padding: 80px 0; }
.section--pale   { background: var(--gray-pale); }
.section--white  { background: var(--white); }
.section--dark   { background: #1A2E18; }
.section--green  { background: var(--green); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; padding: 12px 26px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.03em; border-radius: 6px; border: none;
  cursor: pointer; text-decoration: none; transition: all 0.2s; line-height: 1;
}
.btn--primary  { background: var(--green); color: var(--white); }
.btn--primary:hover  { background: var(--green-mid); color: var(--white); text-decoration: none; }
.btn--outline  { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn--outline:hover  { background: var(--green); color: var(--white); text-decoration: none; }
.btn--white    { background: var(--white); color: var(--green); }
.btn--white:hover    { background: var(--gray-pale); text-decoration: none; }
.btn--ghost-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn--ghost-white:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn--sm       { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}
.site-logo img { height: 48px; width: auto; }
.site-logo:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--gray-mid); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none;
  padding: 7px 14px; border-radius: 6px; transition: all 0.15s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--green); background: var(--green-pale); text-decoration: none;
}

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children > a::after { content: ' ▾'; font-size: 9px; opacity: 0.5; }
.main-nav .sub-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; min-width: 200px; padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); list-style: none; z-index: 200;
}
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu li a {
  display: block; padding: 10px 18px; border-radius: 0;
  font-size: 13px; color: var(--gray-mid);
}
.main-nav .sub-menu li a:hover { color: var(--green); background: var(--green-pale); }

.nav-cta { margin-left: 14px; }

.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px; padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-dark); border-radius: 2px; transition: all 0.3s;
}

/* ============================================================
   HOME HERO — SLIDESHOW
   ============================================================ */
.home-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 520px; border-bottom: 1px solid var(--border);
}
.home-hero__left {
  padding: 72px 56px 72px 48px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.home-hero__left h1 { margin-bottom: 16px; }
.home-hero__left h1 em { color: var(--green); font-style: italic; }
.home-hero__body {
  font-size: 16px; line-height: 1.8; color: var(--gray-mid);
  font-weight: 300; margin-bottom: 32px; max-width: 420px;
}
.home-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

.home-hero__right { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.slideshow { position: relative; flex: 1; overflow: hidden; min-height: 380px; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.slide::after { content: ''; position: absolute; inset: 0; background: var(--overlay); }
.slide-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.38); border: none;
  cursor: pointer; padding: 0; transition: background 0.3s;
}
.dot.active { background: rgba(255,255,255,0.92); }

.stats-bar {
  background: var(--green);
  display: grid; grid-template-columns: repeat(3,1fr); flex-shrink: 0;
}
.stat { padding: 22px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--serif); font-size: 30px; color: var(--white); line-height: 1; margin-bottom: 5px; }
.stat__lbl { font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   MARKETS RIBBON
   ============================================================ */
.ribbon {
  background: var(--gray-pale); border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.ribbon__items { display: flex; flex: 1; }
.ribbon__item {
  font-size: 12px; font-weight: 500; color: var(--gray-mid);
  padding: 14px 0; border-right: 1px solid var(--border);
  white-space: nowrap; transition: all 0.15s; flex: 1; text-align: center;
}
.ribbon__item:last-child { border-right: none; }
.ribbon__item:hover { color: var(--green); background: var(--green-pale); }

/* ============================================================
   WHAT WE PROVIDE — HOME
   ============================================================ */
.provide-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; margin-bottom: 48px;
}
.provide-header__img {
  overflow: hidden; border-radius: 4px; height: 320px; position: relative;
}
.provide-header__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.provide-header__img::after {
  content: ''; position: absolute; inset: 0;
  background: var(--overlay); border-radius: 4px;
}

.products-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.prod-card {
  background: var(--white); padding: 32px 28px;
  text-decoration: none; display: block;
  border-bottom: 3px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.prod-card:hover { background: var(--green-pale); border-bottom-color: var(--green); text-decoration: none; }
.prod-card__tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-light); margin-bottom: 12px; }
.prod-card__name { font-family: var(--serif); font-size: 22px; color: var(--gray-dark); margin-bottom: 10px; transition: color 0.2s; }
.prod-card:hover .prod-card__name { color: var(--green); }
.prod-card__desc { font-size: 14px; line-height: 1.7; color: var(--gray-mid); margin-bottom: 16px; }
.prod-card__link { font-size: 13px; font-weight: 600; color: var(--gray-light); transition: color 0.2s; }
.prod-card:hover .prod-card__link { color: var(--green); }
.prod-card--cta { background: var(--green); }
.prod-card--cta:hover { background: var(--green-mid); border-bottom-color: transparent; }
.prod-card--cta .prod-card__tag  { color: rgba(255,255,255,0.55); }
.prod-card--cta .prod-card__name { color: var(--white); }
.prod-card--cta .prod-card__desc { color: rgba(255,255,255,0.65); }

/* ============================================================
   WHY SUMMIT
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.why-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--green); border-radius: 0 0 8px 8px; padding: 32px 28px;
}
.why-card__title { font-family: var(--serif); font-size: 20px; color: var(--gray-dark); margin-bottom: 10px; }
.why-card__body  { font-size: 14px; line-height: 1.8; color: var(--gray-mid); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--green); padding: 64px 0; }
.cta-band__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.cta-band__title {
  font-family: var(--serif); font-size: clamp(24px, 2.5vw, 32px);
  color: var(--white); max-width: 500px; line-height: 1.25;
}
.cta-band__title em { font-style: italic; }
.cta-band__btns { display: flex; gap: 12px; flex-shrink: 0; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  position: relative; height: 340px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.page-hero__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,45,18,0.3) 0%, rgba(20,45,18,0.72) 100%);
}
.page-hero__content {
  position: relative; z-index: 1;
  padding: 0 48px 40px; width: 100%;
}
.page-hero__eyebrow { color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.page-hero h1 { color: var(--white); }
.page-hero__lead { font-size: 17px; color: rgba(255,255,255,0.75); font-weight: 300; max-width: 580px; margin-top: 12px; line-height: 1.7; }

/* No image fallback */
.page-hero--no-img { background: #1E3D1B; }

/* ============================================================
   PRODUCT DETAIL PAGES
   ============================================================ */
.product-intro { padding: 72px 0; }
.product-intro__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.product-intro__copy h2 { margin-bottom: 18px; }
.product-intro__copy p { color: var(--gray-mid); font-weight: 300; font-size: 16px; line-height: 1.8; }
.product-intro__btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.features-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 3px; margin-top: 40px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.feature-card { background: var(--white); padding: 30px 26px; border-top: 3px solid var(--green); }
.feature-card__title { font-family: var(--serif); font-size: 19px; margin-bottom: 10px; }
.feature-card__body  { font-size: 14px; line-height: 1.75; color: var(--gray-mid); }

.types-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.type-card {
  background: var(--gray-pale); border: 1px solid var(--border);
  border-top: 3px solid var(--green-light); border-radius: 0 0 6px 6px; padding: 26px 22px;
}
.type-card__name { font-family: var(--serif); font-size: 18px; margin-bottom: 8px; }
.type-card__desc { font-size: 13px; line-height: 1.7; color: var(--gray-mid); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story { padding: 80px 0; }
.about-story__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-story__copy h2 { margin-bottom: 20px; }
.about-story__copy p { color: var(--gray-mid); font-weight: 300; font-size: 16px; line-height: 1.8; }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 48px; }
.value-card { border-top: 2px solid rgba(255,255,255,0.12); padding-top: 28px; }
.value-card__num { font-family: var(--serif); font-size: 42px; color: rgba(255,255,255,0.15); line-height: 1; margin-bottom: 12px; }
.value-card__title { font-family: var(--serif); font-size: 21px; color: var(--white); margin-bottom: 12px; }
.value-card__body  { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5); font-weight: 300; }

.industries-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; margin-top: 40px; }
.industry-tile {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--green); padding: 28px 20px; text-align: center;
}
.industry-tile__name { font-family: var(--serif); font-size: 16px; color: var(--gray-dark); margin-top: 8px; }

/* ============================================================
   SERVICE PAGE
   ============================================================ */
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; margin-top: 48px; }
.pillar-card {
  background: var(--gray-pale); padding: 36px 30px;
  border-top: 3px solid var(--green);
}
.pillar-card__num { font-family: var(--serif); font-size: 48px; color: var(--gray-light); line-height: 1; margin-bottom: 14px; }
.pillar-card__title { font-family: var(--serif); font-size: 21px; margin-bottom: 12px; }
.pillar-card__body  { font-size: 15px; line-height: 1.8; color: var(--gray-mid); }

.promise-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 36px; margin-top: 48px; }
.promise-item { display: flex; gap: 20px; align-items: flex-start; }
.promise-item__icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: rgba(255,255,255,0.08); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 20px;
}
.promise-item__title { font-family: var(--serif); font-size: 19px; color: var(--white); margin-bottom: 8px; }
.promise-item__body  { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.45); font-weight: 300; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; padding: 80px 0; }
.contact-info h3 { font-size: 22px; margin-bottom: 28px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-detail__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--gray-pale); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--green);
}
.contact-detail__label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.contact-detail__value { font-size: 16px; color: var(--gray-dark); }
.contact-detail__value a { color: var(--gray-dark); }
.contact-detail__value a:hover { color: var(--green); }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 40px;
}
.contact-form-wrap h3 { font-size: 22px; margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-mid); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--sans); font-size: 15px; color: var(--gray-dark);
  background: var(--gray-pale); border: 1px solid var(--border);
  border-radius: 6px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,90,39,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  background: var(--green-pale); border: 1px solid var(--green);
  border-radius: 6px; padding: 16px 20px; margin-bottom: 24px;
}
.form-success p { color: var(--green); font-weight: 600; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #1A2E18; padding: 56px 0 0; }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-logo img { max-width: 200px; height: auto; margin-bottom: 16px; opacity: 0.85; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.7; }
.footer-col__title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-light); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-contact a:hover { color: rgba(255,255,255,0.8); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0;
}
.site-footer__bottom .container {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { background: var(--gray-pale); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb__list { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 13px; color: var(--gray-light); }
.breadcrumb__list li::after { content: '›'; margin-left: 8px; opacity: 0.4; }
.breadcrumb__list li:last-child::after { display: none; }
.breadcrumb__list a { color: var(--green); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .home-hero               { grid-template-columns: 1fr; }
  .home-hero__right        { min-height: 360px; }
  .home-hero__left         { padding: 64px 40px; border-right: none; border-bottom: 1px solid var(--border); }
  .products-grid           { grid-template-columns: repeat(2,1fr); }
  .why-grid                { grid-template-columns: repeat(2,1fr); }
  .about-story__inner      { grid-template-columns: 1fr; }
  .product-intro__inner    { grid-template-columns: 1fr; }
  .provide-header          { grid-template-columns: 1fr; }
  .provide-header__img     { height: 260px; }
  .contact-grid            { grid-template-columns: 1fr; }
  .site-footer__grid       { grid-template-columns: 1fr 1fr; }
  .industries-grid         { grid-template-columns: repeat(3,1fr); }
  .pillars-grid            { grid-template-columns: repeat(2,1fr); }
  .values-grid             { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .container          { padding: 0 24px; }
  .section            { padding: 56px 0; }
  .main-nav           { display: none; }
  .main-nav.is-open   {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    padding: 16px 24px; gap: 4px; z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .main-nav.is-open .sub-menu {
    display: block; position: static; box-shadow: none;
    border: none; padding: 0 0 0 16px;
  }
  .menu-toggle       { display: flex; }
  .nav-cta           { display: none; }
  .site-header       { position: relative; }
  .products-grid     { grid-template-columns: 1fr; }
  .why-grid          { grid-template-columns: 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .types-grid        { grid-template-columns: 1fr; }
  .values-grid       { grid-template-columns: 1fr; }
  .promise-grid      { grid-template-columns: 1fr; }
  .pillars-grid      { grid-template-columns: 1fr; }
  .industries-grid   { grid-template-columns: repeat(2,1fr); }
  .cta-band__inner   { flex-direction: column; text-align: center; }
  .ribbon__items     { overflow-x: auto; }
  .ribbon__item      { flex: none; padding: 14px 18px; }
  .form-row          { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom .container { flex-direction: column; gap: 6px; text-align: center; }
  .page-hero         { height: 260px; }
  .page-hero__content { padding: 0 24px 28px; }
}
