/*
Theme Name: Jumtu Segumi
Theme URI: https://jumtusegumi.lv
Author: Jumtu Segumi
Description: Lightweight WooCommerce theme for Jumtu Segumi.
Version: 1.1.0
Text Domain: jumtusegumi
*/

@font-face {
  font-family: "Gotham CT";
  src: url("assets/Gotham-Medium_Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Gotham CT";
  src: url("assets/Gotham-Bold_Web.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #17191d;
  --muted: #626872;
  --paper: #f5f3ef;
  --white: #fff;
  --red: #b70f2a;
  --red-dark: #88091d;
  --line: #dedbd4;
  --shadow: 0 18px 50px rgba(23, 25, 29, .12);
  --radius: 18px;
  --wrap: min(1240px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.site-wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.045em; }
.section-lead { max-width: 660px; margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.text-link { color: var(--red); font-weight: 800; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  transition: .2s ease;
}
.button:hover { background: var(--red-dark); transform: translateY(-1px); }
.button--light { background: var(--white); color: var(--ink); }
.button--ghost { border-color: rgba(255,255,255,.5); background: transparent; }

.topbar { padding: 8px 0; background: var(--ink); color: #d9dadd; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 20px; }
.topbar a:hover { color: var(--white); }
.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); }
.header-main { display: grid; grid-template-columns: 180px 1fr auto; min-height: 86px; align-items: center; gap: 28px; }
.brand img { width: 154px; max-height: 62px; object-fit: contain; }
.brand__text { font-size: 1.15rem; font-weight: 900; letter-spacing: .04em; }
.primary-nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: block; padding: 28px 11px; font-size: .84rem; font-weight: 800; letter-spacing: .02em; }
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--red); }
.nav-item--mega { position: static; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: .18s ease;
}
.nav-item--mega:hover .mega-menu, .nav-item--mega:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.mega-feature { min-height: 270px; padding: 26px; border-radius: 14px; background: linear-gradient(130deg, rgba(23,25,29,.94), rgba(23,25,29,.45)), var(--mega-image) center/cover; color: var(--white); }
.mega-feature h3 { max-width: 350px; margin: 70px 0 8px; font-size: 1.75rem; line-height: 1.05; }
.mega-column { padding: 10px 12px; }
.mega-column h4 { margin: 0 0 12px; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.mega-column a { display: block; padding: 9px 0; border-bottom: 1px solid #efede9; font-weight: 700; }
.mega-column a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper); font-weight: 900; }
.cart-count { display: inline-flex; min-width: 18px; height: 18px; margin-left: -4px; align-items: center; justify-content: center; border-radius: 50%; background: var(--red); color: white; font-size: .68rem; }
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.hero-slider { position: relative; min-height: min(760px, calc(100vh - 120px)); overflow: hidden; background: #d9d9d7; color: var(--white); }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide::before { display: none; }
.hero-slide__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 7s linear; }
.hero-slide.is-active .hero-slide__image { transform: scale(1.045); }
.hero-slide__content { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; padding-bottom: clamp(54px, 8vh, 90px); }
.hero-brand-block { max-width: 520px; text-shadow: 0 2px 18px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.95); }
.certainteed-badge { display: inline-flex; margin-bottom: 13px; padding: 8px 13px; border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.18); text-shadow: none; }
.certainteed-badge img { width: 174px; height: auto; }
.landmark-wordmark { margin: 0 0 4px !important; color: var(--white) !important; font-family: "Gotham CT", Arial, sans-serif; font-size: clamp(2.15rem, 4vw, 3.2rem) !important; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.landmark-wordmark sup { position: relative; top: -.55em; font-size: .34em; }
.hero-slide h1, .hero-slide h2 { max-width: 520px; margin: 0 0 10px; color: var(--white); font-family: "Gotham CT", Arial, sans-serif; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.06; letter-spacing: -.035em; }
.hero-slide p.hero-color { margin: 0 0 20px; color: var(--white); font-size: .92rem; font-weight: 700; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { min-height: 44px; padding-inline: 19px; font-size: .88rem; text-shadow: none; }
.slider-controls { position: absolute; z-index: 4; right: max(20px, calc((100% - 1240px)/2)); bottom: 40px; display: flex; gap: 8px; }
.slider-dot { width: 42px; height: 5px; padding: 0; border: 0; background: rgba(255,255,255,.58); box-shadow: 0 1px 5px rgba(0,0,0,.4); cursor: pointer; }
.slider-dot.is-active { background: var(--red); }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 24px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-size: .92rem; }
.trust-item span { color: var(--muted); font-size: .82rem; }
.home-section { padding: clamp(70px, 9vw, 120px) 0; }
.home-section--paper { background: var(--paper); }
.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.category-card { position: relative; min-height: 330px; grid-column: span 4; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.category-card:first-child { grid-column: span 8; }
.category-card img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: .45s ease; }
.category-card:hover img { transform: scale(1.04); opacity: .62; }
.category-card__body { position: absolute; inset: auto 0 0; padding: 26px; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.category-card h3 { margin: 0 0 5px; font-size: 1.5rem; line-height: 1.1; }
.category-card span { font-size: .85rem; opacity: .8; }
.brand-panel { display: grid; grid-template-columns: 1fr 1.2fr; overflow: hidden; border-radius: 26px; background: var(--ink); color: var(--white); }
.brand-panel__image { min-height: 520px; background: url('/wp-content/uploads/2025/06/Landmark_WeatheredWood_HERO.jpg') center/cover; }
.brand-panel__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(36px, 7vw, 88px); }
.brand-panel__copy h2 { margin: 0 0 18px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.05em; }
.brand-panel__copy p { color: #c9cbd0; }
.product-section .products { margin-bottom: 0 !important; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.woocommerce ul.products li.product a img { aspect-ratio: 1/1; margin: 0 0 18px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-left: 18px; margin-right: 18px; }
.woocommerce ul.products li.product .price { color: var(--red); font-weight: 800; }
.woocommerce ul.products li.product .button { border-radius: 999px; background: var(--ink); color: var(--white); }
.cta-band { padding: 50px 0; background: var(--red); color: var(--white); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }

.content-main { min-height: 55vh; padding: 70px 0 100px; }
.page-header { padding: 64px 0; background: var(--paper); }
.page-header h1 { margin: 0; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .95; letter-spacing: -.05em; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-card { padding: 30px; border-radius: var(--radius); background: var(--paper); }
.contact-card h3 { margin-top: 0; }
.contact-list { padding: 0; list-style: none; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; color: var(--muted); }
.company-details strong { font-size: 1.06rem; }
.site-footer { padding: 66px 0 28px; background: #121317; color: #d0d2d6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.footer-brand { max-width: 360px; }
.footer-brand img { width: 150px; filter: brightness(0) invert(1); }
.footer-title { margin: 0 0 14px; color: var(--white); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid #303239; color: #898d95; font-size: .78rem; }

.roof-calculator { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.roof-calculator label { display: block; margin-bottom: 7px; font-weight: 800; }
.roof-calculator input { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #bbb; border-radius: 8px; background: white; }
.roof-calculator__result { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.custom-price { color: var(--red); font-weight: 800; }
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover { background: var(--red-dark); color: var(--white); }

@media (max-width: 1000px) {
  .header-main { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; padding: 15px 20px 25px; border-top: 1px solid var(--line); background: white; }
  .primary-nav.is-open { display: block; }
  .nav-list { display: block; }
  .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mega-menu { display: none; }
  .header-actions .button { display: none; }
  .mobile-toggle { display: inline-block; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .category-card, .category-card:first-child { grid-column: span 6; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  :root { --wrap: min(1240px, calc(100% - 28px)); }
  body { overflow-x: hidden; }
  .topbar__inner { justify-content: center; }
  .topbar__inner span:first-child { display: none; }
  .topbar__inner .topbar-contact { display: block; font-size: .74rem; text-align: center; }
  .header-main { min-height: 72px; }
  .brand img { width: 125px; max-height: 50px; }
  .header-actions .cart-link, .header-actions .cart-count { display: none; }
  .hero-slider { min-height: 620px; }
  .hero-slide__content { max-width: calc(100% - 28px); }
  .hero-brand-block { max-width: 330px; }
  .certainteed-badge img { width: 145px; }
  .landmark-wordmark { font-size: 2.3rem !important; }
  .hero-slide h1, .hero-slide h2 { max-width: 330px; font-size: 1.55rem; overflow-wrap: break-word; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 42px; padding-inline: 15px; font-size: .8rem; }
  .slider-controls { right: 16px; bottom: 24px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 18px; }
  .category-card, .category-card:first-child { min-height: 290px; grid-column: 1 / -1; }
  .brand-panel { grid-template-columns: 1fr; }
  .brand-panel__image { min-height: 330px; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
