/*
Theme Name: Amira Clinic
Theme URI: https://gynclinic.com
Author: Ma3n Dev
Author URI: https://github.com/ma3n77
Description: Custom editorial-style theme for Dr. Amira Badawy Gyn Clinic. Premium feminine medical design with plum, gold, and cream palette.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: amira-clinic
Tags: rtl-language-support, custom-menu, custom-logo
*/

/* ============================================
   CUSTOM FONTS
   ============================================ */
@font-face {
    font-family: 'ArabicModern';
    src: url('fonts/ArabicModern-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: '29LT Bukra';
    src: url('fonts/29LT-Bukra-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Colors */
    --plum: #3E1021;
    --plum-deep: #250611;
    --plum-light: #6A253D;
    --plum-muted: rgba(62, 16, 33, 0.04);
    --gold: #D4B08C;
    --gold-dark: #A88665;
    --gold-light: #EFD0B1;
    --gold-muted: rgba(212, 176, 140, 0.1);

    /* Surfaces */
    --bg: #FFFFFF;
    --surface-low: #FCFAFA;
    --surface-mid: #F9F6F6;
    --surface-high: #F3EFEF;
    --surface-white: #FFFFFF;

    /* Text */
    --text-primary: #3E1021;
    --text-secondary: #5C4B50;
    --text-muted: #96868B;
    --text-on-plum: #FFFFFF;
    --text-on-gold: #FFFFFF;

    /* Misc */
    --outline: rgba(62, 16, 33, 0.08);
    --shadow-plum: 0 40px 80px rgba(62, 16, 33, 0.06);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.04);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-full: 9999px;

    /* Navbar & Logo
       Logo size is independent of navbar height — changing --logo-height
       will NOT change how tall the header bar is. */
    --nav-height: 90px;
    --nav-height-scrolled: 72px;
    --logo-height: 84px;
    --logo-height-scrolled: 60px;
    --logo-top: 4px;

    /* Typography */
    --font-heading: 'ArabicModern', 'Outfit', 'Inter', sans-serif;
    --font-body: '29LT Bukra', 'Outfit', 'Inter', sans-serif;
    --font-arabic: '29LT Bukra', 'Tajawal', 'Cairo', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Material Symbols — thin professional weight */
.material-symbols-outlined,
[dir="rtl"] .material-symbols-outlined,
[dir="rtl"] span.material-symbols-outlined,
[dir="rtl"] li .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Service card icons */
.bento-icon-wrap {
    margin-bottom: 16px;
}

.bento-icon-wrap .material-symbols-outlined {
    font-size: 2rem;
    color: var(--gold);
}

.bento-card.featured .bento-icon-wrap .material-symbols-outlined {
    color: var(--gold-light);
}

/* Why-us card icons */
.why-card .card-icon .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--plum);
}

/* Badge checkmark */
.badge-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-check .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--gold);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Button icons */
.btn-icon {
    font-size: 1.1rem;
}

/* Placeholder icons */
.placeholder-icon {
    font-size: 3rem !important;
    color: var(--text-muted);
    opacity: 0.4;
}

/* Footer link icons */
.footer-link-icon {
    font-size: 0.9rem;
    margin-inline-end: 4px;
    opacity: 0.6;
}

/* Testimonial quote */
.testimonial-quote-mark .material-symbols-outlined {
    font-size: 5rem;
    font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' 0, 'opsz' 48;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0, 0, 1);
}

.btn-plum {
    background: var(--plum);
    color: var(--text-on-plum);
    box-shadow: 0 10px 20px rgba(62, 16, 33, 0.15);
}

.btn-plum:hover {
    background: var(--plum-deep);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(62, 16, 33, 0.2);
}

.btn-gold {
    background: var(--gold);
    color: var(--text-on-gold);
    box-shadow: 0 10px 20px rgba(212, 176, 140, 0.15);
}

.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(212, 176, 140, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    padding: 14px 8px;
}

.btn-ghost::after {
    content: '←';
    transition: transform 0.3s;
}

