/*-------------------*/
/** design tokens   **/
/*-------------------*/

/* One small palette for the whole site. The template ships a periwinkle
   (#608ace) + yellow (#fdde52) scheme with pale grey body copy; this replaces
   it with a deep architectural navy (matching the logo), one crisp blue
   accent and dark, readable text. */
:root {
    --vw-ink: #0b1526;          /* headings, nav */
    --vw-text: #465264;         /* body copy */
    --vw-muted: #6b7688;        /* secondary copy */
    --vw-line: #e3e7ee;         /* hairline borders */
    --vw-surface: #f5f7fa;      /* alternate section background */
    --vw-navy: #0d1b30;         /* dark panels, hero, footer */
    --vw-accent: #2d7ff0;       /* brand blue, deep enough for white text */
    --vw-accent-dark: #1d64cc;
    --vw-accent-soft: #eaf2fe;
    --vw-accent-on-dark: #7db8ff;
    --vw-radius: 10px;
    --vw-shadow: 0 1px 2px rgba(11, 21, 38, 0.04), 0 8px 24px -12px rgba(11, 21, 38, 0.18);
    --vw-shadow-hover: 0 1px 2px rgba(11, 21, 38, 0.06), 0 18px 36px -16px rgba(11, 21, 38, 0.28);
    --vw-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    --vw-font-head: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/*-------------------*/
/** typography      **/
/*-------------------*/

/* The template asks for Roboto/Poppins but never loads either, so text fell
   back to a generic system face. Inter + Manrope are loaded in
   header-js-css.jsp. Body copy was 14px #9a9a9a with wide tracking - too pale
   and loose to read as sharp; darken it, size it up and set tracking to zero. */
body {
    font-family: var(--vw-font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--vw-text);
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, [class*='heading-'],
.list-marked-3, .breadcrumbs-custom-path, .rd-nav-link,
.box-minimal-title, .box-modern-title, .product-classic-title,
.product-corporate-title, .product-corporate-info {
    font-family: var(--vw-font-head);
}

h1, h2, h3, h4, h5, h6, [class*='heading-'] {
    color: var(--vw-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1, .heading-1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

h4, h5, h6, .heading-4, .heading-5, .heading-6 {
    letter-spacing: -0.01em;
}

p, .lead {
    letter-spacing: 0;
}

.lead {
    font-size: 19px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--vw-text);
}

a {
    transition: color 0.2s ease;
}

.text-primary {
    color: var(--vw-accent) !important;
}

::selection {
    background: var(--vw-accent);
    color: #ffffff;
}

/* Section heading marker: the template's 100vw hairline + dot, re-tinted to
   the accent and paired with a short solid bar instead of a round dot. */
.heading-decoration-1 .heading-inner::before {
    background: #d3dbe7;
}

.heading-decoration-1 .heading-inner::after {
    width: 12px;
    height: 3px;
    border-radius: 2px;
    background: var(--vw-accent);
}

/* Footer column headings use a yellow square; make it a slim accent bar. */
.heading-square-item {
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--vw-accent-on-dark);
}

.divider-small::after {
    background-color: var(--vw-line);
}

/* Backgrounds: alternate sections on a cool, neutral off-white; replace the
   template's periwinkle panels with the deep navy. */
.bg-gray-12 {
    background-color: var(--vw-surface);
}

.bg-primary-lighten,
.box-1-cell {
    background: radial-gradient(120% 90% at 0% 0%, #1b3357 0%, var(--vw-navy) 60%);
}

/* The template's yellow highlight on dark panels -> soft accent blue. */
.context-dark .list-marked-3 > li::before,
.bg-accent .list-marked-3 > li::before,
.context-dark .link-2,
.context-dark .box-category-3-subtitle,
.bg-gray-31 .icon-secondary {
    color: var(--vw-accent-on-dark);
}

.context-dark [class*='list-marked'] > li::before,
.bg-primary-lighten [class*='list-marked'] > li::before {
    color: var(--vw-accent-on-dark) !important;
}

.context-dark p,
.bg-primary-lighten p {
    color: rgba(255, 255, 255, 0.78);
}

.context-dark h1, .context-dark h2, .context-dark h3,
.context-dark h4, .context-dark h5, .context-dark h6 {
    color: #ffffff;
}

/* Bullet chevrons on light sections: accent instead of pale grey. */
.list-marked > li::before,
.list-marked-sm > li::before {
    color: var(--vw-accent);
}

/*-------------------*/
/** buttons         **/
/*-------------------*/

/* Flat, crisp buttons: solid colour, compact tracking, no gradients or
   glow. Hover darkens and lifts by 1px. */
.btn {
    font-family: var(--vw-font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-sm {
    font-size: 12px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary,
.btn-primary:focus {
    background: var(--vw-accent);
    border-color: var(--vw-accent);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--vw-accent-dark) !important;
    border-color: var(--vw-accent-dark) !important;
    color: #ffffff;
    box-shadow: 0 10px 20px -10px rgba(45, 127, 240, 0.7);
}

.btn-light {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--vw-ink);
}

.btn-light:hover,
.btn-light:focus {
    background: var(--vw-accent-soft);
    border-color: var(--vw-accent-soft);
    color: var(--vw-ink);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #ffffff;
    color: var(--vw-ink);
}

/*-------------------*/
/** cards           **/
/*-------------------*/

/* Crisp cards: white, 1px hairline border, a tight low shadow, and a small
   lift + accent border on hover - instead of the template's thick grey
   border and the large blurred drop shadow. */
.box-modern,
.box-minimal,
.card-corporate,
.product-classic,
.product-corporate {
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.box-modern,
.box-minimal,
.card-corporate {
    background-color: #ffffff;
    border: 1px solid var(--vw-line);
}

.box-modern:hover,
.box-minimal:hover,
.product-classic:hover,
.product-corporate:hover {
    transform: translateY(-3px);
    box-shadow: var(--vw-shadow-hover);
}

.box-modern:hover,
.box-minimal:hover {
    border-color: rgba(45, 127, 240, 0.35);
}

.box-minimal-title,
.box-modern-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--vw-ink);
}

.box-minimal p,
.box-modern p,
.product-classic p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--vw-muted);
    letter-spacing: 0;
}

.box-minimal-divider {
    width: 28px;
    height: 2px;
    background-color: var(--vw-accent);
}

/* Card icons sit on a soft accent tile rather than floating bare. */
.box-minimal .icon,
.box-modern .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 24px;
    color: var(--vw-accent);
    background: var(--vw-accent-soft);
}

