:root {
    --s5-dark: #161616;
    --s5-dark-2: #1f1f1f;
    --s5-dark-3: #2a2a2a;
    --s5-gold: #c2a46d;
    --s5-gold-hover: #af8f56;
    --s5-ivory: #f6f1e8;
    --s5-ivory-2: #ebe3d6;
    --s5-text-light: #f5f2ec;
    --s5-text-muted: #b9b1a4;
    --s5-text-dark: #1a1a1a;
    --s5-border: rgba(194, 164, 109, 0.22);
}

/* Base */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--s5-dark);
    color: var(--s5-text-light);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.3px;
}

a {
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 90px 0;
}

.text-gold {
    color: var(--s5-gold) !important;
}

.text-muted-soft {
    color: var(--s5-text-muted) !important;
}

/* Background helpers */
.bg-s5-dark {
    background: var(--s5-dark) !important;
}

.bg-s5-dark-2 {
    background: var(--s5-dark-2) !important;
}

.bg-s5-dark-3 {
    background: var(--s5-dark-3) !important;
}

.bg-s5-ivory {
    background: var(--s5-ivory) !important;
    color: var(--s5-text-dark);
}

.bg-s5-ivory-2 {
    background: var(--s5-ivory-2) !important;
    color: var(--s5-text-dark);
}

/* Navbar */
.navbar {
    background: rgba(22, 22, 22, 0.92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--s5-text-light) !important;
    font-weight: 700;
}

.navbar-brand img {
    max-height: 54px;
    width: auto;
}

.navbar .nav-link {
    color: var(--s5-text-light) !important;
    font-weight: 500;
    margin-left: 10px;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--s5-gold) !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 1px;
    background: var(--s5-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* Hero */
.hero-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,15,15,0.35), rgba(15,15,15,0.75));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    color: var(--s5-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 18px;
}

.hero-text {
    max-width: 760px;
    color: var(--s5-text-light);
    opacity: 0.9;
    font-size: 1.08rem;
    margin: 0 auto 28px;
}

/* Buttons */
.btn-s5-primary {
    background: var(--s5-gold);
    color: #111;
    border: none;
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(194, 164, 109, 0.18);
}

.btn-s5-primary:hover {
    background: var(--s5-gold-hover);
    color: #111;
    transform: translateY(-1px);
}

.btn-s5-outline {
    border: 1px solid var(--s5-gold);
    color: var(--s5-gold);
    background: transparent;
    padding: 11px 28px;
    border-radius: 999px;
    font-weight: 600;
}

.btn-s5-outline:hover {
    background: var(--s5-gold);
    color: #111;
}

/* Section headings */
.section-label {
    color: var(--s5-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 14px;
}

.section-text {
    color: var(--s5-text-muted);
    max-width: 720px;
}

/* Cards */
.s5-card {
    background: var(--s5-dark-2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.s5-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 40px rgba(0,0,0,0.22);
}

.s5-card-light {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--s5-text-dark);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(0,0,0,0.08);
}

.s5-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.s5-card .card-body,
.s5-card-light .card-body {
    padding: 1.5rem;
}

/* Forms */
.form-control,
.form-select,
textarea {
    border-radius: 14px;
    min-height: 48px;
    box-shadow: none !important;
}

.s5-dark-form {
    background: var(--s5-dark-2);
    color: var(--s5-text-light);
    border: 1px solid rgba(255,255,255,0.08);
}

.s5-dark-form:focus {
    background: var(--s5-dark-2);
    color: var(--s5-text-light);
    border-color: var(--s5-gold);
}

.s5-dark-form::placeholder {
    color: #9b9488;
}

/* Footer */
.site-footer {
    background: #111111;
    color: var(--s5-text-light);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer a {
    color: var(--s5-text-muted);
}

.site-footer a:hover {
    color: var(--s5-gold);
}

/* Utility */
.rounded-24 {
    border-radius: 24px;
}

.border-gold-soft {
    border: 1px solid var(--s5-border);
}

.shadow-soft {
    box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

/* Light sections text fix */
.bg-s5-ivory .section-text,
.bg-s5-ivory-2 .section-text,
.bg-s5-ivory p,
.bg-s5-ivory-2 p {
    color: #5b554d;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: 78vh;
        text-align: center;
    }

    .section-padding {
        padding: 70px 0;
    }
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    min-height: 92vh;
}

.hero-slide-bg {
    min-height: 92vh;
    background-size: cover !important;
    background-position: center center !important;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,0.30), rgba(10,10,10,0.78));
}

