/* ==========================================================================
   Commonwealth of Dominica e-Services Portal
   Styling matched to eservices.gov.dm
   ========================================================================== */

:root {
    --orange: #E8721C;
    --orange-hover: #d4650f;
    --green: #2E7D32;
    --green-dark: #263c1c;
    --green-hover: #256428;
    --sage: #d7e0cf;
    --sage-light: #e6ece0;
    --dark: #32373c;
    --text: #666666;
    --text-dark: #333333;
    --white: #ffffff;
    --black: #000000;
    --border: #dee2e6;
    --link: #0077cc;
    --footer-bg: #1f2f1b;
    --footer-text: #cbd6c6;
}

/* Base */
html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    margin: 0;
    padding: 0;
    background: var(--white);
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--white);
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coat-of-arms {
    height: 40px;
    width: auto;
}

.header-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-subtitle {
    font-size: 0.7rem;
    color: #8a8a8a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-title-main {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
}

.header-link {
    color: #6f6f6f;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.header-link:hover {
    color: var(--orange);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gtranslate_wrapper {
    display: inline-flex;
    align-items: center;
}

.btn-topbar {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.btn-signup {
    background: var(--green);
    color: var(--white);
}

.btn-signup:hover {
    background: var(--green-hover);
    color: var(--white);
    text-decoration: none;
}

.btn-login {
    background: var(--orange);
    color: var(--white);
}

.btn-login:hover {
    background: var(--orange-hover);
    color: var(--white);
    text-decoration: none;
}

.header-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel {
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 970px;
    object-fit: cover;
    display: block;
}

.carousel-indicators {
    bottom: 18px;
}

.carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

.carousel-indicators .active {
    background-color: var(--orange);
}

.hero-overlay {
    position: absolute;
    left: 2rem;
    top: 45%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-overlay-inner {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.4rem 1.9rem;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-left: 6px solid var(--orange);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-pill-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: lowercase;
}

.hero-text h1 {
    font-size: 3.1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0;
    color: #777777;
}

.hero-e {
    color: var(--orange);
}

.floating-tools {
    position: fixed;
    left: 1rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--orange);
    padding: 0.5rem 0.4rem;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tool-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--orange);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

.gtranslate_wrapper select {
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    color: #555555;
    background: var(--white);
}

/* ==========================================================================
   Welcome Section
   ========================================================================== */

.welcome-section {
    padding: 3rem 0 2rem;
    background: var(--white);
    text-align: center;
}

.welcome-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    max-width: 900px;
    margin: 0 auto 0.75rem;
}

/* ==========================================================================
   Popular Services
   ========================================================================== */

.popular-services {
    padding: 2.5rem 0 3rem;
    background: var(--sage);
}

.badge-popular {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 0.6rem 2.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 1.25rem 1rem 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.service-card-img-wrap {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 1px solid #e5e5e5;
}

.service-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h5 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    min-height: 2.4em;
}

.btn-apply {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 0.4rem 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-apply:hover {
    background: var(--orange-hover);
    color: var(--white);
    text-decoration: none;
}

.btn-view-all {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 0.5rem 2.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-view-all:hover {
    background: var(--green-hover);
    color: var(--white);
    text-decoration: none;
}

/* ==========================================================================
   What's New
   ========================================================================== */

.whats-new {
    padding: 2.5rem 0 3rem;
    background: var(--sage-light);
}

.whats-new .container {
    max-width: 100%;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.whats-new-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr 1.6fr;
    gap: 0;
}

.whats-new-intro {
    background: var(--green-dark);
    color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whats-new-intro h2 {
    color: var(--white);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.whats-new-tour {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    opacity: 0.85;
}

.whats-new-tour:hover {
    opacity: 1;
    color: var(--white);
    text-decoration: none;
}

.whats-new-card {
    padding: 2rem 1.6rem;
    border-radius: 0;
    color: var(--white);
    background-size: cover;
    background-position: center;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.12);
}

.whats-new-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.whats-new-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.whats-new-card-orange {
    background-image: linear-gradient(rgba(216, 115, 33, 0.9), rgba(216, 115, 33, 0.9)), url("../images/news/tradestream.webp");
}

.whats-new-card-light {
    color: #2f3b2c;
    background-image: linear-gradient(rgba(224, 232, 218, 0.92), rgba(224, 232, 218, 0.92)), url("../images/news/social-partnership.webp");
}

.whats-new-card-light .btn-read-more {
    color: var(--orange);
}

.btn-read-more {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-read-more:hover {
    color: #fbe2cf;
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 0;
}

.site-footer a {
    color: var(--footer-text);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-main {
    padding: 1.6rem 0;
}

.footer-inner {
    max-width: 1200px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.footer-col {
    padding: 0 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-col:last-child {
    border-right: none;
}

.footer-col h6 {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-payment-icons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.payment-icon {
    height: 34px;
    width: auto;
    margin-right: 0;
    opacity: 0.85;
}

.footer-brand {
    height: 46px;
    width: auto;
    /*filter: brightness(0) invert(1);*/
    opacity: 0.7;
}

.footer-bottom {
    background: #2b3a0c;
    border-top: none;
    padding: 0.9rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ==========================================================================
   Forms — general focus
   ========================================================================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .whats-new-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlay-inner {
        padding: 1rem 1.2rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .footer-main {
        padding: 1.5rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        padding: 1rem 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-col:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 250px;
    }

    .hero-overlay {
        left: 1rem;
        bottom: 1rem;
    }

    .floating-tools {
        display: none;
    }

    .btn-topbar {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }

    .footer-brand-col {
        text-align: left !important;
        margin-top: 1rem;
    }
}
