/* 2Smart House — site styles. Colors & typography mirror the live site
   at https://www.2smart.house/. Design tokens lifted from the original
   Elementor theme (header element 363a3be1, footer element 2e604a86). */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f7f9;
  --text:      #1a1d22;
  --muted:     #5b6573;
  --line:      #e3e6eb;

  /* Brand red used throughout the live site */
  --brand:     #D40634;
  --brand-hov: #F6104D;
  --brand-ink: #ffffff;
  --brand-soft:#fde8ec;

  /* Header (public — black bar) */
  --hdr-bg:    #000000;
  --hdr-text:  #FFFFFF;
  --hdr-text-active: #F6F0F1;
  --hdr-accent:#F8F5F5;

  /* Dropdown */
  --dd-bg:     #050505;
  --dd-text:   #FBF8F8;

  /* Footer */
  --ftr-bg:    #231F20;
  --ftr-strip: #000000;
  --ftr-heading:#FFFFFF;
  --ftr-text:  rgba(255,255,255,0.8);
  --ftr-muted: rgba(255,255,255,0.45);
  --ftr-faint: rgba(255,255,255,0.32);
  --ftr-icon:  #A70C14;

  --radius:    4px;
  --shadow:    0 1px 2px rgba(0,0,0,.08), 0 4px 18px rgba(0,0,0,.10);
  --maxw:      1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.7 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }
.empty { padding: 2rem; background: var(--bg-alt); border-radius: var(--radius); text-align: center; color: var(--muted); }

