/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== COLOUR PALETTE (matches CAS Management logo) ===== */
:root {
    --green-dark: #3d6f34;
    --green-mid: #4a7c3f;
    --green-light: #5a9a4a;
    --green-pale: #e8f3e5;
    --grey-dark: #1a1a2e;
    --grey-mid: #4a4a5a;
    --grey-text: #6b7280;
    --grey-light: #9ca3af;
    --grey-bg: #f7f8fa;
    --grey-border: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* ===== BASE ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: var(--grey-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p { color: var(--grey-text); line-height: 1.7; }

/* ===== SPACING ===== */
.section-gap { padding: 6rem 0; }
.section-gap-sm { padding: 4rem 0; }

/* ===== TYPOGRAPHY SCALE ===== */
.fs-small { font-size: 0.875rem; }
.fs-medium { font-size: 1rem; }
.fs-body { font-size: 1.0625rem; }
.fs-lead { font-size: 1.125rem; }
.fs-2r { font-size: 1.5rem; }
.fs-3r { font-size: 2.25rem; }
.fs-4r { font-size: 3rem; }
.fs-5r { font-size: 4rem; }
.fw-semi-bold { font-weight: 600; }
.text-grey-8 { color: var(--grey-text); font-size: 1.0625rem; line-height: 1.7; }
.text-grey-a { color: var(--grey-light); }
.text-default { color: var(--grey-dark); }
.bg-lights { background-color: var(--grey-bg); }
.nowrap { white-space: nowrap; }
.lh-lg { line-height: 1.8; }
.lh-md { line-height: 1.6; }

/* ===== NAVBAR ===== */
.navbar {
    font-family: 'Inter', sans-serif;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid var(--grey-border);
    background: white !important;
}
.navbar .nav-link {
    color: var(--grey-mid);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.navbar .nav-link:hover { color: var(--green-dark); }

#navdropdown { position: relative; display: inline-block; }
#navdropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 100;
    list-style: none;
    border-radius: var(--radius);
    border: 1px solid var(--grey-border);
    padding-top: 0.75rem;
}
#navdropdown:hover .sub-menu { display: block; }
li.menu-item { padding: 0; }
li.menu-item a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--grey-mid);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s;
}
li.menu-item a:hover { background: var(--green-pale); color: var(--green-dark); }
.navlink { text-decoration: none; color: var(--grey-mid); }

