/* ============================================================
   H.M. Chan & Co. — Corporate Law Firm Website
   Brand Colors: #141b4d (Navy), #C0001A (Red Accent)
   Fonts: Lora (headings), Lato (body)
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* Gilroy — local font files */
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables --- */
:root {
  --primary:    #141b4d;
  --accent:     #C0001A;
  --white:      #ffffff;
  --off-white:  #f5f5f3;
  --light-grey: #e8e8e8;
  --mid-grey:   #999999;
  --text:       #2c2c2c;
  --nav-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #ffffff;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

/* Subtle HK skyline watermark on every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../assets/hero-hk-skyline.jpg');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Lora', serif;
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white p { color: var(--white); }

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-navy {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-navy:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.transparent {
  background: rgba(14, 22, 70, 0.92);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

#navbar.transparent .nav-links a {
  color: rgba(255,255,255,0.9);
}

#navbar.transparent .nav-links a::after {
  background: var(--white);
}

#navbar.transparent .nav-toggle span {
  background: var(--white);
}

#navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-contact-btn {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  transition: background 0.3s ease !important;
}
.nav-contact-btn:hover { background: #9a0015 !important; }
.nav-contact-btn::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: relative;
  margin-left: 1rem;
  flex-shrink: 0;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9);
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

#navbar.scrolled .lang-current {
  border-color: rgba(20,27,77,0.3);
  color: var(--primary);
}

.lang-current:hover {
  border-color: rgba(255,255,255,0.7);
}

#navbar.scrolled .lang-current:hover {
  border-color: var(--primary);
}

.lang-chevron {
  transition: transform 0.2s;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px;
  z-index: 2000;
  overflow: hidden;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown li {
  padding: 10px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-dropdown li:hover {
  background: var(--off-white);
  color: var(--primary);
}

.lang-dropdown li[data-lang="en"] {
  border-bottom: 1px solid var(--light-grey);
  font-weight: 700;
  color: var(--primary);
}

/* Hide Google Translate toolbar */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-hk-skyline.jpg');
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.05);
  transition: transform 0.1s linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 27, 77, 0.82) 0%,
    rgba(20, 27, 77, 0.55) 60%,
    rgba(0,0,0,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 80px;
}

.hero-content .section-label { color: rgba(255,255,255,0.7); }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-family: 'Gilroy', 'Lora', serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-content h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================================
   WHY CHOOSE US STRIP
   ============================================================ */
#why-us {
  background: var(--primary);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
#why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/office-boardroom.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.10;
  pointer-events: none;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: start;
}

.why-us-divider {
  background: rgba(255,255,255,0.12);
  height: 80px;
  align-self: center;
}

.why-us-item {
  text-align: center;
  padding: 0 2rem;
}

.why-us-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.why-us-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
}

.why-us-item h4 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.why-us-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .why-us-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .why-us-divider { display: none; }
}

@media (max-width: 560px) {
  .why-us-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT SECTION (Homepage)
   ============================================================ */
#about-home {
  background: var(--white);
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-home-image {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.about-home-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-home-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  z-index: -1;
}

.about-home-text .section-label { margin-bottom: 0.5rem; }

.about-home-text h2 { margin-bottom: 1.5rem; }

.about-home-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-home-text .btn { margin-top: 1.5rem; }

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
#practices {
  background: var(--off-white);
}

.practices-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.practices-header p { color: #666; font-size: 1.05rem; }

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.practice-card {
  background: var(--white);
  padding: 40px 35px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.practice-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.practice-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(20,27,77,0.12); }
.practice-card:hover::before { transform: scaleX(1); }

.practice-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-icon svg { width: 36px; height: 36px; stroke: var(--primary); }

.practice-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.practice-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.practice-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  transform: translateX(0);
  transition: all 0.3s ease;
}

.practice-card:hover .card-arrow { opacity: 1; color: var(--primary); gap: 10px; }

/* ============================================================
   OUR PEOPLE (Homepage)
   ============================================================ */
#people-home {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

#people-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.people-home-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.people-home-header .section-label { color: var(--accent); }

/* Fix red text on dark backgrounds globally */
#why-us .section-label,
#why-us .why-us-icon svg,
#cta-banner .section-label,
.page-hero .section-label,
.hero-content .section-label,
.award-article .section-label,
.award-article-text .section-label { color: rgba(255,255,255,0.75) !important; }

#why-us .why-us-icon { color: rgba(255,255,255,0.85); }
#why-us .why-us-icon svg { stroke: rgba(255,255,255,0.85); }
.people-home-header h2 { color: var(--primary); }
.people-home-header p { color: var(--text); max-width: 600px; margin: 1rem auto 0; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.person-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.person-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192,0,26,0.5);
}