.container { width: min(var(--maxw), 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(2rem, 4vw, 4rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-cta { background: #1a1a1a; color: #fff; }
.section-cta h2 { color: #fff; }
.section-cta .muted { color: rgba(255,255,255,.7); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link { font-weight: 500; color: var(--brand); }

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: #000; color: #fff; padding: .5rem .75rem; border-radius: 6px; z-index: 1000;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Header (public) ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--hdr-bg);
  border-bottom: none;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--hdr-text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { height: 55px; width: auto; object-fit: contain; }
.brand-name { display: none; }  /* live site shows logo only */

.primary-nav { display: flex; align-items: center; }
.nav-list, .nav-sub { list-style: none; padding: 0; margin: 0; }
.nav-list { display: flex; gap: 1.4rem; align-items: center; }
.menu-item-top { position: relative; }
.menu-item > a {
  color: var(--hdr-text);
  font-size: 15px; font-weight: 200; font-style: italic;
  padding: 30px 3px;  /* live site uses 40px, we trim slightly for compactness */
  display: inline-flex; align-items: center; gap: .25rem;
  transition: color .15s ease;
  position: relative;
}
.menu-item > a:hover { color: var(--hdr-text-active); text-decoration: none; }
.menu-item > a::after {
  content: ''; position: absolute; left: 3px; right: 3px; bottom: 22px;
  height: 2px; background: var(--hdr-accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .2s ease;
}
.menu-item > a:hover::after,
.menu-item.active > a::after { transform: scaleX(1); }
.menu-item.active > a { color: var(--hdr-text-active); }
.menu-item > a.cta {
  background: var(--brand); color: var(--brand-ink);
  padding: .6rem 1rem; border-radius: 0;
  font-style: normal; font-weight: 500;
  text-transform: uppercase; letter-spacing: .03em; font-size: 13px;
}
.menu-item > a.cta:hover { background: var(--brand-hov); color: #fff; }
.menu-item > a.cta::after { display: none; }
.caret { font-size: .65em; opacity: .8; }

/* Dropdowns */
.menu-item .nav-sub {
  position: absolute; top: 100%; left: -.5rem;
  min-width: 240px;
  background: var(--dd-bg);
  border-radius: 3px;
  box-shadow: var(--shadow);
  padding: .25rem 0;
  display: none;
  flex-direction: column;
  z-index: 100;
}
.menu-item.has-children:hover > .nav-sub,
.menu-item.has-children:focus-within > .nav-sub,
.menu-item.has-children.open > .nav-sub { display: flex; }
.menu-item .nav-sub .menu-item { position: relative; }
.menu-item .nav-sub .menu-item > a {
  color: var(--dd-text);
  padding: .65rem 1.1rem;
  font-style: italic; font-weight: 200; font-size: 14px;
  white-space: nowrap;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
}
.menu-item .nav-sub .menu-item > a::after { display: none; }
.menu-item .nav-sub .menu-item > a:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item .nav-sub .nav-sub { top: -.25rem; left: 100%; }

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: var(--hdr-text); width: 40px; height: 40px;
  border-radius: 0; font-size: 1.2rem; cursor: pointer;
}

/* Solid Residence header variant — mirrors Elementor 2900 (white bg,
   #2a302f text, #D60534 active/underline). Applied to the 5 solid-menu
   paths so they match the static solid-residence-faleza-nord export. */
.site-header.solid-style { background: #ffffff; border-bottom: 1px solid var(--line); }
.site-header.solid-style .brand img { display: none; }
.site-header.solid-style .brand-name {
  display: inline; color: #2a302f; font-size: 24px; font-weight: 500; font-style: normal;
}
.site-header.solid-style .header-inner { min-height: 80px; }
.site-header.solid-style .primary-nav { flex: 1; padding-left: 4rem; }
.site-header.solid-style .nav-list { flex: 1; justify-content: space-between; gap: 0; }
.site-header.solid-style .menu-item > a {
  color: #2a302f; font-size: 15px; font-weight: 500; font-style: normal;
  padding: 40px 3px;
}
.site-header.solid-style .menu-item > a::after { bottom: 33px; background: #D60534; }
.site-header.solid-style .menu-item > a:hover,
.site-header.solid-style .menu-item.active > a { color: #D60534; }
.site-header.solid-style .nav-toggle { border-color: rgba(0,0,0,.2); color: #2a302f; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, #fafafa 0%, var(--bg-alt) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center;
}
.hero-copy h1 { letter-spacing: -.015em; }
.hero-copy .lede { font-size: 1.05rem; color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.hero-stats { margin-top: 1.5rem; font-size: .9rem; }
.hero-visual {
  display: grid; place-items: center;
  aspect-ratio: 1/1; max-width: 380px; justify-self: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}
.hero-visual img { width: 55%; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem; border-radius: 0;
  font-weight: 600; font-size: 13px; line-height: 1;
  text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-hov); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn.ghost:hover { background: var(--text); color: #fff; }
.section-cta .btn.ghost { color: #fff; border-color: #fff; }
.section-cta .btn.ghost:hover { background: #fff; color: #000; }

/* ── Cards ────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card {
  background: var(--bg); padding: 1.5rem; border-radius: 0;
  border: 1px solid var(--line); color: var(--text);
  transition: .15s;
}
.card:hover { border-color: var(--brand); text-decoration: none; }
.card h3 { color: var(--brand); }
.card p { margin: 0; color: var(--muted); }

/* ── Categories ───────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cat-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  overflow: hidden; color: var(--text); display: flex; flex-direction: column;
  transition: .15s;
}
.cat-card:hover { border-color: var(--brand); text-decoration: none; }
.cat-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-alt); }
.cat-card-body { padding: 1rem 1.1rem 1.2rem; }
.cat-card h3 { margin: 0 0 .2em; }

/* ── Product grid ─────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  overflow: hidden; color: var(--text); display: flex; flex-direction: column;
  transition: .15s;
}
.product-card:hover { border-color: var(--brand); text-decoration: none; }
.product-card-img { background: var(--bg-alt); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card-body h3 { font-size: 1rem; line-height: 1.35; font-weight: 600; }
.product-card-body p { font-size: .85rem; color: var(--muted); margin: 0; }
.price { font-weight: 700; color: var(--text); margin-top: auto; }
.price.big { font-size: 1.7rem; color: var(--brand); }

/* ── Page header / breadcrumbs ────────────────────── */
.page-header { padding: 2rem 0 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }

/* ── Product detail ───────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; }
.product-gallery { background: var(--bg-alt); display: grid; place-items: center; padding: 1.5rem; aspect-ratio: 4/3; }
.product-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-placeholder { width: 100%; aspect-ratio: 4/3; display: grid; place-items: center; background: var(--bg-alt); color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.product-summary .lede { color: var(--muted); }
.price-block { margin: 1.25rem 0 1.5rem; display: flex; flex-direction: column; gap: .25rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.product-meta { display: grid; grid-template-columns: max-content 1fr; column-gap: 1rem; row-gap: .35rem; font-size: .9rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-meta dt { color: var(--muted); font-weight: 500; }
.product-meta dd { margin: 0; }

/* ── Prose ────────────────────────────────────────── */
.prose { max-width: 70ch; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: .5em 0 1em; }
.prose li { margin: .3em 0; }
.prose img { margin: 1.25rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; color: var(--brand); }

/* ── CTA row ──────────────────────────────────────── */
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-row h2 { margin: 0; }

/* ── Contact form ─────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
.contact-form { display: flex; flex-direction: column; gap: .8rem; }
.contact-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7rem .9rem; border-radius: 0;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.contact-form button { align-self: flex-start; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { background: var(--ftr-bg); color: var(--ftr-text); padding: 60px 0 0; margin-top: 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-col .brand { color: #fff; }
.footer-col .brand img { height: 48px; }
.footer-col h3 {
  color: var(--ftr-heading);
  font-size: 15px; font-weight: 400; text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 1.2rem;
}
.footer-col p { color: var(--ftr-text); font-size: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-list a { color: var(--ftr-text); font-size: 14px; font-weight: 400; transition: color .15s; }
.footer-list a:hover { color: var(--brand); text-decoration: none; }
.footer-list.icon-list li { display: flex; align-items: flex-start; gap: .6rem; padding: .25rem 0; }
.footer-list.icon-list .ic { color: var(--ftr-icon); width: 18px; flex: none; padding-top: 2px; }
.footer-newsletter { display: flex; flex-direction: column; gap: .6rem; margin-top: .25rem; }
.footer-newsletter input {
  background: rgba(255,255,255,.09); border: 0; border-radius: 0;
  padding: .65rem .8rem; color: #fff; font-size: 14px; font-weight: 300;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-newsletter button {
  background: var(--brand); color: #fff; border: 0; padding: .7rem 1rem;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: background .15s;
}
.footer-newsletter button:hover { background: var(--brand-hov); }
.footer-social {
  display: flex; gap: 1rem; margin-top: 1rem;
}
.footer-social a {
  color: var(--ftr-muted); font-size: 22px; line-height: 1;
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  transition: color .15s;
}
.footer-social a:hover { color: #f49ac3; text-decoration: none; }

.footer-strip {
  background: var(--ftr-strip); margin-top: 3rem;
  padding: 1rem 0; min-height: 50px;
  display: flex; align-items: center;
}
.footer-strip-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-strip small { color: var(--ftr-faint); font-size: 13px; font-weight: 300; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-list {
    position: absolute; top: 80px; right: 1rem; left: 1rem;
    flex-direction: column; align-items: stretch; padding: .5rem;
    background: var(--hdr-bg); border: 1px solid rgba(255,255,255,.15);
    display: none; max-height: calc(100vh - 96px); overflow: auto;
  }
  .site-header.solid-style .nav-list { background: #ffffff; border-color: rgba(0,0,0,.1); }
  .site-header.solid-style .nav-list > .menu-item-top { border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-list.open { display: flex; }
  .nav-list > .menu-item-top { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-list > .menu-item-top:last-child { border-bottom: 0; }
  .menu-item > a { padding: .8rem .5rem; }
  .menu-item > a::after { display: none; }
  .menu-item .nav-sub {
    position: static; display: none; box-shadow: none;
    background: transparent; border: 0; padding: 0 0 .5rem .75rem; min-width: 0;
  }
  .menu-item.has-children.open > .nav-sub { display: flex; }
  .menu-item .nav-sub .nav-sub { padding-left: 1rem; left: 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-strip-inner { justify-content: center; text-align: center; }
}
