/* =========================================================================
   style.css — global styles for hotelswitha.com
   Starter version: base tokens + header/nav. Grows into the full sheet later.
   ========================================================================= */

:root {
  /* Colour — a calm hospitality palette, deliberately not the AI-default
     cream/terracotta. Change these and the whole site follows. */
  --ink:        #16233a;   /* primary text */
  --ink-soft:   #5a6b82;   /* secondary text */
  --bg:         #fbfaf8;   /* page background (warm off-white) */
  --surface:    #ffffff;
  --accent:     #0f766e;   /* teal */
  --accent-dark:#0b5c56;
  --line:       #e7e3dc;   /* hairlines / borders */

  --radius: 10px;
  --maxw:   1140px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

/* Visible keyboard focus everywhere (accessibility floor) */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-content { padding-block: 2rem; }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.85rem 1.25rem;

  /* logo | menu | button — the menu sits dead-centre */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "logo nav cta";
  align-items: center;
  gap: 1rem;
}

.site-logo {
  grid-area: logo;
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-logo:hover { color: var(--ink); }

.main-nav { grid-area: nav; justify-self: center; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

.main-nav a.active {
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.header-cta { grid-area: cta; justify-self: end; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-icon { flex: none; }

/* --- Error page (404 etc.) ---------------------------------------------- */
.error-page {
  max-width: 34rem;
  margin-inline: auto;
  padding-block: 3rem 4rem;
  text-align: center;
}
.error-page .error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 6rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.error-page .error-text {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

/* --- Responsive: below 820px, drop the menu onto its own row ------------- */
@media (max-width: 820px) {
  .nav-container {
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo cta"
      "nav  nav";
    row-gap: 0.6rem;
    justify-content: space-between;
  }
  .main-nav { justify-self: center; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
