/* ============================================
   MOTEL SERENITY — Complete Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #2c6e63;
    --primary-dark: #1e4d45;
    --primary-light: #3d9b8f;
    --accent: #c8956c;
    --accent-light: #e0b48f;
    --accent-dark: #a87750;
    --dark: #1a1a2e;
    --dark-light: #2a2a4a;
    --text: #3a3a3a;
    --text-light: #6b6b6b;
    --text-lighter: #999;
    --light: #f8f6f3;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d1d1d1;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 8px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1001;
    position: relative;
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    position: absolute;
    width: 100%;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i {
    color: var(--accent);
    font-size: 0.7rem;
}

.top-bar-right {
    display: flex;
    gap: 16px;
}

.top-bar-right a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.top-bar-right a:hover {
    color: var(--accent);
}

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(44,110,99,0.06);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    text-align: center;
    justify-content: center;
}

.btn-book {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(200,149,108,0.4);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200,149,108,0.5);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(44,110,99,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(44,110,99,0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
    border-color: white;
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.nav-book-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin: 16px 0;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 500;
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

.mobile-book-btn {
    margin-top: 16px;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    max-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-img-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(26,26,46,0.5) 0%,
        rgba(26,26,46,0.3) 40%,
        rgba(26,26,46,0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge i {
    color: var(--accent-light);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--accent-light);
    font-style: italic;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    position: relative;
    height: 45vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(26,26,46,0.6) 0%,
        rgba(26,26,46,0.4) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .separator { opacity: 0.5; }

/* --- Section Styles --- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
    color: white;
}

.section-light {
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-dark .section-header h2 {
    color: white;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

/* --- Welcome / About Section --- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-images {
    position: relative;
}

.welcome-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.welcome-img-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 6px solid white;
    box-shadow: var(--shadow-md);
}

.welcome-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.welcome-badge .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.welcome-badge .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.welcome-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.welcome-text h2 span {
    color: var(--primary);
    font-style: italic;
}

.welcome-text > p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.welcome-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.welcome-feature i {
    width: 40px;
    height: 40px;
    background: rgba(44,110,99,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.welcome-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.welcome-feature p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Room Cards --- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.room-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.room-card-img {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

.room-card:hover .room-card-img img {
    transform: scale(1.08);
}

.room-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-card-price {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(26,26,46,0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.room-card-price .from {
    font-size: 0.7rem;
    opacity: 0.7;
}

.room-card-price .amount {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.room-card-price .per {
    font-size: 0.75rem;
    opacity: 0.7;
}

.room-card {
    display: flex;
    flex-direction: column;
}

.room-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-card-body > p {
    flex: 1;
}

.room-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.room-card-body > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.room-amenity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 6px;
}

.room-amenity i {
    color: var(--primary);
    font-size: 0.75rem;
}

.room-card-footer {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.room-card-footer .btn {
    flex: 1;
}

/* --- Amenities --- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.amenity-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.amenity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.amenity-card:hover::before {
    transform: scaleX(1);
}

.amenity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.amenity-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(44,110,99,0.1), rgba(44,110,99,0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}

.amenity-card:hover .amenity-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: scale(1.1);
}

.amenity-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.amenity-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Amenities Detail --- */
.amenity-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.amenity-detail:nth-child(even) {
    direction: rtl;
}

.amenity-detail:nth-child(even) > * {
    direction: ltr;
}

.amenity-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.amenity-detail-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.amenity-detail-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.amenity-detail-text p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.amenity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.amenity-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
}

.amenity-list li i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* --- Counters --- */
.counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.counter-item {
    padding: 32px;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Testimonials --- */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 0 40px;
}

