﻿/* ============================================================
   AMMAR Hotel — Shared Styles
   Dark: #0D1828  Gold: #C4A060  Cream: #F0E8D8
   Fonts: Cormorant Garamond + Jost
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #0D1828;
  --gold: #C4A060;
  --cream: #F0E8D8;
  --white: #FFFFFF;
  --dark-alt: #0a1220;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── NAVIGATION ─────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
#navbar.scrolled {
  background: var(--dark);
  padding: 14px 48px;
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600;
  color: var(--gold); letter-spacing: 5px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(240,232,216,.85); transition: color .25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important; color: var(--dark) !important;
  padding: 11px 26px !important; border-radius: 2px; font-weight: 600;
}
.nav-cta:hover { background: #d4b575 !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--cream); transition: .3s; }

/* Mobile nav overlay */
.nav-mobile {
  display: none; position: fixed; inset: 0;
  background: var(--dark); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; color: var(--cream); letter-spacing: 3px;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close {
  position: absolute; top: 24px; right: 40px;
  background: none; border: none; color: var(--cream); font-size: 32px; cursor: pointer;
}

/* ── SECTION BASE ────────────────────────────────────────── */
.section { padding: 100px 48px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title { font-size: 52px; font-weight: 300; line-height: 1.1; }
.section-title.dark { color: var(--dark); }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hotel-exterior.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,24,40,.55) 0%, rgba(13,24,40,.3) 50%, rgba(13,24,40,.72) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; width: 100%; max-width: 900px; }
.hero-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(80px, 14vw, 180px); font-weight: 300;
  color: var(--white); letter-spacing: 20px; line-height: 1; margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 13px; letter-spacing: 6px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 56px;
}
.search-form {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.08); backdrop-filter: blur(16px);
  border: 1px solid rgba(196,160,96,.45); border-radius: 3px; overflow: hidden;
  width: 100%;
}
.search-field {
  flex: 1; padding: 0 22px; border: none; background: transparent;
  color: var(--white); font-family: 'Jost', sans-serif; font-size: 14px;
  min-height: 62px; outline: none;
}
.search-field::placeholder { color: rgba(255,255,255,.55); }
.search-field::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); cursor: pointer; }
.search-divider { width: 1px; background: rgba(196,160,96,.35); margin: 14px 0; }
.search-select {
  flex: 0 0 145px; padding: 0 18px;
  background: transparent; border: none; color: var(--white);
  font-family: 'Jost', sans-serif; font-size: 14px; outline: none; cursor: pointer;
}
.search-select option { background: var(--dark); color: var(--cream); }
.search-btn {
  padding: 0 38px; background: var(--gold); color: var(--dark); border: none;
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; cursor: pointer; transition: background .25s;
  white-space: nowrap;
}
.search-btn:hover { background: #d4b575; }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── ROOMS ───────────────────────────────────────────────── */
#rooms { background: var(--dark); }
.rooms-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
  max-width: 1240px; margin: 0 auto;
}
.room-card {
  position: relative; height: 520px;
  border-radius: 3px; overflow: hidden; cursor: pointer;
}
.room-card > img { transition: transform .65s ease; }
.room-card:hover > img { transform: scale(1.06); }
.room-base {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px 22px;
  background: linear-gradient(to top, rgba(13,24,40,.96) 0%, transparent 100%);
  transition: opacity .4s;
}
.room-card:hover .room-base { opacity: 0; }
.room-price-tag { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.room-name { font-size: 30px; font-weight: 400; color: var(--white); }
.room-overlay {
  position: absolute; inset: 0;
  background: rgba(13,24,40,.9);
  display: flex; flex-direction: column; justify-content: center; padding: 40px;
  opacity: 0; transition: opacity .4s;
}
.room-card:hover .room-overlay { opacity: 1; }
.room-overlay-title { font-size: 32px; color: var(--white); margin-bottom: 24px; }
.room-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.room-feature {
  font-size: 14px; color: rgba(240,232,216,.85);
  display: flex; align-items: center; gap: 12px;
}
.room-feature::before { content:''; display:inline-block; width:24px; height:1px; background:var(--gold); flex-shrink:0; }
.room-price { font-size: 26px; font-family: 'Cormorant Garamond', serif; color: var(--gold); margin-bottom: 28px; }
.btn-gold {
  display: inline-block; background: var(--gold); color: var(--dark);
  padding: 14px 32px; font-family: 'Jost', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer; transition: background .25s; text-align: center;
}
.btn-gold:hover { background: #d4b575; }

/* ── GALLERY ─────────────────────────────────────────────── */
#gallery { padding: 0; background: #08111e; }
.gallery-strip { display: flex; height: 460px; }
.gallery-item {
  flex: 1; overflow: hidden; position: relative;
  cursor: pointer; transition: flex .55s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover { flex: 2.8; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform .55s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 22px; left: 22px;
  color: var(--white); font-family: 'Cormorant Garamond', serif;
  font-size: 22px; opacity: 0; transition: opacity .3s;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,24,40,.6) 0%, transparent 60%);
}

/* ── SERVICES ────────────────────────────────────────────── */
#services { background: var(--cream); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; max-width: 1000px; margin: 0 auto;
  border: 1px solid rgba(13,24,40,.12); border-radius: 3px; overflow: hidden;
}
.service-item {
  text-align: center; padding: 52px 32px;
  border: 1px solid rgba(13,24,40,.1);
  transition: background .3s;
}
.service-item:hover { background: rgba(196,160,96,.18); }
.service-icon { font-size: 34px; margin-bottom: 18px; }
.service-name { font-size: 20px; font-family:'Cormorant Garamond',serif; color:var(--dark); font-weight:500; }
.service-sub { font-size: 12px; color: rgba(13,24,40,.55); margin-top: 7px; letter-spacing: .5px; }

