/* ============================================================
   PREMIUM HANDYMAN SERVICES — GLOBAL STYLESHEET
   Color Palette:
     Dark Charcoal:  #2C2E31
     Antique Gold:   #BFA169
     Deep Emerald:   #165B33
     Canvas:         #F9F9F9
     White:          #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Reset & Root Tokens ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:      #2C2E31;
  --gold:      #BFA169;
  --gold-dark: #a88d56;
  --emerald:   #165B33;
  --emerald-d: #0f3f23;
  --white:     #FFFFFF;
  --canvas:    #F9F9F9;
  --text:      #3A3A3A;
  --muted:     #7A7A7A;
  --border:    #E8E8E8;
  --radius:    8px;
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.16);
  --transition:all 0.28s cubic-bezier(0.4,0,0.2,1);
  --max-w:     1280px;
  --font:      'Montserrat', sans-serif;

  /* ═══ HEADER HEIGHT (nav-inner + ticker) ═══
     JS reads real height on load/resize and overwrites this.
     CSS default is a CONSERVATIVE fallback — must be >= actual header height
     so content never hides under the fixed bar before JS runs.      */
  --header-h: 130px;   /* desktop: ~90px nav-inner + 40px ticker  */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Push content below the fixed navbar+ticker header */
  padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font); line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem);  font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { font-size: 1rem;   color: var(--muted); line-height: 1.8; }

/* ─── Layout Utilities ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 130px 0; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }
.text-dark   { color: var(--dark) !important; }
.text-muted  { color: var(--muted) !important; }

.bg-dark    { background: var(--dark); }
.bg-white   { background: var(--white); }
.bg-canvas  { background: var(--canvas); }
.bg-gold    { background: var(--gold); }
.bg-emerald { background: var(--emerald); }

/* ─── Section Labels & Decorators ─── */
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.gold-bar {
  width: 52px; height: 3px;
  background: var(--gold); border-radius: 2px;
  margin: 16px 0 28px;
}
.gold-bar.center { margin: 16px auto 28px; }

/* ─── Breadcrumb ─── */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--gold); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.9rem;
  font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); text-transform: uppercase;
  white-space: nowrap;
}
.btn-gold    { background: var(--gold);    color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(191,161,105,0.35); }
.btn-emerald { background: var(--emerald); color: var(--white); }
.btn-emerald:hover { background: var(--emerald-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,91,51,0.35); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-outline-gold  { background: transparent; color: var(--gold);  border-color: var(--gold); }
.btn-outline-gold:hover  { background: var(--gold); color: var(--white); }
.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Cards ─── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-body { padding: var(--spacing-card, 32px); }

/* ─── Grids ─── */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-40 { gap: 40px; }
.gap-60 { gap: 60px; }
.gap-80 { gap: 80px; }

/* ─── Icons (Inline SVG Emoji Fallback) ─── */
.icon-gold { color: var(--gold); font-size: 2.4rem; margin-bottom: 20px; display: block; }

/* ─── Star Rating ─── */
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }

/* ─── Badge / Pill ─── */
.badge {
  display: inline-block; padding: 4px 14px;
  border-radius: 100px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.badge-gold    { background: rgba(191,161,105,0.15); color: var(--gold); }
.badge-emerald { background: rgba(22,91,51,0.12);  color: var(--emerald); }

/* ─── Divider ─── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ─── Fade-in Scroll Animation ─── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }
.fade-up:nth-child(7) { transition-delay: 0.6s; }
.fade-up:nth-child(8) { transition-delay: 0.7s; }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--dark);
  /* ═══ COLUMN FLEX ═══
     This is the DEFINITIVE fix for 'ticker stuck to Book Now'.
     Column flex guarantees navbar-inner (row 1) and ticker (row 2)
     are ALWAYS stacked vertically. No z-index, no JS positioning.  */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 40px; max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem;
  color: var(--white); letter-spacing: 0.5px;
}
.navbar-logo .logo-icon { font-size: 1.6rem; }
.navbar-logo .gold-word { color: var(--gold); }
.navbar-logo small { display: block; font-size: 0.65rem; font-weight: 500; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-top: -2px; }

/* ── Actual image logo (replaces emoji + text) ── */
.navbar-logo-img {
  height: 46px !important;
  width: auto !important;
  max-height: 46px !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}
.navbar-logo:hover .navbar-logo-img { opacity: 0.85; }