.person-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.person-card:hover .person-photo { filter: grayscale(0%); }

.person-info {
  padding: 28px 30px;
}

.person-info h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 0.3rem; }

.person-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888888;
  display: block;
  margin-bottom: 1rem;
}

/* On homepage light background, use red accent for person title */
#people-home .person-title {
  color: var(--accent);
}

.person-info p { color: #555; font-size: 0.9rem; line-height: 1.7; }
.person-info .btn { margin-top: 1.25rem; border-color: rgba(20,27,77,0.3); color: var(--primary); font-size: 0.75rem; padding: 10px 24px; }
.person-info .btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }}

/* ============================================================
   NEWS SECTION (Homepage)
   ============================================================ */
#news-home {
  background: var(--white);
}

.news-home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
}

.news-home-header .view-all {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.news-home-header .view-all:hover { gap: 12px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  border-top: 3px solid var(--light-grey);
  padding-top: 1.5rem;
  transition: border-color 0.3s;
}

.news-card:hover { border-color: var(--accent); }

.news-card .news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.news-card h4 {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.news-card:hover h4 { color: var(--accent); }

.news-card p { font-size: 0.9rem; color: #666; line-height: 1.7; }

.news-card .news-meta {
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card .news-meta::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--mid-grey);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/office-lounge-view.jpg');
  background-size: cover;
  background-position: center 50%;
  opacity: 0.10;
  pointer-events: none;
}

#cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
#cta-banner p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #0c1238;
  color: rgba(255,255,255,0.6);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/office-corridor.jpg');
  background-size: cover;
  background-position: center 50%;
  opacity: 0.07;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  position: relative;
  z-index: 1;
  gap: 3rem;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 48px; margin-bottom: 1.5rem; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.footer-contact a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-contact a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.3s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--primary);
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/office-boardroom.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.15;
  z-index: 0;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero .section-label { color: rgba(255,255,255,0.6); }
.page-hero h1 { color: var(--white); margin-top: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin-top: 1rem; font-size: 1.1rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-intro-text p { color: #555; font-size: 1.05rem; line-height: 1.9; }

.about-intro-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 60px;
}

.value-item {
  padding: 40px 30px;
  background: var(--white);
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 30px rgba(20,27,77,0.06);
}

.value-item h4 { color: var(--primary); margin-bottom: 0.75rem; }
.value-item p { font-size: 0.92rem; color: #666; margin-bottom: 0; }

/* ============================================================
   PRACTICE AREAS PAGE
   ============================================================ */
.practices-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.practice-page-card {
  position: relative;
  overflow: hidden;
  height: 360px;
  cursor: pointer;
}

.practice-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.practice-page-card:hover img { transform: scale(1.06); }

.practice-page-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,27,77,0.92) 0%, rgba(20,27,77,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px;
  transition: background 0.3s;
}

.practice-page-card:hover .overlay {
  background: linear-gradient(to top, rgba(20,27,77,0.97) 0%, rgba(20,27,77,0.6) 60%, rgba(20,27,77,0.2) 100%);
}

.practice-page-card .overlay h3 { color: var(--white); font-size: 1.3rem; }

.practice-page-card .overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.practice-page-card:hover .overlay p { max-height: 120px; }

/* ============================================================
   OUR PEOPLE PAGE
   ============================================================ */
.people-page-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.people-page-intro p { color: #555; font-size: 1.05rem; line-height: 1.85; }

.people-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.people-page-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 4px 30px rgba(20,27,77,0.07);
  border-top: 3px solid var(--primary);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.people-page-card:hover {
  box-shadow: 0 12px 50px rgba(20,27,77,0.14);
  border-color: var(--accent);
}

.people-page-card img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.people-page-card-info h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }

.people-page-card-info .title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  display: block;
  margin-bottom: 1rem;
}

.people-page-card-info p { font-size: 0.9rem; color: #555; line-height: 1.75; }

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.news-page-card {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(20,27,77,0.06);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.news-page-card:hover {
  box-shadow: 0 16px 50px rgba(20,27,77,0.14);
  transform: translateY(-6px);
}

.news-page-card .news-body { padding: 28px 30px; }

.news-page-card .news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.news-page-card h3 { font-size: 1.05rem; line-height: 1.45; color: var(--primary); margin-bottom: 0.75rem; }
.news-page-card p { font-size: 0.88rem; color: #666; line-height: 1.7; }

.news-page-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  transition: color 0.3s, gap 0.3s;
}
.news-page-card:hover .read-more { color: var(--accent); gap: 10px; }

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.careers-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.careers-intro-text p { color: #555; font-size: 1.05rem; line-height: 1.9; }

.careers-intro-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
}

.careers-programs {
  background: var(--off-white);
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.program-card {
  background: var(--white);
  padding: 45px 40px;
  border-top: 4px solid var(--primary);
  transition: border-color 0.3s;
}
.program-card:hover { border-color: var(--accent); }

.program-card h3 { color: var(--primary); margin-bottom: 1rem; }
.program-card p { color: #555; font-size: 0.95rem; line-height: 1.8; }

.program-dates {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-grey);
}

.program-dates h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.75rem;
}

.program-dates p { font-size: 0.88rem; color: #555; margin-bottom: 0.3rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info p { color: #555; font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.5rem; }
.contact-info a { color: var(--primary); transition: color 0.3s; }
.contact-info a:hover { color: var(--accent); }

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-detail-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-item div { font-size: 0.92rem; color: #555; line-height: 1.7; }
.contact-detail-item div strong { color: var(--primary); display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }

.contact-map {
  margin-top: 2rem;
  height: 240px;
  background: var(--light-grey);
  overflow: hidden;
}

.contact-map iframe { width: 100%; height: 100%; border: none; }

.contact-form-wrap { background: var(--off-white); padding: 50px; }

.contact-form-wrap h3 { margin-bottom: 2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--light-grey);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }

.form-group textarea { height: 140px; resize: vertical; }

.form-group .disclaimer {
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-top: 0.5rem;
}

/* ============================================================
   DISCLAIMERS PAGE
   ============================================================ */
.disclaimers-content {
  max-width: 800px;
  margin: 0 auto;
}

.disclaimers-content h3 { margin: 2rem 0 1rem; color: var(--primary); }
.disclaimers-content p { color: #555; font-size: 0.95rem; line-height: 1.85; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-home-grid,
  .about-intro-grid,
  .careers-intro-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .about-home-image::before { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .intro-grid { grid-template-columns: 1fr 1fr 1fr; }
  .intro-divider { display: none; }

  .news-grid { grid-template-columns: 1fr 1fr; }

  .people-page-card { grid-template-columns: 1fr; }
  .people-page-card img { width: 100%; height: 280px; }

  .programs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--primary);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .nav-links.open a {
    color: rgba(255,255,255,0.9) !important;
  }

  .section-pad { padding: 70px 0; }

  .intro-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }

  .news-grid { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 30px; }

  .news-home-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================================
   JOB CARD (Careers Page)
   ============================================================ */
.job-card {
  background: var(--white);
  box-shadow: 0 4px 30px rgba(20,27,77,0.08);
  border-top: 4px solid var(--accent);
  overflow: hidden;
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 36px 44px;
  background: var(--primary);
  flex-wrap: wrap;
}

.job-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 0.75rem;
}

.job-card-header h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.job-location {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin: 0;
}

.job-card-body {
  padding: 40px 44px;
}

.job-card-body p {
  color: #555;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.job-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--off-white);
  border-left: 4px solid var(--primary);
}

.job-detail-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.job-detail-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.job-detail-col ul li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.job-detail-col ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.job-apply-box {
  background: var(--primary);
  padding: 20px 28px;
  margin-top: 1.5rem;
}

.job-apply-box p {
  color: rgba(255,255,255,0.8) !important;
  margin: 0 !important;
  font-size: 0.92rem;
}

.job-apply-box a {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  transition: color 0.3s;
  text-decoration: underline;
}

.job-apply-box a:hover { color: var(--white); }

@media (max-width: 900px) {
  .job-details-grid { grid-template-columns: 1fr; }
  .job-card-header { padding: 28px 28px; }
  .job-card-body { padding: 28px 28px; }
}

/* ============================================================
   PER-PAGE HERO PHOTO BACKGROUNDS
   ============================================================ */
.page-hero-about::after {
  background-image: url('../assets/office-trophies.jpg');
  background-position: center 40%;
  opacity: 0.30;
}
.page-hero-people::after {
  background-image: url('../assets/office-trophies-shelf.jpg');
  background-position: center 40%;
  opacity: 0.40;
}
.page-hero-news::after {
  background-image: url('../assets/office-boardroom.jpg');
  background-position: center 40%;
  opacity: 0.30;
}
.page-hero-practices::after {
  background-image: url('../assets/office-corridor.jpg');
  background-position: center center;
  opacity: 0.25;
}
.page-hero-careers::after {
  background-image: url('../assets/office-signage.jpg');
  background-position: center center;
  opacity: 0.25;
}
.page-hero-contact::after {
  background-image: url('../assets/office-entrance-view.jpg');
  background-position: center center;
  opacity: 0.25;
}
/* cache-bust: 1773725295 */
