/* V27 styles — cumulative redesign, dual desktop/mobile layouts.
 * Breakpoint policy (RESPONSIVE-DESIGN-SCOPE-20261106.md):
 *   <800px  = mobile-independent layout (app is 480px-capped in 760-799, so
 *             component width never justifies desktop column counts)
 *   >=800px = desktop reference layouts (app opens to 1120px)
 * Shared: theme #075c3d / white / light green; every heading, icon, number and
 * button is a real DOM element (no baked-in design screenshots).
 * Image aspect ratios follow the true derived-crop sizes in
 * assets-v27/DERIVED-ASSETS.json so nothing is stretched. */

/* ---------- unified top-left logo (item 4) ----------
 * The topbar markup/CSS is identical on all five pages; Contact is the
 * reference geometry: header 90px, logo container 126x76 at left 19 / top 7,
 * inner image 166px cropped (left -21 / top -29) — unchanged baseline rules. */
.topbar.v27-topbar{display:flex!important;position:static!important;height:90px;padding:6px 19px;background:#fff}
.topbar.v27-topbar .brand-logo{display:block!important}
/* the old hero-brand strip is removed from Home markup; rule kept as a guard */
.v25-hero-brand{display:none!important}

/* ---------- shared pieces ---------- */
.v27-sec{position:relative}
.v27-ico{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:#eaf5ef;color:#075c3d}
.v27-ico svg{width:22px;height:22px}
.v27-ico-lg{width:56px;height:56px;margin:0 auto}
.v27-ico-lg svg{width:28px;height:28px}
.v27-rule{display:block;width:64px;height:4px;border-radius:2px;background:#075c3d;margin:10px auto 0}
.v27-center-head{text-align:center;margin-bottom:18px}
.v27-center-head h2{margin:0}
.v27-sec-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.v27-sec-head h2{margin:0;position:relative;padding-bottom:10px}
.v27-sec-head h2:after{content:'';position:absolute;left:0;bottom:0;width:64px;height:4px;border-radius:2px;background:#075c3d}
.v27-sec-sub{margin:0;font-size:13px;color:#5e7467;border-left:3px solid #075c3d;padding-left:10px}

/* ---------- items 1 & 9: packaging solution cards ---------- */
.v27-options{display:grid;gap:14px}
.v27-option-card{background:#fff;border:1px solid #e7ede8;border-radius:12px;overflow:hidden;box-shadow:0 3px 10px #164c2d0d;position:relative}
.v27-option-card:after{content:'';position:absolute;right:0;bottom:0;width:52px;height:52px;background:#eaf5ef;border-radius:52px 0 0 0;pointer-events:none}
.v27-option-photo{margin:0}
.v27-option-photo img{display:block;width:100%;height:auto;aspect-ratio:1.54;object-fit:cover}
.v27-option-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:12px}
.v27-option-head{display:flex;align-items:center;gap:12px}
/* R1-02: the after-references use a circular light-green icon bed; keep the
 * 48x48 size from V27-02 but restore the circle (was 14px rounded square). */
.v27-option-head .v27-ico{width:48px;height:48px;border-radius:50%}
.v27-option-head h3{margin:0;font-size:17px;color:#123527}
.v27-option-head p{margin:3px 0 0;font-size:12px;color:#5e7467}
/* vertical divider between the icon and the title/description block
 * (home-options-after / custom-options-after, V27-02) */
.v27-option-txt{flex:1;min-width:0;border-left:2px solid #dce8df;padding-left:13px}
/* wide pill CTA spanning the card text column (V27-02, both references) */
.v27-option-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border-radius:999px;font-weight:bold;white-space:nowrap;position:relative;z-index:1}

/* ---------- item 2: Home five-photo timeline ----------
 * Desktop: grid rows [photos / numbered connector / copy] via display:contents,
 * so the green line is a real grid item running behind the number circles.
 * Mobile (V27-04): true vertical timeline — a real CSS connector segment runs
 * from each number circle down to the next photo; copy sits beside the rail. */
.v27-photo-steps{display:grid;gap:14px}
.v27-photo-step{position:relative}
.v27-photo-step-img{margin:0;border-radius:8px;overflow:hidden;background:#eef3ef}
.v27-photo-step-img img{display:block;width:100%;height:auto;aspect-ratio:1.11;object-fit:cover}
.v27-step-num{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#075c3d;color:#fff;font-weight:bold;font-size:14px;font-style:normal;flex:none}
.v27-step-rail{position:relative;display:flex;align-items:flex-start;gap:14px;padding-top:10px}
.v27-step-rail .v27-step-num{position:relative;z-index:1;box-shadow:0 0 0 3px #f7faf8}
.v27-step-rail:after{content:'';position:absolute;left:14px;top:30px;bottom:-15px;width:2px;background:#cfe3d6}
.v27-photo-step:last-child .v27-step-rail:after{display:none}
.v27-photo-step-copy{flex:1;min-width:0;text-align:left;padding:0}
.v27-photo-step-copy h3{margin:2px 0 0;font-size:15px;color:#123527}
.v27-photo-step-copy p{margin:4px 0 0;font-size:13px;color:#5e7467}

/* ---------- item 3: Home 2x2 advantages ---------- */
.v27-adv-grid{display:grid;gap:14px}
.v27-adv-item{display:grid;gap:10px}
.v27-adv-photo{margin:0;border-radius:8px;overflow:hidden}
.v27-adv-photo img{display:block;width:100%;height:auto;aspect-ratio:2.18;object-fit:cover}
.v27-adv-copy{border-left:3px solid #075c3d;padding-left:12px}
.v27-adv-copy h3{margin:0;font-size:15px;color:#123527}
.v27-adv-copy p{margin:4px 0 0;font-size:12px;color:#5e7467}

/* ---------- item 7: Custom feature cards ---------- */
.v27-features{display:grid;gap:12px}
.v27-feature-card{background:#fff;border:1px solid #e7ede8;border-radius:12px;padding:18px 14px 0;text-align:center;overflow:hidden;position:relative;box-shadow:0 3px 10px #164c2d0d}
.v27-feature-card:before{content:'';position:absolute;left:-24px;bottom:-30px;width:120px;height:120px;border-radius:50%;background:#eaf5ef;opacity:.55;pointer-events:none}
.v27-feature-card h3{margin:10px 0 0;font-size:15px;color:#123527;position:relative}
.v27-feature-card p{margin:6px 0 14px;font-size:13px;color:#5e7467;position:relative}
.v27-feature-img{margin:0 -14px;position:relative}
.v27-feature-img img{display:block;width:100%;height:auto;aspect-ratio:1.22;object-fit:cover}

/* ---------- item 8: Custom five illustrated process cards ---------- */
.v27-cproc{display:grid;gap:18px}
/* no overflow:hidden here: the number bubbles deliberately hang above the card
 * (custom-process-after); the illustration container rounds its own corners */
.v27-cproc-card{position:relative;background:#fff;border:1px solid #e7ede8;border-radius:12px;padding:24px 14px 0;text-align:center;box-shadow:0 3px 10px #164c2d0d}
.v27-step-num-top{position:absolute;top:-15px;left:50%;transform:translateX(-50%);box-shadow:0 0 0 3px #f7faf8;z-index:1}
.v27-cproc-card h3{margin:2px 0 0;font-size:14.5px;color:#123527;position:relative}
.v27-cproc-card p{margin:6px 0 14px;font-size:13px;color:#5e7467;position:relative}
.v27-cproc-img{margin:0 -14px;position:relative;overflow:hidden;border-radius:0 0 12px 12px}
.v27-cproc-img img{display:block;width:100%;height:auto;aspect-ratio:1.13;object-fit:cover}
/* mobile (V27-04): real down-connector between consecutive cards — a rotated
 * chevron in the grid gap, right side so it never collides with the number
 * bubble of the next card. Never relies on arrow fragments inside the crops. */
.v27-cproc-arrow{display:block;position:absolute;right:16px;bottom:-17px;font-size:16px;line-height:1;color:#075c3d;z-index:2;transform:rotate(90deg)}

/* ---------- item 10: Factory advantages ---------- */
.v27-fadv{display:grid;gap:16px}
.v27-fadv-photo{margin:0;border-radius:10px;overflow:hidden}
.v27-fadv-photo img{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:cover}
.v27-fadv-list h2{margin:0 0 6px}
.v27-fadv-row{display:flex;gap:12px;align-items:flex-start;padding:12px 0}
.v27-fadv-row h3{margin:0;font-size:15px;color:#123527}
.v27-fadv-row p{margin:3px 0 0;font-size:12px;color:#5e7467}
.v27-fadv-sep{border-top:1px solid #e4ebe5}

/* ---------- item 6: Products search module ----------
 * The live form keeps its id (#catalog-search24) so the existing submit
 * handler keeps working; baseline ID rules are intentionally re-declared here
 * (same specificity, later file) to adopt the new module design. */
.v27-search{background:#eaf5ef;border-radius:12px;padding:18px 16px;margin:10px 0 16px}
.v27-search h2{margin:0;font-size:20px;color:#075c3d;letter-spacing:-.4px}
.v27-search p{margin:6px 0 14px;font-size:12.5px;color:#3c5548}
.v27-search #catalog-search24{display:flex;flex-direction:column;gap:10px;position:relative;border:0;border-radius:0;overflow:visible;margin:0}
.v27-search-ico{position:absolute;left:16px;top:14px;color:#075c3d;pointer-events:none;z-index:1}
.v27-search-ico svg{width:18px;height:18px}
.v27-search #catalog-search24 input{width:100%;min-height:46px;border:1.5px solid #075c3d;border-radius:8px;padding:0 12px 0 44px;font-size:14px;background:#fff;box-sizing:border-box;flex:none}
.v27-search #catalog-search24 input:focus-visible{outline:3px solid #0a6d49;outline-offset:1px}
.v27-search #catalog-search24 button{min-height:46px;border:0;border-left:0;border-radius:8px;font-weight:bold;white-space:nowrap;flex:none;padding:0 18px;width:auto;background:#075c3d;color:#fff}

/* ---------- desktop (>=800px) ---------- */
@media(min-width:800px){
  /* items 4 + 11: hero copy moved up into the freed in-artwork logo whitespace
   * (desktop red-box targets; mobile keeps its own independent placement) */
  .v27-copy-up .v26-copy{top:14%;transform:none}

  .v27-options{grid-template-columns:repeat(3,minmax(0,1fr))}
  .v27-sec-head{flex-wrap:nowrap}

  .v27-photo-steps{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto 38px auto;gap:0 8px;padding-top:4px}
  .v27-photo-step{display:contents}
  /* rail is a real grid item spanning the number row + copy row; its column
   * comes from the nth-child>* rules below (num/copy live inside the rail) */
  /* R1-01: the mobile rail's padding-top:10px used to survive into desktop and
   * pushed the circles 9px below the connector. Reset it here and derive both
   * the circle offset and the line offset from the same 38px row:
   * circle top 4 + 30/2 = 19px, line top 18 + 2/2 = 19px -> 0px delta. */
  .v27-step-rail{display:flex;flex-direction:column;align-items:center;grid-row:2/4;position:relative;z-index:1;padding-top:0}
  .v27-step-rail:after{display:none}
  .v27-photo-step:nth-child(1)>*{grid-column:1}
  .v27-photo-step:nth-child(2)>*{grid-column:2}
  .v27-photo-step:nth-child(3)>*{grid-column:3}
  .v27-photo-step:nth-child(4)>*{grid-column:4}
  .v27-photo-step:nth-child(5)>*{grid-column:5}
  .v27-photo-step-img{grid-row:1}
  /* row 2 is a fixed 38px band: circle occupies 4..34, its centre is y=19;
   * the connector sits at 18..20 so its centre matches exactly (R1-01) */
  .v27-step-rail .v27-step-num{margin:4px 0 0;box-shadow:0 0 0 4px #f7faf8}
  /* connector: a real grid item spanning the number row behind the circles */
  .v27-photo-steps:before{content:'';grid-row:2;grid-column:1/-1;align-self:start;margin-top:18px;height:2px;background:#cfe3d6;z-index:0}
  .v27-photo-step-copy{padding-top:12px;text-align:center}
  .v27-photo-step-copy h3{font-size:15.5px}
  .v27-photo-step-copy p{font-size:13px}

  .v27-adv-grid{grid-template-columns:1fr 1fr;gap:22px 26px}
  .v27-adv-item{grid-template-columns:1.15fr 1fr;align-items:center;gap:14px}

  .v27-features{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .v27-feature-card p{min-height:56px}

  .v27-cproc{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;padding-top:15px}
  .v27-cproc-card{padding-top:26px}
  .v27-cproc-arrow{display:block;position:absolute;right:-17px;top:44%;color:#075c3d;font-weight:bold;font-size:20px;z-index:2;transform:none}
  .v27-cproc-card:last-child .v27-cproc-arrow{display:none}

  .v27-fadv{grid-template-columns:1fr 1.1fr;gap:22px;align-items:start}

  .v27-search h2{font-size:26px}
  .v27-search p{font-size:14px}
  .v27-search #catalog-search24{flex-direction:row;align-items:center}
  .v27-search #catalog-search24 input{flex:1}
  .v27-search-ico{top:50%;transform:translateY(-50%)}
}

/* ---------- narrow phones ---------- */
@media(max-width:379px){
  .v27-features{grid-template-columns:1fr}
  .v27-option-head h3,.v27-fadv-row h3{font-size:14px}
  .v27-feature-card h3{font-size:13.5px}
  .v27-search h2{font-size:18px}
}
/* phones 480-799: 2x2 feature cards (scoped below the desktop breakpoint so it
 * can never override the 4-column desktop rule; below 480 the cards stay in a
 * single column so the 13px descriptions never get cramped — V27-R1) */
@media(min-width:480px) and (max-width:799px){
  .v27-features{grid-template-columns:1fr 1fr}
}

/* ---------- V27-R1 / V27-03: mobile Products — earlier search ----------
 * Merges the duplicated page intros (hero eyebrow+desc, FIND YOUR PACKAGING
 * eyebrow, Products h1, catalog intro) and compacts the customer-service block
 * into a single-row hint. Search appears immediately after the hero instead of
 * being pushed below one viewport. Desktop (>=800px) untouched; the search
 * form, help/contact entry, request list, categories and pagination all keep
 * working (DOM untouched — CSS-only on <800px). */
@media(max-width:799px){
  .v26-hero.v26-hero-products .v26-flow{display:none}
  .integrated-catalog .collection-title .eyebrow{display:none}
  .integrated-catalog .collection-title h1{display:none}
  .integrated-catalog .catalog24-intro{display:none}
  .integrated-catalog .v25-help{padding:8px 12px;margin:2px 0 10px}
  .integrated-catalog .v25-help h2{font-size:14px;margin:0}
  .integrated-catalog .v25-help p{display:none}
  .integrated-catalog .v25-help-btn{min-height:40px;padding:8px 14px;font-size:12.5px}
}
