/*
Theme Name: S.O.T. Sleek
Theme URI: https://streets.oftimor.com/
Author: S.O.T. Streets of Timor
Author URI: https://streets.oftimor.com/
Description: Sleek, simple, black & orange corporate theme for S.O.T. Streets of Timor. Includes sticky header + dock-on-scroll vehicle search bar.
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sot-sleek
Tags: custom-logo, custom-menu, one-column, two-columns, blog, sticky-post, translation-ready
*/

/* =========================
   S.O.T. THEME BASE
========================= */
:root{
  --sot-black:#0B0B0E;
  --sot-orange:#FF6A00;
  --sot-bg:#F6F6F7;
  --sot-text:#141414;
  --sot-muted:#6B6B6B;
  --sot-border:rgba(0,0,0,.08);
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --shadow-soft:0 6px 18px rgba(0,0,0,.06);
  --header-h:110px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:#fff;
  color:var(--sot-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
}

a{ color: inherit; }
a:hover{ color: var(--sot-orange); }

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

/* WordPress alignment helpers */
.alignwide{ margin-left:auto; margin-right:auto; max-width:1180px; }
.alignfull{ width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }

/* =========================
   LAYOUT WRAPPERS
========================= */
.sot-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px;
}

.site-main{ min-height: 60vh; }

/* =========================
   HEADER (sticky)
========================= */
.sot-header{
  position: sticky;

  top: 0;
  z-index: 9999;
  position: sticky;
  position: relative;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  color: var(--sot-text);
  border-bottom: 1px solid var(--sot-border);
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.sot-header .sot-header-inner{
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}

.sot-logo{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--sot-text);
  font-weight:800;
  letter-spacing:.2px;
}
.sot-logo img{
  height: 32px;
  width: auto;
  display:block;
}
.sot-logo .sot-logo-text{
  font-size: 14px;
  line-height: 1.1;
}
.sot-logo .sot-logo-text small{
  display:block;
  font-weight:700;
  opacity:.78;
  font-size: 11px;
}

.sot-nav{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Menu items: sleek pill with subtle outline */
.sot-nav a{
  color: rgba(20,20,20,.86);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.sot-nav a:hover{
  color: var(--sot-text);
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
}

/* Current menu item */
.sot-nav .current-menu-item > a,
.sot-nav .current_page_item > a,
.sot-nav a[aria-current="page"]{
  color: var(--sot-text);
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.12);
}

/* CTA menu item (orange button) */
.sot-nav a.is-cta{
  background: var(--sot-orange);
  color: var(--sot-black);
  padding: 10px 14px;
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 22px rgba(255,106,0,.22);
}
.sot-nav a.is-cta:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.sot-nav-toggle{
  display:none;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
  color: var(--sot-text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight:800;
}

/* =========================
   SEARCH BAR (sticky + docks on scroll)
========================= */
#sot-searchbar{
  position: sticky;
  top: var(--header-h);
  z-index: 9998;
  background: rgba(246,246,247,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sot-border);
}

#sot-searchbar .sot-search-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  transition: all .25s ease;
}

/* Docking state */
body.sot-docked #sot-searchbar{
  top: 0;
  background: transparent;
  border-bottom: none;
}
body.sot-docked #sot-searchbar .sot-search-inner{
  padding: 8px 18px;
}

#sot-searchbar select,
#sot-searchbar input[type="text"],
#sot-searchbar input[type="datetime-local"],
#sot-searchbar input[type="date"],
#sot-searchbar input[type="time"]{
  border: 1px solid var(--sot-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: var(--sot-text);
  outline: none;
}

#sot-searchbar button,
#sot-searchbar input[type="submit"]{
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--sot-orange);
  color: var(--sot-black);
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
#sot-searchbar button:hover,
#sot-searchbar input[type="submit"]:hover{
  filter: brightness(1.05);
}

/* A nice default layout for unknown filter markup */
.sot-search-inner form{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:end;
}
.sot-search-inner label{
  font-size: 12px;
  color: var(--sot-muted);
  font-weight: 700;
}
.sot-search-inner .field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 160px;
}

