/* ===================================
   Hilton Dubai JBR - Main Stylesheet
   Mobile-First Responsive Design
   =================================== */

/* @font-face Declarations */
@font-face {
    font-family: 'Hilton Serif';
    src: url('../fonts/HiltonSerif-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Hilton Serif';
    src: url('../fonts/HiltonSerif-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Hilton Sans';
    src: url('../fonts/HiltonSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Hilton Sans';
    src: url('../fonts/HiltonSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* CSS Variables */
:root {
    --primary-color: #002F61;
    --secondary-color: #007293;
    --accent-color: #06937E;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #002F61;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: "Hilton Serif", "MuseoModerno", serif;
    --font-secondary: "Hilton Sans", "MuseoModerno", 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-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
}

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

.logo-text span {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    padding: 5rem 1.5rem 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 1002;
    font-family: var(--font-secondary);
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   Main Content
   =================================== */
main {
    padding-top: 70px;
}

.section {
    padding: 3rem 0;
}

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

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

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 58, 92, 0.6), rgba(26, 58, 92, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
    max-width: 800px;
}

.hero h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* ===================================
   Welcome Letter Section
   =================================== */
.welcome-letter {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.welcome-letter p {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.signature {
    margin-top: 2rem;
    text-align: left;
}

.signature-name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.signature-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Manager Photo & Signature Block */
.signature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.manager-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--secondary-color);
    flex-shrink: 0;
}

.manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signature-block .signature {
    margin-top: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .signature-block {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .signature-block .signature {
        text-align: left;
    }
}

/* ===================================
   Info Cards Grid
   =================================== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Utility: clamp text to N lines with a toggle */
.text-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-5 {
    -webkit-line-clamp: 5;
    line-height: 1.6; /* ensure consistent calculation */
}
.description.expanded {
    display: block; /* remove clamp */
    -webkit-line-clamp: unset;
    overflow: visible;
}
.read-more-btn {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0;
}
.read-more-btn:focus { outline: 2px dashed rgba(6, 147, 126, 0.4); }

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

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-card ul {
    margin-top: 0.5rem;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.info-card li:last-child {
    border-bottom: none;
}

/* ===================================
   Restaurant Cards
   =================================== */
.restaurant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.restaurant-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.restaurant-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.restaurant-content {
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.restaurant-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.restaurant-content > p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
}

/* Restaurant Meta Info Bar */
.restaurant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.meta-item span {
    color: var(--text-dark);
}

/* Restaurant Card Footer */
.restaurant-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.restaurant-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Restaurant Social Media Icons */
.restaurant-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(26, 58, 92, 0.08);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Restaurant Actions */
.restaurant-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.restaurant-actions .btn-primary {
    flex: 0 0 auto;
}

.restaurant-actions .btn-secondary {
    width: 100%;
    padding: 0.8rem 1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* ===================================
   Benefits Section
   =================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.benefit-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===================================
   Pricing Tables
   =================================== */
.pricing-table {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.pricing-table tr:hover {
    background: var(--light-bg);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

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

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

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

.btn-white:hover {
    background-color: var(--light-bg);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2a5a8c;
    transform: translateY(-2px);
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), #2a5a8c);
    padding: 3rem 1rem;
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
}

.newsletter-form input:focus {
    outline: 2px solid var(--secondary-color);
}

.newsletter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.9rem;
    text-align: left;
}

.newsletter-label input[type="checkbox"] {
    width: auto;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem 1rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a {
    color: var(--secondary-color);
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-nav h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ===================================
   Spa Section
   =================================== */
.spa-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.spa-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.spa-location {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
}

/* ===================================
   Kids Section
   =================================== */
.kids-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.5rem;
}

/* ===================================
   Image Gallery
   =================================== */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* ===================================
   Page Header
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #2a5a8c);
    padding: 4rem 1rem 3rem;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Media Queries - Tablet
   =================================== */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .restaurant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kids-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .newsletter-form input[type="email"] {
        flex: 1;
        min-width: 250px;
    }
}

/* ===================================
   Media Queries - Desktop
   =================================== */
@media (min-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        padding: 0;
        box-shadow: none;
        overflow: visible;
    }
    
    .nav-menu ul {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .nav-overlay {
        display: none;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .restaurant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   Media Queries - Large Desktop
   =================================== */
@media (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
    
    .welcome-letter {
        padding: 3rem;
    }
    
    .restaurant-image {
        height: 250px;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Smooth scroll offset for fixed header */
[id] {
    scroll-margin-top: 80px;
}