.btn-ghost:hover::after {
    transform: translateX(-4px);
}

/* RTL overrides */
[dir="rtl"] .btn-ghost::after {
    content: '→';
}

[dir="rtl"] .btn-ghost:hover::after {
    transform: translateX(4px);
}

[dir="rtl"] .about-quote::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .nav-menu a::after {
    right: auto;
    left: 0;
}

/* RTL Arabic Font Overrides */
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] span:not(.material-symbols-outlined),
[dir="rtl"] a,
[dir="rtl"] li,
[dir="rtl"] label,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select,
[dir="rtl"] button,
[dir="rtl"] .btn,
[dir="rtl"] .section-label,
[dir="rtl"] .footer-tagline {
    font-family: var(--font-arabic);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: 'ArabicModern', var(--font-arabic);
}

/* RTL: Smaller font sizes for branch/contact cards */
[dir="rtl"] .call-center-box h4 {
    font-size: 0.95rem;
}

[dir="rtl"] .call-center-box a {
    font-size: 1.1rem !important;
}

[dir="rtl"] .branch-info-box h4 {
    font-size: 1rem !important;
}

[dir="rtl"] .branch-info-box .location-link {
    font-size: 0.85rem;
}

[dir="rtl"] .branch-info-box .btn-maps-link {
    font-size: 0.8rem;
}

[dir="rtl"] .branch-phones a {
    font-size: 0.85rem;
}

[dir="rtl"] .btn-whatsapp-link {
    font-size: 0.78rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    overflow: visible;
    transition: all 0.4s ease;
    background: transparent;
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(55, 1, 23, 0.08);
}

