/* HERO SECTION */
.hero {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 80px 0 70px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.hero-subtitle {
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 450px;
}

.hero-actions{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-tagline {
    opacity: 0.8;
    margin-top: 10px;
}

.about-actions .btn-primary,
.about-actions .btn-outline{
    width: auto;
}

.hero-actions .btn-primary{
    background:#caa12a;
    color:#04132a;
    border: none;
    padding: 14px 16px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 16px;
    cursor:pointer;
    transition: transform .15s ease, filter .15s ease;
}
.hero-actions .btn-primary:hover{ filter: brightness(1.2); }
.hero-actions .btn-primary:active{ transform: scale(0.98); }

.hero-actions .btn-outline{
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration:none;
    color:#fff;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}
.hero-actions .btn-outline:hover{
    border-color: rgba(202,161,42,.55);
    background: rgba(202,161,42,.12);
}

/* HERO CARD */
.hero-card {
    background-color: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 34px 42px;               /* bigger inside space */
    border-radius: 20px;
    backdrop-filter: blur(10px);

    width: 520px;                     /* make box wider */
    max-width: 100%;

    color: #E8EDF5;                   /* more readable text on dark bg */
    font-size: 17px;                  /* larger base font */
    line-height: 1.55;                /* cleaner spacing */
}

.hero-list {
    margin-top: 18px;
    padding-left: 22px;
}

.hero-list li {
    margin-bottom: 10px;
    font-size: 16px;                  /* bigger */
    color: #F1F5FB;                    /* brighter */
}

.card-pill {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #D4AF37;   /* soft gold */
    margin-bottom: 6px;
}

/* Change background of the services block */
.section.light {
    background-color: #F2F4F7;   /* soft light gray */
}

/* Ensure cards stay white */
.section.light .card {
    background: #ffffff;
}

/* WHY CHOOSE US — NEW DESIGN */
.section.why {
    background-color: var(--blue-dark);
    padding: 80px 0;
}

/* Title remains white */
.section.why .section-title {
    color: #FFFFFF;
}

/* Subtitle becomes soft gold */
.section.why .section-sub {
    color: #D4AF37;
    font-weight: 400;
    opacity: 0.95;
}

/* Cards (blurred blue style) */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.why-card {
    background-color: rgba(255,255,255,0.08);      /* transparent white */
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 26px 24px;
    color: #FFFFFF;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Hover effect */
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 55px rgba(0,0,0,0.25);
}

/* Headings inside cards → GOLD */
.why-card h3 {
    color: #D4AF37;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Text inside cards → white */
.why-card p {
    color: #F1F5FB;
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.95;
}

.section.why .section-title {
    color: #ffffff;
}

.section.why .section-sub {
    color: rgba(255,255,255,0.85);
}

/* PORTFOLIO / BRANDS BY CATEGORY */

.section.brands {
    background-color: #F2F4F7;
    padding: 70px 0 80px;
}

.brand-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 26px;
}

.brand-group {
    padding: 18px 20px 20px;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.brand-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.brand-group-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0A1633;
}

.brand-group-meta {
    font-size: 13px;
    color: #6B7280;
}

.brand-group-meta.empty {
    font-style: italic;
}

/* row of logos */
.brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.brand-badge {
    width: 120px;
    height: 70px;
    border-radius: 14px;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.brand-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-badge:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
}

/* CTA SECTION – LET'S WORK TOGETHER */

.section.cta {
    background: linear-gradient(120deg, #07142e, #0a1b3d, #07142e);
    background-size: 200% 200%;
    padding: 70px 0;
    color: #ffffff;
    animation: ctaGradient 16s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* soft glowing circle in background */
.section.cta::before {
    content: "";
    position: absolute;
    inset: auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(212,175,55,0.35), transparent 60%);
    filter: blur(4px);
    right: -80px;
    bottom: -200px;
    pointer-events: none;
}

.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-text {
    max-width: 640px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    position: relative;
}

.cta-sub {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* re-use your existing button style, but adjust a bit here if needed */


/* === GLOBAL GOLD ANIMATED UNDERLINE FOR TITLES === */
.title-underline {
    position: relative;
    display: inline-block; /* keeps underline tight to the text */
}

.title-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;                 /* distance below text */
    height: 3px;
    width: 110px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d4af37, #ffe08a);
    transform-origin: left;
    animation: titleUnderline 2.4s ease-in-out infinite;
}

/* Slightly different size for small titles / pills */
.card-pill.title-underline::after {
    bottom: -6px;
    height: 2px;
    width: 60px;
}

.hero-title.title-underline::after {
    width: 140px;
}

.brand-group-title.title-underline::after {
    bottom: -6px;
    height: 2px;
    width: 80px;
}

@keyframes ctaGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation for underline */
@keyframes titleUnderline {
    0%   { transform: scaleX(0); opacity: 0; }
    25%  { transform: scaleX(1); opacity: 1; }
    70%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

/* === RESPONSIVE LAYOUTS (TABLET + MOBILE) === */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
    .hero {
        padding: 70px 0 60px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-card {
        width: 100%;
    }

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

/* Tablets + large phones (portrait) */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    /* Services grid: 1 column on small screens */
    .grid-3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .brand-group {
        padding: 16px 14px 18px;
    }

    .brand-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .section.cta {
        padding: 60px 0 70px;
        text-align: center;
    }

    .cta-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
    }

    .cta-text {
        max-width: 90%;
        margin: 0 auto;
    }

    .cta-title {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .cta-sub {
        font-size: 15px;
        line-height: 1.55;
        opacity: 0.95;
        margin-top: 10px;
    }

    /* Button becomes full width */
    .cta-btn {
        width: 90%;
        max-width: 360px;
        padding: 14px 0;
        font-size: 16px;
        border-radius: 12px;
        text-align: center;
    }

    .hero-actions{
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions{
        gap: 10px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline{
        width: 100%;
        justify-content: center;
    }
}

/* Small smartphones */
@media (max-width: 480px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-card {
        padding: 22px 18px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-sub {
        font-size: 14px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-sub {
        font-size: 14px;
    }

    .cta-btn {
        width: 100%;
        max-width: none;
        padding: 15px 0;
        font-size: 15px;
    }
}

/* ===========================
   HOME — SERVICES PREVIEW CARDS (WHITE + GOLD, PREMIUM)
   =========================== */

/* Make card able to host overlay badge */
.section.light .card{
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.10);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* soft premium sheen */
.section.light .card::before{
    content:"";
    position:absolute;
    inset:-1px;
    pointer-events:none;
    background:
            radial-gradient(520px 240px at 18% 10%, rgba(212,175,55,0.20), transparent 60%),
            radial-gradient(520px 240px at 80% 65%, rgba(15,23,42,0.06), transparent 62%),
            linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.0));
    opacity: .85;
}

/* gold glow layer (used on hover + touch) */
.section.light .card::after{
    content:"";
    position:absolute;
    inset:-40px;
    pointer-events:none;
    background:
            radial-gradient(420px 220px at 30% 20%, rgba(212,175,55,0.28), transparent 60%),
            radial-gradient(420px 240px at 70% 70%, rgba(212,175,55,0.18), transparent 62%);
    opacity: 0;
    transition: opacity .22s ease;
}

/* Desktop hover glow */
@media (hover:hover){
    .section.light .card:hover{
        transform: translateY(-5px);
        border-color: rgba(212,175,55,0.28);
        box-shadow: 0 26px 60px rgba(2, 6, 23, 0.14);
    }
    .section.light .card:hover::after{
        opacity: 1;
    }
}

/* Mobile “touch” glow: shows while pressing OR when link inside is focused */
@media (hover:none){
    .section.light .card:active{
        transform: translateY(-2px);
        border-color: rgba(212,175,55,0.30);
        box-shadow: 0 26px 60px rgba(2, 6, 23, 0.14);
    }
    .section.light .card:active::after{
        opacity: 1;
    }
    .section.light .card:focus-within::after{
        opacity: 1;
    }
}

/* Put the pill ON TOP of the image area */
.section.light .card .card-pill{
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;

    background: rgba(212,175,55,0.14);
    border: 1px solid rgba(212,175,55,0.35);
    color: #B88900;
    backdrop-filter: blur(10px);

    padding: 7px 12px;
    border-radius: 999px;
    letter-spacing: 0.14em;
    font-weight: 800;
    text-transform: uppercase;
}

/* Big image area (like your Services page but on white cards) */
.section.light .card .card-media{
    margin: 10px 0 14px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15,23,42,0.06), rgba(15,23,42,0.02));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.10);
    aspect-ratio: 16 / 10;
}

.section.light .card .card-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Keep your text as-is, just make spacing feel “premium” */
.section.light .card .card-title{
    margin-top: 8px;
}

.section.light .card .card-link{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(212,175,55,0.30);
    background: rgba(212,175,55,0.08);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

@media (hover:hover){
    .section.light .card .card-link:hover{
        transform: translateY(-1px);
        background: rgba(212,175,55,0.12);
        border-color: rgba(212,175,55,0.42);
    }
}

/* nicer tap feedback on mobile */
.section.light .card .card-link{
    -webkit-tap-highlight-color: transparent;
}

/* Make card a stacking context */
.section.light .card{
    position: relative;
    overflow: hidden;
    isolation: isolate;          /* important: keeps z-index clean */
}

/* Put effects BEHIND everything */
.section.light .card::before,
.section.light .card::after{
    z-index: 0;                  /* behind */
}

/* Lift real content above effects */
.section.light .card > *{
    position: relative;
    z-index: 2;
}

/* Ensure image block is above too */
.section.light .card .card-media{
    position: relative;
    z-index: 3;
}

/* ===========================
   FIX: Mobile service card animations
   =========================== */

@media (max-width: 768px) {
    /* Make card-media taller on mobile so animations fit properly */
    .section.light .card .card-media {
        aspect-ratio: 4 / 3;  /* Taller ratio for mobile */
        min-height: 280px;    /* Ensure minimum height */
    }

    /* Adjust lottie-player inside to fill properly */
    .section.light .card .card-media lottie-player {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    /* Even taller on small phones */
    .section.light .card .card-media {
        aspect-ratio: 1 / 1;  /* Square on very small screens */
        min-height: 260px;
    }
}

/* Small smartphones */
@media (max-width: 480px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-card {
        padding: 22px 18px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-sub {
        font-size: 14px;
    }

    .cta-btn {
        width: 100%;
        max-width: none;
        padding: 15px 0;
        font-size: 15px;
    }

    /* ADD THIS: Center button text on mobile */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

/* Tablets + large phones (portrait) */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;  /* Stack vertically */
        align-items: stretch;    /* Full width */
        gap: 10px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        text-align: center;      /* Center text */
        justify-content: center; /* Center content */
        display: flex;           /* Make it flexbox */
        align-items: center;     /* Vertical center */
    }

    /* Services grid: 1 column on small screens */
    .grid-3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .brand-group {
        padding: 16px 14px 18px;
    }

    .brand-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .section.cta {
        padding: 60px 0 70px;
        text-align: center;
    }

    .cta-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
    }

    .cta-text {
        max-width: 90%;
        margin: 0 auto;
    }

    .cta-title {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .cta-sub {
        font-size: 15px;
        line-height: 1.55;
        opacity: 0.95;
        margin-top: 10px;
    }

    /* Button becomes full width */
    .cta-btn {
        width: 90%;
        max-width: 360px;
        padding: 14px 0;
        font-size: 16px;
        border-radius: 12px;
        text-align: center;
    }
}
