/*
Theme Name: EPACN Shade B2B Demo
Theme URI: https://wps.epacn.net/
Author: EPACN Demo
Description: A focused B2B motorized shading demonstration theme.
Version: 1.0.0
Text Domain: roller-b2b-demo
*/

:root {
  --ink: #102c34;
  --ink-2: #183b43;
  --green: #3f725f;
  --green-dark: #2e594a;
  --sage: #dfe8de;
  --sand: #eee8dd;
  --paper: #f8f7f3;
  --white: #fff;
  --muted: #627176;
  --line: #dfe3df;
  --shadow: 0 24px 70px rgba(16, 44, 52, .11);
  --radius: 24px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow.light { color: #cbdad0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .page-intro h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.section-heading p, .page-intro p { margin: 0; color: var(--muted); font-size: 18px; }
.section { padding: 104px 0; }
.section.compact { padding: 72px 0; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark .section-heading p { color: #b9c7c8; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(16, 44, 52, .08);
  background: rgba(248, 247, 243, .92);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .08em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--ink); }
.brand-mark::before { width: 16px; height: 12px; border-top: 2px solid white; border-bottom: 2px solid white; content: ""; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .2em; }
.site-nav { display: flex; margin-left: auto; align-items: center; gap: 27px; }
.site-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 25px; list-style: none; }
.site-nav a { font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--green); }
.header-cta, .button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 750;
  transition: .2s ease;
}
.header-cta { min-height: 42px; padding-inline: 18px; font-size: 13px !important; }
.button:hover, .header-cta:hover { transform: translateY(-2px); background: var(--green-dark); color: white !important; }
.button.secondary { border-color: rgba(255,255,255,.4); background: transparent; }
.button.secondary:hover { border-color: white; background: rgba(255,255,255,.08); }
.button.ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.button.ghost:hover { border-color: var(--ink); background: var(--ink); color: white; }
.menu-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; color: var(--ink); }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #162e33;
  color: white;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,32,.92) 0%, rgba(9,28,32,.76) 38%, rgba(9,28,32,.16) 75%, rgba(9,28,32,.06) 100%); content: ""; }
