﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 50px;     /* Adjust this value as needed */
    padding-left: 15px;
    padding-right: 15px;
}

/* Fixed top navbar: add offset so content isn't hidden behind it */
body {
    padding-top: 72px;
}

.app-logo {
    height: 32px;
    width: auto;
    display: inline-block;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Add spacing to the right side of the service dropdown text */
.quote-input select,
select.quote-input {
    padding-right: 2.25rem;
}

/* Ensure selects have extra right padding so text doesn't run into the dropdown arrow */
.quote-form select.quote-input {
    padding-right: 4.25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.7) 50%),
        linear-gradient(135deg, rgba(0,0,0,0.7) 50%, transparent 50%);
    background-position:
        calc(100% - 1.2rem) 50%,
        calc(100% - 0.95rem) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

/* Update menu text to be slightly bigger and brighter */
.navbar-nav .nav-link {
    font-size: 1.1rem; /* Slightly larger text */
    color: #f8f9fa; /* Brighter text color */

    display: inline-block;
    transform-origin: center;
    transition: transform 120ms ease, color 120ms ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff; /* Even brighter on hover */
    transform: scale(1.12);
}

.navbar-nav .nav-link.active-page {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
}

/* Triple the space between menu items */
.navbar-nav .nav-item {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* Keep first/last items aligned nicely */
.navbar-nav .nav-item:first-child {
    margin-left: 0;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

/* Home page hero */
.home-hero {
    background-image: url("Images/home-hero.jpg");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;

    border-radius: 4px;
    min-height: 420px;

    display: flex;
    align-items: center;
    color: #111;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.00) 60%);
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

.home-hero__title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 0.95;
    margin: 0 0 0.5rem 0;
    color: #8b2b2b;
}

.home-hero__subtitle {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: #000;
}

.home-hero__lead {
    max-width: 42rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.75rem 0;
    color: #000;
}

.home-hero__actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.home-hero__btn {
    display: inline-block;
    min-width: 240px;
    text-align: center;

    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    border: 1px solid #111;

    background: rgba(255, 255, 255, 0.75);
    color: #000;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
}

.home-hero__btn:hover,
.home-hero__btn:focus {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    text-decoration: none;
}

@media screen and (max-width: 576px) {
    .home-hero {
        min-height: 360px;
        background-position: 65% center;
    }

    /* Keep the background image unwashed on mobile */
    .home-hero::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.00) 60%);
    }

    .home-hero__panel {
        display: inline-block;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 12px;
        padding: 0.75rem 0.85rem;
        max-width: 100%;
        margin-bottom: 0.9rem; /* space before buttons */
    }

    .home-hero__title {
        font-size: 2.6rem;
        margin-bottom: 0.35rem;
    }

    .home-hero__subtitle {
        font-size: 1.6rem;
        margin-bottom: 0.65rem;
    }

    .home-hero__lead {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .home-hero__btn {
        min-width: 200px;
        font-size: 1.1rem;
    }
}

/* Services page */
.services-page {
    background: #000;
    color: #fff;
    border-radius: 6px;
    padding: 1.75rem;
}

.services-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem 0;
}

.services-intro {
    max-width: 70rem;
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
    color: #e8e8e8;
}

.services-grid {
    margin-top: 1.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 1.25rem 1.25rem 1.1rem;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35) inset;

    transition: background-color 160ms ease, border-color 160ms ease;
}

.service-card:hover,
.service-card:focus-within {
    background-color: #666;
}

.service-card__icon {
    color: #b0423b;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.service-card__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #dcdcdc;
}

.service-card__subtitle {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-weight: 700;
}

.service-card__text {
    margin: 0;
    color: #f2f2f2;
    line-height: 1.35;
    font-size: 0.98rem;
}

@media screen and (max-width: 992px) {
    .services-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    margin: 0;
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);

    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.gallery-img:hover,