/* ── ABOUT ───────────────────────────────────────────────── */
#about { display: flex; background: var(--dark); min-height: 600px; }
.about-image { flex: 0 0 50%; position: relative; overflow: hidden; }
.about-image img { position:absolute; inset:0; transition: transform 8s ease; }
.about-image:hover img { transform: scale(1.04); }
.about-content {
  flex: 1; padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-text {
  font-size: 17px; line-height: 1.85;
  color: rgba(240,232,216,.8); margin-bottom: 52px;
}
.about-stats { display: flex; gap: 52px; }
.stat { text-align: center; }
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 58px; font-weight: 300; color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(240,232,216,.5); margin-top: 10px;
}

/* ── REVIEWS ─────────────────────────────────────────────── */
#reviews { background: var(--dark-alt); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  max-width: 1160px; margin: 0 auto;
}
.review-card {
  border: 1px solid rgba(196,160,96,.2);
  padding: 44px 36px; border-radius: 3px; position: relative;
  transition: border-color .3s;
}
.review-card:hover { border-color: rgba(196,160,96,.5); }
.review-qmark {
  position: absolute; top: 18px; right: 26px;
  font-size: 90px; font-family:'Cormorant Garamond',serif;
  color: rgba(196,160,96,.1); line-height: 1;
}
.review-stars { color: var(--gold); font-size: 17px; letter-spacing: 3px; margin-bottom: 22px; }
.review-quote {
  font-size: 17px; line-height: 1.75;
  color: rgba(240,232,216,.82); margin-bottom: 26px;
  font-style: italic; font-family:'Cormorant Garamond',serif;
}
.review-author { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }

/* ── CONTACTS ────────────────────────────────────────────── */
#contacts { background: var(--dark); }
.contacts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1160px; margin: 0 auto;
}
.contacts-info { display: flex; flex-direction: column; gap: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 18px; }
.contact-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-text { font-size: 16px; line-height: 1.6; color: rgba(240,232,216,.82); }
.contact-text a { color: var(--gold); transition: opacity .2s; }
.contact-text a:hover { opacity: .75; }
.contacts-map iframe {
  width: 100%; height: 400px; border: none; border-radius: 3px;
  filter: grayscale(20%) contrast(1.1) brightness(.9);
}