.site-header>.container {
    width: 100%;
    height: 100%;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

/*  .nav-logo has a fixed height (the full navbar height), so a taller
    logo image overflows it instead of stretching the navbar. The image
    is anchored to the top and grows downward, so it is never clipped by
    the top of the viewport. Resize the logo with --logo-height alone. */
.nav-logo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.nav-logo img {
    height: var(--logo-height);
    width: auto;
    margin-top: var(--logo-top);
    transition: height 0.4s ease, opacity 0.4s ease;
}

/*  Two stacked logos: the gold one reads over the transparent header on
    the hero, the burgundy one over the white background once scrolled.
    The burgundy copy sits on top of the gold one and fades in. */
.nav-logo .logo-burgundy {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

[dir="rtl"] .nav-logo .logo-burgundy {
    left: auto;
    right: 0;
}

.site-header.scrolled .nav-logo img {
    height: var(--logo-height-scrolled);
}

.site-header.scrolled .nav-logo .logo-gold {
    opacity: 0;
}

.site-header.scrolled .nav-logo .logo-burgundy {
    opacity: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #ffffff;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Scrolled state */
.site-header.scrolled .nav-menu a {
    color: var(--text-secondary);
}

.site-header.scrolled .nav-menu a:hover {
    color: var(--plum);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Scrolled state */
.site-header.scrolled .lang-toggle {
    background: var(--surface-low);
    color: var(--text-muted);
}

.site-header.scrolled .lang-toggle:hover {
    background: var(--surface-high);
    color: var(--text-primary);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--plum);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.nav-toggle span:nth-child(1) {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 11px;
}

.nav-toggle span:nth-child(3) {
    top: 22px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--plum-deep);
    padding: 180px 0 220px 0;
}

/* ---- Carousel background slides ---- */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    z-index: 0;
    transform: scale(1.05);
    transition: opacity 0.7s ease-in-out, transform 5s ease-out;
}

.hero-slide.prev {
    opacity: 1;
    z-index: 1;
}

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

/* ---- Overlay ---- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(37, 6, 17, 0.72) 0%,
            rgba(37, 6, 17, 0.45) 60%,
            rgba(37, 6, 17, 0.55) 100%);
    z-index: 1;
}

/* ---- Dot indicators ---- */
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: default;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
    display: inline-block;
}

.hero-dot.active {
    background: var(--gold);
    transform: scale(1.4);
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 500px;
    /* Slightly wider image */
    gap: 100px;
    /* More airy gap */
    align-items: center;
    min-height: calc(90vh - 280px);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image-frame {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: var(--surface-white);
    box-shadow: var(--shadow-soft);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.85rem;
    gap: 12px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    height: 185px;
    width: auto;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}

[dir="rtl"] .footer-logo {
    align-self: flex-start;
}

.footer-col h4 {
    color: var(--plum);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.hero-image-placeholder .icon {
    font-size: 3rem;
}

/* Floating badge */
.hero-badge {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: var(--surface-white);
    padding: 20px 28px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--plum);
    z-index: 3;
    animation: floatBadge 6s ease-in-out infinite;
}

.hero-badge .check {
    width: 24px;
    height: 24px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Hero content */
.hero-content {
    z-index: 4;
    position: relative;
    max-width: 680px;
    padding-bottom: 24px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 28px;
    padding: 10px 24px;
    background: var(--surface-white);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 500;
    color: var(--plum);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 24px 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-num.large {
    font-size: 2.8rem;
}

.hero-stat-txt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Decorative */
.hero-deco {
    display: none;
    /* Removed for a cleaner look */
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 160px 0;
    background: var(--surface-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--plum);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
    padding-right: 24px;
}

.about-quote::before {
    content: '"';
    font-size: 5rem;
    color: var(--gold-light);
    position: absolute;
    top: -30px;
    right: 0;
    font-style: normal;
    line-height: 1;
    opacity: 0.4;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-doctor-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--plum);
    font-weight: 700;
    margin: 12px 0 20px;
    line-height: 1.3;
}

.about-credentials-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.about-credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-credentials-list li .material-symbols-outlined {
    color: var(--gold);
    font-size: 1.35rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.doctor-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--outline);
    margin-top: 24px;
}

@media (max-width: 500px) {
    .doctor-insights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.insight-card {
    background: var(--surface-low);
    border: 1px solid var(--outline);
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: var(--surface-white);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(62, 16, 33, 0.08);
}

.insight-card .insight-num {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}

.insight-card .insight-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.45;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.about-tag {
    padding: 8px 18px;
    background: var(--surface-white);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--plum);
    box-shadow: 0 2px 8px rgba(55, 1, 23, 0.04);
}

.about-image {
    position: relative;
}

.about-image-frame {
    width: 100%;
    height: 540px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--surface-low);
    box-shadow: var(--shadow-soft);
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 160px 0;
    background: var(--surface-low);
}

.services-header {
    max-width: 600px;
    margin-bottom: 80px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.bento-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    /* Increased padding for airy feel */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.03);
    /* Softer shadow */
    border: none;
    /* Removed border for cleaner look */
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(62, 16, 33, 0.08);
    /* More pronounced lift */
}

.bento-card.featured {
    background: var(--plum);
    color: var(--text-on-plum);
    box-shadow: 0 16px 40px rgba(62, 16, 33, 0.15);
}

.bento-card.featured h3 {
    color: var(--text-on-plum);
}

.bento-card.featured p {
    color: rgba(255, 255, 255, 0.7);
}

.bento-card.featured .bento-num {
    color: rgba(255, 255, 255, 0.06);
}

.bento-num {
    position: absolute;
    top: 24px;
    right: 32px;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: var(--gold-muted);
    line-height: 1;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.bento-card:hover .bento-num {
    transform: scale(1.1) translateX(10px);
    opacity: 0.8;
}

.bento-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--surface-low);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.bento-card.featured .bento-icon-wrap {
    background: rgba(255, 255, 255, 0.1);
}

.bento-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   WHY US — OVERLAPPING CARDS
   ============================================ */
.why-us {
    padding: 120px 0 100px 0;
    background: var(--surface-low);
    /* Revert to bright/airy off-white */
    overflow: hidden;
}

.why-staggered-container {
    max-width: 900px;
    margin: 0 auto;
}