/* =========================
   CARDS + CONTENT
========================= */
.sot-card{
  background: #fff;
  border: 1px solid var(--sot-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}
.sot-card .sot-card-body{ padding: 16px; }

.entry-title{
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
.entry-content > *:first-child{ margin-top:0; }
.entry-content > *:last-child{ margin-bottom:0; }

/* Buttons */
.wp-block-button__link, .button, .btn{
  background: var(--sot-orange);
  color: var(--sot-black);
  border-radius: 14px;
  padding: 12px 16px;
  text-decoration:none;
  font-weight: 900;
  border:0;
}
.wp-block-button__link:hover, .button:hover, .btn:hover{
  filter: brightness(1.05);
}

/* =========================
   FOOTER (simple)
========================= */
.sot-footer{
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(11,11,14,1) 0%, rgba(11,11,14,.96) 100%);
  color: rgba(255,255,255,.78);
  border-top: 1px solid rgba(255,255,255,.08);
}
.sot-footer .sot-footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap: 10px;
}
.sot-footer a{ color: rgba(255,255,255,.78); text-decoration:none; }
.sot-footer a:hover{ color: #fff; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  :root{ --header-h:66px; }
  .sot-nav{ display:none; }
  .sot-nav-toggle{ display:inline-flex; align-items:center; gap:8px; }
  body.sot-menu-open .sot-nav{
    display:flex;
    position:absolute;
    top: var(--header-h);
    right: 14px;
    left: 14px;
    flex-direction:column;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .sot-nav a{ width:100%; }
  .sot-search-inner .field{ min-width: calc(50% - 5px); }
}
@media (max-width: 520px){
  .sot-search-inner .field{ min-width: 100%; }
}


/* Footer menu inline */
.sot-footer ul{ list-style:none; margin:0; padding:0; display:flex; gap:12px; flex-wrap:wrap; }
.sot-footer li{ margin:0; padding:0; }

/* Reduce visual noise of default WP search/inputs outside our bar */
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea{
  border: 1px solid var(--sot-border);
  border-radius: 14px;
  padding: 10px 12px;
}

.sot-header:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background: linear-gradient(90deg, transparent 0%, var(--sot-orange) 20%, var(--sot-orange) 80%, transparent 100%);
  opacity:.9;
  pointer-events:none;
}

.custom-logo-link img,
.sot-logo img,
.custom-logo{
  max-height: 96px !important;
  height: 96px !important;
  width: auto !important;
}

/* =========================
   SRS (Streets Rental Suite) – make colors + fonts uniform
========================= */
.srs-public,
.srs-public * ,
.srs-search-container,
.srs-search-container *{
  font-family: inherit !important;
}

:root{
  --srs-sticky-top: var(--header-h);
}

.srs-search-bar{
  border-bottom: 2px solid var(--sot-orange) !important;
  background: #fff !important;
}

.srs-search-container.is-sticky .srs-search-bar{
  border-bottom: 2px solid var(--sot-orange) !important;
}

.srs-search-field{
  border-radius: 14px !important;
  border: 1px solid var(--sot-border) !important;
  min-height: 60px !important;
}

.srs-search-submit,
.srs-btn-primary{
  background: var(--sot-orange) !important;
  color: var(--sot-black) !important;
  border: none !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
}

.srs-alert-success{
  background: rgba(255,106,0,.10) !important;
  border: 1px solid rgba(255,106,0,.25) !important;
}

.srs-status-reserved{
  color: var(--sot-orange) !important;
  border-color: rgba(255,106,0,.28) !important;
  background: rgba(255,106,0,.08) !important;
}
.srs-status-reserved:before{
  background: var(--sot-orange) !important;
}



/* =========================
   NAV – properly structured UL/LI so submenus work
========================= */
.sot-nav{ position: relative; }

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

.sot-nav-list > li{ position:relative; }

.sot-nav-list a{
  color: rgba(20,20,20,.86);
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  display:inline-flex;
  align-items:center;
  gap: 6px;
}

