/*
    Landing theme: the look of the architect mailer, applied to every page that uses
    Views/Shared/_LandingLayout.cshtml. Loaded after style.css and responsive.css and
    only overrides them; the logged-in app (_Layout + custom.css) does not load this.
*/
:root {
    --cream: #faf7f2;
    --cream-deep: #f1ece3;
    --navy: #1b2547;
    --red: #b03a2e;
    --red-dark: #962f25;
    --ink: #2c3350;
    --muted: #6b7088;
    --rule: #d9b9b3;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

/* ---------- Base ---------- */
body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--navy);
    font-weight: 800;
}

h4, h5, h6 { font-family: var(--sans); font-weight: 700; }

a { color: var(--red); }
a:hover, a:focus { color: var(--red-dark); }

p, li, label, input, select, textarea, button { font-family: var(--sans); }

/* ---------- Navigation ---------- */
.navbar-default {
    background-color: var(--cream);
    border-color: var(--cream-deep);
    border-bottom: 1px solid var(--cream-deep);
}

.navbar-default .navbar-nav > li > a {
    color: var(--navy);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    border-color: transparent;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover {
    color: var(--red);
}

.navbar-default .navbar-nav > .active > a::after { background: var(--red); }

.navbar.navbar-default .navbar-nav li.dropdown.open > a,
.navbar.navbar-default .navbar-nav li.dropdown.open > a:hover {
    border: 1px solid var(--rule) !important;
    color: var(--navy) !important;
    background-color: #fff !important;
}

.dropdown-menu { background-color: #fff; }

.dropdown-menucustom {
    border: 1px solid var(--rule) !important;
    min-width: 170px !important;
}

.dropdown-menucustom a { padding: 5px 14px; }

.dropdown-item {
    color: var(--navy) !important;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--cream-deep) !important;
    text-decoration: none;
}

.signUpYellowBtn,
.signUpYellowBtn:hover,
.navbar-default .navbar-nav > li > a.signUpYellowBtn:hover {
    background: var(--red) !important;
    color: #fff !important;
    border-radius: 3px;
    line-height: 1.35;
}

.signUpYellowBtn:hover { background: var(--red-dark) !important; }

.navbar-default .navbar-toggle { border-color: var(--rule); }
.navbar-default .navbar-toggle .icon-bar { background-color: var(--navy); }
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { background-color: var(--cream-deep); }
.navbar-default .navbar-collapse { border-color: var(--cream-deep); }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--sans);
    font-weight: 600;
    border-radius: 3px;
}

.btn-warning,
.btn-primary,
.send_btn {
    background-color: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.send_btn:hover, .send_btn:focus {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}

/* ---------- Forms ---------- */
.form-control {
    font-size: 16px;
    color: var(--ink);
    border: 1px solid #c9ccd8;
    border-radius: 3px;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}

/* ---------- Section headings ---------- */
.heading-title h2 {
    display: inline-block;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 2px solid var(--red);
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: none;
    color: var(--navy);
}

.heading-title.heading-title-sm h2 {
    padding: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
}

.heading-title h2::before,
.heading-title h2::after { display: none !important; }

.heading-title h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.heading-title-a, .heading-title-a:hover { color: var(--navy); }

/* ---------- Home page ---------- */
.quick-search {
    background: rgba(250, 247, 242, 0.92);
    border-radius: 3px;
    padding: 32px 36px;
}

.home-hero-title {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.15;
}

.home-hero-lead {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
}

#service h2 {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 34px;
    line-height: 1.2;
    text-transform: none;
}

#service h2 small {
    font-family: var(--sans);
    font-size: 16px;
    text-transform: none;
    color: var(--ink);
}

.service-icon a {
    background: var(--navy);
    border-color: var(--cream);
}

.service-container:hover > .service-icon a { box-shadow: 0 0 0 3px var(--red); }

.service-content h3 {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--navy);
}

#subscribe { background: var(--cream-deep); }
#subscribe h3 { color: var(--navy); font-family: var(--serif); }

