/* 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;
  }
}

/* Client-wise project galleries */
.decorum-client-gallery figure { overflow:hidden; border-radius:6px; background:#eee; }
.decorum-client-gallery img { display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; transition:transform .45s ease; }
.decorum-client-gallery figure:hover img { transform:scale(1.035); }
@media(max-width:575px){.decorum-client-gallery .row{--bs-gutter-x:.65rem;--bs-gutter-y:.65rem}.decorum-client-gallery img{aspect-ratio:1 / 1}}


/* === Decorum project detail header === */
body.decorum-project-page { background:#f1ece6; }
body.decorum-project-page header.project-page-header {
  position: sticky !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999 !important;
  background: #2b1d17 !important;
  box-shadow: 0 3px 18px rgba(0,0,0,.10);
}
body.decorum-project-page header.project-page-header #mainmenu a,
body.decorum-project-page header.project-page-header .menu_side_area a { color:#fff !important; }
body.decorum-project-page header.project-page-header #logo img { max-height:54px; }
body.decorum-project-page .project-page-hero {
  background:#f1ece6;
  color:#30231d;
  position:relative;
  z-index:1;
}
body.decorum-project-page .project-page-hero h1,
body.decorum-project-page .project-page-hero p,
body.decorum-project-page .project-page-hero a { color:#30231d !important; }
body.decorum-project-page .project-page-hero h1 {
  font-size:clamp(36px,5.5vw,68px);
  line-height:1.02;
  letter-spacing:-.035em;
  margin:12px 0 16px;
  text-transform:uppercase;
}
body.decorum-project-page .project-page-hero .lead { font-size:18px; }

/* === Homepage selected projects === */
.decorum-home-projects { padding-top:90px; padding-bottom:90px; }
.decorum-home-projects .decorum-project-heading h2 {
  font-size:clamp(32px,4vw,48px);
  line-height:1.08;
  margin:8px 0 14px;
}
.decorum-home-projects .decorum-home-project-grid > [class*="col-"] { display:flex; }
.decorum-home-projects .decorum-home-project-grid .hover,
.decorum-home-projects .decorum-home-project-grid .relative { width:100%; }
.decorum-home-projects .decorum-home-project-grid a.d-block { height:100%; min-height:100%; }
.decorum-home-projects .decorum-home-project-grid a.d-block > .relative.overflow-hidden {
  aspect-ratio:4/3;
  overflow:hidden;
}
.decorum-home-projects .decorum-home-project-grid a.d-block > .relative.overflow-hidden img {
  width:100%; height:100%; object-fit:cover;
}
.decorum-home-projects .decorum-home-project-grid h2 { font-size:clamp(23px,2.2vw,32px); }
.decorum-founder-signature {
  width:min(210px,70%) !important;
  height:auto;
  object-fit:contain;
  display:inline-block;
  margin:8px 0 10px;
}

/* === Project image zoom / lightbox === */
.decorum-client-gallery img.js-project-zoom {
  cursor:zoom-in;
  transition:transform .25s ease, filter .25s ease;
}
.decorum-client-gallery img.js-project-zoom:hover { filter:brightness(.96); }
#decorum-project-lightbox {
  position:fixed; inset:0; z-index:100000;
  display:none; align-items:center; justify-content:center;
  padding:64px 76px 58px;
  background:rgba(12,10,9,.94);
}
#decorum-project-lightbox.is-open { display:flex; }
#decorum-project-lightbox .dp-lightbox-stage {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  overflow:hidden; touch-action:pan-y pinch-zoom;
}
#decorum-project-lightbox .dp-lightbox-image {
  max-width:100%; max-height:100%; width:auto; height:auto;
  object-fit:contain; cursor:zoom-in;
  transform:scale(1); transition:transform .18s ease;
  user-select:none; -webkit-user-drag:none;
}
#decorum-project-lightbox .dp-lightbox-image.is-zoomed { cursor:zoom-out; }
#decorum-project-lightbox button {
  position:absolute; border:0; color:#fff; background:rgba(255,255,255,.13);
  width:44px; height:44px; border-radius:50%; font-size:24px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
#decorum-project-lightbox button:hover { background:rgba(255,255,255,.25); }
#decorum-project-lightbox .dp-close { top:18px; right:20px; font-size:30px; }
#decorum-project-lightbox .dp-prev { left:18px; top:50%; transform:translateY(-50%); }
#decorum-project-lightbox .dp-next { right:18px; top:50%; transform:translateY(-50%); }
#decorum-project-lightbox .dp-zoom-in { right:20px; bottom:20px; }
#decorum-project-lightbox .dp-zoom-out { right:72px; bottom:20px; }
#decorum-project-lightbox .dp-counter {
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  color:#fff; font-size:13px; letter-spacing:.04em;
}
#decorum-project-lightbox .dp-caption {
  position:absolute; top:22px; left:24px; color:#fff;
  font-size:13px; max-width:65%; opacity:.9;
}
@media(max-width:767px) {
  .decorum-home-projects { padding-top:58px; padding-bottom:58px; }
  #decorum-project-lightbox { padding:62px 10px 70px; }
  #decorum-project-lightbox .dp-prev { left:8px; }
  #decorum-project-lightbox .dp-next { right:8px; }
  #decorum-project-lightbox button { width:40px; height:40px; }
  #decorum-project-lightbox .dp-close { top:10px; right:10px; }
  #decorum-project-lightbox .dp-caption { top:18px; left:12px; max-width:65%; font-size:11px; }
  #decorum-project-lightbox .dp-counter { bottom:25px; }
}