.why-us-header-staggered {
    text-align: left;
    margin-bottom: 64px;
    padding-left: 20px;
}

.why-staggered-list {
    display: flex;
    flex-direction: column;
}

.why-staggered-item {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 48px 20px;
    border-bottom: 1px solid rgba(212, 176, 140, 0.4);
    /* Elegant gold divider */
}

.why-staggered-item:last-child {
    border-bottom: none;
}

.staggered-number {
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
    min-width: 200px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.03);
}

.staggered-number .staggered-symbol {
    font-size: 3.5rem;
    color: var(--gold-dark);
}

.staggered-content {
    flex: 1;
}

.staggered-content h3 {
    font-size: 1.6rem;
    color: var(--plum-dark);
    margin-bottom: 12px;
}

.staggered-content p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Mobile Responsiveness for Staggered Layout */
@media (max-width: 768px) {
    .why-staggered-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 40px 0;
    }

    .why-us-header-staggered {
        text-align: center;
        padding-left: 0;
    }

    .staggered-number {
        font-size: 5rem;
        min-width: auto;
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 120px 0;
    background: var(--surface-white);
    overflow: hidden;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0, 0, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(62, 16, 33, 0.15);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0, 0, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Hover overlay */
.gallery-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(62, 16, 33, 0.7) 0%, rgba(212, 176, 140, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-hover .material-symbols-outlined {
    color: #ffffff;
    font-size: 2.5rem;
    transform: scale(0.6);
    transition: transform 0.4s cubic-bezier(0.25, 0, 0, 1);
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

.gallery-item:hover .gallery-hover .material-symbols-outlined {
    transform: scale(1);
}

/* Masonry variations — tall items span 2 rows */
.gallery-item.gallery-tall {
    grid-row: span 2;
}

/* Wide items span 2 columns */
.gallery-item.gallery-wide {
    grid-column: span 2;
}

/* ---- Lightbox ---- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(37, 6, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0, 0, 1);
}

.gallery-lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

/* Gallery responsive */
@media (max-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 80px 0;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 10px;
    }

    .gallery-item.gallery-wide {
        grid-column: span 1;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 60px 0 120px 0;
    /* Reduced top padding */
}

.testimonial-wrap {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-quote-mark {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--gold-light);
    opacity: 0.25;
    line-height: 0.5;
    margin-bottom: 24px;
}

.testimonial-carousel {
    position: relative;
    min-height: 250px;
}

.testimonial-item {
    display: none;
    animation: fade-in 0.5s ease-out forwards;
}

.testimonial-item.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 28px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--plum);
    color: var(--text-on-plum);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface-high);
    transition: all 0.3s;
    cursor: pointer;
}

.testimonial-dot.active {
    background: var(--plum);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   CONTACT & BOOKING
   ============================================ */
.contact-section {
    padding: 120px 0;
    background: var(--surface-low);
}

/*  Single column while the booking form is out. Restore
    "1.25fr 0.75fr" when the form comes back. */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}

.branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-item .icon {
    color: var(--gold);
    font-size: 1.8rem;
}

.info-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--plum);
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.call-center-box {
    background: var(--surface-white);
    border: 2px solid var(--gold);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(212, 176, 140, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.call-center-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 176, 140, 0.25);
}

.branch-info-box {
    background: var(--surface-white);
    border: 1px solid var(--outline);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.branch-info-box:hover {
    border-color: rgba(212, 176, 140, 0.6);
    box-shadow: 0 16px 40px rgba(62, 16, 33, 0.08);
    transform: translateY(-3px);
}

.branch-info-box .location-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    line-height: 1.6;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.branch-info-box .location-link:hover {
    color: var(--plum);
}

.branch-info-box .btn-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-on-plum);
    background: var(--plum);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.branch-info-box .btn-maps-link:hover {
    background: var(--plum-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(62, 16, 33, 0.2);
}

.branch-contact-row {
    border-top: 1px dashed var(--outline);
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.branch-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/*  Mobile number on the first line, landline underneath. */
.branch-phone-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.branch-phones a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.branch-phones a:hover {
    color: var(--gold-dark);
}

.btn-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    background: #25D366;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.btn-whatsapp-link:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

.map-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    line-height: 0;
}

.form-card {
    background: var(--surface-white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--outline);
}

.form-card h3 {
    font-size: 1.8rem;
    color: var(--plum);
    margin-bottom: 12px;
}

.form-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--surface-low);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface-white);
    box-shadow: 0 0 0 3px rgba(200, 153, 90, 0.1);
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