/* ---------- Footer ---------- */
#footer { background-color: var(--navy); }

#footer, #footer p { color: #c9cde0; font-size: 14px; }

.copyright { border-top-color: rgba(255, 255, 255, 0.15); }

.footerMenu li a,
.footerMenu li a:hover { color: #fff; }

.footerMenu li { padding: 4px 12px; }

@media (max-width: 767px) {
    .home-hero-title { font-size: 28px; }
    .heading-title h2 { font-size: 26px; }
    .quick-search { padding: 22px 20px; }
}

/* ---------- Template yellow / grey replaced everywhere ---------- */
#content,
#modal-signup .modal-footer { background: var(--cream-deep); }

.heading-title h2::before,
.post-content > .heading-title h2::before { background: transparent; }

.form-control:focus,
.uneditable-input:focus { color: var(--ink); }

/* Labels and tags that sat on yellow now sit on navy */
.property-price,
.property-features,
.post-img h3,
.team-container.team-dark,
.favorite a::before { background: var(--navy); color: #fff; }

.property-features span,
.property-price span { color: #fff; }

/* Buttons and active states that were yellow or orange are now red */
.signup,
.property-footer a,
.package .choose-btn,
.projectAssist-selectBtn,
.collage_edit_btn, .board-edit-btn,
.collage_delete_btn, .board-delete-btn,
.model-edit-btn:hover,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus,
.jcarousel-pagination a.active {
    background: var(--red);
    background-color: var(--red) !important;
    color: #fff;
}

.signup:active { background-color: var(--red-dark) !important; }

.modal-create-btn, .modal-create-btn:hover, .modal-create-btn:focus {
    background: var(--red) !important;
    border: 1px solid var(--red) !important;
}

.trialBtn a:hover {
    background: var(--red);
    border: 2px solid var(--red);
    color: #fff;
}

.jcarousel-pagination a.active { box-shadow: 0 0 0 1px var(--red); }

.pagination > li > a,
.pagination > li > span { color: var(--navy); }

.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > span:focus,
.blog-paged > .pager li > a:hover, .blog-paged > .pager li > a:focus {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.projectAssist-Header { border-bottom: 3px solid var(--red); }

.board-modal-header h5:after { background: var(--red); }

.create_board_bg i,
.board-back-link i,
.board-back-link:hover,
.board-back-link:hover i,
#modal-signup .modal-header h4,
.team-social a:hover, .team-social a:focus { color: var(--red); }

#slider-property .carousel-indicators .active { border-color: var(--red); }

/* Phone menu */
@media (max-width: 767px) {
    .navbar-collapse { border-top-color: var(--rule) !important; }

    .navbar.navbar-default .navbar-nav li.dropdown.open > a,
    .navbar.navbar-default .navbar-nav li.dropdown.open > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
    .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
        background: var(--cream-deep) !important;
        background-color: var(--cream-deep) !important;
        color: var(--navy) !important;
    }

    .dropdown-menucustom a { border-bottom: 1px solid var(--cream-deep); }
}

/* ---------- Pricing (ChoosePackage, FreeTrialChooseOptions) ---------- */
.choosePackage .heading-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--navy);
    border-bottom: 2px solid var(--red);
}

.package {
    background: #fff;
    border: 1px solid var(--cream-deep);
    border-radius: 4px;
    overflow: hidden;
}

.package .package-title {
    background: var(--navy);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
}

.package .package-header {
    background: #fff;
    border-bottom: 1px solid var(--rule);
}

.package-header a,
.package-header a:hover { color: var(--ink); text-decoration: none; }

.package .package-header h2 {
    font-size: 46px;
    color: var(--red);
}

.package .package-header span { color: var(--navy); }

.package .package-info ul li { line-height: 1.6; margin-bottom: 12px; }

.package .package-pro-info .package-highlight { background: var(--cream-deep); }

.package .choose-btn a,
.package .choose-btn a:hover {
    color: #fff;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.package .choose-btn:hover { background-color: var(--red-dark) !important; }

.trialBtn a { border: 2px solid var(--navy); color: var(--navy); }

.orCircleBorder { border-top-color: var(--rule); }

body .slider,
body input:checked + .slider {
    background-color: var(--cream-deep);
    border-color: var(--navy);
}

body .slider:before { background-color: var(--navy); }

body .priceToggle strong { color: var(--navy); font-family: var(--sans); }

.package .choose-btn,
.package .choose-btn p,
.package .choose-btn span { color: #fff; }

.btn-success,
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-success:hover, .btn-success:focus { background-color: var(--red-dark); border-color: var(--red-dark); }

/* ---------- About pages (Why Xactli, What it Does, Design Options, Collaboration, Tutorials) ---------- */
/* Some of these pages set a yellow page background in an inline style block */
html body { background: var(--cream) !important; }

.designOptions-head1,
.designOptions-head2,
.designOptions-subhead,
.collaborations-head1,
.whyXactli-subhead {
    font-family: var(--serif);
    font-weight: 800;
    color: var(--navy);
}

.designOptions-subhead { font-family: var(--sans); font-weight: 500; font-size: 22px; line-height: 1.4; color: var(--ink); }
.whyXactli-subhead { font-size: 30px; line-height: 1.2; color: var(--red); }
.collaborations-head1 { font-size: 46px; line-height: 1.15; }
.designOptions-head1 { line-height: 1.2; }
.designOptions-head2 { font-size: 28px; line-height: 1.25; }

.designOptions-content h3 {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.designOptions-content p,
.designOptions-content p strong,
.whyXactli-content p {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
}

.designOptions-content p { font-weight: 400; }
.designOptions-content p strong { font-weight: 700; }

.designOptions-btn,
.collaborations-btn {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 40px;
}

.collaborations_img,
.whatItDoes-img-holder,
.whyXactli-img-holder { background: var(--cream-deep); }

.whyXactli-content-holder { background: transparent; }

.collaborations-icon { color: var(--red); }

.tutorials-title h2 a { font-family: var(--sans); font-weight: 700; color: var(--navy); }

.property-content-align h3 a { font-family: var(--sans); font-weight: 400; color: var(--ink); }

/* ---------- Contact and Project Assist ---------- */
.send_btn,
.send_btn:hover,
.send_btn:focus {
    background: var(--red) !important;
    border: 1px solid var(--red) !important;
    border-radius: 3px !important;
    font-size: 16px;
    color: #fff;
}

.send_btn:hover, .send_btn:focus { background: var(--red-dark) !important; }

.custom-contactForm h2,
.inner_page h2 { font-size: 28px; line-height: 1.25; }

.projectAssist-Holder {
    background: #fff;
    border: 1px solid var(--cream-deep);
    border-radius: 4px;
    overflow: hidden;
    color: var(--ink);
}

.projectAssist-Header h2 {
    font-family: var(--serif);
    font-weight: 800;
    color: var(--navy);
}

.projectAssist-info p strong { font-family: var(--sans); color: var(--navy); }

.projectAssist-selectBtn a,
.projectAssist-selectBtn a:hover {
    color: #fff;
    letter-spacing: 0.12em;
    text-decoration: none;
}

/* ---------- Terms of Use and Privacy Policy ---------- */
.termsAndUse-h1 { font-family: var(--serif); font-weight: 800; color: var(--navy); }

.termsAndUse-h2, .termsAndUse-h3, .termsAndUse-h4 {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--navy);
}

.termsAndUse-content,
.termsAndUse-content p,
.termsAndUse-list-ul li,
.termsAndUse-list-ol li {
    font-family: var(--sans);
    color: var(--ink);
}

.termsAndUse-paraLink, .termsAndUse-paraLink:hover { color: var(--red); }

/* Terms and Privacy draw a black line under the menu in an inline style block */
body .navbar { border-bottom: 1px solid var(--cream-deep); }

/* ---------- Gallery (Inspirations) ---------- */
/* The board and image pages use fixed heights sized for the original 14px text,
   so they keep that base size and only take the theme's fonts and colours. */
body.gallery-page { font-size: 14px; line-height: 24px; }

.gallery-page h1, .gallery-page h2, .gallery-page h3,
.gallery-page h4, .gallery-page h5, .gallery-page h6 { font-family: var(--sans); font-weight: 700; }

/* ---------- Menu on tablets and small laptops: keep it on one line ---------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .navbar-default .navbar-brand { padding-right: 10px; }

    .navbar-default .navbar-nav > li > a {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 13px;
    }

    .signUpYellowBtn {
        margin: 15px 6px;
        padding: 4px 16px !important;
    }

    /* Not enough room for the full trial line here, so show the short one */
    .signUpYellowBtn .trial-long { display: none; }
    .navbar-nav .signUpYellowBtn .trial-short { display: inline; }
}

.signUpYellowBtn .trial-short { display: none; }

@media (min-width: 768px) and (max-width: 991px) {
    /* The logo already links home */
    .navbar-default .navbar-nav > li:first-child > a[href="/"] { display: none; }
}

@media (max-width: 767px) {
    #service h2 { font-size: 26px; }
    .signUpYellowBtn { display: inline-block; margin: 8px 15px; }
}

@media (max-width: 767px) {
    .navbar-default .navbar-nav > li > a.signUpYellowBtn {
        display: block;
        height: auto;
        padding: 10px 20px !important;
        line-height: 1.4;
    }

    .signUpYellowBtn br { display: none; }
    .signUpYellowBtn .trial-long { display: block; }
}

/* Let the open phone menu use the full screen height so Sign Up and Log in are not cut off */
@media (max-width: 767px) {
    .navbar-fixed-top .navbar-collapse { max-height: calc(100vh - 90px); }
}

/* Home page: tutorials strip and newsletter sign-up */
#news { background: var(--cream); }
#subscribe h3 { text-transform: none; }

/* ---------- Home page: "The Right Product For You" cards ---------- */
.audience-row { margin-bottom: 30px; }

.audience-card {
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 260px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--cream-deep);
    border-radius: 4px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow 0.2s ease-in-out;
}

.audience-card:hover,
.audience-card:focus {
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(27, 37, 71, 0.12);
}

.audience-card img {
    flex: 0 0 42%;
    width: 42%;
    object-fit: cover;
}

.audience-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 30px;
}

