/* DesiDowntown - conflict-safe baseline styles (STRICT).
 * Rules:
 * - Theme styles ONLY inside .ddt-site
 * - Global is allowed ONLY for font on body.ddt-theme
 * - No generic element styling outside theme wrapper
 */

:root{
  --ddt-primary:#0b57d0;
  --ddt-accent:#f5b301;
  --ddt-text:#111827;
  --ddt-muted:#6b7280;
  --ddt-border:#e5e7eb;
  --ddt-bg:#ffffff;
  --ddt-surface:#f9fafb;
  --ddt-dark:#262626;
  --ddt-dark-2:#1f1f1f;
  --ddt-dark-muted:#a3a3a3;
  --ddt-radius:14px;
  --ddt-shadow:0 10px 30px rgba(0,0,0,.06);
  --ddt-container:1200px;
  --ddt-font: system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
  --ddt-ease:cubic-bezier(.2,.85,.2,1);
  --ddt-fast:140ms;
  --ddt-med:220ms;
}

/* GLOBAL (allowed): font only */
body.ddt-theme{
  margin:0;
  font-family:var(--ddt-font);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Theme-only surface/colors (strict) */
body.ddt-theme .ddt-site{
  color:var(--ddt-text);
  background:var(--ddt-bg);
  min-height:100vh;
}

/* Skip link (theme only) */
body.ddt-theme .ddt-site .ddt-skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
body.ddt-theme .ddt-site .ddt-skip-link:focus{
  left:16px; top:16px;
  width:auto;height:auto;
  padding:10px 12px;
  background:var(--ddt-bg);
  border:1px solid var(--ddt-border);
  border-radius:10px;
  box-shadow:var(--ddt-shadow);
  z-index:99999;
}

body.ddt-theme .ddt-site .ddt-container{
  width:min(var(--ddt-container), calc(100% - 32px));
  margin-inline:auto;
}

/* Generic link underline (theme only) */
body.ddt-theme .ddt-site .ddt-link{
  color:inherit;
  text-decoration:none;
  background-image:linear-gradient(currentColor,currentColor);
  background-size:0% 2px;
  background-position:0 100%;
  background-repeat:no-repeat;
  transition:background-size .22s ease;
}
body.ddt-theme .ddt-site .ddt-link:hover,
body.ddt-theme .ddt-site .ddt-link:focus{
  background-size:100% 2px;
}

/* Top bar */
body.ddt-theme .ddt-site .ddt-topbar{
  background:#000;
  color:#fff;
  font-size:14px;
}
body.ddt-theme .ddt-site .ddt-topbar__inner{
  padding:10px 0;
  display:flex;
  justify-content:center;
}
body.ddt-theme .ddt-site .ddt-topbar__text{
  margin:0;
  text-align:center;
  letter-spacing:.2px;
}

/* Header */
body.ddt-theme .ddt-site .ddt-header{
  background:#fff;
  border-bottom:1px solid var(--ddt-border);
}
body.ddt-theme .ddt-site .ddt-header,
body.ddt-theme .ddt-site .ddt-header *{ box-sizing:border-box; }

body.ddt-theme .ddt-site .ddt-header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 0;
}
body.ddt-theme .ddt-site .ddt-header__brand{
  display:flex;
  align-items:left !important;
}
body.ddt-theme .ddt-site .ddt-brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
}
body.ddt-theme .ddt-site .ddt-header .custom-logo{
  height:100px;
  width:auto;
  display:block;
}
body.ddt-theme .ddt-site .ddt-site-title{
  font-weight:800;
  font-size:18px;
  letter-spacing:.2px;
}

/* Primary nav */
body.ddt-theme .ddt-site .ddt-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:34px;
  align-items:center;
}
body.ddt-theme .ddt-site .ddt-menu--primary{ margin-right:12px; }

body.ddt-theme .ddt-site .ddt-nav__link{
  display:inline-block;
  padding:12px 6px;
  text-decoration:none;
  color:var(--ddt-text);
  font-weight:800;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  position:relative;
  outline:none;
}
body.ddt-theme .ddt-site .ddt-nav__link::after{
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  bottom:8px;
  height:2px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .22s ease;
}
body.ddt-theme .ddt-site .ddt-nav__link:hover::after,
body.ddt-theme .ddt-site .ddt-nav__link:focus-visible::after{
  transform:scaleX(1);
}
body.ddt-theme .ddt-site .ddt-header .current-menu-item > a,
body.ddt-theme .ddt-site .ddt-header .current_page_item > a,
body.ddt-theme .ddt-site .ddt-header .current-menu-ancestor > a{
  color:var(--ddt-accent);
}