.testimonial-inner {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-stars {
    color: var(--accent-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

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

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-info p {
    font-size: 0.8rem;
    opacity: 0.6;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.testimonial-prev,
.testimonial-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-light);
    transform: scale(1.2);
}

/* --- Gallery --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--text);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item.show,
.gallery-item {
    animation: fadeInUp 0.4s ease;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26,26,46,0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

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

.gallery-item-overlay span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.gallery-item-overlay i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-caption {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-top: 16px;
    font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact-info-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.contact-info-card .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(44,110,99,0.1), rgba(44,110,99,0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-wrap {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.contact-form-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.contact-form-wrap > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,110,99,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
}

.btn-submit.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cta-banner .hero-img-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.cta-banner .hero-overlay {
    background: linear-gradient(135deg, rgba(44,110,99,0.9), rgba(26,26,46,0.85));
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* --- Footer --- */
.footer {
    position: relative;
    background: var(--dark);
    color: rgba(255,255,255,0.8);
}

.footer-wave {
    position: relative;
    margin-top: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.footer-main {
    padding: 60px 0 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.footer-logo .logo-name { color: white; }
.footer-logo .logo-tagline { color: rgba(255,255,255,0.5); }

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--accent-light);
    padding-left: 6px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px !important;
}

.footer-contact i {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-contact span {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-bottom-links a:hover {
    opacity: 0.8;
    color: var(--accent-light);
}

/* ============================================
   MOBILE-FIRST OPTIMIZATIONS
   ============================================ */

/* --- Touch-friendly tap targets (minimum 44px) --- */
@media (pointer: coarse) {
    .nav-links a { min-height: 44px; display: flex; align-items: center; }
    .btn { min-height: 48px; }
    .filter-btn { min-height: 44px; padding: 12px 24px; }
    .footer-col ul a { display: inline-block; min-height: 44px; line-height: 44px; }
    .footer-social a { width: 44px; height: 44px; }
    .gallery-item-overlay { opacity: 1; background: linear-gradient(180deg, transparent 60%, rgba(26,26,46,0.7) 100%); }
    .back-to-top { width: 52px; height: 52px; }
    .lightbox-close, .lightbox-prev, .lightbox-next { width: 52px; height: 52px; }
}

/* --- Prevent horizontal overflow globally --- */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* --- Smooth momentum scrolling on iOS --- */
.mobile-menu,
.testimonial-slider,
.gallery-grid {
    -webkit-overflow-scrolling: touch;
}

/* --- Disable hover effects on touch devices --- */
@media (hover: none) {
    .room-card:hover { transform: none; box-shadow: var(--shadow-sm); }
    .amenity-card:hover { transform: none; box-shadow: none; }
    .amenity-card:hover .amenity-icon { transform: none; background: linear-gradient(135deg, rgba(44,110,99,0.1), rgba(44,110,99,0.05)); color: var(--primary); }
    .amenity-card:hover::before { transform: scaleX(0); }
    .contact-info-card:hover { box-shadow: none; border-color: var(--gray-200); }
    .gallery-item:hover img { transform: none; }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* --- Large Tablets & Small Laptops (max 1024px) --- */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    .welcome-grid,
    .amenity-detail,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .amenity-detail:nth-child(even) {
        direction: ltr;
    }

    .amenity-detail-img img {
        height: 300px;
    }

    .amenity-detail {
        margin-bottom: 50px;
    }

    .welcome-img-main img {
        height: 350px;
    }

    .welcome-img-accent {
        right: 20px;
        bottom: -20px;
        width: 160px;
        height: 160px;
    }

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

    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

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

    .footer-about {
        grid-column: 1 / -1;
    }

    .cta-banner { padding: 60px 0; }
}

/* --- Tablets (max 768px) --- */
@media (max-width: 768px) {
    /* Top bar: hide details, center socials */
    .top-bar { padding: 6px 0; }
    .top-bar-left { display: none; }
    .top-bar-right { margin: 0 auto; }

    /* Navigation: show mobile toggle */
    .nav-links, .nav-book-btn { display: none; }
    .mobile-toggle { display: flex; }

    .navbar { padding: 12px 0; }
    .navbar.scrolled { padding: 8px 0; }

    .logo-icon { width: 38px; height: 38px; font-size: 1rem; }
    .logo-name { font-size: 1.1rem; }
    .logo-tagline { font-size: 0.6rem; letter-spacing: 1.5px; }

    /* Hero */
    .hero {
        height: 85vh;
        min-height: 500px;
        max-height: 750px;
    }

    .hero-content { padding: 0 20px; }
    .hero-badge { font-size: 0.7rem; padding: 6px 14px; letter-spacing: 2px; margin-bottom: 16px; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 14px; }
    .hero p { font-size: 0.95rem; margin-bottom: 24px; }
    .hero-scroll { bottom: 24px; }

    /* Page Hero */
    .page-hero {
        height: 35vh;
        min-height: 250px;
    }

    .page-hero-content h1 { font-size: 2rem; }
    .breadcrumb { font-size: 0.8rem; }

    /* Sections */
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.7rem; }
    .section-header p { font-size: 0.95rem; }
    .section-label { font-size: 0.7rem; letter-spacing: 2px; }
    .section-label::before, .section-label::after { width: 20px; }

    /* Welcome */
    .welcome-text h2 { font-size: 1.7rem; }
    .welcome-text > p { font-size: 0.95rem; }
    .welcome-features { grid-template-columns: 1fr 1fr; gap: 16px; }
    .welcome-img-main img { height: 300px; }
    .welcome-img-accent { width: 140px; height: 140px; }
    .welcome-badge { top: -10px; left: -10px; padding: 14px; }
    .welcome-badge .number { font-size: 1.6rem; }

    /* Rooms */
    .rooms-grid { grid-template-columns: 1fr; gap: 24px; }
    .room-card-img { height: 240px; }
    .room-card-body { padding: 20px; }
    .room-card-body h3 { font-size: 1.25rem; }
    .room-amenities { gap: 8px; }
    .room-amenity { padding: 5px 10px; font-size: 0.75rem; }

    /* Amenities */
    .amenities-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .amenity-card { padding: 28px 20px; }
    .amenity-icon { width: 56px; height: 56px; font-size: 1.3rem; margin-bottom: 14px; }
    .amenity-card h3 { font-size: 1.05rem; }
    .amenity-card p { font-size: 0.85rem; }
    .amenity-detail-img img { height: 260px; }
    .amenity-detail-text h3 { font-size: 1.4rem; }
    .amenity-list { grid-template-columns: 1fr; gap: 8px; }
    .amenity-list li { font-size: 0.85rem; }

    /* Counters */
    .counters { grid-template-columns: 1fr 1fr; gap: 16px; }
    .counter-item { padding: 20px; }
    .counter-number { font-size: 2.2rem; }
    .counter-label { font-size: 0.75rem; letter-spacing: 1.5px; }

    /* Testimonials */
    .testimonial-card { padding: 0 12px; }
    .testimonial-inner { padding: 28px 20px; }
    .testimonial-text { font-size: 1rem; line-height: 1.7; }
    .testimonial-avatar { width: 44px; height: 44px; }
    .testimonial-info h4 { font-size: 0.9rem; }
    .testimonial-nav { gap: 16px; margin-top: 24px; }
    .testimonial-prev, .testimonial-next { width: 40px; height: 40px; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .gallery-filters { gap: 8px; margin-bottom: 24px; }
    .filter-btn { padding: 8px 16px; font-size: 0.8rem; }

    /* Contact */
    .contact-grid { gap: 32px; }
    .contact-info-card { padding: 16px; }
    .contact-info-card .icon { width: 42px; height: 42px; font-size: 0.95rem; }
    .contact-info-card h4 { font-size: 0.9rem; }
    .contact-info-card p { font-size: 0.85rem; }
    .contact-form-wrap { padding: 28px 20px; }
    .contact-form-wrap h3 { font-size: 1.3rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-group { margin-bottom: 16px; }
    .form-group input, .form-group select, .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    .contact-map { height: 200px; }

    /* CTA */
    .cta-banner { padding: 50px 0; }
    .cta-content h2 { font-size: 1.6rem; }
    .cta-content p { font-size: 0.95rem; margin-bottom: 24px; }

    /* Footer */
    .footer-wave svg { height: 50px; }
    .footer-main { padding: 40px 0 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-col h4 { font-size: 1rem; margin-bottom: 14px; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { gap: 16px; }

    /* Lightbox */
    .lightbox-content img { max-width: 95vw; max-height: 80vh; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; }
    .lightbox-caption { font-size: 0.85rem; padding: 0 16px; }

    /* Back to top */
    .back-to-top { bottom: 20px; right: 20px; }

    /* Buttons */
    .btn-lg { padding: 14px 28px; font-size: 0.9rem; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
}

/* --- Small Phones (max 480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Hero */
    .hero {
        height: 80vh;
        min-height: 450px;
    }

    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; line-height: 1.7; }
    .hero-badge { font-size: 0.65rem; padding: 5px 12px; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    /* Page Hero */
    .page-hero { height: 30vh; min-height: 200px; }
    .page-hero-content h1 { font-size: 1.6rem; }

    /* Sections */
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 1.5rem; }

    /* Welcome */
    .welcome-text h2 { font-size: 1.4rem; }
    .welcome-features { grid-template-columns: 1fr; gap: 12px; }
    .welcome-img-main img { height: 240px; }
    .welcome-img-accent { width: 120px; height: 120px; right: 10px; bottom: -15px; border-width: 4px; }
    .welcome-badge { padding: 12px; }
    .welcome-badge .number { font-size: 1.4rem; }
    .welcome-badge .label { font-size: 0.6rem; }

    /* Rooms */
    .rooms-grid { gap: 20px; }
    .room-card-img { height: 200px; }
    .room-card-body { padding: 16px; }
    .room-card-body h3 { font-size: 1.15rem; }
    .room-card-body > p { font-size: 0.85rem; }
    .room-card-footer { flex-direction: column; gap: 8px; }
    .room-card-footer .btn { width: 100%; }

    /* Amenities */
    .amenities-grid { grid-template-columns: 1fr; gap: 14px; }
    .amenity-card { padding: 24px 16px; }
    .amenity-icon { width: 50px; height: 50px; font-size: 1.1rem; }
    .amenity-detail { margin-bottom: 40px; gap: 24px; }
    .amenity-detail-img img { height: 200px; }
    .amenity-detail-text h3 { font-size: 1.25rem; }
    .amenity-detail-text p { font-size: 0.9rem; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
    .gallery-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .gallery-filters::-webkit-scrollbar { display: none; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }

    /* Counters */
    .counters { grid-template-columns: 1fr 1fr; gap: 12px; }
    .counter-item { padding: 16px; }
    .counter-number { font-size: 1.8rem; }
    .counter-label { font-size: 0.7rem; letter-spacing: 1px; }

    /* Testimonials */
    .testimonial-card { padding: 0 4px; }
    .testimonial-inner { padding: 24px 16px; }
    .testimonial-text { font-size: 0.95rem; }
    .testimonial-author { gap: 10px; }
    .testimonial-avatar { width: 40px; height: 40px; }

    /* Contact */
    .contact-form-wrap { padding: 20px 16px; }
    .contact-form-wrap h3 { font-size: 1.2rem; }
    .contact-info-card { padding: 14px; gap: 12px; }
    .contact-map { height: 180px; }

    /* CTA */
    .cta-banner { padding: 40px 0; }
    .cta-content h2 { font-size: 1.4rem; }
    .cta-content p { font-size: 0.9rem; }
    .cta-content .hero-buttons .btn { width: 100%; max-width: 100%; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-about { grid-column: auto; }
    .footer-main { padding: 30px 0 20px; }
    .footer-wave svg { height: 40px; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .footer-bottom-links a { font-size: 0.8rem; }

    /* Lightbox full screen on mobile */
    .lightbox-content { max-width: 100vw; }
    .lightbox-content img { max-width: 100vw; border-radius: 0; }
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }

    /* Back to top */
    .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; font-size: 0.9rem; }
}

/* --- Extra Small (max 360px) --- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }

    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.85rem; }

    .section { padding: 40px 0; }
    .section-header h2 { font-size: 1.3rem; }

    .room-card-img { height: 180px; }
    .room-card-body { padding: 14px; }

    .amenity-card { padding: 20px 14px; }

    .testimonial-inner { padding: 20px 12px; }
    .testimonial-text { font-size: 0.9rem; }

    .contact-form-wrap { padding: 16px 12px; }

    .counters { grid-template-columns: 1fr; }
    .counter-item { padding: 12px; }
}

/* --- Landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .page-hero {
        height: auto;
        min-height: 40vh;
        padding: 80px 0 40px;
    }

    .hero-scroll { display: none; }

    .mobile-menu {
        padding-top: 60px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .mobile-nav-links a { font-size: 1.2rem; }
    .mobile-nav-links li { margin: 8px 0; }
}

/* --- Safe area insets for notched phones --- */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(16px + env(safe-area-inset-bottom)); }
    .mobile-menu { padding-bottom: env(safe-area-inset-bottom); }
    .navbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* --- Reduced motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-scroll { animation: none; }
}

/* ============================================
   FOOTER — Mobile Responsive
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-wave svg { height: 50px; }
    .footer-main { padding: 40px 0 30px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-logo { justify-content: center; }
    .footer-about p { text-align: center; }
    .footer-social { justify-content: center; }
    .footer-social a { width: 44px; height: 44px; }
    .footer-col h4 { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; }
    .footer-col h4::after { width: 25px; }
    .footer-col ul li { margin-bottom: 8px; }
    .footer-col ul a { font-size: 0.85rem; display: inline-block; padding: 4px 0; }
    .footer-contact li { margin-bottom: 12px !important; }
    .footer-contact span { font-size: 0.85rem; }
    .footer-bottom { padding: 16px 0; }
    .footer-bottom-inner {
        flex-direction: column !important;
        gap: 12px;
        text-align: center;
    }
    .footer-bottom-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .footer-bottom p { font-size: 0.8rem; }
    .footer-bottom-links a { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .footer-wave svg { height: 35px; }
    .footer-main { padding: 32px 0 24px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 16px !important;
    }
    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }
    /* Quick Links & Our Services stay as 2 columns */
    .footer-links-col {
        grid-column: auto;
        text-align: left;
    }
    .footer-links-col h4::after { left: 0; transform: none; }
    /* Contact Info spans full width below */
    .footer-col:last-child {
        grid-column: 1 / -1;
    }
    .footer-col:last-child { text-align: center; }
    .footer-col:last-child h4::after { left: 50%; transform: translateX(-50%); }
    .footer-contact { text-align: left; }
    .footer-contact li { justify-content: center; }
    .footer-social a { width: 44px; height: 44px; font-size: 1rem; }
    .footer-bottom-links { gap: 12px; }
    .footer-bottom-links a { font-size: 0.78rem; }
}

@media (max-width: 360px) {
    .footer-main { padding: 24px 0 20px; }
    .footer-about p { font-size: 0.82rem; }
    .footer-col h4 { font-size: 0.95rem; }
}
