/*
Theme Name: Shed & Greenhouse Windows
Theme URI: https://shedandgreenhousewindows.co.uk
Author: SDP Media
Description: Bespoke storefront theme for Shed & Greenhouse Windows.
Version: 1.0.0
Text Domain: shed-greenhouse
*/

:root {
  --sgw-forest: #2f4a3d;
  --sgw-forest-deep: #18302a;
  --sgw-sage: #d8e0c2;
  --sgw-lime: #dceb86;
  --sgw-cream: #f2ece2;
  --sgw-mint: #e7efe5;
  --sgw-copy: #4a5a4e;
  --sgw-muted: #7b8a7a;
  --sgw-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sgw-cream);
  color: var(--sgw-copy);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sgw-site { overflow: hidden; }
.sgw-inner { width: min(100%, var(--sgw-max)); margin-inline: auto; }

.sgw-announcement {
  display: flex; align-items: center; justify-content: center; min-height: 36px;
  padding: 8px 24px; background: var(--sgw-sage); color: var(--sgw-forest-deep);
  font-size: 12px; letter-spacing: .02em; text-align: center;
}
.sgw-hero { background: var(--sgw-forest); color: #fff; }
.sgw-nav { height: 86px; padding: 0 72px; display: flex; align-items: center; justify-content: space-between; }
.sgw-brand { display: inline-flex; align-items: center; gap: 10px; }
.sgw-brand img { width: 34px; height: 34px; }
.sgw-wordmark { display: flex; flex-direction: column; line-height: 1; }
.sgw-wordmark strong { font-size: 17px; font-weight: 800; }
.sgw-wordmark span { margin-top: 4px; font-size: 11px; }
.sgw-nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.sgw-nav-links a { transition: opacity .2s ease; }
.sgw-nav-links a:hover { opacity: .75; }
.sgw-menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: #fff; font: inherit; }
.sgw-button {
  min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; border-radius: 2px; background: var(--sgw-forest); color: #fff;
  font-size: 15px; font-weight: 700; transition: transform .2s ease, filter .2s ease;
}
.sgw-button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.sgw-button--pill { border-radius: 999px; background: var(--sgw-lime); color: var(--sgw-forest-deep); }
.sgw-button--sage { background: var(--sgw-sage); color: var(--sgw-forest-deep); }
.sgw-button--white { background: #fff; color: var(--sgw-forest-deep); }
.sgw-arrow { font-size: 18px; font-weight: 400; }

.sgw-hero-content { min-height: 698px; padding: 42px 72px 64px; display: grid; grid-template-columns: 610px 1fr; align-items: center; gap: 60px; }
.sgw-eyebrow { display: flex; align-items: center; gap: 8px; color: #c9d6a8; font-size: 13px; font-weight: 700; }
.sgw-eyebrow img { width: 18px; height: 18px; }
.sgw-hero-copy h1 { margin: 24px 0; max-width: 610px; font-size: clamp(48px, 4.45vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 400; }
.sgw-hero-copy > p { margin: 0; max-width: 550px; color: #bfc9c0; font-size: 20px; line-height: 1.5; }
.sgw-actions { display: flex; gap: 12px; margin-top: 24px; }
.sgw-hero-image { position: relative; height: 570px; min-width: 0; border-radius: 24px; overflow: hidden; }
.sgw-hero-image > img { width: 100%; height: 100%; object-fit: cover; }
.sgw-material-badge { position: absolute; left: 24px; bottom: 24px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.92); }
.sgw-material-badge strong { display: block; color: var(--sgw-copy); font-size: 14px; font-weight: 400; }
.sgw-material-badge span { display: block; margin-top: 4px; color: var(--sgw-muted); font-size: 12px; }

.sgw-products-section { padding: 84px 72px; }
.sgw-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
.sgw-kicker { margin: 0 0 10px; color: #7a8a6b; font-size: 13px; font-weight: 700; }
.sgw-section-heading h2 { margin: 0; font-size: 42px; line-height: 1.2; font-weight: 400; }
.sgw-section-heading > p { width: 390px; margin: 0; color: var(--sgw-muted); font-size: 16px; line-height: 1.5; }
.sgw-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sgw-product-card { height: 420px; padding: 24px; display: flex; flex-direction: column; gap: 18px; background: #fff; border-radius: 20px; box-shadow: 0 12px 32px rgba(23,63,53,.09); }
.sgw-product-visual { height: 245px; display: flex; align-items: center; justify-content: center; background: var(--sgw-mint); border-radius: 14px; }
.sgw-pane { width: 250px; max-width: 76%; border: 8px solid #fff; border-radius: 3px; background: rgba(217,240,240,.6); box-shadow: 0 7px 18px rgba(23,63,53,.13); }
.sgw-pane--square { aspect-ratio: 1; }
.sgw-pane--landscape { aspect-ratio: 250 / 188; }
.sgw-pane--metric { aspect-ratio: 250 / 246; }
.sgw-product-details { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sgw-product-details h3 { margin: 0; font-size: 24px; font-weight: 400; white-space: nowrap; }
.sgw-product-details p { margin: 6px 0 0; color: var(--sgw-muted); font-size: 13px; white-space: nowrap; }

.sgw-custom { min-height: 560px; display: grid; grid-template-columns: 610px 1fr; background: var(--sgw-sage); }
.sgw-custom-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.sgw-custom-copy { padding: 72px 78px; display: flex; align-items: center; }
.sgw-custom-copy img { width: 42px; height: 42px; }
.sgw-custom-copy h2 { margin: 24px 0; max-width: 675px; font-size: 42px; line-height: 1.08; font-weight: 400; }
.sgw-custom-copy > div > p { margin: 0; max-width: 675px; font-size: 18px; line-height: 1.55; }
.sgw-benefits { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 24px 0; font-size: 13px; }
.sgw-benefits span { display: flex; align-items: center; gap: 8px; }
.sgw-benefits i { width: 8px; height: 8px; border-radius: 50%; background: var(--sgw-copy); }

.sgw-reasons { padding: 70px 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.sgw-reason img { width: 30px; height: 30px; }
.sgw-reason h3 { margin: 12px 0; font-size: 24px; font-weight: 700; }
.sgw-reason p { margin: 0; color: var(--sgw-muted); font-size: 14px; line-height: 1.5; }

.sgw-footer { padding: 68px 72px 28px; background: var(--sgw-forest); color: #bfc9c0; }
.sgw-footer-main { display: grid; grid-template-columns: 430px 1fr 1fr; gap: 80px; }
.sgw-footer-brand p { margin: 18px 0; font-size: 15px; line-height: 1.55; }
.sgw-domain { color: #c9d6a8; font-size: 13px; }
.sgw-footer-links { justify-self: end; min-width: 124px; }
.sgw-footer-links h3 { margin: 0 0 12px; color: var(--sgw-cream); font-size: 16px; font-weight: 400; }
.sgw-footer-links a { display: block; margin-top: 12px; font-size: 14px; }
.sgw-legal { margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; color: #8f9a8b; font-size: 12px; }

@media (max-width: 1100px) {
  .sgw-nav, .sgw-hero-content, .sgw-products-section, .sgw-reasons, .sgw-footer { padding-left: 36px; padding-right: 36px; }
  .sgw-hero-content { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sgw-custom { grid-template-columns: 44% 56%; }
  .sgw-custom-copy { padding: 52px 42px; }
  .sgw-product-details h3 { font-size: 20px; }
  .sgw-product-details p { white-space: normal; }
}

@media (max-width: 820px) {
  .sgw-nav { height: auto; min-height: 78px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
  .sgw-menu-toggle { display: block; }
  .sgw-nav-links { display: none; width: 100%; padding: 24px 0 8px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .sgw-nav-links.is-open { display: flex; }
  .sgw-hero-content { min-height: auto; grid-template-columns: 1fr; padding-top: 54px; }
  .sgw-hero-copy h1 { font-size: clamp(42px, 11vw, 64px); }
  .sgw-hero-image { height: 480px; }
  .sgw-section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .sgw-section-heading > p { width: min(100%, 520px); }
  .sgw-products { grid-template-columns: 1fr; }
  .sgw-product-card { height: auto; }
  .sgw-custom { grid-template-columns: 1fr; }
  .sgw-custom-image img { min-height: 440px; }
  .sgw-reasons { grid-template-columns: repeat(2, 1fr); }
  .sgw-footer-main { grid-template-columns: 1fr 1fr; }
  .sgw-footer-brand { grid-column: 1 / -1; }
  .sgw-footer-links { justify-self: start; }
}

@media (max-width: 560px) {
  .sgw-nav, .sgw-hero-content, .sgw-products-section, .sgw-reasons, .sgw-footer { padding-left: 22px; padding-right: 22px; }
  .sgw-wordmark strong { font-size: 14px; }
  .sgw-hero-content { padding-bottom: 40px; }
  .sgw-hero-copy > p { font-size: 17px; }
  .sgw-actions { flex-direction: column; width: 100%; }
  .sgw-actions .sgw-button { width: 100%; }
  .sgw-hero-image { height: 380px; }
  .sgw-products-section { padding-top: 58px; padding-bottom: 58px; }
  .sgw-section-heading h2, .sgw-custom-copy h2 { font-size: 34px; }
  .sgw-product-details { align-items: flex-start; }
  .sgw-product-details h3 { font-size: 19px; }
  .sgw-product-details .sgw-button { min-height: 46px; padding: 0 16px; }
  .sgw-custom-image img { min-height: 330px; }
  .sgw-custom-copy { padding: 52px 22px; }
  .sgw-reasons { grid-template-columns: 1fr; padding-top: 54px; padding-bottom: 54px; }
  .sgw-footer-main { grid-template-columns: 1fr; gap: 36px; }
  .sgw-footer-brand { grid-column: auto; }
  .sgw-legal { gap: 18px; flex-direction: column; }
}

/* WooCommerce and inner pages */
.sgw-inner-header { background: var(--sgw-forest); color: #fff; }
.sgw-page { min-height: 60vh; padding: 72px; }
.sgw-page-title { margin: 0 0 32px; font-size: 48px; font-weight: 400; letter-spacing: -.025em; }
.sgw-product-page { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr); gap: 72px; align-items: center; }
.sgw-product-art { min-height: 520px; display: flex; align-items: center; justify-content: center; background: var(--sgw-mint); border-radius: 24px; }
.sgw-product-art .sgw-pane { width: 62%; max-width: 390px; }
.sgw-product-summary .product_title { margin: 0 0 24px; font-size: 46px; line-height: 1.1; font-weight: 400; letter-spacing: -.025em; }
.sgw-product-summary .price { margin: 0 0 24px; color: var(--sgw-forest); font-size: 30px; font-weight: 700; }
.sgw-product-summary .woocommerce-product-details__short-description { font-size: 18px; line-height: 1.65; }
.sgw-product-summary .cart { display: flex; gap: 12px; margin-top: 30px; }
.sgw-product-summary .quantity .qty { width: 76px; height: 52px; padding: 0 12px; border: 1px solid #bdc8bc; border-radius: 2px; font: inherit; }
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce button.button, .woocommerce a.button, .wc-block-components-button {
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 2px; background: var(--sgw-forest); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700;
}
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--sgw-forest-deep); color: #fff; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--sgw-forest); background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--sgw-forest); }
.sgw-product-summary .sgw-dimensions { margin-top: 30px; padding: 24px; border-radius: 14px; background: var(--sgw-sage); }
.sgw-dimensions h2 { margin: 0 0 8px; font-size: 22px; }
.sgw-dimensions > p { margin: 0; color: var(--sgw-muted); font-size: 14px; }
.sgw-dimension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.sgw-dimension-grid label { font-size: 14px; font-weight: 700; }
.sgw-dimension-grid label span { color: var(--sgw-muted); font-weight: 400; }
.sgw-dimension-grid input { width: 100%; height: 50px; margin-top: 8px; padding: 0 14px; border: 1px solid #aab8a8; border-radius: 2px; background: #fff; color: var(--sgw-copy); font: inherit; }
.sgw-live-price { margin-top: 20px; font-size: 16px; }
.sgw-live-price strong { margin-left: 6px; color: var(--sgw-forest-deep); font-size: 24px; }
.sgw-page .woocommerce table.shop_table, .sgw-page .woocommerce form.checkout_coupon, .sgw-page .woocommerce form.login, .sgw-page .woocommerce form.register { background: #fff; }

@media (max-width: 820px) {
  .sgw-page { padding: 52px 36px; }
  .sgw-product-page { grid-template-columns: 1fr; gap: 42px; }
  .sgw-product-art { min-height: 420px; }
}
@media (max-width: 560px) {
  .sgw-page { padding: 42px 22px; }
  .sgw-product-summary .product_title { font-size: 36px; }
  .sgw-product-art { min-height: 340px; }
}