.gallery-img:focus {
    transform: scale(1.02);
    filter: brightness(1.08) contrast(1.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.gallery-link {
    display: block;
    border-radius: 10px;
}

.gallery-link:focus {
    outline: 3px solid rgba(13, 110, 253, 0.65);
    outline-offset: 4px;
}

.gallery-view {
    margin-top: 1rem;
}

.gallery-view__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 992px) {
    .gallery-img {
        height: auto;
    }
}

/* About page */
.about-page {
    background: #d8d8d8;
    border-radius: 6px;
    padding: 1.75rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.about-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    color: #000;
    letter-spacing: -0.02em;
}

.about-content p {
    max-width: 52rem;
    margin: 0 0 1.25rem 0;
    color: #000;
    line-height: 1.35;
    font-size: 1rem;
}

.about-divider {
    border: none;
    border-top: 2px solid rgba(139, 43, 43, 0.75);
    margin: 1.25rem 0 1rem 0;
}

.about-highlights__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    color: #000;
}

.about-highlights__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-highlights__cols ul {
    margin: 0;
    padding-left: 1.1rem;
}

.about-highlights__cols li {
    margin-bottom: 0.5rem;
    color: #000;
}

.about-photo {
    background: #000;
    border-radius: 3px;
    overflow: hidden;
}

.about-photo__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-title {
        font-size: 3rem;
    }
}

/* Let's Talk page */
.lets-talk-page {
    background: #d8d8d8;
    border-radius: 6px;
    padding: 1.75rem;
}

.lets-talk-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 1.25rem 0;
    color: #000;
    letter-spacing: -0.02em;
}

.lets-talk-layout {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 2rem;
    align-items: start;
}

.quote-card {
    background: #fff;
    border-radius: 2px;
    padding: 1.5rem 1.5rem 1.25rem;
}

.quote-card__title {
    color: #8b2b2b;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
}

.quote-card__intro {
    margin: 0 0 1.25rem 0;
    color: #111;
    line-height: 1.35;
    font-size: 0.95rem;
}

.quote-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.quote-field {
    margin-bottom: 1rem;
}

.quote-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #000;
}

.quote-input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    outline: none;
}

.quote-input:focus {
    border-color: #8b2b2b;
    box-shadow: 0 0 0 3px rgba(139, 43, 43, 0.18);
}

.quote-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: #8b2b2b;
    color: #fff;
    font-weight: 800;
}

.quote-submit:hover,
.quote-submit:focus {
    background: #7b2525;
}

.lets-talk-info {
    padding-left: 2rem;
    border-left: 2px solid rgba(139, 43, 43, 0.75);
}

.lets-talk-logo {
    margin-bottom: 1.25rem;
}

.lets-talk-logo__img {
    width: 100%;
    height: auto;
    max-width: 340px;
    display: block;
}

.info-section__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 900;
    color: #000;
}

.info-section__text {
    margin: 0;
    color: #000;
    line-height: 1.35;
}

.info-divider {
    border: none;
    border-top: 2px solid rgba(139, 43, 43, 0.75);
    margin: 1rem 0;
}

@media screen and (max-width: 992px) {
    .lets-talk-layout {
        grid-template-columns: 1fr;
    }

    .lets-talk-info {
        padding-left: 0;
        border-left: 0;
        border-top: 2px solid rgba(139, 43, 43, 0.75);
        padding-top: 1.25rem;
    }

    .quote-form__row {
        grid-template-columns: 1fr;
    }

    .lets-talk-title {
        font-size: 3rem;
    }
}

/* intl-tel-input integration for Let's Talk phone field */
.iti {
    width: 100%;
}

.iti__tel-input {
    width: 100%;
}

/* Make the plugin's input match the existing pill style */
.quote-field .iti__tel-input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    outline: none;
    max-width: none;
}

/* Ensure the intl-tel-input phone field matches both quote-input and sr-input styles */
.quote-field .iti__tel-input,
.sr-field .iti__tel-input {
    padding-left: 4.25rem;
}

.quote-field .iti__tel-input:focus {
    border-color: #8b2b2b;
    box-shadow: 0 0 0 3px rgba(139, 43, 43, 0.18);
}

/* Extra room on the left for the flag dropdown */
.quote-field .iti__tel-input {
    padding-left: 4.25rem;
}

