/* =========================================================
   RGYCSM FRONT WEBSITE - COMPLETE STYLE
   Header + Navigation + Multi-level Dropdown + Hero Slider
   + Quick Highlights
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #172b3d;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================
   HEADER
   ========================= */
.site-header {
    width: 100%;
    background: #075da9;
    color: #fff;
}

.header-inner {
    width: min(1060px, calc(100% - 30px));
    min-height: 182px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.logo-placeholder {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    flex: 0 0 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #075da9;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(255,255,255,.32);
}

.brand-text {
    min-width: 0;
}

.brand-title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .2px;
}

.header-right {
    min-width: 175px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

.contact-item .icon {
    font-size: 14px;
}

.login-link {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.login-link:hover {
    color: #ffcf4d;
}

.franchise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 4px;
    background: #ffbd19;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.franchise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* =========================
   NAVIGATION
   ========================= */
.main-nav {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.nav-inner {
    width: min(1060px, calc(100% - 30px));
    min-height: 42px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-inner > a,
.nav-link {
    position: relative;
    display: block;
    padding: 14px 8px 12px;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-inner > a:hover,
.nav-link:hover,
.nav-inner > a.active {
    color: #0759a8;
}

.nav-inner > a.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 2px;
    background: #0759a8;
}

.nav-dropdown {
    position: relative;
    flex-shrink: 0;
}

.arrow {
    margin-left: 3px;
    font-size: 12px;
}

/* First dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 195px;
    margin: 0;
    padding: 0;
    background: #fff;
    border-top: 3px solid #0759a8;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 5000;
}

.nav-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu > a,
.dropdown-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 41px;
    padding: 10px 15px;
    color: #222;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    white-space: nowrap;
}

.dropdown-menu > a:hover,
.dropdown-submenu > a:hover {
    background: #0759a8;
    color: #fff;
}

/* Second dropdown */
.dropdown-submenu {
    position: relative;
}

.right-arrow {
    margin-left: 25px;
    font-size: 18px;
    line-height: 1;
}

.sub-dropdown-menu {
    position: absolute;
    top: -3px;
    left: 100%;
    min-width: 175px;
    padding: 0;
    background: #fff;
    border-top: 3px solid #0759a8;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 6000;
}

.dropdown-submenu:hover > .sub-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.sub-dropdown-menu a {
    display: block;
    width: 100%;
    padding: 10px 15px;
    color: #222;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    white-space: nowrap;
}

.sub-dropdown-menu a:hover {
    background: #0759a8;
    color: #fff;
}

/* =========================
   HERO SLIDER
   ========================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: min(610px, calc(100vh - 224px));
    min-height: 480px;
    overflow: hidden;
    background: #092d55;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 1s ease, transform 6.5s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 7s cubic-bezier(.2,.7,.2,1);
}

.slide.active img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,20,43,.86) 0%, rgba(3,20,43,.58) 38%, rgba(3,20,43,.12) 78%),
        linear-gradient(0deg, rgba(0,0,0,.35), transparent 45%);
}

.slide-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: max(5%, calc((100% - 1060px) / 2));
    width: min(650px, 72%);
    color: #fff;
    transform: translateY(-50%);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding-left: 13px;
    border-left: 3px solid #ffbd19;
    color: #ffcf4d;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.slide-content h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 22px rgba(0,0,0,.3);
}

.slide-content p {
    max-width: 600px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.93);
    font-size: 19px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons a {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 5px;
    background: #ffbd19;
    color: #fff;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hero-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.22);
}

.hero-buttons a.outline {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.75);
    backdrop-filter: blur(4px);
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .25s ease, transform .25s ease;
}

.slider-arrow:hover {
    background: rgba(255,189,25,.9);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* Progress */
.slider-progress {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 6;
    width: min(280px, 45%);
    height: 3px;
    overflow: hidden;
    background: rgba(255,255,255,.3);
    transform: translateX(-50%);
}

.slider-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #ffbd19;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

.slide-counter {
    position: absolute;
    right: 34px;
    bottom: 25px;
    z-index: 6;
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
}

.slide-counter strong {
    color: #ffbd19;
    font-size: 23px;
}

/* =========================
   QUICK HIGHLIGHTS
   ========================= */
.quick-highlights {
    position: relative;
    padding: 90px 20px 95px;
    overflow: hidden;
    background: #f7faff;
}

.quick-highlights::before {
    content: "";
    position: absolute;
    top: -180px;
    left: -300px;
    width: 480px;
    height: 480px;
    border: 80px solid rgba(7,89,168,.035);
    border-radius: 50%;
}

.highlights-inner {
    max-width: 1060px;
    margin: 0 auto;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.mini-label {
    color: #0759a8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.section-heading h2 {
    margin: 12px 0 13px;
    color: #0a2440;
    font-size: clamp(31px,4vw,45px);
    line-height: 1.12;
}

.section-heading h2 span {
    color: #0759a8;
}

.section-heading p {
    margin: 0;
    color: #66788a;
    font-size: 16px;
    line-height: 1.7;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 17px;
}

.highlight-card {
    position: relative;
    min-height: 285px;
    padding: 28px 23px 25px;
    overflow: hidden;
    border: 1px solid #e6edf5;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(16,65,105,.055);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.highlight-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: #0759a8;
    opacity: .045;
    transition: transform .5s ease;
}

.highlight-card:hover {
    border-color: rgba(7,89,168,.18);
    box-shadow: 0 18px 42px rgba(16,65,105,.13);
    transform: translateY(-9px);
}

.highlight-card:hover::before {
    transform: scale(1.65);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 23px;
    border-radius: 12px;
    background: #eaf4ff;
    color: #0759a8;
    transition: transform .35s ease, background .35s ease;
}

.highlight-card:hover .card-icon {
    background: #0759a8;
    color: #fff;
    transform: rotate(-4deg) scale(1.08);
}

.card-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-number {
    color: #9aabba;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.highlight-card h3 {
    margin: 7px 0 10px;
    color: #0a2440;
    font-size: 19px;
    line-height: 1.25;
}

.highlight-card p {
    margin: 0;
    color: #718294;
    font-size: 13.5px;
    line-height: 1.65;
}

.card-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: #0759a8;
    font-size: 21px;
    opacity: .3;
    transition: opacity .3s ease, transform .3s ease;
}

.highlight-card:hover .card-arrow {
    opacity: 1;
    transform: translate(3px,-3px);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--delay,0s);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.next-section-placeholder {
    min-height: 220px;
    padding: 70px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.next-section-placeholder span {
    color: #0759a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.next-section-placeholder h2 {
    margin-top: 10px;
    color: #0a2440;
    font-size: 32px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:1050px) {
    .header-inner,
    .nav-inner {
        width: calc(100% - 30px);
    }

    .brand-title {
        font-size: 20px;
    }

    .nav-inner {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 4px;
        scrollbar-width: none;
    }

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

    .nav-dropdown {
        flex-shrink: 0;
    }
}

@media (max-width:800px) {
    .header-inner {
        min-height: 150px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 18px 0;
    }

    .header-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .hero-slider {
        height: 500px;
        min-height: 0;
    }

    .slide-content {
        left: 7%;
        width: 78%;
    }

    .slide-content h1 {
        font-size: 40px;
    }

    .slide-content p {
        font-size: 16px;
    }

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

@media (max-width:520px) {
    .header-inner {
        width: calc(100% - 22px);
    }

    .brand {
        gap: 12px;
    }

    .brand-title {
        font-size: 16px;
    }

    .logo-placeholder {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .contact-item {
        font-size: 11px;
    }

    .hero-slider {
        height: 520px;
    }

    .slide-content {
        top: 52%;
        left: 8%;
        width: 82%;
    }

    .slide-content h1 {
        font-size: 33px;
        letter-spacing: -.5px;
    }

    .slide-content p {
        font-size: 15px;
        line-height: 1.5;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 1.6px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }

    .slider-progress {
        bottom: 20px;
        width: 45%;
    }

    .slide-counter {
        right: 15px;
        bottom: 15px;
    }

    .quick-highlights {
        padding: 65px 16px 70px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .highlight-card {
        min-height: 220px;
    }
}
