/* Decorum Interior — brand layer over the Intrio HTML template.
   Keep this file after the template stylesheets so the overrides stay local and easy to maintain. */
:root {
  --primary-color: #1b1b1a;
  --primary-color-rgb: 27, 27, 26;
  --secondary-color: #b49a6a;
  --secondary-color-rgb: 180, 154, 106;
  --id-color: #b49a6a;
  --body-font-color: rgba(38, 37, 34, .78);
  --heading-font-color: #181817;
  --bg-color-even: #f6f4ef;
}

body { color: #34332f; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.025em; }
#logo { max-width: 245px; }
#logo a { display: flex; align-items: center; }
#logo img.logo-main, #logo img.logo-scroll, #logo img.logo-mobile {
  width: auto;
  max-width: min(235px, 28vw);
  max-height: 58px;
  object-fit: contain;
}
header.smaller #logo img.logo-scroll { max-height: 48px; }

/* Refined brand accent and CTA styling. */
.id-color, .id-color-2, a:hover, .social-icons a:hover { color: #b49a6a !important; }
.bg-color, section.bg-color, section.call-to-action, .btn-main, .bg-id-color,
.btn-primary, .btn-id, .price-row, .date-post, #btn-search, #form_subscribe #btn-submit i {
  background-color: #1b1b1a !important;
}
.btn-main, .btn-primary, .btn-id { border-color: #1b1b1a !important; }
.btn-main:hover, .btn-primary:hover, .btn-id:hover {
  background-color: #b49a6a !important;
  border-color: #b49a6a !important;
  color: #161615 !important;
}
#mainmenu li li a.menu-item:hover,
#mainmenu ul li:hover > a.menu-item { background-color: #1b1b1a !important; }
#mainmenu li a.menu-item:hover { color: #b49a6a !important; }

/* Real Decorum mark replaces the template's generic logo. */
/* Only one header logo variant is visible at a time; the old rule forced all three */
/* logo-main, logo-scroll and logo-mobile images to sit side by side. */
header #logo img.logo-main { display: block !important; }
header #logo img.logo-scroll,
header #logo img.logo-mobile { display: none !important; }
footer #logo img, footer img[src*="logo-white"] { max-width: 250px; height: auto; }

/* Image and content finishing. */
img { image-rendering: auto; }
.de_project, .de-service, .bloglist, .blog-card { overflow: hidden; }
.de_project img, .de-service img, .bloglist img { transition: transform .45s ease; }
.de_project:hover img, .de-service:hover img, .bloglist:hover img { transform: scale(1.025); }

/* Forms use accessible contrast and warm neutral surfaces. */
.form-control:focus, input:focus, textarea:focus, select:focus {
  border-color: #b49a6a !important;
  box-shadow: 0 0 0 2px rgba(180,154,106,.15) !important;
}

@media (max-width: 767px) {
  #logo img.logo-main, #logo img.logo-scroll, #logo img.logo-mobile {
    max-width: 195px;
    max-height: 48px;
  }
  .container { padding-left: 18px; padding-right: 18px; }
}


/* ==========================================================
   Decorum Interior — final header + sticky-header refinement
   Shared across all HTML pages via decorum-custom.css.
   ========================================================== */
header.transparent {
  top: 0;
}

/* Keep exactly one brand mark visible on every scroll state. */
header #logo {
  width: clamp(160px, 16vw, 235px);
  max-width: 235px;
  flex: 0 0 clamp(160px, 16vw, 235px);
  min-width: 0;
  overflow: visible;
}

header #logo a {
  display: block !important;
  width: 100%;
  line-height: 0;
  flex: 0 0 auto;
}

header #logo img,
header #logo img.logo-main {
  display: block !important;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

header #logo img.logo-scroll,
header #logo img.logo-mobile {
  display: none !important;
}

/* Desktop header uses one aligned row; the navigation must not wrap. */
@media (min-width: 994px) {
  header .de-flex {
    width: 100%;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(12px, 1.6vw, 26px);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  header .de-flex > .de-flex-col {
    min-width: 0;
  }

  header .de-flex > .de-flex-col:first-child {
    flex: 0 0 clamp(160px, 16vw, 235px);
    justify-content: flex-start;
  }

  header .de-flex > .de-flex-col.header-col-mid {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  header .de-flex > .de-flex-col:last-child {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: 0;
  }

  header #mainmenu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap !important;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    gap: clamp(10px, 1.15vw, 18px);
  }

  header #mainmenu > li {
    float: none !important;
    display: block;
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
    padding: 0;
    white-space: nowrap;
  }

  header #mainmenu > li > a.menu-item {
    display: inline-block;
    padding: 20px 0;
    font-size: clamp(11px, .84vw, 13px);
    line-height: 1.2;
    white-space: nowrap;
  }

  header #mainmenu > li.has-child > a.menu-item {
    padding-right: 0;
  }

  header #mainmenu > li.has-child::after {
    padding-left: 4px;
    margin-left: 0;
  }

  header .menu_side_area {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  header .menu_side_area > a.btn-main {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: max-content;
    max-width: none;
    margin: 0;
    padding: 13px 16px;
    line-height: 1.15;
    white-space: nowrap;
  }

  header .menu_side_area > a.btn-main span {
    display: inline-block;
    white-space: nowrap;
  }

  /* Compact, readable sticky state with an opaque dark background. */
  header.smaller {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10010;
    background: rgba(43, 31, 25, .97) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    margin: 0;
  }

  header.smaller .de-flex {
    min-height: 76px;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: clamp(10px, 1.35vw, 22px);
  }

  header.smaller #logo img.logo-main {
    max-height: 44px;
  }

  header.smaller #mainmenu > li > a.menu-item {
    padding-top: 14px;
    padding-bottom: 14px;
    color: #fff !important;
  }

  header.smaller #mainmenu > li.has-child::after {
    color: rgba(255, 255, 255, .82);
  }

  header.smaller .menu_side_area > a.btn-main {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

/* Mid-size desktops: tighten navigation before the template switches to its mobile menu. */
@media (min-width: 994px) and (max-width: 1199px) {
  header #logo {
    width: 165px;
    flex-basis: 165px;
  }

  header .de-flex {
    gap: 10px;
  }

  header #mainmenu {
    gap: 9px;
  }

  header #mainmenu > li > a.menu-item {
    font-size: 11px;
    letter-spacing: 0;
  }

  header .menu_side_area > a.btn-main {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 11px;
  }
}

/* The template uses its native mobile drawer at 993px and below. */
@media (max-width: 993px) {
  header #logo {
    width: min(190px, 46vw);
    max-width: min(190px, 46vw);
    flex: 0 1 auto;
  }

  header #logo a {
    display: block !important;
  }

  /* Keep the single light logo on the dark/overlay mobile header. */
  header #logo img.logo-main {
    display: block !important;
    width: 100%;
    max-width: 100%;
    max-height: 48px;
  }

  header #logo img.logo-scroll,
  header #logo img.logo-mobile {
    display: none !important;
  }

  header.header-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 10010;
    width: 100%;
    background: rgba(43, 31, 25, .97) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  header.header-mobile .de-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    min-height: 76px;
  }

  header.header-mobile #mainmenu {
    white-space: normal;
  }

  header.header-mobile .menu_side_area {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: right;
    white-space: nowrap;
  }
}
