:root {
  --dwg-primary: #1f2d3d;
  --dwg-accent: #b07a2a;
  --dwg-accent-soft: #e6d2ad;
  --dwg-link: #2b5f9e;
  --dwg-text: #1b1f24;
}

body {
  font-family: "Plus Jakarta Sans", "Source Sans Pro", sans-serif;
  color: var(--dwg-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Fraunces", "Plus Jakarta Sans", serif;
  letter-spacing: 0.2px;
}

a {
  color: var(--dwg-link);
}

a:hover,
a:focus {
  color: var(--dwg-primary);
}

/* Logo sizing clamp */
#logo .fixed-logo,
#logo .nav-logo,
#logo .logo img,
.navbar-brand img,
.header-logo img {
  max-height: 64px;
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  #logo .fixed-logo,
  #logo .nav-logo,
  #logo .logo img,
  .navbar-brand img,
  .header-logo img {
    max-height: 52px;
  }
}

/* Prevent duplicate logo rendering (fixed + nav) */
#logo .fixed-logo {
  display: none !important;
}

#logo .nav-logo {
  display: block !important;
}

/* Home hero spacing clamp */
.vc_custom_1605872907712 {
  padding-top: clamp(32px, 6vw, 72px) !important;
  padding-bottom: clamp(24px, 4.5vw, 56px) !important;
}

.vc_custom_1605872784332 {
  padding-top: clamp(0px, 1.5vw, 16px) !important;
}

/* Reduce oversized banner section padding */
.vc_custom_1598629266356 {
  padding-top: 120px !important;
  padding-bottom: 110px !important;
}

@media (max-width: 991px) {
  .vc_custom_1598629266356,
  .vc_custom_1598629266357,
  .vc_custom_1598629266358 {
    padding-top: 90px !important;
    padding-bottom: 80px !important;
  }
}

/* Hero typography clamp */
body.home .kd-section-title h1,
body.home h1.separator_off {
  font-size: clamp(2rem, 3.2vw, 3.25rem) !important;
  line-height: 1.08 !important;
  margin-bottom: clamp(18px, 3vw, 32px) !important;
}

body.home .kd-section-title h6.subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
}

/* Top banner spacing for inner pages */
.row.single-page-heading {
  padding-top: 80px;
  padding-bottom: 40px;
}

@media (max-width: 767px) {
  .row.single-page-heading {
    padding-top: 60px;
    padding-bottom: 30px;
  }
}

/* Ensure banner images don't force height */
.header-overlay,
.header-overlay.parallax-overlay {
  min-height: 240px;
}

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

/* Home hero image clamp */
body.home .kd-photo-group.group-layout-left-right .first-image-wrapper img {
  width: 100%;
  height: clamp(200px, 30vw, 380px);
  object-fit: cover;
}

body.home .kd-photo-group .second-image-wrapper img {
  max-width: clamp(140px, 22vw, 260px);
  height: auto;
}

body.home .kd-photo-group,
body.home .kd-photo-group .second-image-wrapper {
  overflow: visible;
  width: auto;
}

body.home .vc_custom_1746834725130 {
  margin-bottom: clamp(18px, 3vw, 32px) !important;
}

body.home .vc_custom_1598614235824 {
  margin-top: clamp(16px, 3.2vw, 28px) !important;
}

/* Home icon boxes */
body.home .key-icon-box .ib-icon-wrapper {
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  background-color: var(--dwg-accent-soft) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.home .key-icon-box .ib-icon-wrapper .dwg-icon {
  width: 32px;
  height: 32px;
  display: block;
}

/* Learning center */
.dwg-page-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.dwg-learn-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dwg-article-card {
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(31, 45, 61, 0.12);
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
}

.dwg-article-card h3 {
  margin-top: 8px;
  margin-bottom: 12px;
}

.dwg-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(176, 122, 42, 0.12);
  color: var(--dwg-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.dwg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.dwg-card-link::after {
  content: "->";
  font-size: 0.95em;
}

.dwg-learn-todo {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(31, 45, 61, 0.05);
  border: 1px dashed rgba(31, 45, 61, 0.2);
}

.dwg-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  text-decoration: none;
}

.dwg-article-body {
  max-width: 880px;
}

.dwg-article-body h2 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.dwg-article-body p {
  margin-bottom: 16px;
}

.dwg-article-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Optional phone slot */
.dwg-phone {
  display: none;
  align-items: center;
  margin-left: 16px;
}

.dwg-phone.is-active {
  display: inline-flex;
}

.dwg-phone-link {
  color: var(--dwg-primary);
  font-weight: 600;
  text-decoration: none;
}

.dwg-phone-link:hover,
.dwg-phone-link:focus {
  color: var(--dwg-accent);
}

.footer-bar .dwg-phone {
  margin-left: 0;
  margin-top: 10px;
}

.footer-bar .dwg-phone.is-active {
  display: flex;
}

@media (max-width: 991px) {
  .main-nav-extra-content .dwg-phone {
    margin-left: 0;
    margin-right: 12px;
  }
}

/* Accent color updates */
.tt_button,
.primary-button,
.btn_primary_color,
.tt_button.tt_primary_button {
  background-color: var(--dwg-primary) !important;
  border-color: var(--dwg-primary) !important;
  color: #ffffff !important;
}

.tt_button.tt_secondary_button {
  background-color: transparent !important;
  border-color: var(--dwg-accent) !important;
  color: var(--dwg-accent) !important;
}

.tt_button.tt_secondary_button:hover {
  background-color: var(--dwg-accent) !important;
  color: #ffffff !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > li > a:hover {
  color: var(--dwg-accent) !important;
}
