/* Dream Home — site chrome: header, navigation, mobile menu, page hero, breadcrumbs, footer, action bar.
   Laravel: partials/header.blade.php, partials/footer.blade.php, partials/page-hero.blade.php … */

/* ================= Header ================= */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h); color: var(--on-deep); transition: background-color .2s ease, box-shadow .2s ease, transform .3s ease; }
.site-header.is-solid { background: var(--brand-deep); box-shadow: 0 6px 20px -8px #0000004d; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; flex: none; padding-block: var(--space-2); }
.brand-mark { width: auto; height: 44px; }
.brand-word { width: auto; height: 30px; }
@media (max-width: 767px) { .brand-mark { height: 38px; } .brand-word { height: 24px; } }
@media (max-width: 380px) { .brand-word { display: none; } }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: var(--space-1); }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: var(--control-md); padding: 0 var(--space-3); border: 0; background: none; border-radius: var(--radius-sm); color: var(--on-deep-muted); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.nav-link:hover, .nav-item:focus-within > .nav-link { color: var(--on-deep); background: color-mix(in srgb, var(--on-deep) 8%, transparent); }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-link { color: var(--on-deep); box-shadow: inset 0 -2px 0 var(--sand); border-radius: 0; }
.nav-link .dh-icon { transition: transform .2s ease; }
.nav-item.is-open > .nav-link .dh-icon { transform: rotate(180deg); }

.nav-drop { position: absolute; top: calc(100% + 6px); inset-inline-start: 50%; translate: 50% 0; width: 340px; padding: var(--space-3); background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md); border-start-start-radius: var(--radius-roof); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
[dir="ltr"] .nav-drop { translate: -50% 0; }
.nav-item.is-open > .nav-drop, .nav-item:hover > .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.nav-drop ul { list-style: none; display: grid; gap: 2px; }
.nav-drop a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.nav-drop a:hover { background: var(--brand-soft); color: var(--ink); }
.nav-drop .drop-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); }
.nav-drop .drop-title { display: block; font-weight: 600; font-size: 15px; line-height: 22px; }
.nav-drop .drop-sub { display: block; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.header-actions .icon-btn { color: var(--on-deep); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: var(--control-md); padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--on-deep); font-size: 14px; font-weight: 600; text-decoration: none; }
.lang-switch:hover { color: var(--on-deep); background: color-mix(in srgb, var(--on-deep) 10%, transparent); }
.menu-toggle { display: none; }
@media (max-width: 1140px) {
  .main-nav, .header-actions .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 480px) { .header-actions .lang-switch span { display: none; } }

/* ================= Mobile menu ================= */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--brand-deep); color: var(--on-deep); padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-6); overflow-y: auto; display: none; }
.mobile-menu.is-open { display: block; }
body.menu-open { overflow: hidden; }
.mobile-menu nav ul { list-style: none; }
.mobile-menu .m-link { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); color: var(--on-deep); font-family: var(--font-display); font-size: 22px; line-height: 34px; font-weight: 600; text-decoration: none; }
.mobile-menu .m-link .dh-icon { color: var(--sand); }
.mobile-menu .m-sub { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3) 0 var(--space-4); }
.mobile-menu .m-sub a { display: inline-flex; align-items: center; height: var(--control-sm); padding: 0 var(--space-4); border: 1px solid color-mix(in srgb, var(--on-deep) 30%, transparent); border-radius: var(--radius-full); color: var(--on-deep); font-size: 14px; font-weight: 600; text-decoration: none; }
.mobile-menu .m-foot { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.mobile-menu .m-phones { display: grid; gap: var(--space-2); margin-top: var(--space-5); color: var(--on-deep-muted); font-size: 14px; }
.mobile-menu .m-phones a { color: var(--on-deep); text-decoration: none; font-weight: 600; }

/* ================= Page hero (inner pages) ================= */
.page-hero { position: relative; background: var(--brand-deep); color: var(--on-deep); padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: calc(var(--space-8) + 8px); overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px; background: conic-gradient(from 135deg at 50% 0, var(--surface) 90deg, transparent 0) 0 0 / 16px 8px repeat-x; z-index: 2; }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-7); align-items: end; }
.page-hero h1 { color: var(--on-deep); margin-top: var(--space-3); }
.page-hero .page-lead { margin-top: var(--space-3); color: var(--on-deep-muted); font-size: 18px; line-height: 32px; max-width: 60ch; }
.page-hero .eyebrow-on-deep { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 20px; font-weight: 600; color: var(--sand); }
.page-hero .eyebrow-on-deep::before { content: ""; width: 16px; height: 8px; background: var(--sand); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.page-hero-art { justify-self: end; width: 100%; max-width: 420px; }
.page-hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.page-hero-meta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.page-hero--image .page-hero-art { display: none; }
.page-hero--image { padding-bottom: calc(var(--space-9) + 8px); }
.page-hero--image .page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero--image .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .page-hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
@media (max-width: 899px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero-art { display: none; }
  .page-hero { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-7); }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 14px; line-height: 22px; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--on-deep-muted); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