.sot-nav-list a:hover{
  color: var(--sot-text);
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
}

/* Current */
.sot-nav-list .current-menu-item > a,
.sot-nav-list .current_page_item > a,
.sot-nav-list a[aria-current="page"]{
  color: var(--sot-text);
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.12);
}

/* CTA */
.sot-nav-list a.is-cta{
  background: var(--sot-orange);
  color: var(--sot-black);
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 22px rgba(255,106,0,.18);
}
.sot-nav-list a.is-cta:hover{ filter: brightness(1.05); transform: translateY(-1px); }

/* Dropdown */
.sot-nav-list li.menu-item-has-children > a:after{
  content:"▾";
  font-size: 11px;
  opacity:.6;
  margin-left: 2px;
}

.sot-nav-list li ul.sub-menu{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 99999;
}

/* "Hover bridge" so menu doesn't disappear when moving cursor down */
.sot-nav-list li.menu-item-has-children:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top: 100%;
  height: 14px;
}

.sot-nav-list li:hover > ul.sub-menu,
.sot-nav-list li:focus-within > ul.sub-menu{
  display:block;
}

.sot-nav-list li ul.sub-menu li{ width:100%; }
.sot-nav-list li ul.sub-menu a{
  width:100%;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  background: transparent;
  border: 1px solid transparent;
}
.sot-nav-list li ul.sub-menu a:hover{
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.08);
}

@media (max-width: 900px){
  body.sot-menu-open .sot-nav-list{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  body.sot-menu-open .sot-nav-list a{
    width:100%;
    justify-content: space-between;
  }
  /* Tap-friendly: show submenus on mobile when menu open */
  body.sot-menu-open .sot-nav-list li ul.sub-menu{
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 0 10px;
    margin: 2px 0 6px;
  }
}

/* =========================
   Remove any unwanted wrapper backgrounds
========================= */
#page, #content, .site, .site-content, .site-main, .wp-site-blocks, main, .entry-content{
  background: transparent !important;
}


/* =========================
   Buttons: less dominant (outline style)
========================= */
.wp-block-button__link, .button, .btn{
  background: #fff;
  color: var(--sot-orange);
  border-radius: 14px;
  padding: 12px 16px;
  text-decoration:none;
  font-weight: 900;
  border: 2px solid var(--sot-orange);
  box-shadow: none;
}
.wp-block-button__link:hover, .button:hover, .btn:hover{
  background: var(--sot-orange);
  color: var(--sot-black);
}

/* SRS primary buttons + submit */
.srs-btn.srs-btn-primary,
.srs-search-submit,
.srs-btn-primary{
  background: #fff !important;
  color: var(--sot-orange) !important;
  border: 2px solid var(--sot-orange) !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}
.srs-btn.srs-btn-primary:hover,
.srs-search-submit:hover,
.srs-btn-primary:hover{
  background: var(--sot-orange) !important;
  color: var(--sot-black) !important;
}

/* Disabled should look disabled */
.srs-btn-disabled,
.srs-btn[aria-disabled="true"]{
  opacity: .55 !important;
  filter: grayscale(.15);
  cursor: not-allowed !important;
}


/* =========================
   Orange line that fades out (like header accent)
========================= */
.sot-accent-line{
  position: relative;
}
.sot-accent-line:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  background: linear-gradient(90deg, transparent 0%, var(--sot-orange) 20%, var(--sot-orange) 80%, transparent 100%);
  opacity:.9;
  pointer-events:none;
}

/* Apply to SRS headings */
.srs-public-section,
.srs-public-subsection{
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.srs-public-section:after,
.srs-public-subsection:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background: linear-gradient(90deg, transparent 0%, var(--sot-orange) 18%, var(--sot-orange) 82%, transparent 100%);
  opacity:.85;
}