.iti__country-container {
    font-size: 0.95rem;
}

/* Ensure the flag dropdown is visible/clickable on the Let's Talk phone field */
.quote-field .iti__flag-container,
.quote-field .iti__country-container {
    z-index: 2;
}

.quote-field .iti__flag-container button,
.quote-field .iti__country-container button {
    background: transparent;
    border: 0;
}

/* Keep the country list above Bootstrap/nav/etc */
.iti__dropdown-content {
    z-index: 2147483647;
}

/* Service Request page */
.service-request-page {
    max-width: 720px;
    margin: 0 auto;
}

.service-request-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    color: #8b2b2b;
}

.service-request-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 1rem 1.1rem 1.25rem;
}

.sr-intro {
    font-size: 0.82rem;
    color: #333;
    margin: 0.5rem 0 1rem;
    line-height: 1.35;
}

.sr-field {
    margin-bottom: 0.95rem;
}

.sr-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    color: #000;
}

.sr-input,
.sr-textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    outline: none;
    max-width: none;
    box-sizing: border-box;
}

.sr-textarea {
    border-radius: 16px;
    resize: vertical;
}

.sr-input:focus,
.sr-textarea:focus {
    border-color: #8b2b2b;
    box-shadow: 0 0 0 3px rgba(139, 43, 43, 0.18);
}

.sr-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.sr-grid-2--top {
    align-items: start;
}

.sr-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.sr-legend {
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    color: #000;
}

.sr-radio,
.sr-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.sr-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
}

.sr-footer {
    font-size: 0.8rem;
    color: #333;
    text-align: center;
    margin: 1rem 0 1rem;
    line-height: 1.35;
}

.sr-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: #8b2b2b;
    color: #fff;
    font-weight: 800;
}

.sr-submit:hover,
.sr-submit:focus {
    background: #7b2525;
}

@media screen and (max-width: 576px) {
    .sr-grid-2 {
        grid-template-columns: 1fr;
    }

    .sr-check-grid {
        grid-template-columns: 1fr;
    }
}

/* intl-tel-input integration for Service Request phone field */
.sr-field .iti,
.quote-form .sr-field .iti {
    width: 100%;
}

.sr-field .iti__tel-input,
.quote-form .sr-field .iti__tel-input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    outline: none;
    max-width: none;
    box-sizing: border-box;
    padding-left: 4.25rem;
}

.sr-field .iti__tel-input:focus,
.quote-form .sr-field .iti__tel-input:focus {
    border-color: #8b2b2b;
    box-shadow: 0 0 0 3px rgba(139, 43, 43, 0.18);
}

/* Let's Talk validation */
.quote-validation-summary {
    margin: 0 0 0.9rem 0;
    color: #b00020;
    font-weight: 800;
}

.quote-validation-error {
    display: block;
    margin-top: 0.25rem;
    color: #b00020;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Service Request Country/Region custom picker */
.sr-country {
    position: relative;
    width: 100%;
}

.sr-country__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: #fff;
    font-size: 0.95rem;
    text-align: left;
}

.sr-country__btn:focus {
    border-color: #8b2b2b;
    box-shadow: 0 0 0 3px rgba(139, 43, 43, 0.18);
    outline: none;
}

.sr-country__flag {
    width: 20px;
    height: 15px;
    flex: 0 0 auto;
}

.sr-country__name {
    flex: 1 1 auto;
}

.sr-country__list {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 2147483647;
}

.sr-country__search {
    width: 100%;
    max-width: none;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.65rem 0.8rem;
    outline: none;
    box-sizing: border-box;
}

.sr-country__items {
    max-height: 260px;
    overflow: auto;
}

.sr-country__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    background: transparent;
    border: 0;
    padding: 0.55rem 0.8rem;
    text-align: left;
    font-size: 0.95rem;
}

.sr-country__item:hover,
.sr-country__item:focus {
    background: rgba(139, 43, 43, 0.08);
    outline: none;
}

.sr-country__item-name {
    flex: 1 1 auto;
}