/* CTA button */
body.ddt-theme .ddt-site .ddt-btn{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  border-radius:8px;
  padding:12px 22px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:14px;
  line-height:1;
}
body.ddt-theme .ddt-site .ddt-btn--outline{
  border:1.6px solid #111;
  color:#111;
  background:#fff;
  transition:transform .12s ease;
}
body.ddt-theme .ddt-site .ddt-btn--outline:hover{
  transform:translateY(-1px);
  background-color:#f5b301;
  border:1.6px solid #fff;
}
body.ddt-theme .ddt-site .ddt-btn--outline:focus-visible{
  outline:2px solid var(--ddt-accent);
  outline-offset:2px;
}

/* Mobile nav toggle */
body.ddt-theme .ddt-site .ddt-header__actions{
  display:flex;
  align-items:center;
  gap:12px;
}
body.ddt-theme .ddt-site .ddt-nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  width:44px;
  height:44px;
  border-radius:10px;
  border:1px solid var(--ddt-border);
  background:#fff;
  cursor:pointer;
  padding:0;
}
body.ddt-theme .ddt-site .ddt-nav-toggle__line{
  display:block;
  width:20px;
  height:2px;
  background:var(--ddt-text);
  margin:0;
  border-radius:999px;
}

/* Mobile nav panel */
body.ddt-theme .ddt-site .ddt-mobile-nav{
  border-top:1px solid var(--ddt-border);
  padding:10px 0 18px;
  background:#fff;
}
body.ddt-theme .ddt-site .ddt-mobile-nav:not([hidden]){
  animation: ddtMobileDrop var(--ddt-med) var(--ddt-ease) both;
}
@keyframes ddtMobileDrop{
  from{ opacity:0; transform:translateY(-6px); }
  to{ opacity:1; transform:translateY(0); }
}
body.ddt-theme .ddt-site .ddt-menu--mobile{
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}
body.ddt-theme .ddt-site .ddt-menu--mobile a{
  display:block;
  width:100%;
  padding:12px 6px;
}
body.ddt-theme .ddt-site .ddt-btn--mobile{
  margin-top:10px;
  width:100%;
}

/* Content */
body.ddt-theme .ddt-site .ddt-entry{
  padding:18px 0;
  border-bottom:1px solid var(--ddt-border);
}
body.ddt-theme .ddt-site .ddt-entry__title{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.2;
}
body.ddt-theme .ddt-site .ddt-entry__meta{
  color:var(--ddt-muted);
  font-size:14px;
}
body.ddt-theme .ddt-site .ddt-entry__content{
  margin-top:12px;
  color:var(--ddt-text);
}
body.ddt-theme .ddt-site .ddt-entry__content p{
  margin:0 0 12px;
  line-height:1.6;
}

/* Footer */
body.ddt-theme .ddt-site .ddt-footer{ color:#fff; }
body.ddt-theme .ddt-site .ddt-footer,
body.ddt-theme .ddt-site .ddt-footer *{ box-sizing:border-box; }

body.ddt-theme .ddt-site .ddt-footer__main{
  background:var(--ddt-dark);
  padding:56px 0;
}
body.ddt-theme .ddt-site .ddt-footer__grid{
  display:grid;
  grid-template-columns:1.1fr .8fr 1fr 1.1fr;
  gap:40px;
  align-items:start;
}
body.ddt-theme .ddt-site .ddt-footer__logo .custom-logo{
  height:110px;
  width:auto;
}
body.ddt-theme .ddt-site .ddt-footer__heading{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.14em;
  margin:8px 0 18px;
  color:#fff;
}
body.ddt-theme .ddt-site .ddt-footer__muted{
  margin:10px 0 0;
  color:var(--ddt-dark-muted);
  line-height:1.7;
  font-size:14px;
}
body.ddt-theme .ddt-site .ddt-highlight{
  color:var(--ddt-accent);
  font-weight:700;
}

body.ddt-theme .ddt-site .ddt-footer-menu,
body.ddt-theme .ddt-site .ddt-footer-bottom-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}
body.ddt-theme .ddt-site .ddt-footer__link,
body.ddt-theme .ddt-site .ddt-footer__bottom-link{
  color:#fff;
  text-decoration:none;
  font-size:14px;
  opacity:.92;
}
body.ddt-theme .ddt-site .ddt-footer__link:hover,
body.ddt-theme .ddt-site .ddt-footer__bottom-link:hover{
  color:var(--ddt-accent);
}

