/*
Theme Name: Lites by Design
Theme URI: https://www.lites-by-design.com/
Author: Lites by Design
Description: Tema corporativo para catalogo de iluminacion a medida, sin tienda online.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: lites-by-design
*/

:root {
  --ink: #20201d;
  --muted: #706b62;
  --line: #ded8cf;
  --paper: #f7f3ec;
  --panel: #fffaf2;
  --charcoal: #262722;
  --brass: #b58a4a;
  --copper: #9a5f45;
  --sage: #6f7c68;
  --shadow: 0 22px 60px rgba(37, 32, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.94);
  border-bottom: 1px solid rgba(222, 216, 207, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--panel);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #433f38;
  font-size: 14px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-links a:hover {
  background: #ece4d8;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(32, 32, 29, 0.84) 0%, rgba(32, 32, 29, 0.64) 46%, rgba(32, 32, 29, 0.18) 100%),
    var(--hero-image, radial-gradient(circle at 72% 40%, rgba(239, 210, 144, 0.32), transparent 34%)),
    #2c2b26;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 136px;
  color: white;
}

.hero-content h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.94;
}

.hero-content p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

.eyebrow {
  margin: 0;
  color: var(--brass);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c77d;
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  border: 0;
  background: #f2c571;
  color: #241f18;
  font-size: 14px;
  font-weight: 700;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: white;
}

.section,
.intro-band,
.feature-band,
.cta,
.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 42px;
  padding: 70px 0 52px;
  border-bottom: 1px solid var(--line);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 58px);
}

.intro-band > p {
  margin: 0;
  align-self: end;
  color: #4f4a42;
  font-size: 18px;
}

.section {
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.catalog-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card,
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(39, 34, 27, 0.06);
}

.catalog-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e9dfd1;
}

.card-body {
  padding: 22px;
}

.card-body span,
.product-meta-label,
.project-grid span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-body h3,
.product-card h3,
.project-grid h3 {
  margin: 8px 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.card-body p,
.product-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-bottom: 2px solid var(--brass);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 58px;
  background: var(--charcoal);
  color: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.finish-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.finish-list span {
  min-height: 84px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(180deg, rgba(30, 29, 25, 0.18), rgba(30, 29, 25, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #6f7c68, #2f2e29 54%, #9a5f45);
}

.project-grid span {
  color: #f0c477;
}

.cta {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px);
  gap: 44px;
  align-items: start;
  padding: 72px 0 86px;
  border-top: 1px solid var(--line);
}

.contact-panel {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(39, 34, 27, 0.08);
}

.contact-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.page-hero {
  padding: 74px 0 38px;
  background: #eee6db;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  width: min(1180px, calc(100% - 32px));
  margin: 8px auto 0;
  font-size: clamp(44px, 6vw, 84px);
}

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.archive-tools a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: #4a463f;
  font-size: 13px;
  font-weight: 700;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  padding: 64px 0 86px;
}

.product-main-image {
  overflow: hidden;
  border-radius: 8px;
  background: #e9dfd1;
}

.product-main-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.product-summary h1 {
  margin: 8px 0 16px;
  font-size: clamp(38px, 5vw, 68px);
}

.product-details {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.product-details li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(16px, calc((100vw - 1180px) / 2));
  background: #1f201d;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .catalog-grid,
  .products-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band,
  .feature-band,
  .cta,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .feature-band {
    padding: 36px;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-menu {
    display: contents;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 76px 0 128px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    display: block;
  }

  .catalog-grid,
  .products-grid,
  .project-grid,
  .finish-list,
  .product-gallery {
    grid-template-columns: 1fr;
  }
}