.box-minimal .icon.rounded-circle,
.box-modern .icon.rounded-circle {
    border-radius: 50% !important;
}

/* Category tiles (image + gradient overlay). */
.box-category-outer .box-category {
    border-radius: var(--vw-radius);
    overflow: hidden;
    box-shadow: var(--vw-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-category-outer .box-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--vw-shadow-hover);
}

.product-classic-title,
.product-classic-title a {
    font-weight: 700;
    color: var(--vw-ink);
}

.product-classic-title a:hover {
    color: var(--vw-accent);
}

/* Contact-detail glyphs (footer, contact page, header utility bar): a flat
   accent circle, no gradient or glow. flex-shrink: 0 keeps the badge a
   circle: .list-terms-1 dd is a flex row capped at 350px, and a long email or
   address beside it would otherwise squeeze the badge into an ellipse. */
.link-with-icon .icon,
.list-terms-1 .icon,
footer .icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vw-accent-soft);
    color: var(--vw-accent) !important;
    font-size: 15px !important;
}

.context-dark .link-with-icon .icon,
.bg-gray-31 .link-with-icon .icon,
footer .icon {
    background: rgba(125, 184, 255, 0.12);
    color: var(--vw-accent-on-dark) !important;
}

.list-terms-1 .icon {
    margin-right: 8px;
}

