/*
Theme Name:        Ourhotels
Theme URI:         https://ourhotels.is
Author:            Ourhotels
Author URI:        https://ourhotels.is
Description:       A small Icelandic boutique hotel collection — four properties, direct booking, plain English. Light mode only. Pairs with the okkarhotel plugin (booking, prices, reviews, FAQ schema).
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       ourhotels
Tags:              hotel, booking, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ─────────────────────────────────────────────────────────────
   Ourhotels — global design tokens & base styles
   These are loaded site-wide. Section-specific styles live in
   assets/css/homepage.css and are enqueued only on the front page.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --oh-bg:            #ffffff;
  --oh-bg-soft:       #f6f8fc;
  --oh-surface:       #ffffff;
  --oh-border:        #e5e7eb;
  --oh-border-strong: #cbd5e1;

  /* Text */
  --oh-text:         #0f172a;
  --oh-text-muted:   #64748b;
  --oh-text-faint:   #94a3b8;
  --oh-text-on-dark: #ffffff;

  /* Brand */
  --oh-brand:        #1e3a5f;
  --oh-brand-dark:   #14283f;
  --oh-brand-accent: #c7956d;
  --oh-brand-soft:   #eef2f7;

  /* States */
  --oh-success:      #15803d;
  --oh-success-soft: #dcfce7;
  --oh-warning:      #b45309;
  --oh-warning-soft: #fef3c7;
  --oh-error:        #b91c1c;
  --oh-error-soft:   #fee2e2;

  /* Shadows */
  --oh-shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --oh-shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --oh-shadow-lg: 0 8px 32px rgba(15,23,42,0.12);

  /* Typography */
  --oh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;

  --oh-fs-xs:   0.75rem;
  --oh-fs-sm:   0.875rem;
  --oh-fs-base: 1rem;
  --oh-fs-lg:   1.125rem;
  --oh-fs-xl:   1.25rem;
  --oh-fs-2xl:  1.5rem;
  --oh-fs-3xl:  clamp(1.5rem, 3.5vw, 2.25rem);
  --oh-fs-hero: clamp(2rem, 5vw, 3.5rem);

  /* Layout */
  --oh-content-max: 1200px;
  --oh-gutter:      16px;

  /* Radii */
  --oh-radius-sm:   4px;
  --oh-radius-md:   8px;
  --oh-radius-lg:   12px;
  --oh-radius-xl:   16px;
  --oh-radius-pill: 999px;

  /* Motion */
  --oh-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --oh-duration: 200ms;

  /* Customizer override target (set inline by functions.php) */
  --oh-hero-text: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Base ────────────────────────────────────────────────── */

html, body {
  color-scheme: light;
  background: var(--oh-bg);
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--oh-font);
  color: var(--oh-text);
  font-size: var(--oh-fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img, video, svg { max-width: 100%; height: auto; display: block; }

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

:focus-visible {
  outline: 2px solid var(--oh-brand);
  outline-offset: 2px;
  border-radius: var(--oh-radius-sm);
}

/* Screen-reader-only utility (used for ARIA helpers) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
}

/* Skip link */
.oh-skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--oh-brand); color: var(--oh-text-on-dark);
  padding: 10px 14px; border-radius: var(--oh-radius-md);
  font-weight: 600; z-index: 100;
}
.oh-skip-link:focus { left: 8px; }

/* ─── Section primitives ──────────────────────────────────── */

.oh-section {
  background: var(--oh-bg);
  padding: clamp(48px, 8vw, 96px) var(--oh-gutter);
}
.oh-section--soft { background: var(--oh-bg-soft); }
.oh-section__inner {
  max-width: var(--oh-content-max);
  margin: 0 auto;
}

/* ─── Buttons ─────────────────────────────────────────────── */

.oh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font: 500 var(--oh-fs-base)/1 var(--oh-font);
  border-radius: var(--oh-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  transition:
    background var(--oh-duration) var(--oh-ease),
    transform   var(--oh-duration) var(--oh-ease),
    color       var(--oh-duration) var(--oh-ease);
}
.oh-btn:active { transform: translateY(1px); }

.oh-btn--primary { background: var(--oh-brand); color: var(--oh-text-on-dark); }
.oh-btn--primary:hover { background: var(--oh-brand-dark); color: var(--oh-text-on-dark); }

.oh-btn--accent { background: var(--oh-brand-accent); color: var(--oh-text-on-dark); }
.oh-btn--accent:hover { filter: brightness(0.95); color: var(--oh-text-on-dark); }

.oh-btn--secondary {
  background: var(--oh-bg);
  color: var(--oh-brand);
  border-color: var(--oh-brand);
}
.oh-btn--secondary:hover { background: var(--oh-brand-soft); color: var(--oh-brand); }

.oh-btn--ghost-on-dark {
  background: rgba(255,255,255,0.10);
  color: var(--oh-text-on-dark);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.oh-btn--ghost-on-dark:hover { background: rgba(255,255,255,0.18); color: var(--oh-text-on-dark); }

/* ─── Site header (theme-wide) ────────────────────────────── */

.oh-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--oh-border);
}
.oh-header__inner {
  max-width: var(--oh-content-max);
  margin: 0 auto;
  padding: 14px var(--oh-gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.oh-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--oh-text); text-decoration: none;
}
.oh-logo__mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--oh-brand);
  color: var(--oh-text-on-dark);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.oh-logo__tld { color: var(--oh-brand-accent); }

/* Custom logo (uploaded in Customizer → Site Identity) */
.oh-logo--custom { display: inline-flex; align-items: center; }
.oh-logo--custom .custom-logo-link {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.oh-logo--custom .custom-logo {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
}

.oh-nav {
  display: flex; gap: 24px;
  justify-self: center;
  font-size: var(--oh-fs-sm);
  list-style: none;
  padding: 0; margin: 0;
}
.oh-nav a { color: var(--oh-text); }
.oh-nav a:hover { color: var(--oh-brand); }

.oh-header__right { display: flex; gap: 12px; align-items: center; }
.oh-header__right .oh-btn {
  padding: 10px 16px; min-height: auto; font-size: var(--oh-fs-sm);
}

.oh-langtoggle {
  font-size: var(--oh-fs-sm);
  color: var(--oh-text-muted);
  border: 1px solid var(--oh-border);
  background: var(--oh-bg);
  padding: 6px 10px;
  border-radius: var(--oh-radius-pill);
  cursor: pointer;
  font-family: inherit;
}
.oh-langtoggle b { color: var(--oh-text); font-weight: 600; }

@media (max-width: 720px) {
  .oh-nav { display: none; }
  .oh-header__inner { grid-template-columns: auto 1fr auto; }
}

/* ─── Site footer (theme-wide) ────────────────────────────── */

.oh-foot {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  padding: 40px var(--oh-gutter);
  font-size: var(--oh-fs-sm);
  text-align: center;
}
.oh-foot__inner {
  max-width: var(--oh-content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.oh-foot__contact {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
}
.oh-foot__nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-size: var(--oh-fs-sm);
}
.oh-foot__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
}
.oh-foot__legal {
  color: rgba(255,255,255,0.5);
  display: block;
  font-size: var(--oh-fs-xs);
  line-height: 1.6;
}
.oh-foot a { color: rgba(255,255,255,0.85); }
.oh-foot a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
