/* =====================================================
   TEMPLARS LAW THEME — Main Stylesheet
   Author: Michael Akinwale
   ===================================================== */

:root {
  --color-dark:      #0d0d0d;
  --color-navy:      #111820;
  --color-gold:      #b89a5a;
  --color-gold-light:#d4b97a;
  --color-white:     #f5f4f0;
  --color-off-white: #ece9e1;
  --color-muted:     #888070;
  --color-border:    rgba(184,154,90,0.2);
  --font-display:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Jost', sans-serif;
  --transition:      0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--color-dark); color: var(--color-white); overflow-x: hidden; font-weight: 300; }

/* ---- TOP BAR ---- */
.top-bar { background: #0a0a0a; border-bottom: 1px solid var(--color-border); padding: 8px 0; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-muted); }
.top-bar a { color: var(--color-muted); text-decoration: none; transition: color var(--transition); }
.top-bar a:hover { color: var(--color-gold); }
.top-bar .separator { margin: 0 12px; opacity: 0.3; }
.top-bar-nav { padding-left: 0; }
.top-bar-nav li { list-style: none; }
.top-bar-nav li a { color: var(--color-muted); text-decoration: none; }
.top-bar-nav li a:hover { color: var(--color-gold); }

/* ---- NAVBAR ---- */
.main-nav { position: sticky; top: 0; z-index: 1000; background: rgba(13,13,13,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); transition: all var(--transition); }
.main-nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.6); }
.navbar-brand img { height: 52px; filter: brightness(0) invert(1); }
.site-title-text { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--color-white); letter-spacing: 4px; text-transform: uppercase; }
.nav-link { font-family: var(--font-body); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--color-white) !important; padding: 0 18px !important; position: relative; transition: color var(--transition); font-weight: 400; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 18px; right: 18px; height: 1px; background: var(--color-gold); transform: scaleX(0); transition: transform var(--transition); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--color-gold) !important; }
.dropdown-menu { background: #0d0d0d; border: 1px solid var(--color-border); border-radius: 0; padding: 8px 0; min-width: 240px; }
.dropdown-item { font-family: var(--font-body); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-muted) !important; padding: 10px 20px; transition: all var(--transition); }
.dropdown-item:hover { background: transparent; color: var(--color-gold) !important; padding-left: 28px; }
.navbar-toggler { border: 1px solid var(--color-border); border-radius: 0; }
.navbar-toggler-icon { filter: invert(1); }

/* ---- HERO ---- */
.hero { min-height: 100vh; background: var(--color-navy); position: relative; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(184,154,90,0.06) 0%, transparent 70%), radial-gradient(ellipse 40% 60% at 20% 80%, rgba(184,154,90,0.04) 0%, transparent 60%); }
.hero-bg-text { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: clamp(120px, 18vw, 280px); font-weight: 300; color: rgba(184,154,90,0.04); line-height: 1; user-select: none; white-space: nowrap; }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 28px; display: flex; align-items: center; gap: 16px; }
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--color-gold); }
.hero-title { font-family: var(--font-display); font-size: clamp(56px, 8vw, 110px); font-weight: 300; line-height: 1.0; color: var(--color-white); margin-bottom: 24px; }
.hero-title em { font-style: italic; color: var(--color-gold-light); }
.hero-subtitle { font-family: var(--font-body); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--color-muted); margin-bottom: 52px; font-weight: 300; }
.hero-locations { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; padding: 14px 32px; border: 1px solid var(--color-gold); color: var(--color-gold); background: transparent; text-decoration: none; transition: all var(--transition); display: inline-block; }
.btn-hero:hover { background: var(--color-gold); color: var(--color-dark); }
.btn-hero-fill { background: var(--color-gold); color: var(--color-dark); }
.btn-hero-fill:hover { background: var(--color-gold-light); color: var(--color-dark); border-color: var(--color-gold-light); }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--color-muted); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; animation: bounceScroll 2s infinite; }
.hero-scroll i { font-size: 14px; color: var(--color-gold); }
@keyframes bounceScroll { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- SECTION BASE ---- */
section { padding: 100px 0; }
.section-label { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--color-gold); flex-shrink: 0; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); font-weight: 300; line-height: 1.1; color: var(--color-white); margin-bottom: 32px; }
.section-title em { font-style: italic; color: var(--color-gold-light); }
.section-body { font-size: 15px; line-height: 1.8; color: var(--color-muted); font-weight: 300; max-width: 520px; }
.divider { height: 1px; background: var(--color-border); margin: 0; }

