/* Hotel New River West Manali — static site styles (parity with live WP/Elementor) */

:root {
  --color-header: #654514;
  --color-brand: #6c2a00;
  --color-accent: #b1730c;
  --color-inquiry: #e0bca3;
  --color-text: #2d3748;
  --color-heading: #1a202c;
  --color-muted: #4a5568;
  --color-white: #ffffff;
  --color-footer-bg: #1a202c;
  --color-border: rgba(0, 0, 0, 0.15);
  --color-table: #6c2a00;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-heading: "Nunito", Georgia, serif;
  --font-brand: Georgia, "Times New Roman", serif;
  --content-width: 1170px;
  --header-height: 80px;
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: #f7fafc;
  background-image: url("../assets/images/page-bg.jpg");
  background-repeat: repeat;
  background-position: top left;
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-heading);
  margin: 0 0 0.75rem;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 22px; }
h5 { font-size: 20px; }

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-brand);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  background: var(--color-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.site-title {
  font-family: var(--font-brand);
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: #edf2f7;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 0.6em 0.75em;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #edf2f7;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #edf2f7;
  padding: 0.4em 0.6em;
  cursor: pointer;
}

.menu-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

.nav-drawer {
  display: none;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .nav-drawer.is-open .nav-drawer__backdrop {
    opacity: 1;
  }

  .nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(300px, 86vw);
    height: 100%;
    background: var(--color-heading);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 1rem;
    overflow-y: auto;
  }

  .nav-drawer.is-open .nav-drawer__panel {
    transform: translateX(0);
  }

  .nav-drawer__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
  }

  .nav-drawer__close {
    background: transparent;
    border: 0;
    color: #edf2f7;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
  }

  .nav-drawer .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-drawer .nav-list a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1em 0.75em;
    color: #f7fafc;
  }

  .nav-drawer .nav-list a[aria-current="page"] {
    color: var(--color-accent);
  }
}

body.nav-open {
  overflow: hidden;
}

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  background: var(--color-brand);
  color: var(--color-white);
  border: 0;
  padding: 0.7em 1.4em;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1);
}

.btn--block {
  width: 100%;
}

.btn--cta {
  background: var(--color-brand);
  color: var(--color-white);
  padding: 0.85em 1.75em;
  margin-top: 0.5rem;
}

.btn--cta:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ——— Heroes ——— */
.page-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  background: #222 center / cover no-repeat;
  color: var(--color-white);
  text-align: center;
}

.page-hero--title-bar {
  background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url("../assets/images/title-bar-bg.webp");
  min-height: 320px;
}

.page-hero h1,
.page-hero .page-hero__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-carousel {
  position: relative;
  min-height: min(72vh, 620px);
  overflow: hidden;
  background: #111;
  width: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: center / cover no-repeat;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}

.hero-carousel__dots button[aria-current="true"] {
  background: var(--color-white);
}

/* ——— Layout sections ——— */
.section {
  padding: 2.5rem 0;
}

.section--tight {
  padding: 1.75rem 0;
}

.section--gallery-home {
  padding: 2.75rem 0;
}