/* Social */
body.ddt-theme .ddt-site .ddt-social{
  display:flex;
  gap:14px;
  margin-top:28px;
}
body.ddt-theme .ddt-site .ddt-social__link{
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  transition:transform .12s ease, border-color .12s ease;
}
body.ddt-theme .ddt-site .ddt-social__link:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.32);
}

/* Contact rows */
body.ddt-theme .ddt-site .ddt-contact{
  display:grid;
  gap:14px;
}
body.ddt-theme .ddt-site .ddt-contact__row{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
body.ddt-theme .ddt-site .ddt-contact__icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  opacity:.95;
  flex:0 0 auto;
}
body.ddt-theme .ddt-site .ddt-contact__text{
  display:grid;
  gap:6px;
}

/* Map */
body.ddt-theme .ddt-site .ddt-map__frame{
  width:100%;
  height:160px;
  border:0;
  border-radius:10px;
  overflow:hidden;
}
body.ddt-theme .ddt-site .ddt-map__placeholder{
  border:1px dashed rgba(255,255,255,.22);
  border-radius:10px;
  padding:14px;
  color:var(--ddt-dark-muted);
  font-size:13px;
  line-height:1.5;
}

/* Footer bottom bar */
body.ddt-theme .ddt-site .ddt-footer__bottom{
  background:var(--ddt-dark-2);
  padding:18px 0;
}
body.ddt-theme .ddt-site .ddt-footer__bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
body.ddt-theme .ddt-site .ddt-footer__copy{
  color:rgba(255,255,255,.78);
  font-size:13px;
}
body.ddt-theme .ddt-site .ddt-footer__bottom-nav .ddt-footer-bottom-menu{
  display:flex;
  gap:20px;
  align-items:center;
}
body.ddt-theme .ddt-site .ddt-footer__bottom-link{
  color:rgba(255,255,255,.85);
  font-size:13px;
}

/* Pagination */
body.ddt-theme .ddt-site .ddt-pagination{
  padding:22px 0;
}
body.ddt-theme .ddt-site .ddt-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  margin-right:8px;
  border:1px solid var(--ddt-border);
  border-radius:12px;
  text-decoration:none;
  color:inherit;
}
body.ddt-theme .ddt-site .ddt-pagination .page-numbers.current{
  border-color:var(--ddt-primary);
}

/* Loader */
body.ddt-theme .ddt-site .ddt-loader{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
  opacity:1;
  transition:opacity .18s ease;
}
body.ddt-theme .ddt-site .ddt-loader__spinner{
  width:38px;height:38px;
  border-radius:50%;
  border:3px solid rgba(0,0,0,.12);
  border-top-color:rgba(0,0,0,.46);
  animation:ddt-spin .6s linear infinite;
}
@keyframes ddt-spin{to{transform:rotate(360deg)}}
body.ddt-theme.ddt-loaded .ddt-site .ddt-loader{
  opacity:0;
  pointer-events:none;
}

/* Responsive */
@media (max-width: 980px){
  body.ddt-theme .ddt-site .ddt-nav{display:none}
  body.ddt-theme .ddt-site .ddt-nav-toggle{display:inline-flex}
  body.ddt-theme .ddt-site .ddt-menu--primary{gap:22px}
  body.ddt-theme .ddt-site .ddt-header .custom-logo{height:75px}
  body.ddt-theme .ddt-site .ddt-footer__grid{grid-template-columns:1fr; gap:28px}
  body.ddt-theme .ddt-site .ddt-footer__bottom-inner{flex-direction:column; align-items:flex-start}
  body.ddt-theme .ddt-site .ddt-footer__bottom-nav .ddt-footer-bottom-menu{flex-wrap:wrap; gap:14px}
}

/* SAFETY (optional but recommended):
   If any plugin UI ends up INSIDE .ddt-site, do NOT force uppercase/letter spacing etc.
   This targets ONLY DDP root if it ever appears inside wrapper.
*/
body.ddt-theme .ddt-site #ddp-pref-root button,
body.ddt-theme .ddt-site #ddp-pref-root input,
body.ddt-theme .ddt-site #ddp-pref-root select,
body.ddt-theme .ddt-site #ddp-pref-root textarea{
  text-transform:none !important;
  letter-spacing:normal !important;
}