:root {
  --forest: #153c31;
  --forest-dark: #0d2a22;
  --green: #2c6b55;
  --mint: #bcd8c8;
  --cream: #f3f0e8;
  --paper: #fbfaf6;
  --orange: #d97831;
  --ink: #17201d;
  --muted: #65706b;
  --line: #dcd9d0;
  --shadow: 0 18px 50px rgba(17, 45, 36, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 100; background: white; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 12px clamp(20px, 5vw, 72px); color: white; background: rgba(13, 42, 34, 0.96); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1; }
.brand-logo { width: 58px; height: 58px; position: relative; display: block; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #090b0c; }
.brand-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .16em; font-size: 15px; }
.brand small { color: var(--mint); font-size: 11px; margin-top: 5px; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: 28px; }
.main-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; }
.main-nav a:hover, .main-nav a:focus-visible { color: white; }
.header-cta { text-decoration: none; padding: 10px 17px; border-radius: 999px; background: var(--orange); font-weight: 700; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switcher { direction: ltr; display: inline-flex; align-items: center; padding: 3px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.07); }
.language-option { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: rgba(255,255,255,.72); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.language-option:hover, .language-option:focus-visible { color: white; }
.language-option.active { color: var(--forest-dark); background: white; }
.menu-button { display: none; color: white; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 14px; }

.hero { min-height: 700px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); gap: clamp(35px, 6vw, 90px); align-items: center; padding: clamp(68px, 9vw, 120px) clamp(20px, 7vw, 110px); background: radial-gradient(circle at 82% 14%, #dbe8df 0, transparent 32%), var(--cream); overflow: hidden; }
.eyebrow { margin: 0 0 16px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 6vw, 82px); line-height: .99; letter-spacing: -.035em; font-weight: 500; }
h2 { margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 54px); line-height: 1.06; letter-spacing: -.025em; font-weight: 500; }
h3 { font-size: 19px; }
.hero-text { max-width: 670px; color: #53615b; font-size: clamp(17px, 2vw, 20px); }
.hero-actions, .about-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: white; }
.button-ghost { border-color: #a9afa9; }
.button-light { color: var(--forest-dark); background: white; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; padding: 0; margin: 35px 0 0; color: #52615b; list-style: none; font-size: 14px; }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 9px; border-radius: 50%; background: var(--orange); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; left: 18%; top: 8%; border-radius: 50%; background: #c9dfd1; }
.hero-visual img { position: relative; width: 100%; aspect-ratio: 1.17; object-fit: cover; border-radius: 46% 46% 22px 22px; box-shadow: var(--shadow); }
.hero-note { position: absolute; inset-inline-start: -25px; bottom: 24px; max-width: 250px; padding: 16px 20px; background: var(--forest-dark); color: white; border-radius: 16px; box-shadow: var(--shadow); }
.hero-note strong, .hero-note span { display: block; }
.hero-note span { margin-top: 4px; color: #c9ddd2; font-size: 12px; }

.catalogue { padding: clamp(75px, 9vw, 120px) clamp(20px, 7vw, 110px); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 40px; }
.section-heading > p { color: var(--muted); max-width: 520px; }
.section-heading.compact { grid-template-columns: 1fr; }
.catalogue-tools { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 16px 0 26px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: 13px; }
.filter.active { color: white; background: var(--forest); border-color: var(--forest); }
.search-box input { width: min(260px, 45vw); padding: 11px 15px; border: 1px solid var(--line); background: white; border-radius: 999px; outline: none; }
.search-box input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(44,107,85,.12); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; border: 0; padding: 0; text-align: start; background: white; border-radius: 18px; overflow: hidden; box-shadow: 0 9px 28px rgba(31, 51, 44, .07); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 1.2; object-fit: cover; background: #f2f2ef; }
.product-card-content { padding: 18px; }
.product-card small { display: block; margin-bottom: 6px; color: var(--orange); text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }
.product-link { display: inline-block; margin-top: 15px; color: var(--forest); font-weight: 750; font-size: 14px; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }

.ordering { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); background: var(--forest-dark); color: white; }
.ordering-image { min-height: 620px; overflow: hidden; }
.ordering-image img { width: 100%; height: 100%; object-fit: cover; }
.ordering-copy { align-self: center; padding: clamp(60px, 8vw, 110px); }
.ordering-copy h2 { max-width: 600px; }
.steps { list-style: none; padding: 0; margin: 35px 0; }
.steps li { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 19px 0; border-top: 1px solid rgba(255,255,255,.16); }
.steps li > span { color: var(--orange); font-weight: 800; }
.steps strong { display: block; font-size: 18px; }
.steps p { margin: 5px 0 0; color: #b9ccc3; }
.ordering .button-primary { color: var(--forest-dark); background: white; }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; padding: clamp(75px, 9vw, 120px) clamp(20px, 7vw, 110px); }
.about-copy > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 18px; }
.about-actions a { color: var(--forest); font-weight: 700; }
.about-logo-image { width: 100%; max-height: 430px; object-fit: contain; background: #090b0c; border-radius: var(--radius); box-shadow: var(--shadow); }

.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; padding: clamp(70px, 8vw, 110px) clamp(20px, 7vw, 110px); color: white; background: var(--green); }
.contact > div > p:not(.eyebrow) { color: #d7e3dd; }
.contact address { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-style: normal; }
.contact address div { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); }
.contact small, .contact address a, .contact address span { display: block; }
.contact small { margin-bottom: 8px; color: #bdd2c7; letter-spacing: .1em; }
.contact address a { text-decoration: none; font-weight: 700; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px clamp(20px, 7vw, 110px); color: #b9c9c2; background: var(--forest-dark); font-size: 13px; }
.footer-brand { color: white; }
footer p { margin: 0; }
.floating-whatsapp { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center; width: 58px; height: 58px; color: white; background: #1ea45b; border: 4px solid white; border-radius: 50%; box-shadow: 0 9px 30px rgba(0,0,0,.2); text-decoration: none; font-weight: 800; }

.product-dialog { width: min(1040px, calc(100% - 28px)); max-height: min(90dvh, 900px); padding: 0; border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.product-dialog::backdrop { background: rgba(11, 25, 21, .72); backdrop-filter: blur(5px); }
.product-dialog[open] { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); }
.product-dialog > img { width: 100%; height: 100%; min-height: 540px; object-fit: cover; background: #f1f1ed; }
.dialog-content { min-width: 0; max-height: min(90dvh, 900px); padding: 44px 38px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-close { position: absolute; inset-inline-end: 14px; top: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: white; cursor: pointer; font-size: 24px; }
.dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.dialog-actions .button { min-width: 0; padding-inline: 16px; text-align: center; cursor: pointer; }
.dialog-details-toggle { color: var(--forest); background: white; }
.dialog-details-toggle::after { content: "+"; margin-inline-start: 8px; font-size: 20px; line-height: 1; }
.dialog-details-toggle[aria-expanded="true"]::after { content: "−"; }
.dialog-details { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.dialog-details h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.1; }
.dialog-details-intro { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.dialog-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dialog-material-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.dialog-material-card[data-material-card="fabric"], .dialog-material-card[data-material-card="metal"] { grid-column: 1 / -1; }
.dialog-material-grid.garden-materials .dialog-material-card[data-material-card="metal"] { grid-column: auto; }
.dialog-material-card[hidden] { display: none; }
.dialog-material-card h4 { margin: 12px 0 4px; font-size: 15px; }
.dialog-material-card p { margin: 0; color: var(--muted); font-size: 12px; }
.detail-image-gallery { display: grid; grid-template-columns: 1fr; gap: 7px; }
.detail-image-gallery.multi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-image-gallery.metal-color-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.metal-color-chip { min-width: 0; padding: 5px; margin: 0; border: 1px solid var(--line); border-radius: 11px; background: white; }
.metal-color-sample { display: block; width: 100%; aspect-ratio: 1.45; border: 1px solid rgba(20,30,26,.14); border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.metal-color-chip figcaption { display: grid; min-height: 22px; place-items: center; margin-top: 5px; color: var(--ink); font-size: 10px; font-weight: 800; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.material-image-button { min-width: 0; padding: 0; border: 0; border-radius: 9px; background: white; cursor: zoom-in; overflow: hidden; }
.material-image-button img { width: 100%; height: 160px; object-fit: contain; border-radius: 9px; background: white; }
.detail-image-gallery.multi .material-image-button img { height: 240px; }
.detail-image-placeholder { display: grid; place-items: center; min-height: 68px; padding: 10px; border: 1px dashed #b9b5aa; border-radius: 10px; color: var(--muted); background: #f0ede5; font-size: 11px; font-weight: 750; text-align: center; }
.dialog-spec-section { margin-top: 22px; }
.dialog-spec-section h4 { margin: 0 0 10px; font-size: 16px; }
.dialog-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.dialog-spec-grid div { padding: 11px 12px; border-radius: 11px; background: #f2efe7; }
.dialog-spec-grid dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dialog-spec-grid dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.material-image-dialog { width: min(1100px, calc(100% - 28px)); height: min(860px, calc(100dvh - 28px)); max-height: calc(100dvh - 28px); padding: 14px; overflow: hidden; border: 0; border-radius: 20px; background: #111715; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.material-image-dialog::backdrop { background: rgba(5,13,10,.88); backdrop-filter: blur(6px); }
.material-image-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.material-image-toolbar { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 52px; }
.material-zoom-controls { display: flex; align-items: center; gap: 7px; padding: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.08); }
.material-zoom-button, .material-zoom-reset { min-width: 36px; height: 34px; border: 0; border-radius: 999px; color: white; background: rgba(255,255,255,.14); cursor: pointer; font: inherit; font-weight: 800; }
.material-zoom-button { font-size: 22px; line-height: 1; }
.material-zoom-reset { padding: 0 13px; font-size: 12px; }
.material-zoom-button:hover, .material-zoom-reset:hover { background: rgba(255,255,255,.23); }
.material-zoom-button:focus-visible, .material-zoom-reset:focus-visible, .material-image-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.material-zoom-button:disabled { cursor: default; opacity: .38; }
.material-zoom-level { min-width: 50px; color: white; text-align: center; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.material-image-stage { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: auto; border-radius: 14px; background: #0a0e0c; scrollbar-color: rgba(255,255,255,.35) transparent; }
.material-image-canvas { display: grid; flex: none; place-items: center; margin: auto; }
.material-image-dialog img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.material-image-close { position: absolute; inset-inline-end: 0; top: 2px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--ink); background: white; cursor: pointer; font-size: 25px; }

[dir="rtl"] body { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
[dir="rtl"] .dialog-content, [dir="rtl"] .product-card { text-align: right; }
[dir="rtl"] .contact a[href^="tel"], [dir="rtl"] .contact a[href^="mailto"] { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 16px; }
  .hero { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 12px; }
  .menu-button { display: block; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 18px 24px 24px; flex-direction: column; align-items: flex-start; background: var(--forest-dark); }
  .main-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-visual { max-width: 650px; }
  .section-heading, .ordering, .about, .contact { grid-template-columns: 1fr; }
  .ordering-image { min-height: 420px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact address { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .site-header { min-height: 70px; }
  .main-nav { top: 70px; }
  h1 { font-size: 43px; }
  h2 { font-size: 34px; }
  .hero { padding-top: 45px; }
  .hero-note { inset-inline: 10px; max-width: none; bottom: 10px; }
  .language-switcher { padding: 2px; }
  .language-option { width: 27px; height: 27px; font-size: 10px; }
  .hero-points { gap: 10px 18px; }
  .section-heading { gap: 10px; }
  .catalogue-tools { align-items: stretch; flex-direction: column; }
  .search-box input { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card img { aspect-ratio: 1.45; }
  .ordering-copy { padding: 55px 22px; }
  .ordering-image { min-height: 300px; }
  .contact address { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .product-dialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
  .product-dialog[open] { grid-template-columns: 1fr; }
  .product-dialog > img { height: 280px; min-height: 250px; max-height: 330px; }
  .dialog-content { max-height: none; padding: 30px 24px; overflow: visible; }
  .dialog-material-grid, .dialog-spec-grid { grid-template-columns: 1fr; }
  .dialog-material-card[data-material-card="fabric"], .dialog-material-card[data-material-card="metal"] { grid-column: auto; }
  .detail-image-gallery.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Piece-specific measurement groups */
.dialog-piece { margin: 0 0 16px; }
.dialog-piece h5 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
.dialog-spec-pending { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.dialog-thickness { margin-top: 12px; }
.dialog-thickness > div { background: #e8efe9; }


/* Information request form */
.inquiry { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(42px, 7vw, 96px); align-items: start; padding: clamp(78px, 9vw, 125px) clamp(20px, 7vw, 110px); background: var(--cream); }
.inquiry-copy { max-width: 520px; }
.inquiry-intro { max-width: 500px; color: var(--muted); font-size: 18px; }
.inquiry-contact-summary { display: grid; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.inquiry-contact-summary a { width: fit-content; color: var(--forest); font-weight: 800; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.inquiry-contact-summary span { max-width: 420px; color: var(--muted); }
.inquiry-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inquiry-field { display: grid; gap: 7px; min-width: 0; }
.field-label { color: var(--ink); font-size: 14px; font-weight: 750; }
.inquiry-field input, .inquiry-field textarea { width: 100%; min-height: 50px; padding: 13px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--paper); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.inquiry-field textarea { min-height: 145px; resize: vertical; }
.inquiry-field input::placeholder, .inquiry-field textarea::placeholder { color: #8a9491; }
.inquiry-field input:focus, .inquiry-field textarea:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(44, 107, 85, .12); }
.form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inquiry-submit { width: 100%; cursor: pointer; }
.inquiry-submit-whatsapp { color: white; border: 1px solid var(--forest); background: var(--forest); }
.inquiry-submit-whatsapp:hover { border-color: var(--forest-dark); background: var(--forest-dark); }
.inquiry-submit-email { color: var(--forest); border: 1px solid var(--forest); background: transparent; }
.inquiry-submit-email:hover { color: white; background: var(--forest); }
.form-note { margin: -4px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.form-status { min-height: 1.2em; color: var(--green); font-size: 14px; font-weight: 750; text-align: center; }
.form-status.is-success { color: #167443; }
.form-status.is-error { color: #a83232; }
.inquiry-submit:disabled { cursor: wait; opacity: .65; }
[dir="rtl"] .inquiry-form, [dir="rtl"] .inquiry-copy { text-align: right; }

@media (max-width: 820px) {
  .inquiry { grid-template-columns: 1fr; }
  .inquiry-copy { max-width: 680px; }
}

@media (max-width: 560px) {
  .inquiry { padding-inline: 20px; }
  .inquiry-form { padding: 22px 18px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
}