/* ---- NEWS ---- */
.news-section { background: var(--color-dark); }
.news-card { border: 1px solid var(--color-border); background: #111; overflow: hidden; transition: all var(--transition); height: 100%; }
.news-card:hover { border-color: var(--color-gold); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.news-card-img-wrap { overflow: hidden; }
.news-card-img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-body { padding: 28px; }
.news-date { font-size: 10px; letter-spacing: 2px; color: var(--color-gold); text-transform: uppercase; margin-bottom: 12px; }
.news-card-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--color-white); margin-bottom: 14px; text-decoration: none; display: block; }
.news-card-title:hover { color: var(--color-gold-light); }
.news-card-excerpt { font-size: 13px; line-height: 1.7; color: var(--color-muted); font-weight: 300; }
.btn-link-gold { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: gap var(--transition); }
.btn-link-gold:hover { color: var(--color-gold-light); gap: 16px; }

/* ---- ABOUT ---- */
.about-section { background: #0a0a0a; position: relative; overflow: hidden; }
.about-section::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: radial-gradient(ellipse at left center, rgba(184,154,90,0.05) 0%, transparent 70%); }
.about-img-container { position: relative; }
.about-img-container img { width: 100%; height: 520px; object-fit: cover; display: block; }
.about-img-container::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--color-border); pointer-events: none; }
.about-img-accent { position: absolute; bottom: -20px; right: -20px; width: 120px; height: 120px; border: 2px solid var(--color-gold); opacity: 0.3; }
.about-links { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.about-link { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--color-muted); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; transition: all var(--transition); }
.about-link:hover { color: var(--color-gold); padding-left: 12px; }

/* ---- CAPABILITIES ---- */
.capabilities-section { background: var(--color-dark); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--color-border); }
.cap-item { background: var(--color-dark); position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.cap-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; filter: brightness(0.35) saturate(0.8); }
.cap-item:hover img { transform: scale(1.08); filter: brightness(0.5) saturate(1); }
.cap-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); }
.cap-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--color-white); line-height: 1.2; text-decoration: none; transition: color var(--transition); }
.cap-item:hover .cap-title { color: var(--color-gold-light); }
.cap-arrow { width: 36px; height: 36px; border: 1px solid var(--color-gold); display: flex; align-items: center; justify-content: center; margin-top: 14px; opacity: 0; transform: translateY(10px); transition: all var(--transition); color: var(--color-gold); font-size: 12px; }
.cap-item:hover .cap-arrow { opacity: 1; transform: translateY(0); }

/* ---- SECTORS ---- */
.sectors-section { background: #0a0a0a; }
.sectors-video-wrapper { position: relative; overflow: hidden; border: 1px solid var(--color-border); }
.sectors-video-wrapper video { width: 100%; height: 500px; object-fit: cover; display: block; opacity: 0.6; }
.sectors-video-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,13,13,0.7) 0%, transparent 60%); }

/* ---- PEOPLE ---- */
.people-section { background: var(--color-dark); }
.people-img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; filter: grayscale(20%); }
.search-form-custom { background: #111; border: 1px solid var(--color-border); padding: 40px; }
.search-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 10px; display: block; }
.search-input { background: transparent; border: none; border-bottom: 1px solid var(--color-border); border-radius: 0; color: var(--color-white); font-family: var(--font-body); font-size: 14px; padding: 10px 0; width: 100%; outline: none; transition: border-color var(--transition); }
.search-input:focus { border-bottom-color: var(--color-gold); }
.search-input::placeholder { color: var(--color-muted); font-size: 13px; }
.search-select { background: transparent; border: none; border-bottom: 1px solid var(--color-border); border-radius: 0; color: var(--color-muted); font-family: var(--font-body); font-size: 13px; padding: 10px 0; width: 100%; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color var(--transition); }
.search-select:focus { border-bottom-color: var(--color-gold); color: var(--color-white); }
.search-select option { background: #111; color: var(--color-white); }
.search-select-wrapper { position: relative; }
.search-select-wrapper::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--color-gold); pointer-events: none; }
.btn-search { background: var(--color-gold); color: var(--color-dark); border: none; border-radius: 0; font-family: var(--font-body); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; padding: 14px 36px; cursor: pointer; transition: background var(--transition); font-weight: 500; }
.btn-search:hover { background: var(--color-gold-light); }

