/* YuSo Tex — shared styles (pure CSS, no frameworks)
   Mediterranean palette: terracotta/clay accent, sand, olive, warm off-white. */
:root {
  --bg: #faf6ee;
  --surface: #fffdf8;
  --ink: #38312a;
  --muted: #7d7264;
  --line: #eadfcd;
  --accent: #bc5837;
  --accent-dark: #96431f;
  --accent-soft: #f7e7d7;
  --olive: #6b7250;
  --sand: #e9dcc3;
  --dark: #2e2620;
  --gold: #d9905f;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(90, 62, 35, 0.09);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .section-title, .brand, .footer-brand, .modal-body h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.section-title { font-size: 1.9rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.2px; }
.section-sub { color: var(--muted); margin-bottom: 36px; max-width: 680px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--dark);
  color: #f5efe6;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: 1px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #1d1915; font-weight: 900; font-size: 1.1rem;
}
.brand small {
  display: block; font-size: 0.62rem; font-weight: 400; letter-spacing: 0.4px; color: #cbbfa9;
  font-family: "Inter", sans-serif; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lang-toggle { display: flex; align-items: center; gap: 6px; margin-left: 14px; flex: none; }
.lang-toggle button {
  background: none; border: none; cursor: pointer; color: #cbbfa9;
  font-family: "Inter", sans-serif; font-size: 0.85rem; font-weight: 600; padding: 6px 4px;
  letter-spacing: 0.5px;
}
.lang-toggle button.active { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.lang-toggle button:hover { color: #fff; }
.lang-sep { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  padding: 9px 16px; border-radius: 6px; font-size: 0.95rem; font-weight: 500;
  color: #e9e1d2; transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgba(255,255,255,0.08); }
.main-nav a.active { background: var(--gold); color: #1d1915; font-weight: 700; }
.nav-cta {
  background: #25d366; color: #0b3d1f !important; font-weight: 700 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: #1fb857 !important; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.hamburger span { width: 24px; height: 2.5px; background: #f5efe6; border-radius: 2px; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 8px;
  font-weight: 700; font-size: 0.98rem; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(188,88,55,0.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.22); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb857; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-mediterranean.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,14,8,0.78) 0%, rgba(20,14,8,0.45) 55%, rgba(20,14,8,0.15) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 90px 20px; width: 100%; }
.hero-kicker {
  display: inline-block; background: rgba(217,164,65,0.18); border: 1px solid rgba(217,164,65,0.6);
  color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 18px; text-transform: uppercase;
}
.hero h1 { font-size: 2.9rem; line-height: 1.2; font-weight: 800; max-width: 640px; margin-bottom: 16px; }
.hero p { font-size: 1.08rem; max-width: 560px; color: #efe7d8; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--dark); color: #f5efe6; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 34px 20px; gap: 20px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--gold); font-weight: 800; }
.stat span { font-size: 0.85rem; color: #cbbfa9; letter-spacing: 0.5px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.featured-grid { grid-template-columns: repeat(4, 1fr); }
.qc-list { list-style: none; margin-top: 18px; }
.qc-list li {
  padding: 9px 0 9px 30px; position: relative; font-weight: 600; font-size: 0.98rem;
  border-bottom: 1px dashed var(--line);
}
.qc-list li::before {
  content: "✓"; position: absolute; left: 2px; top: 9px;
  color: var(--olive); font-weight: 800;
}
.cat-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(60,45,25,0.14); }
.cat-card img { height: 220px; width: 100%; object-fit: cover; }
.cat-card-body { padding: 22px; }
.cat-card-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cat-card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.cat-card-body .link { color: var(--accent-dark); font-weight: 700; font-size: 0.92rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(60,45,25,0.13); }
.product-card img { height: 230px; width: 100%; object-fit: cover; }
.product-card-body { padding: 18px 20px 20px; }
.product-card-body .collection { font-size: 0.75rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; }
.product-card-body h3 { font-size: 1.15rem; margin: 4px 0 8px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 0.75rem; background: var(--accent-soft); color: var(--accent-dark);
  padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.product-spec { font-size: 0.85rem; color: var(--muted); }
.product-spec b { color: var(--ink); }
.product-ref {
  display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 20px; padding: 3px 10px; margin-bottom: 8px;
}

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--surface); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow); text-align: center;
}
.why-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Process steps ---------- */
.process { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 10px; }
.step { text-align: center; position: relative; padding: 0 8px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--dark); color: var(--gold); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.84rem; color: var(--muted); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--dark), #3a2c1c);
  color: #fff; border-radius: 16px; padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-strip h2 { font-size: 1.7rem; margin-bottom: 8px; }
.cta-strip p { color: #d8cdb8; max-width: 560px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #d8cdb8; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px; padding: 54px 20px 36px; max-width: var(--max); margin: 0 auto;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: 1px; margin-bottom: 10px; }
.footer-brand span { color: var(--gold); }
.footer-contact li { display: flex; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); text-align: center;
  padding: 18px 20px; font-size: 0.82rem; color: #9a8f7c;
  max-width: var(--max); margin: 0 auto;
}

/* ---------- Catalog page ---------- */
.catalog-layout { display: flex; gap: 28px; align-items: flex-start; }
.filters {
  width: 260px; flex: none; background: var(--surface); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); position: sticky; top: 90px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 {
  font-size: 0.95rem; margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.filter-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; cursor: pointer; }
.filter-option input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.filter-option .count { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.clear-filters {
  width: 100%; padding: 11px; border: none; border-radius: 8px; cursor: pointer;
  background: #e8907c; color: #fff; font-weight: 700; font-size: 0.92rem;
}
.clear-filters:hover { background: #d9745e; }
.catalog-main { flex: 1; min-width: 0; }
.catalog-toolbar { display: flex; gap: 12px; margin-bottom: 18px; align-items: center; }
.search-box { position: relative; flex: 1; }
.search-box input {
  width: 100%; padding: 13px 16px 13px 42px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 0.95rem; background: var(--surface); outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box::before {
  content: "⌕"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; color: var(--muted);
}
.result-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.filter-toggle {
  display: none; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); font-weight: 700; cursor: pointer; font-size: 0.92rem;
}
.no-results {
  text-align: center; padding: 70px 20px; color: var(--muted);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.no-results h3 { color: var(--ink); margin-bottom: 8px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,14,8,0.6); z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 14px; max-width: 880px; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-img { min-height: 320px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px 0 0 14px; }
.modal-body { padding: 34px 32px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 1.1rem; cursor: pointer; z-index: 2;
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-body .collection { font-size: 0.75rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; }
.modal-body h2 { font-size: 1.6rem; margin: 4px 0 12px; }
.modal-body .desc { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 600; width: 40%; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-hero img { border-radius: 14px; box-shadow: var(--shadow); }
.about-hero h2 { font-size: 1.9rem; margin-bottom: 14px; }
.about-hero p { color: var(--muted); margin-bottom: 12px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; }
.cap-card { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.cap-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--accent-dark); }
.cap-card ul { list-style: none; font-size: 0.92rem; color: var(--muted); }
.cap-card ul li { margin-bottom: 7px; padding-left: 18px; position: relative; }
.cap-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.qc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.markets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.market-pill {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 24px;
  padding: 8px 20px; font-size: 0.9rem; font-weight: 600;
}

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.form-card, .info-card {
  background: var(--surface); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow);
}
.form-card h2, .info-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 0.94rem; font-family: inherit; background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.send-options { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.info-card ul { list-style: none; margin-top: 14px; }
.info-card ul li { margin-bottom: 16px; font-size: 0.94rem; }
.info-card ul li b { display: block; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-card a { color: var(--accent-dark); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.featured-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .qc-steps { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-img img { border-radius: 14px 14px 0 0; max-height: 300px; }
  /* filters become drawer */
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 400;
    width: 300px; max-width: 85vw; border-radius: 0;
    transform: translateX(-105%); transition: transform 0.28s ease;
    max-height: none;
  }
  .filters.open { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,0.25); }
  .filter-toggle { display: inline-block; }
  .drawer-scrim {
    position: fixed; inset: 0; background: rgba(20,14,8,0.5); z-index: 350; display: none;
  }
  .drawer-scrim.open { display: block; }
  .drawer-close {
    display: block !important; margin-left: auto; margin-bottom: 12px;
    background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted);
  }
}
.drawer-close { display: none; }
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; align-items: stretch;
    padding: 10px 16px 18px; gap: 4px; box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero { min-height: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .cat-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .lang-toggle { margin-left: auto; margin-right: 6px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-grid.catalog-grid { grid-template-columns: 1fr 1fr; }
  .product-card img { height: 170px; }
  .product-card-body { padding: 12px 14px 14px; }
  .product-card-body h3 { font-size: 1rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-strip { padding: 36px 26px; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
