/* =============================================
   Grayscale Theme — custom rules only
   (Bootstrap 5 is loaded separately)
   ============================================= */

html {
    scroll-padding-top: calc(4.5rem - 1px);
}

body {
    letter-spacing: 0.0625em;
    overflow-x: hidden;
}

/* ---- Navbar ---- */
#mainNav {
    min-height: 3.5rem;
    background-color: #fff;
}

#mainNav .navbar-toggler {
    font-size: 80%;
    padding: 0.75rem;
    color: #64a19d;
    border: 1px solid #64a19d;
}

#mainNav .navbar-toggler:focus {
    outline: none;
}

#mainNav .navbar-brand {
    color: #000;
    font-weight: 700;
    padding: 0.9rem 0;
}

#mainNav .navbar-nav .nav-item:hover {
    outline: none;
    background-color: transparent;
}

#mainNav .navbar-nav .nav-item:active,
#mainNav .navbar-nav .nav-item:focus {
    outline: none;
    background-color: transparent;
}

@media (min-width: 992px) {
    #mainNav {
        padding-top: 0;
        padding-bottom: 0;
        border-bottom: none;
        background-color: transparent;
        transition: background-color 0.3s ease-in-out;
    }

    #mainNav .navbar-brand {
        padding: 0.5rem 0;
        color: rgba(255, 255, 255, 0.5);
    }

    #mainNav .nav-link {
        transition: none;
        padding: 2rem 1.5rem;
        color: rgba(255, 255, 255, 0.5);
    }

    #mainNav .nav-link:hover {
        color: rgba(255, 255, 255, 0.75);
    }

    #mainNav .nav-link:active {
        color: #fff;
    }

    #mainNav.navbar-shrink {
        background-color: #fff;
    }

    #mainNav.navbar-shrink .navbar-brand {
        color: #000;
    }

    #mainNav.navbar-shrink .nav-link {
        color: #000;
        padding: 1.5rem 1.5rem 1.25rem;
        border-bottom: 0.25rem solid transparent;
    }

    #mainNav.navbar-shrink .nav-link:hover {
        color: #64a19d;
    }

    #mainNav.navbar-shrink .nav-link:active {
        color: #467370;
    }

    #mainNav.navbar-shrink .nav-link.active {
        color: #64a19d;
        outline: none;
        border-bottom: 0.25rem solid #64a19d;
    }
}

/* ---- Buttons ---- */
.btn {
    box-shadow: 0 0.1875rem 0.1875rem 0 rgba(0, 0, 0, 0.1) !important;
    padding: 1.25rem 2rem;
    font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 80%;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    border: 0;
}

/* ---- Hero / Masthead ---- */
.masthead {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 35rem;
    padding: 15rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 75%, #000 100%), url("/img/businesses.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}

.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.masthead .container {
    position: relative;
    z-index: 2;
}

.masthead .hero-title {
    color: #4a9eda;
    text-shadow:
        1px 1px 0 #2a6a9a,
        2px 2px 0 #1e5580,
        3px 3px 0 #164066,
        4px 4px 0 #0e2d4d,
        5px 5px 12px rgba(0, 0, 0, 0.6);
}

.masthead .hero-subtitle {
    color: #c89b3c;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.25);
}

@media (min-width: 992px) {
    .masthead {
        height: 100vh;
        padding: 0;
    }
}

/* ---- Hero branding / panel ---- */
.hero-branding {
    text-align: center;
}

.hero-panel {
    background: rgba(0, 0, 0, 0.45);
    padding: clamp(20px, 4vw, 40px) clamp(16px, 6vw, 60px);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    max-width: min(90vw, 700px);
    box-sizing: border-box;
}

.hero-title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 9vw, 5rem);
    font-weight: 900;
    color: #0b2f4a;
    letter-spacing: clamp(1px, 0.5vw, 4px);
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.25);
    text-align: center;
    width: 100%;
    margin: 0;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 5.5vw, 3rem);
    font-weight: 700;
    color: #c89b3c;
    letter-spacing: clamp(2px, 0.6vw, 6px);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.25);
    text-align: center;
    width: 100%;
    margin-top: 6px;
    white-space: nowrap;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

/* ---- About Section ---- */
.about-section {
    position: relative;
    background: #000;
    padding: 90px 0 60px 0;
}


.about-section h2 {
    color: #ffffff;
    letter-spacing: 0.5px;
}

.about-section p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 5rem;
}

/* ---- Section Dividers ---- */
.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.section-divider span {
    width: 90px;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(200, 155, 60, 0.8), rgba(0, 0, 0, 0));
    position: relative;
}

.section-divider span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #c89b3c;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(200, 155, 60, 0.6);
}

.section-divider-large {
    width: 140px;
    height: 1px;
    margin: 0 auto 14px auto;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(200, 155, 60, 0.9), rgba(0, 0, 0, 0));
    position: relative;
}

.section-divider-large::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #c89b3c;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(200, 155, 60, 0.6);
}

.section-header-center {
    text-align: center;
    margin-bottom: 30px;
}

.section-kicker {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
}

.section-subtitle {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.6);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
}

/* ---- Projects Section ---- */
.projects-section {
    position: relative;
    background: #f8f9fa;
    z-index: 2;
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.projects-section .featured-text {
    padding: 2rem;
}

@media (min-width: 992px) {
    .projects-section .featured-text {
        padding: 0 0 0 2rem;
        border-left: 0.5rem solid #64a19d;
    }
}

.projects-section .project-text {
    padding: 3rem;
    font-size: 90%;
}

@media (min-width: 992px) {
    .projects-section .project-text {
        padding: 5rem;
    }
}

/* ---- Vision & Mission image hover ---- */
.vision-img-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.vision-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vision-img-wrapper:hover img {
    transform: scale(1.05);
}

.vision-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem 2rem;
    transition: background 0.4s ease;
}