/* ===== BUTTONS ===== */
.pac-button {
    background: var(--green-dark);
    color: white;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.pac-button:hover {
    background: var(--grey-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.pac-button a { color: white !important; text-decoration: none; }

/* ===== LINKS ===== */
.pac-link-blue { transition: color 0.2s ease; }
.pac-link-blue:hover { color: var(--green-mid); }
#footlinks { text-decoration: none; transition: color 0.2s; }
#footlinks:hover { color: var(--green-light) !important; }

/* ===== HERO ===== */
.hero-section { position: relative; overflow: hidden; max-height: 700px; }
.hero-img { height: 700px; object-fit: cover; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.hero-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}
.hero-title {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-btn { padding: 1em 2.5em !important; font-size: 1rem; }

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--green-dark);
    padding: 2rem 0;
}
.stat-number {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.h-780 { max-height: 720px; overflow: hidden; }
.top-40 { top: 40%; }

/* ===== STEP ICONS ===== */
.step-icon-wrap {
    width: 72px;
    height: 72px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step-icon-wrap i { color: var(--green-dark); font-size: 1.75rem; }
/* Steps row layout */
.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.step-item {
    flex: 1;
    text-align: center;
    padding: 1rem 1.25rem;
    opacity: 0.35;
    transition: opacity 0.6s ease, transform 0.4s ease;
}
.step-item.active {
    opacity: 1;
    transform: translateY(-4px);
}
.step-item.active .step-icon-wrap {
    background: var(--green-dark);
    box-shadow: 0 6px 20px rgba(61,111,52,0.3);
}
.step-item.active .step-icon-wrap i { color: white; }
.step-item.active .step-number { color: var(--green-dark); }

.step-connector {
    width: 60px;
    min-width: 40px;
    display: flex;
    align-items: center;
    padding-top: 3.5rem;
}
.step-connector-fill {
    height: 3px;
    width: 100%;
    background: var(--grey-border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.step-connector-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--green-mid);
    border-radius: 2px;
    transition: width 0.5s ease;
}
.step-connector.filled .step-connector-fill::after {
    width: 100%;
}

.step-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--grey-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    transition: color 0.4s ease;
}
.step-title {
    font-weight: 700;
    color: var(--grey-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.step-desc {
    color: var(--grey-text);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Mobile steps */
@media (max-width: 768px) {
    .steps-row { flex-wrap: wrap; }
    .step-item { flex: 0 0 50%; }
    .step-connector { display: none; }
}

/* ===== SWIPER - INTRO ===== */
.swiper-container2 {
    width: 100%;
    aspect-ratio: 2.2;
    overflow: hidden;
}
.swiper-container2 .swiper-slide {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
}
.swiper-slide-1 { background-image: url('../images/slide2-1.jpg'); }
.swiper-slide-2 { background-image: url('../images/slide2-2.jpg'); }
.swiper-slide-3 { background-image: url('../images/slide2-3.jpg'); }

/* ===== SWIPER - PROJECTS ===== */
.swiper-container1 {
    width: 100%;
    overflow: hidden;
    padding: 0 1rem;
}
.swiper-container1 .swiper-slide {
    border-radius: var(--radius);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    aspect-ratio: 760 / 507;
}
.swiper-container1 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.swiper-container1 .swiper-slide:hover img {
    transform: scale(1.03);
}
.swiper-container1 .swiper-slide:hover {
    box-shadow: var(--shadow-lg);
}

.mask-border { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.mask {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}
.mask-border:hover .mask { background: rgba(0,0,0,0.3); }
.info { position: absolute; bottom: 0; left: 0; width: 100%; }

/* ===== VIDEO ===== */
.section-video { position: relative; }
.video_123 { width: 100%; max-width: 100%; border-radius: var(--radius); }
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
}
.modal-content { margin: 10% auto; width: 60%; max-width: 800px; }
.modal-content video { width: 100%; }
.close { color: white; font-size: 28px; font-weight: bold; cursor: pointer; }

/* ===== FOOTER ===== */
#footer_all { background-color: #1a1f2b; }
#footer_all h4 { color: var(--white); font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase; }
#footer_all .form-control {
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    color: white;
    border-color: rgba(255,255,255,0.1);
    font-size: 0.875rem;
}
#footer_all .form-control:focus {
    border-color: var(--green-mid);
    box-shadow: inset 0 0 0 1px var(--green-mid);
}
#footer_all .btn-outline-secondary {
    background: var(--green-dark);
    color: white;
    border-color: var(--green-dark);
    border-radius: 0 30px 30px 0;
    font-size: 0.875rem;
    font-weight: 600;
}
#footer_all .btn-outline-secondary:hover { background: var(--green-light); color: white; }

/* ===== SCROLL TO TOP ===== */
.scroll_to_top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    z-index: 999;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-md);
}
.scroll_to_top:hover { background: var(--grey-dark); color: white; transform: translateY(-2px); }

/* ===== NEED HELP WIDGET ===== */
.need-help-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.need-help-btn {
    display: flex;
    align-items: center;
    background: var(--green-dark);
    border-radius: 50px;
    padding: 6px 20px 6px 6px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(61,111,52,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.need-help-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(61,111,52,0.45);
}
.need-help-video {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.need-help-video video { width: 100%; height: 100%; object-fit: cover; }
.need-help-label {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-left: 10px;
    white-space: nowrap;
}

/* ===== INNER PAGES ===== */
.page-hero {
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(61,111,52,0.88), rgba(26,26,46,0.8));
}
.page-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
}
.page-hero-content h1 { letter-spacing: -0.03em; }
.page-hero-content p { opacity: 0.9; }

/* ===== SECTION HEADINGS ===== */
.section-heading {
    color: var(--green-dark);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.section-subtitle {
    color: var(--grey-text);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--grey-border);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}
.service-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--green-pale);
}
.service-icon-wrap {
    width: 72px;
    height: 72px;
    background: var(--green-pale);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all 0.3s;
}
.service-icon-wrap i { font-size: 1.75rem; color: var(--green-dark); }
.service-card:hover .service-icon-wrap { background: var(--green-dark); }
.service-card:hover .service-icon-wrap i { color: white; }
.service-card h4 {
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.service-card p {
    color: var(--grey-text);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* ===== KEY LIST ===== */
.key-list { list-style: none; padding: 0; }
.key-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--grey-mid);
    font-size: 1rem;
    line-height: 1.6;
}
.key-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--green-mid);
}

.radius1 { border-radius: var(--radius); }
.radius2 { border-radius: var(--radius); }

/* ===== CONTACT CARDS ===== */
.contact-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--green-pale);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: all 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact-card i { font-size: 1.5rem; color: var(--green-dark); margin-right: 1rem; flex-shrink: 0; }
.contact-card .label { font-size: 0.8rem; color: var(--grey-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card .value { color: var(--green-dark); font-weight: 700; font-size: 1.05rem; }
.contact-card a { color: var(--green-dark); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ===== PHONE CTA ===== */
.phone-cta {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--green-dark);
    border-radius: var(--radius);
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.25s;
}
.phone-cta:hover { background: var(--green-dark); color: white; border-color: var(--green-dark); }

/* ===== TESTIMONIALS ===== */
.testimonial-featured {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--grey-border);
}
.testimonial-quote-icon {
    width: 88px;
    height: 88px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 2px;
}
.testimonial-quote-icon i { font-size: 1.5rem; color: var(--green-dark); }
.testimonial-rating {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--green-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}
.testimonial-featured-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--grey-mid);
}
.testimonial-card-v2 {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--grey-border);
    height: 100%;
    transition: all 0.3s;
}
.testimonial-card-v2:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}
.testimonial-card-v2 p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--grey-mid);
}
.testimonial-stars {
    margin-bottom: 1rem;
}
.testimonial-stars i {
    color: #f59e0b;
    font-size: 0.875rem;
    margin-right: 2px;
}
.testimonial-author-row {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--grey-border);
}
.testimonial-author-avatar {
    width: 44px;
    height: 44px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.testimonial-author-avatar i { font-size: 1.25rem; color: var(--green-dark); }
.testimonial-author-name { font-weight: 700; font-size: 0.9375rem; color: var(--grey-dark); }
.testimonial-author-role { font-size: 0.8125rem; color: var(--grey-light); }

/* ===== GUEST LOGIN ===== */
#log_forms {
    background: white;
    width: 350px;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}
