/* ==========================================================================
   Motel Grand Place — stylesheet
   ========================================================================== */

:root {
  --color-bg: #2b2f32;
  --color-bg-alt: #363b3f;
  --color-bg-card: #41474c;
  --color-accent: #ec3927;
  --color-accent-hover: #ff5b47;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-border: rgba(255, 255, 255, 0.12);

  --font-heading: "Lato", sans-serif;
  --font-body: "Catamaran", sans-serif;

  --container-width: 1140px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

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

.logo-link img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.is-open {
    max-height: 400px;
  }

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

  .nav-menu a {
    display: block;
    padding: 16px 24px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 64px 0 32px;
  background: var(--color-bg-alt);
  text-align: left;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-header p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

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

.section-title {
  text-align: left;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.section-title p {
  color: var(--color-text-muted);
}

/* ---------- Suites list ---------- */

.suite-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.suite-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.suite-card:nth-child(even) {
  grid-template-columns: 1fr 320px;
}

.suite-card:nth-child(even) .suite-card__image {
  order: 2;
}

.suite-card__image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.suite-card__body {
  padding: 24px 32px 24px 0;
}

.suite-card:nth-child(even) .suite-card__body {
  padding: 24px 0 24px 32px;
}

.suite-card__rule {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  margin: 0 0 16px;
}

.suite-card__body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.suite-card__body p {
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 700px) {
  .suite-card,
  .suite-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .suite-card:nth-child(even) .suite-card__image {
    order: 0;
  }

  .suite-card__body,
  .suite-card:nth-child(even) .suite-card__body {
    padding: 8px 24px 24px;
  }

  .suite-card__image img {
    min-height: 200px;
  }
}

/* ---------- About / feature split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.split__image {
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.split h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.split .lead {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

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

  .split__image {
    order: -1;
  }
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 720px;
  display: grid;
  gap: 20px;
}

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-consent input {
  margin-top: 4px;
}

.form-status {
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: #6fd48b;
}

.form-status[data-state="error"] {
  color: var(--color-accent);
}

/* ---------- Location / map ---------- */

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.info-list dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-alt);
  padding-top: 56px;
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
}

.footer-top .site-title {
  font-size: 1.4rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.footer-columns {
  padding: 32px 0;
}

.footer-columns h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-columns address,
.footer-columns p {
  font-style: normal;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.footer-columns a {
  display: inline-block;
  margin-right: 16px;
  color: var(--color-text-muted);
}

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

.site-footer__bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.social-icons a:hover {
  background: var(--color-accent);
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.legal {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ---------- Age gate notice ---------- */

.age-notice {
  background: rgba(236, 57, 39, 0.12);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}