[dir="ltr"] .crumbs li + li::before { transform: rotate(-135deg); }
.crumbs a { color: var(--on-deep-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-deep); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--on-deep); font-weight: 600; }

/* ================= Footer ================= */
.site-footer { position: relative; margin-top: 8px; background: var(--brand-deep); color: var(--on-deep-muted); }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: -8px; height: 8px; background: conic-gradient(from 135deg at 50% 0, var(--brand-deep) 90deg, transparent 0) 0 0 / 16px 8px repeat-x; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-7); padding-block: var(--space-8) var(--space-7); }
.footer-brand img { width: 160px; height: auto; }
.footer-brand p { margin-top: var(--space-4); font-size: 15px; line-height: 26px; max-width: 34ch; }
.footer-col h2 { font-family: var(--font-text); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--on-deep); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--on-deep-muted); text-decoration: none; font-size: 15px; line-height: 26px; }
.footer-col a:hover { color: var(--on-deep); text-decoration: underline; }
.footer-phones a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--on-deep); font-weight: 600; }
.footer-phones .dh-icon { color: var(--sand); }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--on-deep) 25%, transparent); color: var(--on-deep); }
.footer-social a:hover { background: var(--on-deep); color: var(--brand-deep); }
.footer-licenses { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); padding-block: var(--space-5); border-top: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); font-size: 14px; line-height: 22px; }
.footer-licenses div { display: flex; gap: var(--space-2); align-items: baseline; }
.footer-licenses dt { color: var(--on-deep-muted); }
.footer-licenses dd { color: var(--on-deep); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-5); border-top: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); font-size: 14px; line-height: 22px; }
.footer-bottom ul { list-style: none; display: flex; gap: var(--space-5); }
.footer-bottom a { color: var(--on-deep-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--on-deep); }
@media (max-width: 1023px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-main { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ================= Contact action bar (mobile) + floating WhatsApp (desktop) ================= */
.action-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; display: none; gap: var(--space-2); padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom)); background: var(--surface-raised); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.action-bar .dh-btn { flex: 1; }
.wa-float { position: fixed; z-index: 90; inset-inline-end: var(--space-5); bottom: var(--space-5); display: inline-flex; align-items: center; gap: var(--space-2); height: 56px; padding-inline: var(--space-4) var(--space-5); border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); pointer-events: none; transition: background-color .15s ease, transform .25s ease, opacity .25s ease; }
body.is-scrolled .wa-float { opacity: 1; transform: none; pointer-events: auto; }
body.is-scrolled .wa-float:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-2px); }
.wa-float .wa-label { font-size: 15px; }
@media (max-width: 767px) {
  .action-bar { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 68px; }
}