.section__title {
  color: var(--color-brand);
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .split--welcome {
    grid-template-columns: 7fr 3fr;
    align-items: start;
    gap: 1.25rem;
  }

  .split--2 {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .split--rooms {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .split--rooms.reverse .room-media {
    order: 2;
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.55rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.room-card {
  margin-bottom: 2.5rem;
}

.room-media img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ——— Home CTA (matches live Elementor banner) ——— */
.cta-banner {
  position: relative;
  isolation: isolate;
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-white);
  padding: 3rem 1rem;
  background-color: #000;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/images/section-bg.webp") center / cover no-repeat;
  opacity: 0.5;
}

.cta-banner__inner {
  max-width: 48rem;
  margin-inline: auto;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.cta-banner p {
  margin: 0 auto 1.25rem;
  max-width: 42rem;
  color: var(--color-white);
  opacity: 0.95;
}

/* ——— Inquiry form (compact, placeholder-first) ——— */
.inquiry-panel {
  background: var(--color-inquiry);
  padding: 1rem 1rem 1.15rem;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.inquiry-panel h2,
.inquiry-panel h3,
.inquiry-panel h4,
.inquiry-panel h5 {
  color: var(--color-brand);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-block-end: 0.55rem;
  width: 100%;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  background: var(--color-white);
  color: rgba(0, 0, 0, 0.7);
}

.field textarea {
  min-height: 72px;
  resize: vertical;
}

.inquiry-panel .btn {
  margin-top: 0.25rem;
  padding: 0.55em 1em;
}

.field input:focus-visible,
.field textarea:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible,
.nav-drawer__close:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.field-error {
  color: #d63637;
  font-size: 0.8rem;
  display: none;
  margin-top: 0.15rem;
}

.field.is-invalid .field-error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #d63637;
}

.form-status[aria-live] {
  margin-top: 0.4rem;
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* ——— Tariff table ——— */
.tariff-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 1rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
}

.tariff-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: var(--color-white);
  border: 2px solid var(--color-table);
}

.tariff-table th,
.tariff-table td {
  border: 1px solid var(--color-table);
  padding: 0.65rem 0.85rem;
  text-align: center;
}

.tariff-table th {
  background: var(--color-table);
  color: var(--color-white);
  font-weight: 700;
}

.tariff-table td:first-child,
.tariff-table th:first-child {
  text-align: left;
  font-weight: 600;
}

/* Stacked tariff cards on narrow screens — avoids page horizontal scroll */
@media (max-width: 640px) {
  .tariff-table-wrap {
    overflow: visible;
  }

  .tariff-table,
  .tariff-table thead,
  .tariff-table tbody,
  .tariff-table tr,
  .tariff-table th,
  .tariff-table td {
    display: block;
    width: 100%;
  }

  .tariff-table {
    border: 0;
    background: transparent;
  }

  .tariff-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .tariff-table tbody tr {
    background: var(--color-white);
    border: 2px solid var(--color-table);
    margin-bottom: 0.85rem;
  }

  .tariff-table tbody th {
    background: var(--color-table);
    color: var(--color-white);
    text-align: left;
    padding: 0.65rem 0.85rem;
  }

  .tariff-table td {
    text-align: left;
    border: 0;
    border-top: 1px solid rgba(33, 83, 135, 0.25);
    padding: 0.55rem 0.85rem;
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
  }

  .tariff-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-table);
  }
}

.tariff-notes-row {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin-top: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .tariff-notes-row {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
  }
}

.tariff-notes h3 {
  margin-top: 0;
}

.tariff-notes ul {
  margin-bottom: 0;
}

.bank-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.bank-box h5 {
  color: var(--color-brand);
  margin-top: 0;
}

/* ——— Gallery ——— */
/* Page gallery: 3 columns desktop, 2 columns mobile */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-grid a,
.home-gallery a {
  display: block;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  border-radius: 12px;
}

.gallery-grid img,
.home-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img,
.home-gallery a:hover img {
  transform: scale(1.04);
}

/* Home 6-image strip: 3 columns (2 rows) desktop, 2 columns mobile */
.home-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .home-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: min(96vw, 1000px);
  max-height: 92vh;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox__inner {
  position: relative;
  background: #111;
  padding: 0.5rem;
}

.lightbox__inner img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1;
}

/* ——— Map / contact ——— */
.map-embed {
  width: 100%;
  min-height: 320px;
  border: 0;
  margin-top: 1.25rem;
  max-width: 100%;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-footer-bg);
  color: #edf2f7;
  padding: 2.5rem 0 1rem;
  margin-top: 0;
}

.site-footer h2 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer a {
  color: #edf2f7;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #a0aec0;
}

.footer-bottom a {
  color: #a0aec0;
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }

  .hero-carousel {
    min-height: 48vh;
  }

  .page-hero--title-bar {
    min-height: 200px;
  }

  .cta-banner {
    min-height: 50vh;
    padding: 2.5rem 1rem;
  }

  .section {
    padding: 1.75rem 0;
  }

  .container {
    width: min(100% - 1.25rem, var(--content-width));
  }
}
