/*
Theme Name: George Bookings
Theme URI: https://georgebookings.co.za
Author: The Human Factor
Author URI: https://georgebookings.co.za
Description: Custom directory theme for George Bookings - George's local business discovery and booking portal.
Version: 1.0.0
License: Private
Text Domain: george-bookings
Tags: directory, business, booking, local
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@400;500;700;800&display=swap');

/* ── VARIABLES ── */
:root {
  --green:   #1e4d35;
  --green-2: #2f6b4c;
  --gold:    #c9a84c;
  --cream:   #f5f0e8;
  --paper:   #fffaf1;
  --ink:     #0f1a14;
  --muted:   #5f685f;
  --line:    #dfd7c8;
  --white:   #ffffff;
  --shadow:  0 18px 45px rgba(15,26,20,.12);
  --radius:  8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  font-weight: 900;
}

h1 { font-size: clamp(36px, 5vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 48px); color: var(--green); }
h3 { font-size: clamp(20px, 2.5vw, 26px); margin-bottom: 10px; }
h4 { font-size: 18px; }

p { line-height: 1.7; color: var(--muted); margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ── */
.gb-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.gb-section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.gb-section.band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gb-section-head {
  margin-bottom: 32px;
}

.gb-section-head p {
  max-width: 600px;
  margin-top: 10px;
}

/* ── GRID ── */
.gb-grid { display: grid; gap: 18px; }
.gb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.gb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gb-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── CARD ── */
.gb-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15,26,20,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15,26,20,.12);
}

.gb-card-body { padding: 24px; }

/* ── BUTTONS ── */
.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.gb-btn:hover { background: var(--green-2); transform: translateY(-1px); color: var(--white); }
.gb-btn-gold  { background: var(--gold); color: var(--ink); }
.gb-btn-gold:hover { background: #b8962e; color: var(--ink); }
.gb-btn-ghost { background: rgba(30,77,53,.1); color: var(--green); }
.gb-btn-ghost:hover { background: rgba(30,77,53,.18); }
.gb-btn-full  { width: 100%; }

.gb-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── BADGES ── */
.gb-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(30,77,53,.1);
  color: var(--green);
}

.gb-badge-gold    { background: rgba(201,168,76,.25); color: #6b5111; }
.gb-badge-muted   { background: #ece4d6; color: #4f544d; }
.gb-badge-live    { background: rgba(30,77,53,.15); color: var(--green); border: 1px solid rgba(30,77,53,.3); }
.gb-badge-premium { background: rgba(201,168,76,.2); color: #7a5c10; border: 1px solid rgba(201,168,76,.5); }

/* ── HEADER ── */
.gb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(245,240,232,.95);
  border-bottom: 1px solid rgba(30,77,53,.14);
  backdrop-filter: blur(16px);
}

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

.gb-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}

.gb-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.gb-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #28372e;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s;
}

.gb-nav a:hover,
.gb-nav a.active {
  background: rgba(30,77,53,.1);
  color: var(--green);
}

.gb-nav-btn {
  margin-left: 8px;
}

.gb-menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 800;
  color: var(--green);
  cursor: pointer;
}

/* ── HERO ── */
.gb-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(15,26,20,.88), rgba(15,26,20,.58) 45%, rgba(15,26,20,.15)),
    url('assets/george-hero.jpg') center / cover no-repeat;
  color: var(--white);
}

.gb-hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 80px 0 56px;
}

.gb-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ead58b;
  margin-bottom: 16px;
}

.gb-hero h1 { color: var(--white); max-width: 800px; }

.gb-hero .gb-lead {
  max-width: 640px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,.88);
  margin-top: 16px;
}

/* ── HERO SEARCH ── */
.gb-hero-search {
  display: grid;
  grid-template-columns: 1.4fr .9fr auto;
  gap: 10px;
  max-width: 860px;
  margin-top: 28px;
  padding: 10px;
  background: rgba(255,250,241,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gb-field {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
}

.gb-field:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

/* ── HOW IT WORKS ── */
.gb-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 18px;
  align-items: stretch;
}

.gb-step { min-height: 260px; }

.gb-micro {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 14px;
}

.gb-confirmation-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 2px solid var(--gold) !important;
  box-shadow: 0 20px 50px rgba(201,168,76,.25) !important;
  background: radial-gradient(circle at top, rgba(201,168,76,.18), transparent 50%), var(--green) !important;
}