/* Footer logo image */
.footer-logo-img {
  height: 64px !important;
  width: auto !important;
  max-height: 64px !important;
  object-fit: contain !important;
  display: block !important;
  margin-bottom: 4px;
  border-radius: 4px;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-weight: 500;
  font-size: 0.88rem; letter-spacing: 0.3px;
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 20px; }

/* Mobile nav */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed;
  top: var(--header-h);  /* always matches full header height */
  left: 0; right: 0; bottom: 0;
  background: var(--dark); z-index: 999;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--white); font-size: 1.4rem;
  font-weight: 700; transition: var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   PAGE HERO BANNER (inner pages)
═══════════════════════════════════════════════ */
.page-hero {
  background: var(--canvas);
  /* Decorative inner padding only — body handles header clearance via padding-top:var(--header-h) */
  padding-top: 100px;
  padding-bottom: 70px;
  text-align: center;
}
.page-hero.dark {
  background: var(--dark);
}
.page-hero.dark h1,
.page-hero.dark .breadcrumb,
.page-hero.dark p { color: var(--white); }
.page-hero.dark .breadcrumb a { color: var(--gold); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--dark);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 60px;
}
.footer-logo {
  font-weight: 800; font-size: 1.1rem;
  color: var(--white); display: flex;
  align-items: center; gap: 10px; margin-bottom: 16px;
}
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(191,161,105,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

.footer-col h4 {
  color: var(--white); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 24px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55); font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 6px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-item .fi {
  color: var(--gold); font-size: 1rem; margin-top: 2px; flex-shrink: 0;
}
.footer-contact-item span { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; }

.footer-badges {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.trust-badges { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.trust-badge {
  color: rgba(255,255,255,0.35); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px;
}
.trust-badge .stars { font-size: 0.75rem; }

.footer-copy {
  background: rgba(0,0,0,0.2);
  padding: 20px 40px; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-copy a { color: var(--gold); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 115px; } /* ~75px nav-inner + 40px ticker */
  .container { padding: 0 24px; }
  .section { padding: 70px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .gap-80 { gap: 40px; }
  .gap-60 { gap: 32px; }
  .navbar-inner { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-logo-img { height: 48px; }
}

@media (max-width: 600px) {
  :root { --header-h: 108px; }  /* ~72px nav-inner + 36px ticker */
  .section { padding: 56px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 15px 28px; font-size: 0.9rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .navbar-logo-img { height: 42px; }
  .footer-logo-img { height: 56px; }
}

/* ═══════════════════════════════════════════════
   TICKER / MARQUEE — INSIDE NAVBAR (bulletproof)
   Ticker lives inside <nav> so no z-index war.
═══════════════════════════════════════════════ */

/* When ticker is a child of .navbar it flows as a second row */
.navbar .ticker-wrap {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: auto !important;
}

/* ── Ticker base styles (apply regardless of location) ── */
.ticker-wrap {
  background: #1a1c1e;               /* clearly DARKER than navbar — visible row separation */
  height: 40px;
  overflow: hidden;
  border-top: 2px solid rgba(191,161,105,0.5);  /* stronger gold divider line */
  border-bottom: 2px solid #BFA169;              /* gold accent at foot */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ── The scrolling strip — must stay one single line ── */
.ticker-track {
  display: flex;
  flex-direction: row;           /* explicit: never wrap */
  flex-wrap: nowrap;             /* never allow a second row */
  white-space: nowrap;           /* text inside items never wraps */
  width: max-content;            /* grows to fit all content */
  height: 100%;
  align-items: center;
  animation: tickerScroll 32s linear infinite;
  will-change: transform;
}

/* ── Each copy of the content (x2 for seamless loop) ── */
.ticker-content {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Each individual message pill ── */
.ticker-item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 0 22px;            /* was 44px — reduced to cut visible empty gap */
  height: 40px;
  white-space: nowrap;
  min-width: max-content;

  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232,232,232,0.9);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Gold colour for the offer phrase ── */
.ticker-item a.t-link {
  color: #BFA169;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.ticker-item a.t-link:hover { text-decoration: underline; }

/* ── Emoji icon ── */
.ticker-item .t-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Diamond separator between items ── */
.ticker-item::after {
  content: '◆';
  display: inline-block;
  margin-left: 22px;        /* was 44px — reduced to cut visible gap */
  font-size: 0.35rem;
  color: #BFA169;
  opacity: 0.6;
  font-weight: 400;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Scroll keyframe: move exactly -50% (= one full copy width) ── */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ END OF STYLE.CSS ═══ */