/* ── CHAT WIDGET ─────────────────────────────────────────── */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 998; }
.chat-toggle {
  width: 62px; height: 62px; background: var(--gold); border: none; border-radius: 50%;
  font-size: 26px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(196,160,96,.45); transition: transform .3s;
  display: flex; align-items: center; justify-content: center;
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-window {
  position: absolute; bottom: 74px; right: 0; width: 348px;
  background: #0f1e30; border: 1px solid rgba(196,160,96,.3); border-radius: 8px;
  overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  display: none; flex-direction: column;
}
.chat-window.open { display: flex; }
.chat-header {
  background: var(--gold); padding: 16px 20px; color: var(--dark);
  font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-close { background:none; border:none; color:var(--dark); font-size:20px; cursor:pointer; line-height:1; }
.chat-msgs { padding: 16px; height: 290px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 85%; padding: 11px 15px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background:rgba(196,160,96,.15); color:var(--cream); align-self:flex-start; border-bottom-left-radius:3px; }
.chat-msg.user { background:var(--gold); color:var(--dark); align-self:flex-end; border-bottom-right-radius:3px; }
.chat-msg.typing { font-style:italic; opacity:.6; }
.chat-input-row { display:flex; border-top:1px solid rgba(196,160,96,.2); }
.chat-input {
  flex:1; padding:14px 16px; background:transparent; border:none;
  color:var(--cream); font-family:'Jost',sans-serif; font-size:14px; outline:none;
}
.chat-input::placeholder { color:rgba(240,232,216,.35); }
.chat-send { padding:14px 18px; background:var(--gold); border:none; color:var(--dark); font-size:18px; cursor:pointer; transition:background .2s; }
.chat-send:hover { background:#d4b575; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: #060d18; padding: 40px 48px; text-align: center;
  border-top: 1px solid rgba(196,160,96,.15);
}
.footer-logo { font-family:'Cormorant Garamond',serif; font-size:34px; color:var(--gold); letter-spacing:7px; margin-bottom:14px; }
.footer-copy { font-size:13px; color:rgba(240,232,216,.45); }
.footer-copy a { color:var(--gold); transition:opacity .2s; }
.footer-copy a:hover { opacity:.75; }

/* ── BOOKING PAGE ────────────────────────────────────────── */
.booking-page { padding-top: 100px; min-height: 100vh; background: var(--dark); }
.booking-hero {
  background: linear-gradient(135deg, #0a1220 0%, var(--dark) 100%);
  padding: 60px 48px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(196,160,96,.2);
}
.booking-hero h1 { font-size: 52px; font-weight:300; color:var(--white); margin-bottom:10px; }
.booking-hero p { font-size:14px; letter-spacing:3px; color:var(--gold); }

/* Progress bar */
.progress-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 40px 48px 0; max-width: 700px; margin: 0 auto;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; position: relative;
}
.progress-step:not(:last-child)::after {
  content:''; position:absolute; top:20px; left:calc(50% + 22px); right:calc(-50% + 22px);
  height:2px; background:rgba(196,160,96,.2);
}
.progress-step.active::after,
.progress-step.done::after { background:var(--gold); }
.step-circle {
  width:40px; height:40px; border-radius:50%; border:2px solid rgba(196,160,96,.3);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:600; color:rgba(240,232,216,.5);
  transition: all .3s;
}
.progress-step.active .step-circle { border-color:var(--gold); color:var(--dark); background:var(--gold); }
.progress-step.done .step-circle { border-color:var(--gold); color:var(--gold); }
.step-label { font-size:11px; letter-spacing:2px; text-transform:uppercase; color:rgba(240,232,216,.4); }
.progress-step.active .step-label { color:var(--gold); }

/* Booking steps container */
.booking-container { max-width:1100px; margin:0 auto; padding:50px 48px 80px; }
.booking-step { display:none; }
.booking-step.active { display:block; }

/* Room selection cards */
.booking-rooms { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:40px; }
.booking-room-card {
  border:2px solid rgba(196,160,96,.2); border-radius:4px; overflow:hidden; cursor:pointer;
  transition: border-color .3s, transform .2s;
}
.booking-room-card:hover { border-color:rgba(196,160,96,.5); transform:translateY(-2px); }
.booking-room-card.selected { border-color:var(--gold); }
.booking-room-card .room-img { height:200px; }
.booking-room-card .room-img img { width:100%; height:100%; object-fit:cover; }
.booking-room-info { padding:20px; }
.booking-room-title { font-size:22px; color:var(--white); margin-bottom:10px; }
.booking-room-details { font-size:13px; color:rgba(240,232,216,.6); line-height:1.7; margin-bottom:14px; }
.booking-room-price { font-size:20px; font-family:'Cormorant Garamond',serif; color:var(--gold); }

/* Dates row */
.dates-row {
  display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; margin-bottom:36px;
}
.form-group { display:flex; flex-direction:column; gap:8px; }
.form-label { font-size:11px; letter-spacing:3px; text-transform:uppercase; color:var(--gold); }
.form-input, .form-select {
  background:rgba(255,255,255,.05); border:1px solid rgba(196,160,96,.3);
  color:var(--cream); font-family:'Jost',sans-serif; font-size:15px;
  padding:14px 18px; border-radius:3px; outline:none; transition:border-color .25s;
  width:100%;
}
.form-input:focus, .form-select:focus { border-color:var(--gold); }
.form-input::-webkit-calendar-picker-indicator { filter:invert(1) opacity(.6); }
.form-select option { background:var(--dark); }
textarea.form-input { resize:vertical; min-height:110px; }

/* Guest form */
.guest-form { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.guest-form .full-width { grid-column:1/-1; }

/* Booking nav buttons */
.booking-nav { display:flex; justify-content:space-between; align-items:center; margin-top:40px; }
.btn-outline {
  border:1px solid rgba(196,160,96,.4); color:var(--gold); background:transparent;
  padding:14px 32px; font-family:'Jost',sans-serif; font-size:12px;
  font-weight:600; letter-spacing:2.5px; text-transform:uppercase;
  cursor:pointer; border-radius:2px; transition: all .25s;
}
.btn-outline:hover { background:rgba(196,160,96,.1); }

/* Confirmation */
.confirmation { text-align:center; padding:60px 0; }
.confirm-icon { font-size:72px; margin-bottom:24px; }
.confirm-id {
  font-family:'Cormorant Garamond',serif; font-size:38px; color:var(--gold);
  letter-spacing:4px; margin-bottom:8px;
}
.confirm-msg { font-size:16px; color:rgba(240,232,216,.7); margin-bottom:48px; line-height:1.7; }
.confirm-summary {
  max-width:480px; margin:0 auto 48px;
  border:1px solid rgba(196,160,96,.25); border-radius:4px; overflow:hidden;
}
.summary-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 24px; border-bottom:1px solid rgba(196,160,96,.1);
}
.summary-row:last-child { border-bottom:none; }
.summary-key { font-size:12px; letter-spacing:2px; text-transform:uppercase; color:rgba(240,232,216,.5); }
.summary-val { font-size:15px; color:var(--cream); }
.summary-val.gold { color:var(--gold); font-family:'Cormorant Garamond',serif; font-size:18px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:1024px) {
  .rooms-grid { grid-template-columns:1fr; max-width:560px; margin:0 auto; }
  .room-card { height:420px; }
  .room-overlay { opacity:1; background:rgba(13,24,40,.78); }
  .room-base { display:none; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  #about { flex-direction:column; }
  .about-image { flex:none; height:420px; position:relative; }
  .about-image img { position:absolute; }
  .about-content { padding:60px 48px; }
  .reviews-grid { grid-template-columns:1fr; max-width:560px; margin:0 auto; }
  .contacts-grid { grid-template-columns:1fr; }
  .booking-rooms { grid-template-columns:1fr; max-width:500px; margin:0 auto 40px; }
  .dates-row { grid-template-columns:1fr 1fr; }
  .guest-form { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .section { padding:72px 24px; }
  #navbar { padding:16px 24px; }
  #navbar.scrolled { padding:12px 24px; }
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .search-form { flex-direction:column; }
  .search-divider { width:auto; height:1px; margin:0 16px; }
  .search-field,.search-select { min-height:52px; }
  .search-select { flex:none; }
  .search-btn { padding:18px; }
  .section-title { font-size:38px; }
  .gallery-strip { height:220px; }
  .about-stats { gap:28px; flex-wrap:wrap; }
  .booking-hero { padding:50px 24px 30px; }
  .booking-container { padding:36px 24px 60px; }
  .booking-nav { flex-direction:column; gap:16px; }
  .booking-nav .btn-gold, .booking-nav .btn-outline { width:100%; text-align:center; }
  .dates-row { grid-template-columns:1fr; }
  .chat-window { width:300px; right:-8px; }
  footer { padding:32px 24px; }
}
@media (max-width:480px) {
  .services-grid { grid-template-columns:1fr; }
  .hero-logo { letter-spacing:10px; }
  .progress-bar { padding:30px 16px 0; }
}