.list-terms-1,
.list-terms-1 dd,
.list-terms-1 dd a {
    letter-spacing: 0;
    color: var(--vw-ink);
}

/* Spec-sheet tables on product pages. */
.table-bordered {
    overflow: hidden;
    border-radius: var(--vw-radius);
    border-color: var(--vw-line);
    box-shadow: var(--vw-shadow);
}

.table > :not(caption) > * > * {
    border-color: var(--vw-line);
}

.table th {
    color: var(--vw-ink);
    font-weight: 600;
}

/* Form fields (contact page). */
.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d5dbe4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--vw-accent);
    box-shadow: 0 0 0 3px rgba(45, 127, 240, 0.18);
}

/* Breadcrumb/hero banner. Flex + min-height vertically centers the title on
   the background thumbnail regardless of how much padding a given page's
   variant uses (see .contact-compact below). A navy scrim keeps the white
   title crisp over bright photos. */
.breadcrumbs-custom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.breadcrumbs-custom.bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 27, 48, 0.25) 0%, rgba(13, 27, 48, 0.6) 100%);
    pointer-events: none;
}

.breadcrumbs-custom .container {
    position: relative;
    width: 100%;
}

.breadcrumbs-custom-title {
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.02em;
}

.breadcrumbs-custom-path li {
    font-size: 13px;
    font-weight: 500;
}

.breadcrumbs-custom-path a,
.breadcrumbs-custom-path a:focus {
    color: var(--vw-accent);
}

.breadcrumbs-custom-path li.active {
    color: var(--vw-muted);
}

/* Owl carousel nav + the strip under the hero carousel. */
.box-2-footer {
    background: #ffffff;
    border-top: 1px solid var(--vw-line);
}

.owl-arrow {
    font-family: var(--vw-font-head);
    font-weight: 600;
    color: var(--vw-muted);
}

.owl-arrow:hover {
    color: var(--vw-accent);
}

/* FAQ accordion (card-corporate): collapsed-row arrow was template yellow;
   make it a quiet accent tile, solid accent when open. */
.card-corporate .card-title a,
.card-corporate .card-title a.collapsed {
    font-family: var(--vw-font-head);
    font-weight: 600;
    color: var(--vw-ink);
    letter-spacing: 0;
}

.card-corporate .card-title a.collapsed .card-arrow {
    background: var(--vw-accent-soft);
}

.card-corporate .card-title a.collapsed .card-arrow::before,
.card-corporate .card-title a.collapsed .card-arrow::after {
    background: var(--vw-accent);
}

.card-corporate .card-body {
    color: var(--vw-muted);
    font-size: 14.5px;
    letter-spacing: 0;
}

.panel-3-toggle {
    background: var(--vw-accent-soft);
}

.product-corporate-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/*-------------------*/
/** navbar          **/
/*-------------------*/

/* The .page wrapper (themes/vantagewindowsdoors/layout/body.jsp) exists so the
   template's own "html.rd-navbar-fixed-linked .page { padding-top: 56px }" can
   reserve space for the fixed mobile navbar below 992px.
   But style.css also starts .page at opacity:0 and only reveals it via
   .page.loaded, which script.js adds solely inside its preloader branch
   ("if (plugins.preloader.length)"). This site renders no .preloader element,
   so .page would never be revealed and the whole page would stay blank.
   We want the wrapper purely for the offset, so keep it visible. */
.page {
    opacity: 1;
}

/* Tighter gap between top-level nav items than the template default (38px) */
.rd-navbar-static .rd-nav-item + .rd-nav-item {
    margin-left: 9px !important;
}

.rd-nav-link {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--vw-ink);
}

.rd-navbar-static .rd-nav-link:hover,
.rd-navbar-static .rd-nav-item.focus .rd-nav-link,
.rd-navbar-static .rd-nav-item.opened .rd-nav-link,
.rd-navbar-static .rd-nav-item.active .rd-nav-link {
    color: var(--vw-accent);
}

