/* =========================================================
   UK MARRIAGE BUREAU - PREMIUM ULTRA EDITION
   AS PER REQUIRE SLIDER LAYOUT
   Feature Card: 40% | Slider: 60% | Equal Height | Gap
   Premium 3D Effects & Outclass Animations
   ALL PACKAGE CARDS - UNIFIED NAVY/GOLD THEME
   SERVICES BACK SIDE - PREMIUM SETTINGS
========================================================= */

/* =========================================================
   CSS VARIABLES
========================================================= */

:root {
    --navy: #1a2c3e;
    --navy-light: #2c3e50;
    --gold: #c8a951;
    --gold-light: #d4af37;
    --gold-dark: #b8942e;
    --cream: #fefdf8;
    --gray-light: #f8f9fa;
    --gray-mid: #e9ecef;
    --text-dark: #2d3436;
    --text-muted: #6c7a89;
    --white: #ffffff;
    --emerald: #1a3c34;
    --teal: #1d6d70;
    --teal-dark: #0e4e50;
    --success-green: #10b981;
    --whatsapp: #25D366;
    
    --package-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition-default: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --ease-premium: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', sans-serif;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* =========================================================
   REUSABLE WRAPPER
========================================================= */

.home-section-wrap, .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================
   SECTION HEADERS
========================================================= */

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s var(--ease-premium) forwards;
}

.section-title-wrapper {
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--navy);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--navy), var(--gold-dark));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    animation: widthExpand 0.8s var(--ease-premium) 0.3s forwards;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.title-underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 3s infinite;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================================
   ANIMATION KEYFRAMES
========================================================= */

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes widthExpand {
    to { width: 100%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(200, 169, 81, 0.2); }
    50% { box-shadow: 0 0 18px rgba(200, 169, 81, 0.5); }
}

@keyframes subtleRotate {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {
    background: linear-gradient(135deg, #10767d 0%, #0a5a60 100%);
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 22% 76%;
    gap: 2%;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* LEFT COLUMN */
.hero-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-content-card {
    background: linear-gradient(135deg, #ffffff 0%, #FDFAF2 100%);
    border-radius: 24px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(200, 169, 81, 0.25);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-slow);
    overflow: hidden;
    animation: float 5s ease-in-out infinite;
}

.hero-content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.25);
}

.hero-featured-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 15px 15px 0 15px;
}

.hero-featured-image img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s var(--ease-premium);
}

.hero-content-card:hover .hero-featured-image img {
    transform: scale(1.03);
}

.hero-card-content {
    padding: 16px 20px 24px 20px;
    text-align: center;
    margin-top: auto;
}

.hero-text-row {
    margin-bottom: 18px;
    padding: 8px 0;
    border-top: 1px solid rgba(200, 169, 81, 0.25);
    border-bottom: 1px solid rgba(200, 169, 81, 0.25);
}

.hero-text-row span {
    font-size: 11px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(200, 169, 81, 0.15);
    padding: 5px 10px;
    border-radius: 50px;
    display: inline-block;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: var(--navy);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    transition: all var(--transition-default);
    width: 100%;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(200, 169, 81, 0.3);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s var(--ease-premium);
    z-index: -1;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 81, 0.45);
}

.hero-btn-primary:hover i {
    transform: translateX(5px);
}

/* RIGHT COLUMN - SLIDER */
.hero-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-slider-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: auto;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
    background: var(--navy);
}

.hero-slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s var(--ease-premium);
}

.hero-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 5s ease;
}

.hero-slide.active-slide img {
    transform: scale(1.08);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-default);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 15;
    color: var(--navy);
    font-size: 15px;
}

.slider-nav:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 15;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-default);
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 4px;
}

/* SEARCH BAR */
.hero-search-center {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.hero-search-center::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
}

.hero-search-wrapper {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.hero-search-box {
    background: var(--white);
    border-radius: 60px;
    padding: 6px 6px 6px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-default);
    border: 1px solid rgba(200, 169, 81, 0.2);
}

.hero-search-box:focus-within {
    box-shadow: 0 25px 45px -18px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 12px 0;
    font-family: inherit;
    background: transparent;
    color: var(--text-dark);
}

.hero-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.hero-search-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-default);
    font-family: inherit;
    color: var(--navy);
    font-size: 14px;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: scale(1.02);
}

/* =========================================================
   PREMIUM PACKAGES SECTION - COMPLETELY FIXED
   ========================================================= */

