/*
 * Luke & Luka — site-common.css
 * ============================================================
 * Applies to: ALL hub pages and sub-pages
 * Does NOT apply to: index.html (homepage has its own styles)
 *
 * This file is loaded AFTER each page's own style.css, so it
 * wins the cascade. All selectors are intentionally specific.
 *
 * Covers:
 *   0. CSS variable normalisation (colour + type consistency)
 *   1. Skip link
 *   2. Site header + full navigation
 *   3. Base typography improvements
 *   4. Site footer (uniform across all pages)
 *   5. Responsive rules
 *   6. Focus / accessibility states
 *
 * Deployment: /assets/css/site-common.css
 * ============================================================
 */

/* ============================================================
   0. CSS VARIABLE NORMALISATION
   Override any page-level variable definitions so the colour
   palette and type scale are consistent with the homepage.
   ============================================================ */
:root {
  /* Colour palette — matches index.html exactly */
  --navy:        #0B1220;
  --navy-mid:    #111827;
  --navy-foot:   #070D18;
  --white:       #FFFFFF;
  --off:         #F8F7F3;
  --gold:        #B08D57;
  --gold-light:  #C9A96E;
  --text:        #111827;
  --secondary:   #4B5563;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --border-dk:   #D1D5DB;
  --surface:     #F4EFE5;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Layout */
  --container:   1180px;
  --radius:      3px;
  --transition:  0.2s ease;
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.04);
}


/* ============================================================
   1. SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -56px;
  left: 16px;
  background: #B08D57;
  color: #fff;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }


/* ============================================================
   2. SITE HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 18, 32, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  transition: box-shadow 0.2s ease;
  /* Reset any page-level header styling */
  padding: 0;
  margin: 0;
}
#site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo */
a.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}
a.site-logo img.site-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

/* Desktop nav */
nav.nav-primary {
  display: flex;
  align-items: center;
  gap: 1px;
}
nav.nav-primary a {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.78);
  padding: 9px 14px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
nav.nav-primary a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
nav.nav-primary a.nav-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
nav.nav-primary a.nav-cta {
  color: #B08D57;
  border: 1px solid rgba(176, 141, 87, 0.45);
  padding: 8px 16px;
  margin-left: 8px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
nav.nav-primary a.nav-cta:hover {
  background: #B08D57;
  color: #fff;
  border-color: #B08D57;
}

/* Hamburger */
button.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}
button.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
}
button.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
button.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
button.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
button.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile dropdown */
nav.nav-mobile {
  display: none;
  flex-direction: column;
  background: #070D18;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0 24px;
}
nav.nav-mobile.is-open { display: flex; }
nav.nav-mobile a {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding: 14px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
}
nav.nav-mobile a:last-child { border-bottom: none; }
nav.nav-mobile a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
nav.nav-mobile a.mob-cta { color: #B08D57; }


/* ============================================================
   3. BASE TYPOGRAPHY
   Injected after inline <style> blocks — wins the cascade.
   ============================================================ */
body {
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  color: #111827;
}
p {
  line-height: 1.78;
}
/* Section description text */
.p-main p,
.service-desc p,
.section-desc p,
.content-text p,
.practice-desc {
  font-size: 0.92rem;
  line-height: 1.72;
}
/* Dark-section white text opacity — was 0.38–0.52 on hub pages */
.courts-left p,
.dark-section p,
.section-body-dark p {
  color: rgba(255, 255, 255, 0.68);
}
/* Forum/court row descriptions */
.court-info p,
.court-name,
.forum-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
}
/* Card descriptions */
.card-body p,
.nri-card p,
.service-card p {
  font-size: 0.90rem;
  line-height: 1.68;
}
/* Contact notes */
.c-note,
.contact-note {
  font-size: 0.84rem;
}


/* ============================================================
   4. SITE FOOTER
   All selectors prefixed with footer for guaranteed specificity
   over any page-level style.css footer definitions.
   ============================================================ */
footer {
  background: #070D18 !important;
  padding: 80px 0 0;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
footer .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
footer .footer-top {
  display: grid !important;
  grid-template-columns: 2.2fr 1fr 1fr !important;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
footer .f-brand-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
footer .f-seal {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  opacity: 0.82;
  border-radius: 50%;
  display: block;
}
footer .f-brand-text-group {
  flex: 1;
  min-width: 0;
}
footer .f-name {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  letter-spacing: 0.01em;
  display: block;
}
footer .f-sub {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #B08D57;
  display: block;
  margin-top: 5px;
  margin-bottom: 20px;
}
footer .f-brand-text {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.85;
  max-width: 290px;
  margin-bottom: 20px;
}
footer address,
footer .f-address {
  font-style: normal;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.85;
}
footer address a,
footer .f-address a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.18s;
}
footer address a:hover,
footer .f-address a:hover { color: #fff; }
footer .f-col h4 {
  font-size: 0.62rem !important;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 22px;
  display: block;
}
footer .f-col ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
footer .f-col ul li { margin-bottom: 12px; }
footer .f-col ul li a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.18s;
}
footer .f-col ul li a:hover { color: rgba(255, 255, 255, 0.88); }
footer .footer-bottom {
  padding: 28px 0;
}
footer .footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
footer .f-copyright {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}
footer .f-links {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
footer .f-links a {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.30);
  text-decoration: none;
  transition: color 0.18s;
}
footer .f-links a:hover { color: rgba(255, 255, 255, 0.65); }


/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  nav.nav-primary a { padding: 9px 11px; font-size: 0.80rem; }
  #site-header .header-inner { gap: 12px; }
}
@media (max-width: 780px) {
  nav.nav-primary        { display: none !important; }
  button.nav-toggle      { display: flex !important; }
  a.site-logo img.site-logo-img { height: 32px; }
  #site-header .header-inner { padding: 0 20px; height: 68px; }
  footer .container      { padding: 0 20px; }
  footer .footer-top {
    grid-template-columns: 1fr !important;
    gap: 40px;
    padding-bottom: 40px;
  }
  footer .footer-bottom-inner { flex-direction: column; gap: 16px; }
}
@media (max-width: 560px) {
  footer .f-brand-inner  { flex-direction: column; gap: 16px; }
}


/* ============================================================
   6. FOCUS / ACCESSIBILITY
   ============================================================ */
a.site-logo:focus-visible,
nav.nav-primary a:focus-visible,
button.nav-toggle:focus-visible,
nav.nav-mobile a:focus-visible,
footer a:focus-visible {
  outline: 2px solid #B08D57;
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