/* ==========================================================
   DECORUM INTERIOR — RESPONSIVE REFINEMENT PATCH
   Signature | Footer conversation block | Blog hero spacing
   ========================================================== */

/* Founder signature */
.decorum-founder-signature {
    display: inline-block !important;
    width: 190px !important;
    max-width: 75%;
    height: auto !important;
    object-fit: contain;
    margin: 12px 0 8px;
}
.decorum-founder-block,
.about-founder-signature {
    text-align: right;
    margin-top: 20px;
}
.about-founder-signature img {
    display: inline-block;
    width: 190px;
    max-width: 75%;
    height: auto;
    object-fit: contain;
}

/* Footer conversation column: allow the heading to wrap inside its grid column */
footer .decorum-conversation-footer {
    min-width: 0;
}
footer .decorum-footer-heading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
footer .decorum-footer-heading h2 {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0 0 24px;
    font-size: clamp(30px, 3vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
    white-space: normal !important;
    overflow-wrap: normal;
    word-break: normal;
}
footer .decorum-footer-heading img {
    flex: 0 0 38px;
    width: 38px !important;
    height: auto;
    margin-top: 5px;
}
footer .decorum-conversation-footer .widget {
    max-width: 100%;
    min-width: 0;
}
footer .decorum-conversation-footer .widget h3,
footer .decorum-conversation-footer .widget a {
    overflow-wrap: anywhere;
}

.decorum-founder-signature,
.about-founder-signature img {
    object-fit: contain;
}

/* Blog detail hero */
.decorum-blog-hero {
    scroll-margin-top: 110px;
}
.decorum-blog-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    footer .decorum-footer-heading h2 {
        font-size: 34px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .decorum-founder-signature,
    .about-founder-signature img {
        width: 155px !important;
    }
    .decorum-blog-hero {
        min-height: 390px;
        padding-top: 76px !important;
        padding-bottom: 34px !important;
    }
    .decorum-blog-hero .container {
        position: relative;
        z-index: 2;
    }
    .decorum-blog-hero .spacer-double {
        height: 20px !important;
    }
    .decorum-blog-hero h1 {
        font-size: clamp(30px, 8.2vw, 40px) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.025em;
        margin-top: 12px;
        margin-bottom: 16px !important;
        padding-top: 0;
    }
    .decorum-blog-hero .crumb {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 8px;
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.5;
    }
    footer .decorum-footer-heading {
        gap: 8px;
    }
    footer .decorum-footer-heading h2 {
        font-size: 32px !important;
        line-height: 1.12 !important;
        letter-spacing: -0.025em;
        margin-bottom: 18px;
    }
    footer .decorum-footer-heading img {
        flex-basis: 30px;
        width: 30px !important;
    }
    footer .decorum-conversation-footer .widget p {
        font-size: 15px;
        line-height: 1.75;
    }
    footer .decorum-conversation-footer .widget h3 {
        font-size: 21px;
        line-height: 1.3;
    }
}