/* Adjust contact layout on smaller screens */
@media screen and (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--plum-deep);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo-text {
    color: var(--text-on-plum);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-brand .nav-logo-text span {
    color: var(--gold-light);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-light);
    margin-top: 12px;
    font-style: italic;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-col h4 {
    color: var(--text-on-plum);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--text-on-gold);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.8s cubic-bezier(0.25, 0, 0, 1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-image-frame {
        height: 400px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-white);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-plum);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    /* Smaller bar + logo on phones, and keep the CTA on a single line
       so it stops wrapping and inflating the header. */
    :root {
        --nav-height: 76px;
        --nav-height-scrolled: 64px;
        --logo-height: 60px;
        --logo-height-scrolled: 48px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn {
        padding: 9px 14px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .nav-actions .lang-toggle {
        padding: 5px 9px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

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

    .hero {
        padding: 120px 0 60px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .bento-card.featured {
        grid-column: span 1;
    }

    .why-cards {
        flex-direction: column;
        max-width: 360px;
    }

    .why-card:nth-child(2) {
        transform: none;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   RADICAL NEW BAY MEDICAL LAYOUT
   ============================================ */

.hero {
    min-height: 90vh;
    padding: 0;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    background-image: url('images/about.jpg');
    /* fallback */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(37, 6, 17, 0.9) 0%, rgba(37, 6, 17, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 24px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* OVERLAP SECTION */
.overlap-section {
    position: relative;
    padding: 0 0 120px 0;
    margin-top: -50px;
    /* Subtle overlap without covering hero buttons */
    z-index: 3;
    background: transparent;
}

.overlap-card {
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    padding: 80px;
    box-shadow: 0 24px 60px rgba(62, 16, 33, 0.08);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-frame {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SERVICES IMAGE CARDS */
.services {
    padding: 120px 0;
    background: var(--surface-low);
}

.services-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-image-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease;
}

.service-image-card:hover {
    transform: translateY(-8px);
}

.service-img-wrapper {
    height: 240px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-image-card:hover .service-img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 32px;
}

.service-card-content h3 {
    font-size: 1.4rem;
    color: var(--plum);
    margin-bottom: 16px;
}

.service-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-link:hover {
    color: var(--plum);
}

/* ============================================
   RESPONSIVE FIXES FOR NEW LAYOUT
   ============================================ */

/* Fix hamburger menu color on transparent background */
.site-header:not(.scrolled) .nav-toggle span {
    background: #ffffff;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .overlap-card {
        padding: 40px;
    }

    .about-image-frame {
        height: 400px;
    }
}

@media (max-width: 768px) {
    /*  The slide photos are 16:9. A tall hero on a narrow phone forces
        background-size:cover to scale them up to fill the height, which
        crops most of the width and reads as "zoomed in". Keeping the hero
        short limits how far they get scaled, so more of each photo shows. */
    .hero {
        align-items: center;
        text-align: center;
        min-height: auto;
        padding: 90px 0 80px 0;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-overlay {
        background: rgba(37, 6, 17, 0.7);
        /* Even dark overlay on mobile */
    }

    /* Smaller hero type keeps the hero short, which keeps the slide
       photos from being scaled up as far. See the .hero note above. */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .overlap-section {
        margin-top: -30px;
        padding-bottom: 60px;
    }

    .overlap-card {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .about-image-frame {
        height: 300px;
    }

    .services {
        padding: 60px 0;
    }

    .services-image-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix mobile menu text colors since header is transparent */
    .site-header .nav-menu.active {
        background: var(--surface-white);
    }

    .site-header .nav-menu.active a {
        color: var(--text-secondary);
    }

    .site-header .nav-menu.active a:hover {
        color: var(--plum);
    }
}


/* ============================================
   PREMIUM SERVICES LAYOUT
   ============================================ */

.services-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-premium-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* Make first 2 cards larger/wider */
.service-premium-card.large-card {
    grid-column: span 1;
    /* By default span 1 */
}

/* Clean 3-column layout on desktop */
@media (min-width: 1025px) {
    .services-premium-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-premium-card {
        height: 400px;
    }
}

.service-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-premium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-premium-card:hover .service-premium-bg {
    transform: scale(1.08);
}

.service-premium-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(37, 6, 17, 0.95) 0%, rgba(37, 6, 17, 0.4) 50%, transparent 100%);
    transition: opacity 0.4s ease;
}

.service-premium-card:hover .service-premium-overlay {
    opacity: 0.9;
    /* Slightly darker on hover to make text pop even more */
}

.service-premium-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px;
    z-index: 2;
}

.service-premium-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    transition: transform 0.4s ease;
}

.service-premium-card:hover .service-premium-content h3 {
    transform: translateY(-4px);
}

.service-premium-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.4s ease;
}

.service-premium-card:hover .service-premium-desc {
    color: #ffffff;
}

.service-premium-content .btn-link {
    color: var(--gold);
    transition: all 0.3s ease;
}

.service-premium-card:hover .btn-link {
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.service-premium-card:hover .btn-link span {
    transform: translateX(6px);
    transition: transform 0.3s ease;
}

/* Mobile responsive for premium grid */
@media (max-width: 1024px) {
    .services-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-premium-grid {
        grid-template-columns: 1fr;
    }

    .service-premium-card.large-card,
    .service-premium-card:not(.large-card) {
        grid-column: span 1;
        height: 380px;
    }
}

/* ============================================
   NAVBAR — SMALL PHONES
   Keeps logo + lang + CTA + hamburger on one row
   down to 320px-wide screens.
   ============================================ */
@media (max-width: 400px) {
    :root {
        --logo-height: 52px;
        --logo-height-scrolled: 44px;
    }

    .container {
        padding: 0 14px;
    }

    .nav-actions .btn {
        padding: 8px 11px;
        font-size: 0.64rem;
    }

    .nav-actions .lang-toggle {
        padding: 4px 8px;
        font-size: 0.64rem;
    }

    .nav-toggle {
        width: 26px;
    }
}

/* ==========================================
   BACK TO TOP
   Fixed pill that fades in once the user is
   past the hero. Mirrors to the left in RTL.
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--plum);
    color: var(--text-on-plum);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(62, 16, 33, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--plum-light);
}

.back-to-top .material-symbols-outlined {
    font-size: 1.5rem;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 28px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 46px;
        height: 46px;
    }

    [dir="rtl"] .back-to-top {
        right: auto;
        left: 18px;
    }
}

/* ==========================================
   FLOATING SOCIAL RAIL
   Vertical, fixed to the side, always visible.
   Sits on the left in LTR so it never collides
   with the back-to-top button (bottom right),
   and mirrors to the right in RTL.
   ========================================== */
.social-rail {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 var(--radius-md, 14px) var(--radius-md, 14px) 0;
    box-shadow: 0 8px 28px rgba(62, 16, 33, 0.14);
}

.social-rail a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--plum);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-rail a:hover {
    background: var(--plum);
    color: var(--text-on-plum);
    transform: scale(1.08);
}

[dir="rtl"] .social-rail {
    left: auto;
    right: 0;
    border-radius: var(--radius-md, 14px) 0 0 var(--radius-md, 14px);
}

@media (max-width: 768px) {
    .social-rail {
        gap: 0;
        padding: 6px 4px;
    }

    .social-rail a {
        width: 32px;
        height: 32px;
    }

    .social-rail a svg {
        width: 15px;
        height: 15px;
    }
}