/* Thin utility bar above the main nav: smaller, quieter. */
.rd-navbar-classic.rd-navbar-static .rd-navbar-aside-outer {
    border-bottom-color: var(--vw-line);
    background: var(--vw-surface);
}

.rd-navbar-aside-list,
.rd-navbar-aside-list a {
    font-size: 13px;
    color: var(--vw-text);
    letter-spacing: 0;
}

.rd-navbar-classic.rd-navbar-static {
    box-shadow: none;
    border-bottom: 1px solid var(--vw-line);
}

/* Frosted bar once the nav sticks to the top on scroll. */
.rd-navbar--is-stuck .rd-navbar-main-outer {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--vw-line), 0 10px 30px -18px rgba(11, 21, 38, 0.35);
}

/* Dropdowns: white card with hairline border. */
.rd-navbar-static .rd-navbar-dropdown,
.rd-navbar-static .rd-menu {
    border: 1px solid var(--vw-line);
    border-radius: var(--vw-radius);
    box-shadow: var(--vw-shadow-hover);
}

/*-------------------*/
/** footer          **/
/*-------------------*/

.bg-gray-31 {
    background-color: var(--vw-navy);
}

.bg-gray-21 {
    background-color: #08121f;
}

.bg-gray-31 .rd-mailform-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0;
}

.bg-gray-31 .link-with-icon,
.bg-gray-31 .link-with-icon span {
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0;
}

.bg-gray-31 .link-with-icon a:hover,
.bg-gray-31 a.icon:hover,
.bg-gray-31 .list-1 a:hover {
    color: var(--vw-accent-on-dark);
}

.bg-gray-31 .col-bordered {
    border-color: rgba(255, 255, 255, 0.08);
}