.vision-img-wrapper:hover .vision-img-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.vision-img-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c89b3c;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.vision-img-wrapper:hover .vision-img-label {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Business Showcase Cards ---- */
.business-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 3rem 0 0 0;
}

.business-cards-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2.8rem 0;
    background: #f8f9fa;
}

.bcd-line {
    display: block;
    width: clamp(60px, 12vw, 160px);
    height: 1px;
    background: linear-gradient(to right, rgba(200, 155, 60, 0), rgba(200, 155, 60, 0.7));
}

.bcd-line:last-child {
    background: linear-gradient(to left, rgba(200, 155, 60, 0), rgba(200, 155, 60, 0.7));
}

.bcd-diamond {
    font-size: 1rem;
    color: #c89b3c;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(200, 155, 60, 0.55));
    user-select: none;
}

.contact-divider {
    background: #000;
    padding: 2rem 0;
}

.vision-divider {
    background: transparent;
    padding: 2rem 0;
}

.businesses-divider {
    background: #f8f9fa;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.contact-divider .bcd-line {
    background: linear-gradient(to right, rgba(200, 155, 60, 0), rgba(200, 155, 60, 0.5));
}

.contact-divider .bcd-line:last-child {
    background: linear-gradient(to left, rgba(200, 155, 60, 0), rgba(200, 155, 60, 0.5));
}


.business-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

/* Background image layer — zooms on hover independently from overlay/content */
.business-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.business-card:hover .business-card-bg {
    transform: scale(1.06);
}

/* Dark overlay — lightens on hover */
.business-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    transition: background 0.5s ease;
    z-index: 1;
}

.business-card:hover .business-card-overlay {
    background: rgba(0, 0, 0, 0.38);
}

/* Content centered over image */
.business-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem 2rem;
    text-align: center;
}

/* Icon */
.business-card-icon {
    font-size: 2.8rem;
    color: #c89b3c;
    margin-bottom: 0.75rem;
    transform: translateY(8px);
    opacity: 0.7;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.business-card:hover .business-card-icon {
    transform: translateY(0);
    opacity: 1;
}

/* Gold accent line that expands on hover */
.business-card-accent {
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #c89b3c, transparent);
    margin: 0.75rem auto 1rem auto;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.08s;
}

.business-card:hover .business-card-accent {
    width: 120px;
}

/* Title */
.business-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin: 0 0 1rem 0;
    transform: translateY(12px);
    transition: transform 0.45s ease 0.05s;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.business-card:hover .business-card-title {
    transform: translateY(0);
}

/* Description — hidden until hover */
.business-card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease 0.12s, transform 0.45s ease 0.12s;
}

.business-card:hover .business-card-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Touch / mobile: always show description since no hover */
@media (hover: none) {
    .business-card-desc {
        opacity: 1;
        transform: translateY(0);
    }

    .business-card-accent {
        width: 80px;
    }

    .business-card-icon {
        opacity: 1;
        transform: translateY(0);
    }

    .business-card-title {
        transform: translateY(0);
    }
}

/* ---- Contact Form (signup) Section ---- */
.signup-section {
    padding: 10rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 75%, #000 100%), url("/img/bg-signup.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
}

/* ---- Contact Info Section ---- */
.contact-section {
    padding-top: 5rem;
}

.contact-section .card {
    border: 0;
    border-bottom: 0.25rem solid #64a19d;
}

.contact-section .card h4,
.contact-section .card .h4 {
    font-size: 0.8rem;
    font-family: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
}

.contact-section .card hr {
    opacity: 1;
    border-color: #64a19d;
    border-width: 0.25rem;
    width: 3rem;
}

/* ---- Footer ---- */
.footer {
    padding: 5rem 0;
}

/* ---- Toast notification ---- */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    max-width: 380px;
}

.toast-notification.toast-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-success {
    background: #1e7e4a;
    border-left: 4px solid #2ecc71;
}

.toast-error {
    background: #9b2335;
    border-left: 4px solid #e74c3c;
}

.toast-notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---- Language flag switcher ---- */
.nav-lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
}


.btn-flag {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-flag .fi {
    width: 26px;
    height: 19px;
    border-radius: 3px;
    display: block;
    background-size: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.btn-flag:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.btn-flag.flag-active {
    opacity: 1;
    transform: scale(1.08);
}

.btn-flag.flag-active .fi {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65), 0 2px 8px rgba(0, 0, 0, 0.3);
}

#mainNav.navbar-shrink .btn-flag.flag-active .fi {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.flag-separator {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 2px;
    flex-shrink: 0;
}

#mainNav.navbar-shrink .flag-separator {
    background: rgba(0, 0, 0, 0.2);
}

/* ---- Gold button ---- */
.btn-gold {
    background-color: #c89b3c;
    color: #fff;
    border: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold:hover {
    background-color: #a87e2e;
    color: #fff;
    box-shadow: 0 0 18px rgba(200, 155, 60, 0.5) !important;
}

.btn-gold:active {
    background-color: #8f6c25;
    color: #fff;
}

/* ---- Navbar logo ---- */
.navbar-brand img {
    height: 45px;
}

/* =============================================
   Mobile-friendly overrides
   ============================================= */
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 1rem;
        max-width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Masthead: reduce padding so panel stays on screen */
    .masthead {
        padding: 8rem 0;
    }
}