.hero-inner { position: relative; z-index: 1; display: flex; min-height: 720px; padding: 90px 0 112px; align-items: center; }
.hero-copy { max-width: 690px; }
.hero h1 {
  max-width: 680px;
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.2vw, 92px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .95;
}
.hero .lead { max-width: 600px; margin: 0 0 36px; color: #d8e1df; font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-proof { position: absolute; right: 0; bottom: 28px; left: 0; z-index: 2; }
.proof-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(9,28,32,.7); backdrop-filter: blur(12px); }
.proof-item { padding: 17px 22px; border-right: 1px solid rgba(255,255,255,.16); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 14px; }
.proof-item span { color: #afbfbd; font-size: 12px; }

.audience-strip { border-bottom: 1px solid var(--line); background: white; }
.audience-row { display: flex; min-height: 94px; align-items: center; gap: 34px; }
.audience-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.audience-list { display: flex; flex: 1; justify-content: space-between; gap: 18px; }
.audience-list span { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.audience-list span::before { width: 8px; height: 8px; border-radius: 50%; background: var(--green); content: ""; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card {
  position: relative;
  min-height: 370px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: .25s ease;
}
.solution-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.solution-card .number { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.solution-card h3 { margin: 90px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; line-height: 1.1; }
.solution-card p { margin: 0; color: var(--muted); }
.solution-card .link { position: absolute; right: 34px; bottom: 30px; left: 34px; display: flex; justify-content: space-between; font-weight: 750; }
.solution-card .link::after { content: "↗"; }
.solution-card.featured { background: var(--ink); color: white; }
.solution-card.featured p { color: #b8c6c7; }

.split { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 84px; }
.material-visual { position: relative; min-height: 560px; overflow: hidden; border-radius: 30px; background: linear-gradient(135deg, #b9b3a7, #eee7db); box-shadow: var(--shadow); }
.material-visual::before { position: absolute; inset: 0 52% 0 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 1px, transparent 1px 7px), #56665a; content: ""; }
.material-visual::after { position: absolute; top: 10%; right: 8%; bottom: 10%; width: 37%; border-radius: 5px; background: repeating-linear-gradient(90deg, rgba(16,44,52,.08) 0 1px, transparent 1px 6px), #e8e1d6; box-shadow: -18px 18px 40px rgba(16,44,52,.15); content: ""; }
.visual-label { position: absolute; z-index: 1; bottom: 28px; left: 28px; padding: 14px 18px; border-radius: 12px; background: white; box-shadow: 0 10px 30px rgba(16,44,52,.18); font-size: 13px; font-weight: 750; }
.feature-list { display: grid; margin-top: 34px; gap: 0; }
.feature { display: grid; padding: 21px 0; border-top: 1px solid var(--line); grid-template-columns: 46px 1fr; gap: 14px; }
.feature-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--sage); color: var(--green-dark); font-size: 13px; font-weight: 850; }
.feature h3 { margin: 0 0 3px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.15); }
.process-step { min-height: 270px; padding: 28px; background: var(--ink); }
.process-step .step { display: block; margin-bottom: 72px; color: #8fb09f; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.process-step h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.process-step p { margin: 0; color: #adbec0; font-size: 14px; }

.project-feature { display: grid; min-height: 510px; overflow: hidden; border-radius: 30px; background: white; box-shadow: var(--shadow); grid-template-columns: 1.1fr .9fr; }
.project-image { min-height: 420px; background: linear-gradient(135deg, rgba(16,44,52,.15), rgba(63,114,95,.28)), url("assets/hero-shades.png") center / cover; }
.project-copy { display: flex; padding: 54px; flex-direction: column; justify-content: center; }
.project-copy h3 { margin: 0 0 17px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 500; line-height: 1.08; }
.project-copy p { color: var(--muted); }
.tag-row { display: flex; margin: 16px 0 27px; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 11px; border-radius: 999px; background: var(--sand); font-size: 12px; font-weight: 750; }

.cta-panel { display: grid; padding: 60px; border-radius: 30px; background: var(--green); color: white; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.cta-panel h2 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5vw, 57px); font-weight: 500; letter-spacing: -.035em; line-height: 1.03; }
.cta-panel p { margin: 14px 0 0; color: #e2ede7; }
.cta-panel .button { background: white; color: var(--ink); }

.page-hero { padding: 94px 0 74px; background: var(--sand); }
.page-intro { max-width: 780px; }
.page-content { padding: 84px 0 110px; }
.content-narrow { max-width: 920px; margin: 0 auto; }
.content-narrow > :first-child { margin-top: 0; }
.content-narrow h2 { margin: 52px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 500; line-height: 1.1; }
.content-narrow h3 { margin: 34px 0 10px; font-size: 21px; }
.content-narrow p, .content-narrow li { color: var(--muted); }
.content-narrow .wp-block-columns { gap: 20px; }
.demo-grid { display: grid; margin: 34px 0; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-box { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.demo-box h3 { margin: 0 0 10px; }
.demo-box p { margin: 0; }
.notice { margin: 30px 0; padding: 20px 22px; border-left: 4px solid var(--green); border-radius: 0 14px 14px 0; background: var(--sage); color: var(--ink); }

.roller-rfq-wrap { max-width: none !important; margin: 0 !important; padding: 38px !important; border: 1px solid var(--line) !important; border-radius: 24px !important; box-shadow: var(--shadow) !important; }
.roller-rfq-wrap h2 { font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 500; }
.roller-rfq-wrap p { color: var(--muted) !important; }
.roller-rfq-field label { color: var(--ink) !important; }
.roller-rfq-field input, .roller-rfq-field select, .roller-rfq-field textarea { min-height: 48px; border-color: var(--line) !important; border-radius: 10px !important; background: #fbfbf8 !important; }
.roller-rfq-field input:focus, .roller-rfq-field select:focus, .roller-rfq-field textarea:focus { border-color: var(--green) !important; outline: 3px solid rgba(63,114,95,.12); }
.roller-rfq-submit { min-height: 50px; padding: 0 25px !important; border-radius: 999px !important; background: var(--green) !important; }

.shop-hero { padding-bottom: 64px; }
.shop-content { background: #f4f3ee; }
.woocommerce .woocommerce-breadcrumb {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 34px; }
.woocommerce .woocommerce-ordering select {
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}
.woocommerce ul.products {
  display: grid;
  margin: 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  display: flex;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; flex: 1; }
.woocommerce ul.products li.product a img {
  width: 100%;
  margin: 0 0 23px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 24px !important;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px !important;
  font-weight: 500;
  line-height: 1.12;
}
.woocommerce ul.products li.product .price { padding: 0 24px; color: var(--green) !important; }
.project-price {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.woocommerce ul.products li.product .button {
  min-height: 42px;
  margin: 16px 24px 0 !important;
  padding-inline: 17px;
  align-self: flex-start;
  background: var(--ink);
  font-size: 13px;
}
.woocommerce span.onsale { top: 14px !important; left: 14px !important; min-width: 0; min-height: 0; padding: 7px 11px; border-radius: 999px; background: var(--green); line-height: 1; }
.woocommerce nav.woocommerce-pagination { margin-top: 45px; }
.woocommerce nav.woocommerce-pagination ul { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.woocommerce nav.woocommerce-pagination ul li { border-color: var(--line); }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; padding: 12px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--green); color: white; }

.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border-radius: 24px; background: white; }
.woocommerce div.product div.summary { padding: 18px 0 0 36px; }
.woocommerce div.product .product_title {
  margin: 0 0 17px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.woocommerce div.product p.price { margin: 0 0 22px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); font-size: 17px; }
.woocommerce div.product .product_meta { display: grid; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); gap: 6px; color: var(--muted); font-size: 13px; }
.woocommerce div.product .product_meta a { color: var(--green); font-weight: 750; }
.product-quote-panel { margin-top: 26px; padding: 24px; border-radius: 18px; background: var(--sage); }
.product-quote-panel p { margin: 0 0 17px; color: var(--ink); font-size: 14px; }
.woocommerce div.product .woocommerce-tabs { padding-top: 60px; clear: both; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--line); background: var(--sand); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: white; }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 900px; }
.woocommerce div.product .woocommerce-tabs h2,
.woocommerce .related.products > h2 {
  margin: 38px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 500;
}
.woocommerce table.shop_attributes { border: 1px solid var(--line); border-radius: 14px; border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td { padding: 14px 17px; border-color: var(--line); background: white !important; }
.woocommerce table.shop_attributes td p { padding: 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--green) !important;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 30px rgba(16,44,52,.06);
}
.woocommerce-info::before, .woocommerce-message::before { color: var(--green) !important; }

.site-footer { padding: 70px 0 24px; background: #0b2329; color: white; }
.footer-grid { display: grid; padding-bottom: 54px; grid-template-columns: 1.4fr .8fr .8fr; gap: 70px; }
.footer-brand { max-width: 400px; }
.footer-brand p { color: #9eb0b2; }
.footer-title { margin: 0 0 16px; color: #dce5e3; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; color: #aebcbd; }
.footer-bottom { display: flex; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); justify-content: space-between; color: #839698; font-size: 12px; }

@media (max-width: 1120px) {
  .site-nav { position: fixed; inset: 78px 0 0; display: none; padding: 36px 20px; flex-direction: column; align-items: stretch; background: var(--paper); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 16px 4px; font-size: 18px; }
  .menu-toggle { display: block; }
  .header-cta { margin-top: 14px; }
  .hero, .hero-inner { min-height: 690px; }
  .proof-row { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .audience-row { padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 15px; }
  .audience-list { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid .solution-card:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 55px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .project-feature { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce div.product div.summary { padding-left: 18px; }
}

@media (max-width: 680px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .header-inner { min-height: 70px; }
  .site-nav { inset-top: 70px; }
  .hero, .hero-inner { min-height: 740px; }
  .hero-inner { padding: 70px 0 210px; align-items: flex-start; }
  .hero h1 { font-size: 53px; }
  .hero::after { background: linear-gradient(90deg, rgba(9,28,32,.9), rgba(9,28,32,.55)); }
  .hero-proof { bottom: 18px; }
  .proof-item { padding: 13px; }
  .proof-item strong { font-size: 12px; }
  .proof-item span { font-size: 10px; }
  .audience-list { display: grid; grid-template-columns: 1fr 1fr; }
  .card-grid, .demo-grid { grid-template-columns: 1fr; }
  .card-grid .solution-card:last-child { grid-column: auto; }
  .solution-card { min-height: 330px; }
  .material-visual { min-height: 420px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: auto; }
  .process-step .step { margin-bottom: 36px; }
  .project-copy, .cta-panel { padding: 34px 26px; }
  .roller-rfq-wrap { padding: 24px !important; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering { float: none; }
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary { width: 100%; padding-left: 0; float: none; }
  .woocommerce div.product .woocommerce-tabs { padding-top: 35px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