.gb-phone-screen {
  width: min(260px, 85%);
  padding: 18px;
  border: 10px solid #13231a;
  border-radius: 28px;
  background: #f7fff8;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.gb-phone-screen strong {
  display: block;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 10px;
}

.gb-whatsapp {
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.gb-phone-meta {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── CATEGORY CARD ── */
.gb-cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
}

.gb-cat-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30,77,53,.1);
  color: var(--green);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.gb-cat-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.gb-cat-count { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── LISTING CARD ── */
.gb-listing-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
}

.gb-listing-card.featured {
  border-color: rgba(201,168,76,.6) !important;
  border-width: 2px !important;
}

.gb-listing-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(30,77,53,.1);
  color: var(--green);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 22px;
  flex-shrink: 0;
}

.gb-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 10px;
}

.gb-listing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

/* ── BUSINESS PROFILE ── */
.gb-profile-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.gb-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.gb-photo-tile {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30,77,53,.8), rgba(201,168,76,.6));
}

.gb-map-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(45deg, rgba(30,77,53,.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(30,77,53,.07) 25%, transparent 25%),
    var(--paper);
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 700;
  margin-top: 16px;
}

.gb-profile-sidebar {
  position: sticky;
  top: 88px;
}

/* ── SEARCH PAGE ── */
.gb-search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.gb-filters {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.gb-filter-group {
  margin-bottom: 16px;
}

.gb-filter-group label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}

.gb-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.gb-result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* ── PRICING ── */
.gb-price-card {
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.gb-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--green);
  margin: 10px 0 4px;
}

.gb-price-annual {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 20px;
}

.gb-feature-list {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}

.gb-feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.gb-feature-list li:last-child { border-bottom: none; }

.gb-feature-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 900;
}

/* ── DASHBOARD ── */
.gb-dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

.gb-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.gb-metric-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}

.gb-metric-label {
  font-size: 13px;
  color: var(--muted);
}

/* ── FORM ── */
.gb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gb-form-grid .wide { grid-column: 1 / -1; }

.gb-form-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.gb-step-pill {
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: var(--radius);
  background: #e8dfd0;
  color: var(--muted);
}

.gb-step-pill.active { background: var(--green); color: var(--white); }

textarea.gb-field { min-height: 120px; resize: vertical; }

/* ── BLOG ── */
.gb-article-date {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ── FOOTER ── */
.gb-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 40px clamp(18px, 4vw, 56px);
}

.gb-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.gb-footer-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.gb-footer p { color: rgba(255,255,255,.45); font-size: 13px; }

.gb-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  align-items: center;
}

.gb-footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}

.gb-footer-nav a:hover { color: var(--gold); }

/* ── MOBILE ── */
@media (max-width: 960px) {
  .gb-menu-toggle { display: block; }

  .gb-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 99;
  }

  .gb-nav.open { display: flex; }

  .gb-hero-search,
  .gb-how-grid,
  .gb-grid-2,
  .gb-grid-3,
  .gb-grid-4,
  .gb-search-layout,
  .gb-profile-grid,
  .gb-dashboard-grid,
  .gb-metric-grid {
    grid-template-columns: 1fr;
  }

  .gb-filters { position: static; }
  .gb-profile-sidebar { position: static; }
  .gb-form-steps { grid-template-columns: repeat(3, 1fr); }
  .gb-form-grid { grid-template-columns: 1fr; }
  .gb-hero { min-height: auto; }
  .gb-hero-inner { padding-top: 56px; }
  .gb-cta-row { flex-direction: column; }
  .gb-cta-row .gb-btn { width: 100%; justify-content: center; }
}

@media (max-width: 540px) {
  .gb-listing-card { grid-template-columns: 1fr; }
  .gb-gallery { grid-template-columns: 1fr; }
  .gb-form-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ── WORDPRESS OVERRIDES ── */
.wp-site-blocks { padding: 0 !important; }
.is-layout-flow { gap: 0 !important; }
/* Hide Home page title */
.page-id-16 .entry-title,
.page-id-16 h1.entry-title,
.page-id-16 .wp-block-post-title,
.page-id-16 .elementor-page-title {
  display: none !important;
}
/* Hide Home page title */
.page-id-16 .wp-block-post-title {
  display: none !important;
}