/* Lawyer Search Results */
.lawyer-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lawyer-result-card { background: #1a1a1a; border: 1px solid var(--color-border); padding: 16px; display: flex; align-items: center; gap: 14px; text-decoration: none; transition: border-color var(--transition); }
.lawyer-result-card:hover { border-color: var(--color-gold); }
.lawyer-result-img { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; }
.lawyer-result-name { font-family: var(--font-display); font-size: 18px; color: var(--color-white); margin-bottom: 4px; }
.lawyer-result-position { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gold); }
.lawyer-no-results { color: var(--color-muted); font-size: 13px; text-align: center; padding: 20px 0; }
.lawyer-loading { color: var(--color-muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; text-align: center; padding: 20px 0; }

/* ---- KNOWLEDGE CENTRE ---- */
.knowledge-section { background: #0a0a0a; }
.knowledge-card { border-bottom: 1px solid var(--color-border); padding: 32px 0; display: flex; gap: 28px; align-items: flex-start; text-decoration: none; transition: all var(--transition); color: inherit; }
.knowledge-card:first-of-type { border-top: 1px solid var(--color-border); }
.knowledge-card:hover .knowledge-card-title { color: var(--color-gold-light); }
.knowledge-card:hover { padding-left: 12px; }
.knowledge-card-img { width: 140px; height: 90px; object-fit: cover; flex-shrink: 0; }
.knowledge-date { font-size: 10px; letter-spacing: 2px; color: var(--color-gold); text-transform: uppercase; margin-bottom: 10px; }
.knowledge-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--color-white); line-height: 1.3; margin-bottom: 10px; transition: color var(--transition); }
.knowledge-card-excerpt { font-size: 13px; color: var(--color-muted); line-height: 1.6; }

/* ---- VIDEOS ---- */
.videos-section { background: var(--color-dark); }
.video-slider { overflow: hidden; }
.video-track { display: flex; gap: 24px; transition: transform 0.5s ease; }
.video-card { flex: 0 0 calc(33.333% - 16px); position: relative; overflow: hidden; cursor: pointer; border: 1px solid var(--color-border); transition: border-color var(--transition); }
.video-card:hover { border-color: var(--color-gold); }
.video-card img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.video-card:hover img { transform: scale(1.05); }
.video-card-body { padding: 20px; }
.video-card-date { font-size: 10px; letter-spacing: 2px; color: var(--color-gold); text-transform: uppercase; margin-bottom: 8px; }
.video-card-title { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--color-white); line-height: 1.3; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); width: 52px; height: 52px; border: 2px solid rgba(255,255,255,0.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; opacity: 0; transition: all var(--transition); background: rgba(0,0,0,0.4); }
.video-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%); }
.slider-controls { display: flex; gap: 12px; }
.slider-btn { width: 48px; height: 48px; border: 1px solid var(--color-border); background: transparent; color: var(--color-gold); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); }
.slider-btn:hover { background: var(--color-gold); color: var(--color-dark); border-color: var(--color-gold); }

/* ---- CAREERS ---- */
.careers-section { background: var(--color-navy); position: relative; overflow: hidden; }
.careers-section::after { content: 'CAREERS'; position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 16vw; font-weight: 300; color: rgba(184,154,90,0.04); line-height: 1; user-select: none; }
.careers-img { width: 100%; height: 480px; object-fit: cover; display: block; filter: grayscale(20%) brightness(0.8); }

/* ---- OFFICES ---- */
.offices-section { background: var(--color-dark); }
.office-card { border: 1px solid var(--color-border); padding: 40px; transition: all var(--transition); position: relative; overflow: hidden; }
.office-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--color-gold); transform: scaleX(0); transition: transform var(--transition); }
.office-card:hover { border-color: rgba(184,154,90,0.4); }
.office-card:hover::before { transform: scaleX(1); }
.office-name { font-family: var(--font-display); font-size: 32px; font-weight: 300; color: var(--color-white); margin-bottom: 16px; }
.office-address { font-size: 13px; color: var(--color-muted); line-height: 1.8; margin-bottom: 24px; }
.office-contact a { font-size: 12px; letter-spacing: 1px; color: var(--color-gold); text-decoration: none; display: block; margin-bottom: 6px; transition: color var(--transition); }
.office-contact a:hover { color: var(--color-gold-light); }