.audience-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
}

.audience-body h3 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
}

.audience-body p { margin: 0 0 10px; }

.audience-link {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
}

.audience-link::after { content: ' \2192'; color: var(--red); }

@media (max-width: 520px) {
    .audience-card { flex-direction: column; }
    .audience-card img { flex: none; width: 100%; height: 190px; }
    .audience-body { padding: 22px 20px; }
}

/* Equal-height cards when they sit side by side */
@media (min-width: 992px) {
    .audience-row { display: flex; }
    .audience-row::before, .audience-row::after { display: none; }
    .audience-row > div { display: flex; }
    .audience-card { width: 100%; height: auto; }
}

.audience-card img { object-position: center; }

/* ---------- Home page: "The process" cards ---------- */
.process-row { counter-reset: process-step; }

.process-row .property-container {
    border: 1px solid var(--cream-deep);
    border-radius: 4px;
    overflow: hidden;
}

/* Same shape for every photo, whatever the original's proportions */
.process-row .property-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.process-row .property-features {
    padding: 14px 18px 0;
    background: #fff;
}

.process-row .property-features span {
    padding: 0;
    font-family: var(--serif);
    font-size: 24px;
    color: var(--navy);
}

.process-row .property-features span b { font-weight: 800; }

.process-row .property-features span b::before {
    counter-increment: process-step;
    content: counter(process-step) '. ';
    color: var(--red);
}

.process-row .property-content-align { padding: 4px 18px 16px !important; }

.process-row .property-content-align h3 a {
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
}

/* On phones the cards stack full width, so use a shorter photo */
@media (max-width: 767px) {
    .process-row .property-image img { aspect-ratio: 4 / 3; }
}