.packages {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    align-items: stretch;
}

/* ALL PACKAGE CARDS - NO BORDER, ONLY ROUNDED CORNERS */
.package-card {
    border-radius: 28px;
    text-align: center;
    position: relative;
    transition: all var(--transition-slow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(145deg, #1a2c3e 0%, #152536 100%);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Card Overlay - Lower Z-Index */
.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(200, 169, 81, 0.1), transparent);
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

/* Card Inner Content - Higher than overlay */
.package-card-inner {
    padding: 35px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.package-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 35px 50px -20px rgba(0, 0, 0, 0.4);
}

/* Center Card Scale */
.package-card:nth-child(2) {
    transform: scale(1.02);
}

.package-card:nth-child(2):hover {
    transform: translateY(-8px) scale(1.03);
}

/* POPULAR RIBBON - ONLY SHOW ON CENTER CARD (2nd CARD) WITH HIGHEST Z-INDEX */
.package-card .popular-ribbon {
    display: none;
}

.package-card:nth-child(2) .popular-ribbon {
    position: absolute;
    top: 18px;
    right: -28px;
    width: 140px;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    display: block !important;
}

.popular-ribbon span {
    position: relative;
    display: block;
    width: 180px;
    padding: 8px 0;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a2c3e;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transform: rotate(45deg) translateX(15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.popular-ribbon span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite;
}

.package-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #c8a951, #b8942e);
    color: #1a2c3e;
}

.package-card h3 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #c8a951;
}

.package-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #ffffff;
}

.package-price {
    margin-bottom: 28px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.price-amount {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.price-label {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
    color: var(--gold-light);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease;
    color: #fafaf7;
}

.feature-item:last-child {
    border-bottom: none;
}

.package-card:hover .feature-item {
    transform: translateX(2px);
}

.feature-yes {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    color: #10b981;
}

.feature-no {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    color: #ef4444;
}

.btn-package {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-default);
    width: 100%;
    font-size: 14px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c8a951, #b8942e);
    color: #1a2c3e;
}

.btn-package::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-package:hover::before {
    width: 250px;
    height: 250px;
}

.btn-package:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.btn-packages-wrapper {
    margin-top: 55px;
    text-align: center;
}

.btn-packages {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a2c3e, #2c3e50);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-default);
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */

.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: 24px;
    min-height: 380px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.12);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.2);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s var(--ease-premium);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-front,
.service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 32px 24px;
}

.service-front {
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.service-back {
    background: linear-gradient(145deg, #0e4e50 0%, #0a3a3c 100%);
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.05), transparent);
    pointer-events: none;
}

.service-back::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.1), transparent);
    pointer-events: none;
}

.service-back-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.service-back-content h3 {
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--gold);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.service-back-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
}

.service-back-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    text-align: left;
}

.service-back-content li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.service-back-content li i {
    color: var(--gold);
    font-size: 15px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 169, 81, 0.12);
    border-radius: 50%;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    padding: 11px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all var(--transition-default);
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 140px;
}

.btn-service::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-service:hover::before {
    width: 200px;
    height: 200px;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 169, 81, 0.3);
}

.btn-service:hover i {
    transform: translateX(4px);
}

.service-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.04);
}

.service-front h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.service-front p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
}

.service-arrow {
    margin-top: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(6px);
}

/* =========================================================
   GLOBAL BRANCHES SECTION
   ========================================================= */

.global-branches {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 45px;
}

.branch-card {
    background: linear-gradient(145deg, var(--teal) 0%, #166f70 100%);
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition-slow);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.branch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.branch-card:hover::before {
    opacity: 1;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.2);
}

.branch-icon {
    width: 60px;
    margin: 0 auto 18px;
}

.branch-icon img {
    width: 56px;
    height: 38px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-default);
}

.branch-card:hover .branch-icon img {
    transform: translateY(-3px);
}

.branch-title {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

.branch-location {
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.branch-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.5;
}

.btn-branches-wrapper {
    text-align: center;
}

.btn-branches {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--navy);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-default);
}

.btn-branches:hover {
    transform: translateY(-2px);
    background: var(--gold);
    color: var(--navy);
}

/* =========================================================
   SUCCESS STORIES SECTION
   ========================================================= */

.success-stories {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--cream) 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 45px;
}

.story-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.06);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px -15px rgba(0, 0, 0, 0.15);
}

.story-top-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.story-top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-premium);
}

