/*
Theme Name: Goodwood View
Theme URI: https://goodwoodview.co.uk/
Description: Clean, responsive guest house WordPress theme for Goodwood View & Room Tracker.
Version: 1.0.8
Author: Room Tracker
Text Domain: room-tracker-theme
*/

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.rt-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.rt-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.rt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.rt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
}

.rt-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.rt-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rt-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.rt-nav li {
  position: relative;
}

.rt-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
}

.rt-nav .menu-item-has-children > a::after,
.rt-nav .page_item_has_children > a::after {
  content: "▾";
  font-size: 11px;
  opacity: 0.7;
}

.rt-nav ul.sub-menu,
.rt-nav ul.children {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  z-index: 120;
}

.rt-nav li:hover > ul.sub-menu,
.rt-nav li:focus-within > ul.sub-menu,
.rt-nav li:hover > ul.children,
.rt-nav li:focus-within > ul.children {
  display: block;
}

.rt-nav ul.sub-menu a,
.rt-nav ul.children a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  white-space: nowrap;
}

.rt-nav ul.sub-menu a:hover,
.rt-nav ul.children a:hover {
  background: #f1f5f9;
}

.rt-nav a:hover,
.rt-nav .current-menu-item > a,
.rt-nav .current_page_item > a {
  color: var(--primary);
}

.rt-nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.rt-nav-cta:hover {
  background: var(--primary-hover);
}

.rt-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
}

/* Hero */
.rt-hero {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b, #312e81 55%, #0369a1);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 36px 0;
  display: flex;
}

.rt-hero.has-bg-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.72));
  z-index: 0;
}

.rt-hero .rt-container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.rt-hero-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.rt-hero-v-top .rt-container { justify-content: flex-start; }
.rt-hero-v-center .rt-container { justify-content: center; }
.rt-hero-v-bottom .rt-container { justify-content: flex-end; }

.rt-hero-h-left .rt-hero-inner { align-items: flex-start; text-align: left; }
.rt-hero-h-center .rt-hero-inner { align-items: center; text-align: center; }
.rt-hero-h-right .rt-hero-inner { align-items: flex-end; text-align: right; }

.rt-hero-h-center .rt-hero-pills { justify-content: center; }
.rt-hero-h-right .rt-hero-pills { justify-content: flex-end; }

.rt-hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.rt-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.rt-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rt-hero-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

/* Page Content */
.rt-main {
  padding: 24px 0 48px;
}

.rt-page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

.rt-page-header h1 {
  margin: 0;
  font-size: 28px;
}

/* Footer */
.rt-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 36px 0 24px;
  font-size: 14px;
}

.rt-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.rt-footer h3 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 15px;
}

.rt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rt-footer a {
  color: #94a3b8;
  text-decoration: none;
}

.rt-footer a:hover {
  color: #fff;
}

.rt-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #94a3b8;
}

@media (max-width: 780px) {
  .rt-menu-toggle {
    display: inline-flex;
  }
  .rt-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .rt-nav.is-open {
    display: flex;
  }
  .rt-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .rt-nav ul.sub-menu,
  .rt-nav ul.children {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 14px;
    background: transparent;
  }
  .rt-hero h1 {
    font-size: 25px;
  }
}