.footer-classic {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-classic .rights {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 0;
}

.footer-classic .rights a {
    color: rgba(255, 255, 255, 0.8);
}

/*-------------------*/
/** homepage hero   **/
/*-------------------*/

/* Vertically center the hero text block within its column */
.hero-compact .box-1-outer {
    justify-content: center;
}

/* The template only gives .box-1-outer side padding from 768px up, so content
   runs edge-to-edge on phones; add breathing room below that breakpoint. */
@media (max-width: 767px) {
    .hero-compact .box-1-outer {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Shortened from the template default so the hero fits within one screen height.
   Kept symmetric (not top-heavy) so .box-1-outer's justify-content: center above
   actually centers the visible content, not just the padded box around it. */

@media (min-width: 768px) and (max-width: 991px) {
    .box-1 {
        padding-top: 110px;
        padding-bottom: 70px;
    }
}

@media (max-width: 768px) {
	.hero-compact .box-1 {
	    padding-top: 100px !important;
	    padding-bottom: 50px !important;
	}
}

.hero-compact .box-1 h2 {
    font-size: 30px !important;
    font-weight: 800;
    line-height: 1.15 !important;
    letter-spacing: -0.03em;
}

@media (min-width: 1200px) {
    .hero-compact .box-1 h2 {
        font-size: 40px !important;
    }
}

.hero-compact .box-1 p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
}

.hero-compact .list-marked-3 {
    font-weight: 600;
}

/* The template's decorative line-drawing sits at full strength over the navy;
   fade it so it reads as texture, not clutter. */
.hero-compact .box-1-bg-shape {
    opacity: 0.18;
}

.hero-compact .list-marked-3 {
    margin-top: 12px !important;
}

.hero-compact .list-marked-3 > li + li {
    margin-top: 6px !important;
}

.hero-compact .layout-5 {
    margin-top: 16px !important;
}

.hero-compact .product-corporate {
    min-height: 140px;
}

.hero-compact .box-2-footer {
    padding: 10px 20px !important;
}

.hero-compact .box-2-footer h3 {
    font-size: 18px !important;
}

/*-------------------*/
/** contact page    **/
/*-------------------*/

/* Cut the template's generous default padding (section-lg up to 115px) */
section.section-xs.contact-compact {
    padding: 12px 0 !important;
}

section.section-lg.contact-compact {
    padding: 40px 0 !important;
}

/*----------------------------------*/
/** windows / doors / sunrooms      **/
/*----------------------------------*/

/* These pages are built from many short sections (key features, specifications,
   best for, options, CTA, related products), and the template's default rhythm
   puts up to 115px of padding above and below each one - ~230px of empty band
   between two blocks of text. Collapse all three sizes to the same tight
   padding for sections carrying the .product-compact marker (added by
   changelog-adhoc-2-8-1-4), so the whole page keeps one even rhythm. Every
   other page on the site stays on the template default. */
section.section-sm.product-compact,
section.section-md.product-compact,
section.section-lg.product-compact {
    padding: 30px 0 !important;
}

@media (min-width: 768px) {
    section.section-sm.product-compact,
    section.section-md.product-compact,
    section.section-lg.product-compact {
        padding: 34px 0 !important;
    }
}

@media (min-width: 1200px) {
    section.section-sm.product-compact,
    section.section-md.product-compact,
    section.section-lg.product-compact {
        padding: 38px 0 !important;
    }
}

/* Thumbnail on the "Related products" tiles (added by changelog-adhoc-2-8-1-5).
   The source images are wide banners (~2.2:1) and breadcrumb photos (~4.6:1), so
   crop them all to one 16:9 box. Anchored left because a product banner carries
   its series name on the left and only the blank fade on the right. */
.box-minimal-image {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 6px;
}

.box-minimal-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: left center;
    transition: transform 0.3s ease;
}

.box-minimal:hover .box-minimal-image img {
    transform: scale(1.04);
}

/* Cards in a grid row stretch to the tallest card on that row, so a card with a
   short description doesn't end up shorter than its neighbours (e.g. the home
   page's feature boxes and featured products). Bootstrap columns already stretch
   to the row height; the card just has to fill its column. Stacked
   (single-column) layouts are unaffected since each row holds one card. */
.row > [class*='col'] > .box-minimal:only-child,
.row > [class*='col'] > .box-modern:only-child,
.row > [class*='col'] > .product-classic:only-child {
    height: 100%;
}

/* Page titles (h1 / .heading-1). The template sizes them 24 / 42 / 70px, which
   makes long titles like "Tilt and Turn Windows for Toronto Homes" wrap across
   several lines on desktop. Scale the larger breakpoints down, staying a step
   above h2 (26 / 32 / 40px) so titles still outrank section headings. */
@media (min-width: 768px) {
    h1,
    .heading-1 {
        font-size: 36px;
    }
}

@media (min-width: 1200px) {
    h1,
    .heading-1 {
        font-size: 48px;
    }
}

/* Language links inside the left-hand hamburger menu (language-switcher.jsp,
   placement=mobile-menu). Desktop already shows them in the top utility bar, so
   they only appear in RD Navbar's fixed (mobile) layout, where they sit at the
   bottom of the panel (the menu list is order 2 there). The panel's own text
   colour is white on white, so set the colours explicitly. */
.rd-navbar-lang-mobile {
    display: none;
}

.rd-navbar-fixed .rd-navbar-lang-mobile {
    display: block;
    order: 3;
    color: #151515;
    border-top: 1px solid #e9ecef;
}

.rd-navbar-fixed .rd-navbar-lang-mobile a {
    color: #151515;
}

.rd-navbar-fixed .rd-navbar-lang-mobile a:hover,
.rd-navbar-fixed .rd-navbar-lang-mobile a.fw-bold {
    color: #4b9ef1;
}

.rd-navbar-fixed .rd-navbar-lang-mobile .icon {
    color: #4b9ef1;
    font-size: 18px;
}