.story-card:hover .story-top-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 22px;
}

.story-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-style: italic;
}

.story-text i {
    color: var(--gold);
    margin-right: 5px;
}

.story-couple-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 5px;
}

.story-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
}

.btn-stories-wrapper {
    text-align: center;
}

.btn-stories {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--navy);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition-default);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-stories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transition: width 0.4s var(--ease-premium);
    z-index: -1;
}

.btn-stories:hover {
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-stories:hover::before {
    width: 100%;
}

.btn-stories:hover i {
    transform: translateX(4px);
}

/* =========================================================
   CTA SECTION
   ========================================================= */

.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1d6d70 0%, #0e4e50 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.04)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.4;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    background: rgba(29, 109, 112, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 42px 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 45px -20px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 18px;
    animation: pulseGlow 2.5s infinite;
    display: inline-block;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 32px;
    margin-bottom: 14px;
    font-weight: 700;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-default);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn-cta-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-cta-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

.btn-cta-secondary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
}

.btn-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(200, 169, 81, 0.4);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.badge-icon {
    font-size: 16px;
    color: var(--gold);
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 1400px) {
    .home-section-wrap, .container { padding: 0 30px; }
}

@media (max-width: 1200px) {
    .hero-grid { gap: 2%; }
    .services-grid, .branches-grid { gap: 25px; }
    .section-title { font-size: 36px; }
    .packages-grid { gap: 25px; }
}

@media (max-width: 1024px) {
    .hero-section { padding: 45px 0 55px; }
    .hero-grid { grid-template-columns: 1fr; gap: 25px; }
    .hero-featured-image img { min-height: 260px; max-height: 320px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .packages-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .package-card:nth-child(2) { transform: scale(1); }
    .branches-grid { grid-template-columns: repeat(2, 1fr); }
    .stories-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 32px; }
    .services, .packages, .global-branches, .success-stories { padding: 60px 0; }
    .cta-content { margin: 0 20px; padding: 35px 28px; }
    .cta-title { font-size: 28px; }
}

@media (max-width: 768px) {
    .home-section-wrap, .container { padding: 0 20px; }
    .hero-section { padding: 35px 0 45px; }
    .hero-featured-image img { min-height: 220px; max-height: 280px; }
    .hero-slider-container { aspect-ratio: 4 / 3; }
    .hero-card-content { padding: 12px 16px 20px; }
    .hero-text-row span { font-size: 9px; padding: 4px 8px; }
    .hero-btn-primary { padding: 10px 16px; font-size: 12px; }
    .hero-search-box { flex-wrap: wrap; padding: 5px 5px 5px 18px; }
    .hero-search-input { width: 100%; order: 2; margin-top: 8px; }
    .hero-search-btn { order: 1; padding: 8px 20px; }
    .services-grid, .branches-grid, .stories-grid { grid-template-columns: 1fr; gap: 20px; }
    .section-title { font-size: 28px; }
    .package-card-inner { padding: 28px 22px; }
    .cta-content { padding: 28px 22px; }
    .cta-title { font-size: 24px; }
    .cta-buttons { flex-direction: column; gap: 12px; }
    .btn-cta { justify-content: center; }
    .trust-badges { flex-direction: column; align-items: center; gap: 10px; }
    .slider-nav { width: 36px; height: 36px; font-size: 13px; }
    .story-top-image { height: 180px; }
    .service-back-content li { padding: 6px 10px; font-size: 11px; }
}

@media (max-width: 480px) {
    .hero-section { padding: 25px 0 35px; }
    .hero-featured-image img { min-height: 180px; max-height: 220px; }
    .hero-slider-container { aspect-ratio: 1 / 1; }
    .hero-btn-primary { padding: 8px 14px; font-size: 11px; }
    .service-front h3, .service-back h3 { font-size: 20px; }
    .package-card h3 { font-size: 22px; }
    .story-top-image { height: 160px; }
    .cta-title { font-size: 22px; }
    .slider-nav { width: 32px; height: 32px; font-size: 12px; }
    .slider-dot { width: 6px; height: 6px; }
    .slider-dot.active { width: 20px; }
}

/* =========================================================
   SAFE AREA & REDUCED MOTION
   ========================================================= */

@supports (padding: max(0px)) {
    .hero-section {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-content-card, .package-card, .service-card, .branch-card, .story-card {
        animation: none !important;
        transform: none !important;
    }
    .hero-slide.active-slide img {
        transform: none !important;
    }
}