.hero-slider .container {
    position: relative;
    z-index: 2;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 8%;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.35);
    background-size: 55%;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.45);
}

.hero-slider .carousel-indicators .active {
    background-color: var(--s5-gold);
}

/* =========================
   RESPONSIVE IMPROVEMENTS
========================= */
.container {
    padding-left: 16px;
    padding-right: 16px;
}

.section-padding {
    padding: 90px 0;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.1;
}

.hero-text {
    font-size: 1.06rem;
    max-width: 760px;
}

.section-title {
    line-height: 1.2;
}

.s5-card img,
.s5-card-light img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.navbar .navbar-brand img {
    max-height: 54px;
}

.navbar-collapse {
    transition: all 0.25s ease;
}

@media (max-width: 1199px) {
    .hero-slider,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide-bg {
        min-height: 82vh;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 72px 0;
    }

    .hero-slider,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide-bg {
        min-height: 76vh;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3.3rem);
    }

    .hero-text {
        font-size: 1rem;
        max-width: 95%;
    }

    .navbar .nav-link {
        margin-left: 0;
        padding: 12px 0;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .navbar-collapse {
        margin-top: 12px;
        background: rgba(22,22,22,0.98);
        padding: 14px 18px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.06);
    }

    .s5-card img,
    .s5-card-light img {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 58px 0;
    }

    .hero-slider,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide-bg {
        min-height: 68vh;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
        margin-bottom: 14px;
    }

    .hero-text {
        font-size: 0.98rem;
        line-height: 1.65;
        margin-bottom: 22px;
    }

    .hero-badge {
        font-size: 0.74rem;
        letter-spacing: 1.5px;
    }

    .btn-s5-primary,
    .btn-s5-outline {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }

    .section-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .section-text {
        font-size: 0.98rem;
    }

    .s5-card img,
    .s5-card-light img {
        height: 220px;
    }

    .card-body {
        padding: 1.2rem !important;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }

    iframe {
        height: 320px !important;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 0.96rem;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-slider,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide-bg {
        min-height: 62vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .navbar .navbar-brand img {
        max-height: 46px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .s5-card img,
    .s5-card-light img {
        height: 210px;
    }

    .form-control,
    .form-select,
    textarea {
        min-height: 46px;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    .site-footer {
        text-align: center;
    }
}

/* =========================
   SMART FLOATING MENU
========================= */
.floating-actions {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 9999;
}

.floating-main-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

.floating-main-btn:hover {
    transform: scale(1.05);
}

.floating-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.floating-actions.active .floating-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(22,22,22,0.96);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--s5-text-light);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    line-height: 1;
}

.floating-item i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.floating-item:hover {
    background: var(--s5-gold);
    color: #111;
}

@media (min-width: 992px) {
    .floating-actions {
        right: 24px;
        bottom: 24px;
    }
}

/* =========================
   SOCIAL ICONS
========================= */
.social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: var(--s5-text-light);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 42px;
}

.social-link i {
    line-height: 1;
}

.social-link:hover {
    background: var(--s5-gold);
    color: #111;
    border-color: var(--s5-gold);
    transform: translateY(-2px);
}

.footer-social-title {
    color: var(--s5-gold);
    margin-bottom: 14px;
}

/* =========================
   FOOTER SOCIAL FIX
========================= */
.site-footer .social-links {
    justify-content: flex-start;
}

.site-footer .social-link {
    width: 44px;
    height: 44px;
    font-size: 18px;
    flex: 0 0 44px;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 0;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .row > div {
        margin-bottom: 10px;
    }

    .site-footer .footer-social-title {
        text-align: center;
        margin-bottom: 12px;
    }

    .site-footer .social-links {
        justify-content: center !important;
        gap: 12px;
        margin-top: 6px;
    }

    .site-footer .social-link {
        width: 46px;
        height: 46px;
        font-size: 19px;
        flex: 0 0 46px;
    }

    .site-footer ul.list-unstyled {
        padding-left: 0;
        margin-bottom: 0;
    }

    .site-footer p,
    .site-footer li,
    .site-footer a,
    .site-footer h4,
    .site-footer h5 {
        text-align: center;
    }

    .floating-actions {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 575.98px) {
    .site-footer .social-links {
        gap: 14px;
    }

    .site-footer .social-link {
        width: 48px;
        height: 48px;
        font-size: 20px;
        flex: 0 0 48px;
    }

    .floating-main-btn {
        width: 56px;
        height: 56px;
        font-size: 23px;
    }

    .floating-item {
        font-size: 13px;
        padding: 8px 13px;
    }
}