/* =========================================================
   Totally London Online — base stylesheet
   Palette pulled from the logo:
   --navy   : skyline / headings / footer
   --gold   : "Totally" script, accents, links
   --maroon : "London" wordmark, CTAs
   --cream  : background, card surfaces
   ========================================================= */

:root {
  --navy: #1a2334;
  --navy-light: #2b3650;
  --gold: #c49a3c;
  --gold-dark: #a67f28;
  --maroon: #7a1a2e;
  --maroon-dark: #5c1322;
  --cream: #faf7f0;
  --cream-dark: #f0ead9;
  --text: #2a2a2a;
  --text-light: #6b6b6b;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(26, 35, 52, 0.08);
  --shadow-hover: 0 8px 24px rgba(26, 35, 52, 0.14);
  --font-heading: Georgia, 'Playfair Display', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo img { height: 56px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.main-nav a:hover { color: var(--maroon); }

.lang-switch select {
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 70px 0 90px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 16px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: #dfe3ec;
}

.search-box {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 16px 22px;
  font-size: 1rem;
  outline: none;
}

.search-box button {
  border: none;
  background: var(--maroon);
  color: #fff;
  padding: 0 28px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover { background: var(--maroon-dark); }

/* ---------- Section headings ---------- */
.section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

.gold-rule {
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* ---------- Cards / grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card img { height: 180px; object-fit: cover; width: 100%; }

.card-body { padding: 18px 20px 22px; }

.card-body h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 8px;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.card-body a.read-more {
  font-weight: 600;
  color: var(--maroon);
  font-size: 0.9rem;
}

/* ---------- Category strip ---------- */
.category-strip {
  background: var(--cream-dark);
}

.category-strip .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.category-tile:hover { transform: translateY(-3px); }

.category-tile .icon { font-size: 2rem; margin-bottom: 10px; }

.category-tile h4 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfd4de;
  padding: 50px 0 24px;
  margin-top: 40px;
}

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

.footer-grid h5 {
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #cfd4de; }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa1b1;
}

/* ---------- Breadcrumbs / article pages ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 16px 0;
}

.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--maroon); }

article.content h1 {
  font-family: var(--font-heading);
  color: var(--navy);
}

article.content h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-top: 2em;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

/* ---------- RTL support (Arabic, Hebrew, etc.) ----------
   Add dir="rtl" to <html> on RTL-language pages; this block
   handles the layout flips that matter most. Test thoroughly
   before publishing RTL pages — this is a starting point, not
   a complete mirror of every component. */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .main-nav ul,
html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .breadcrumbs a:not(:last-child)::after {
  content: "\2039"; /* mirror the ›  separator to ‹ */
}

html[dir="rtl"] .search-box {
  direction: rtl;
}

html[dir="rtl"] .card-body a.read-more {
  direction: rtl;
}
