/*
Theme Name: Slate Public
Author: Slate Valet Trash
Description: Editable public marketing theme for Slate Valet Trash. Designed for native WordPress pages and Elementor Free; the operational portal remains a separate application.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slate-public
Tags: custom-menu, editor-style, featured-images, full-width-template
*/

/* Shared brand defaults. Page layout, copy, and cards remain native editable widgets. */
:root {
  --slate-ink: #0E1F1F;
  --slate-green: #2E7D32;
  --slate-lime: #86C741;
  --slate-off-white: #F5F7F5;
  --slate-white: #FFFFFF;
  --slate-muted: #53665F;
  --slate-border: #DCE4D9;
  --slate-content-width: 1240px;
  --slate-font: Inter, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--slate-off-white); color: var(--slate-ink); font-family: var(--slate-font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button, input[type="submit"] { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
iframe, video { max-width: 100%; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.16; letter-spacing: -.035em; color: var(--slate-ink); }
h1 { font-size: clamp(2.375rem, 4.5vw, 4.375rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 650; }
h3 { font-size: 1.35rem; font-weight: 650; }
p { margin: 0 0 1.25em; }
a { color: var(--slate-green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--slate-green); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.skip-link { position: absolute; z-index: 99999; top: 10px; left: 16px; transform: translateY(-160%); padding: 12px 18px; border-radius: 6px; background: var(--slate-ink); color: #fff; font-weight: 650; text-decoration: none; }
.skip-link:focus { transform: none; outline: 3px solid var(--slate-lime); outline-offset: 3px; }

.slate-draft-strip { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 7px 20px; background: #E6ECE3; color: #3F5448; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .025em; text-align: center; }
.slate-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #547744; }
.slate-site-header { position: relative; z-index: 20; background: var(--slate-off-white); }
.slate-header-shell { max-width: 1320px; min-height: 108px; margin: 0 auto; padding: 23px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.slate-brand { display: inline-flex; align-items: center; flex: 0 0 auto; max-width: 244px; text-decoration: none; }
.slate-brand img { display: block; width: 244px; height: auto; }
.slate-primary-navigation { display: flex; align-items: center; gap: 24px; min-width: 0; }
.slate-primary-menu, .slate-footer-menu { list-style: none; margin: 0; padding: 0; }
.slate-primary-menu { display: flex; align-items: center; gap: 23px; }
.slate-primary-menu li { position: relative; margin: 0; }
.slate-primary-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--slate-ink); text-decoration: none; white-space: nowrap; }
.slate-primary-menu a:hover, .slate-primary-menu .current-menu-item > a, .slate-primary-menu .current-page-ancestor > a { color: var(--slate-green); text-decoration: underline; text-underline-offset: 6px; }
.slate-primary-menu .sub-menu { display: none; list-style: none; position: absolute; left: -16px; top: 100%; z-index: 30; min-width: 210px; margin: 0; padding: 10px 16px; background: #fff; border: 1px solid var(--slate-border); border-radius: 8px; box-shadow: 0 14px 25px rgba(14,31,31,.08); }
.slate-primary-menu li:hover > .sub-menu, .slate-primary-menu li:focus-within > .sub-menu { display: block; }
.slate-primary-menu .sub-menu a { white-space: normal; }
.slate-header-actions { display: flex; align-items: center; gap: 12px; }
.slate-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 13px 19px; background: var(--slate-ink); border: 1px solid var(--slate-ink); border-radius: 8px; color: #fff; font-size: 14px; line-height: 1.4; font-weight: 650; text-align: center; text-decoration: none; transition: background-color .15s ease; }
a.slate-button { color: #fff; text-decoration: none; }
.slate-button:hover { background: #233F35; color: #fff; text-decoration: none; }
.slate-button-outline, a.slate-button-outline { background: transparent; color: var(--slate-ink); border-color: #CBD6CE; }
.slate-button-outline:hover { background: #E8EEE7; color: var(--slate-ink); }
.slate-header-actions .slate-button { padding: 11px 14px; min-height: 46px; font-size: 13px; white-space: nowrap; }
.slate-menu-toggle { display: none; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; padding: 8px; border: 1px solid #CAD6CC; border-radius: 7px; background: transparent; color: var(--slate-ink); }
.slate-close-icon { display: none; }
.slate-menu-toggle[aria-expanded="true"] .slate-menu-icon { display: none; }
.slate-menu-toggle[aria-expanded="true"] .slate-close-icon { display: block; }
.slate-mobile-walkthrough { display: none; }

.slate-main { min-height: 30vh; }
.slate-main:focus { outline: none; }
.slate-builder-content { margin: 0; }
.slate-native-content { width: min(100% - 80px, 760px); margin: 0 auto; padding: 64px 0 80px; }
.slate-native-content article + article { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--slate-border); }
.slate-native-content .alignwide { width: min(1160px, calc(100vw - 80px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.slate-native-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.slate-native-content figure { max-width: 100%; }
.slate-native-content blockquote { border-left: 3px solid var(--slate-green); padding-left: 24px; margin-left: 0; }
.slate-native-content li + li { margin-top: .5em; }
.slate-native-content input, .slate-native-content textarea, .slate-native-content select { max-width: 100%; }
.slate-page, .slate-page .elementor-widget { font-family: inherit; }
.slate-page .e-con, .slate-page .elementor-widget, .slate-page .elementor-widget-container { min-width: 0; }
.slate-page :where(p, h1, h2, h3, h4, li, a) { overflow-wrap: break-word; }
.slate-accent { color: var(--slate-green); }
.slate-accent-light { color: #B9DC98; }
.slate-copy .elementor-widget-container > p:last-child, .slate-copy p:last-child { margin-bottom: 0; }
.slate-text-link .elementor-button { min-height: 44px; background: transparent; text-align: left; }
.slate-service-card { height: 100%; }
.slate-service-card .slate-card-link { margin-top: auto; }
.slate-content-list ul { padding-left: 1.2em; }
.slate-content-list li + li { margin-top: .55em; }
.slate-area-list { margin: 0; padding-left: 1.25em; }
.slate-area-list li + li { margin-top: .35em; }
.slate-dark, .slate-hero-panel { color: #C0CDC1; }
.slate-portal-status-compact { margin: 0; color: inherit; font-size: 14px; line-height: 1.6; }
.slate-hero-panel .slate-portal-status-compact { border-top: 1px solid #30433A; padding-top: 16px; }
.slate-dark .slate-portal-status, .slate-hero-panel .slate-portal-status { color: inherit; }
.slate-eyebrow { color: #52705E; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.slate-page .elementor-button:focus-visible, .slate-page .elementor-icon:focus-visible { outline: 3px solid var(--slate-green); outline-offset: 4px; }
.slate-page .slate-dark :where(a, button):focus-visible, .slate-site-footer :where(a, button):focus-visible { outline-color: #B9DC98; }

.slate-site-footer { background: var(--slate-ink); color: #C0CEC4; padding: 52px 0 24px; }
.slate-footer-shell { max-width: 1240px; padding: 0 40px; margin: 0 auto; }
.slate-footer-main { display: grid; grid-template-columns: 1fr 1.15fr .85fr; align-items: start; gap: 52px; padding-bottom: 36px; }
.slate-footer-brand .slate-brand { margin-bottom: 24px; }
.slate-footer-brand p, .slate-footer-description p { font-size: 14px; line-height: 1.7; color: #BDCBBF; }
.slate-footer-brand p:last-child, .slate-footer-description p:last-child { margin-bottom: 0; }
.slate-footer-menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 2px; }
.slate-footer-menu li { margin: 0; }
.slate-footer-menu a, .slate-footer-description a { color: #D4E0D5; font-size: 14px; text-decoration: none; }
.slate-footer-menu a { display: inline-flex; align-items: center; min-height: 38px; line-height: 1.4; padding: 7px 0; }
.slate-footer-menu a:hover, .slate-footer-description a:hover { color: #fff; text-decoration: underline; }
.slate-footer-description :where(ul, address) { margin: 16px 0 0; padding: 0; font-style: normal; }
.slate-footer-description ul { list-style: none; }
.slate-footer-description li { margin-top: 8px; }
.slate-footer-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; border-top: 1px solid #304439; padding-top: 20px; color: #B5C5BA; font-size: 12px; line-height: 1.6; }
.slate-footer-bottom p { margin: 0; }

@media (max-width: 1250px) {
  .slate-header-shell { gap: 24px; padding-right: 32px; padding-left: 32px; }
  .slate-brand, .slate-brand img { width: 215px; }
  .slate-primary-navigation { gap: 20px; }
  .slate-primary-menu { gap: 18px; }
  .slate-primary-menu a { font-size: 13px; }
  .slate-header-actions { gap: 8px; }
  .slate-header-actions .slate-button { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 1100px) {
  .slate-header-shell { min-height: 96px; flex-wrap: wrap; gap: 20px; }
  .slate-brand { margin-right: auto; }
  .slate-primary-navigation { flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 12px 0 8px; order: 4; }
  .slate-primary-menu { align-items: stretch; flex-wrap: wrap; }
  .slate-primary-menu a { font-size: 15px; }
  .slate-primary-menu .sub-menu { position: static; display: block; box-shadow: none; border: none; padding-top: 0; padding-bottom: 0; background: transparent; }
  .slate-primary-menu li { min-width: 0; }
  .slate-header-walkthrough { display: none; }
  .slate-mobile-walkthrough { display: inline-flex; order: 2; min-height: 44px; padding: 11px 15px; }
  .slate-menu-toggle { order: 3; }
  .slate-js .slate-menu-toggle:not([hidden]) { display: inline-flex; }
  .slate-js .slate-primary-navigation { display: none; position: absolute; top: 100%; left: 32px; right: 32px; z-index: 50; margin: 0; padding: 18px; border: 1px solid #D3DFC9; border-radius: 8px; background: #fff; box-shadow: 0 16px 35px rgba(26,51,34,.12); }
  .slate-js .slate-menu-open .slate-primary-navigation { display: flex; }
  .slate-js .slate-primary-menu { flex-direction: column; gap: 0; }
  .slate-js .slate-primary-menu a { display: flex; padding: 12px; min-height: 46px; }
  .slate-js .slate-primary-menu .sub-menu { padding-left: 18px; }
  .slate-js .slate-header-actions { padding: 10px 12px 0; }
  .slate-footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .slate-footer-navigation { grid-column: 1 / -1; }
  .slate-footer-menu { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .slate-draft-strip { padding: 8px 20px; font-size: 11px; line-height: 1.45; }
  .slate-header-shell { min-height: 0; gap: 16px; padding: 20px; }
  .slate-brand, .slate-brand img { width: 220px; max-width: 100%; }
  .slate-menu-toggle { order: 2; }
  .slate-mobile-walkthrough { flex-basis: 100%; order: 3; font-size: 14px; }
  .slate-js .slate-primary-navigation { left: 20px; right: 20px; }
  .slate-native-content { width: calc(100% - 40px); padding: 40px 0 52px; }
  .slate-native-content .alignwide { width: calc(100vw - 40px); }
  .slate-site-footer { padding-top: 38px; }
  .slate-footer-shell { padding: 0 20px; }
  .slate-footer-main { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .slate-footer-brand .slate-brand { margin-bottom: 20px; }
  .slate-footer-navigation { grid-column: auto; }
  .slate-footer-menu { grid-template-columns: 1fr 1fr; gap: 4px 24px; }
  .slate-footer-menu a { min-height: 44px; }
  .slate-footer-bottom { flex-direction: column; gap: 16px; font-size: 12px; }
  .slate-page :where(p, h1, h2, h3, li, a) { overflow-wrap: break-word; }
}

@media (max-width: 360px) {
  .slate-header-shell { gap: 12px; }
  .slate-brand, .slate-brand img { width: 190px; }
  .slate-draft-strip { font-size: 11px; }
  .slate-footer-menu { column-gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .slate-draft-strip, .slate-site-header, .slate-site-footer, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .slate-main, .slate-native-content { width: 100%; margin: 0; padding: 0; }
  .slate-service-card { break-inside: avoid; }
}