/* ---- FOOTER ---- */
.footer { background: #080808; border-top: 1px solid var(--color-border); padding: 80px 0 40px; }
.footer-logo img { height: 60px; filter: brightness(0) invert(1); margin-bottom: 32px; display: block; }
.footer-site-name { font-family: var(--font-display); font-size: 32px; color: var(--color-white); letter-spacing: 4px; display: block; margin-bottom: 24px; }
.footer-tagline { font-family: var(--font-display); font-size: 26px; font-weight: 300; font-style: italic; color: var(--color-gold-light); margin-bottom: 20px; }
.footer-desc { font-size: 13px; color: var(--color-muted); line-height: 1.8; margin-bottom: 28px; }
.footer-heading { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 13px; color: var(--color-muted); text-decoration: none; transition: color var(--transition); letter-spacing: 0.5px; }
.footer-links a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.social-link { width: 40px; height: 40px; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; color: var(--color-muted); text-decoration: none; font-size: 14px; transition: all var(--transition); }
.social-link:hover { border-color: var(--color-gold); color: var(--color-gold); }
.footer-office { margin-bottom: 8px; }
.footer-office-name { font-family: var(--font-display); font-size: 20px; color: var(--color-white); margin-bottom: 8px; }
.footer-office-details { font-size: 13px; color: var(--color-muted); line-height: 1.8; }
.footer-office-details a { color: var(--color-gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--color-border); padding-top: 28px; margin-top: 60px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 11px; color: var(--color-muted); margin: 0; letter-spacing: 1px; }
.footer-legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 11px; color: var(--color-muted); text-decoration: none; letter-spacing: 1px; transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--color-gold); }

/* ---- COOKIE BANNER ---- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #111; border-top: 1px solid var(--color-border); padding: 20px 32px; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-banner p { font-size: 12px; color: var(--color-muted); margin: 0; }
.cookie-banner a { color: var(--color-gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 24px; border: 1px solid var(--color-gold); color: var(--color-gold); background: transparent; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.cookie-btn:hover { background: var(--color-gold); color: var(--color-dark); }
.cookie-btn.accept { background: var(--color-gold); color: var(--color-dark); }
.cookie-btn.accept:hover { background: var(--color-gold-light); }

/* ---- INNER PAGES ---- */
.page-content { background: var(--color-dark); min-height: 60vh; }
.blog-post-item { padding: 40px 0; border-bottom: 1px solid var(--color-border); }
.blog-thumb { width: 100%; height: 280px; object-fit: cover; margin-bottom: 20px; }
.blog-post-meta { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 12px; }
.blog-post-title { font-family: var(--font-display); font-size: 28px; font-weight: 300; margin-bottom: 12px; }
.blog-post-title a { color: var(--color-white); text-decoration: none; transition: color var(--transition); }
.blog-post-title a:hover { color: var(--color-gold-light); }
.blog-post-excerpt { font-size: 14px; color: var(--color-muted); line-height: 1.7; margin-bottom: 20px; }
.single-post-title { font-family: var(--font-display); font-size: clamp(32px,5vw,64px); font-weight: 300; margin-bottom: 32px; }
.single-featured-img { width: 100%; max-height: 500px; object-fit: cover; margin-bottom: 40px; }
.single-post-content { font-size: 16px; line-height: 1.9; color: var(--color-off-white); }
.single-post-content h2,h3 { font-family: var(--font-display); color: var(--color-white); margin: 32px 0 16px; }
.single-post-content p { margin-bottom: 20px; color: var(--color-muted); }
.post-date-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 16px; }
.page-content-body { font-size: 16px; line-height: 1.9; color: var(--color-muted); }

/* ---- ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  section { padding: 70px 0; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card { flex: 0 0 calc(50% - 12px); }
  .hero-bg-text { display: none; }
  .people-img { min-height: 320px; }
}
@media (max-width: 767px) {
  section { padding: 50px 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .video-card { flex: 0 0 100%; }
  .knowledge-card { flex-direction: column; }
  .knowledge-card-img { width: 100%; height: 160px; }
  .search-form-custom { padding: 24px; }
  .lawyer-results { grid-template-columns: 1fr; }
  .footer { padding: 60px 0 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; text-align: center; }
}