/* =========================
   Kill the unwanted page wrapper/card background on key pages
========================= */
/* If a page contains the SRS public UI, don't wrap it in a white card */
body.page .sot-card,
body.page .sot-card-body{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Also remove empty H1 spacing */
.entry-title:empty{ display:none; }

/* Header alignment */
.sot-header .sot-header-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* Search bar orange fade line */
.srs-search-bar{
  position: relative;
}
.srs-search-bar:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background: linear-gradient(90deg, transparent 0%, var(--sot-orange) 20%, var(--sot-orange) 80%, transparent 100%);
}

/* Header menu – calm underline style */
.sot-nav-list a{
  background: transparent !important;
  border: none !important;
  padding: 10px 6px;
  border-radius: 0;
  font-weight: 700;
  position: relative;
}
.sot-nav-list a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:2px;
  background: linear-gradient(90deg, transparent 0%, var(--sot-orange) 25%, var(--sot-orange) 75%, transparent 100%);
  opacity:0;
}
.sot-nav-list a:hover:after,
.sot-nav-list .current-menu-item > a:after{
  opacity:1;
}
.sot-nav-list a.is-cta{
  background: transparent !important;
  color: var(--sot-orange) !important;
  box-shadow: none !important;
}

/* Footer redesign */
.sot-footer{
  background: #f3f3f3;
  margin-top: 80px;
}
.sot-footer:before{
  content:"";
  display:block;
  height:2px;
  background: linear-gradient(90deg, transparent 0%, var(--sot-orange) 20%, var(--sot-orange) 80%, transparent 100%);
}
.sot-footer-inner{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 18px;
  color: var(--sot-text);
}

/* =========================
   Header alignment: logo left, menu right (same content width)
========================= */
.sot-header .sot-header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.sot-logo{ flex: 0 0 auto; }
.sot-logo .custom-logo-link,
.sot-logo-link{ display:block; }

.sot-nav{ margin-left:auto; }
.sot-nav-list{ justify-content:flex-end; }

/* =========================
   Menu underline ONLY for active item (not on hover)
========================= */
.sot-nav-list > li > a:after{ opacity:0 !important; transform: translateY(4px) !important; }
.sot-nav-list > li:hover > a:after,
.sot-nav-list > li:focus-within > a:after{ opacity:0 !important; }

.sot-nav-list .current-menu-item > a:after,
.sot-nav-list .current_page_item > a:after,
.sot-nav-list a[aria-current="page"]:after{
  opacity:.95 !important;
  transform: translateY(0) !important;
}

/* Make sure search bar accent line is visible */
.srs-search-bar{ overflow: visible !important; }
.srs-search-bar:after{ z-index: 2; }

/* Footer block spacing */
.sot-footer-block strong{ display:block; margin-bottom:10px; }
.sot-footer-text{ opacity:.85; line-height:1.6; }
.sot-footer-small{ margin-top:10px; opacity:.65; font-size: 12px; }

/* =========================
   Homepage Hero Stripe (slim welcome image under header)
========================= */
.sot-hero-stripe{
  position: relative;
  width: 100%;
  height: var(--sot-hero-h, 120px);
  overflow: hidden;
  background: #000;
}
.sot-hero-stripe .sot-hero-img{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.sot-hero-stripe:after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,var(--sot-hero-overlay, 0));
  pointer-events:none;
}
.sot-hero-text{
  position:absolute;
  left:0;
  right:0;
  bottom: 14px;
}
.sot-hero-text span{
  display:block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  color:#fff;
  font-weight: 900;
  letter-spacing: .2px;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
@media (max-width: 900px){
  .sot-hero-text span{ padding: 0 18px; font-size: 14px; }
}


/* =========================
   Breadcrumbs – subtle & non-dominant
========================= */
.srs-breadcrumbs,
.srs-public-breadcrumbs{
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.4;
  margin: 6px 0 14px;
}

.srs-breadcrumbs a,
.srs-public-breadcrumbs a{
  color: var(--sot-text);
  text-decoration: none;
}

.srs-breadcrumbs a:hover,
.srs-public-breadcrumbs a:hover{
  opacity: 0.9;
  text-decoration: underline;
}

.srs-breadcrumbs strong,
.srs-public-breadcrumbs strong{
  font-weight: 600;
}