#log_forms input[type="text"],
#log_forms input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid var(--grey-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}
#log_forms input:focus { outline: none; border-color: var(--green-mid); }
#log_forms input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--green-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}
#log_forms input[type="submit"]:hover { background: var(--grey-dark); }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1279px) {
    .fs-4r { font-size: 2.5rem; }
    .fs-3r { font-size: 1.875rem; }
    .section-gap { padding: 4.5rem 0; }
    .hero-title { font-size: 3rem; }
}

/* Mobile landscape / small tablet */
@media (max-width: 991px) {
    .hero-section { max-height: 550px; }
    .hero-img { height: 550px; }
    .hero-title { font-size: 2.5rem; }
    .hero-content .col-lg-7 { max-width: 80%; }
    .section-heading { font-size: 1.75rem; }
    .section-subtitle { font-size: 1rem; }
    .section-gap { padding: 3.5rem 0; }
    .section-gap-sm { padding: 2.5rem 0; }
    .swiper-container2 { aspect-ratio: 1.6; }
}

/* Mobile */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .fs-4r { font-size: 1.75rem; }
    .fs-3r { font-size: 1.5rem; }
    .section-gap { padding: 2.5rem 0; }
    .section-gap-sm { padding: 2rem 0; }

    /* Hero */
    .hero-section { max-height: 480px; }
    .hero-img { height: 480px; }
    .hero-title { font-size: 2rem; line-height: 1.15; }
    .hero-subtitle { font-size: 0.9375rem; margin-bottom: 1.5rem; }
    .hero-btn { padding: 0.8em 1.8em !important; font-size: 0.9rem; }
    .hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%); }
    .hero-content .col-lg-7 { max-width: 100%; }

    /* Navbar */
    .navbar { padding: 0.5rem 0.75rem; }
    .navbar-brand img { width: 160px; height: auto; }

    /* Stats */
    .stats-bar { padding: 1.25rem 0; }
    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; }

    /* Steps */
    .step-icon-wrap { width: 56px; height: 56px; }
    .step-icon-wrap i { font-size: 1.25rem; }
    .step-title { font-size: 0.875rem; }
    .step-desc { font-size: 0.8125rem; }
    .step-number { font-size: 0.7rem; }

    /* Swipers */
    .swiper-container2 { aspect-ratio: 1.3; }
    .swiper-container1 .swiper-slide { aspect-ratio: 3 / 2; }

    /* Cards */
    .service-card { padding: 1.5rem 1rem; }
    .service-card h4 { font-size: 1rem; }
    .service-icon-wrap { width: 56px; height: 56px; border-radius: 12px; }
    .service-icon-wrap i { font-size: 1.35rem; }

    /* Inner pages */
    .page-hero { min-height: 300px; }
    .page-hero-content { padding: 2rem 1rem; }
    .page-hero-content h1 { font-size: 1.5rem; }
    .page-hero-content p { font-size: 0.9375rem; }

    /* Testimonials */
    .testimonial-featured { padding: 1.5rem; }
    .testimonial-featured-text { font-size: 1rem; }
    .testimonial-quote-icon { width: 56px; height: 56px; }
    .testimonial-quote-icon i { font-size: 1.75rem; }

    /* Contact */
    .contact-card { padding: 1rem; }
    .contact-card .value { font-size: 0.9375rem; }

    /* Footer */
    #footer_all .row > div { margin-bottom: 2rem; }

    /* Key list */
    .key-list li { font-size: 0.9375rem; padding-left: 24px; }

    /* Buttons */
    .pac-button { font-size: 0.9rem; }
    .phone-cta { font-size: 0.875rem; padding: 10px 18px; }

    /* Need help widget */
    .need-help-btn { padding: 4px 14px 4px 4px; }
    .need-help-video { width: 36px; height: 36px; }
    .need-help-label { font-size: 0.8rem; }

    /* Scroll to top */
    .scroll_to_top { width: 40px; height: 40px; bottom: 80px; right: 16px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-section { max-height: 400px; }
    .hero-img { height: 400px; }
    .hero-title { font-size: 1.65rem; }
    .hero-subtitle { font-size: 0.875rem; }
    .section-heading { font-size: 1.4rem; }
    .stat-number { font-size: 1.25rem; }
    .stats-bar .col-4 { padding: 0 0.5rem; }
    .testimonial-card-v2 { padding: 1.25rem; }
}
