/*
Theme Name: Malapane Attorneys
Theme URI: https://malapaneinc.co.za
Author: Malapane Attorneys Inc.
Description: Professional responsive WordPress theme for Malapane Attorneys Inc.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: malapane-attorneys
*/

/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --navy:       #1a1a2e;
  --orange:     #c8601a;
  --orange-lt:  #e07b2a;
  --dark:       #111827;
  --mid:        #374151;
  --gray:       #6b7280;
  --light-gray: #f3f4f6;
  --border:     #e5e7eb;
  --white:      #ffffff;
  --font-h:     'Playfair Display', Georgia, serif;
  --font-b:     'Open Sans', Arial, sans-serif;
  --font-logo:  'Playfair Display', Georgia, serif;
  --ease:       all 0.3s ease;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.18);
  --radius:     8px;
  --radius-lg:  14px;
  --max-w:      1180px;
}

/* =============================================
   RESET
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); font-size: 16px; line-height: 1.7; color: var(--dark); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--ease); }
a:hover { color: var(--orange-lt); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-h); line-height: 1.25; color: var(--navy); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* Inline SVG icons — always aligned */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
}

/* =============================================
   LAYOUT UTILITIES
============================================= */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sec { padding: 88px 0; }
.sec-sm { padding: 60px 0; }

.sec-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.sec-title span { color: var(--orange); }
.sec-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  background: var(--orange);
  margin-top: 14px;
  border-radius: 2px;
}
.sec-title.center { text-align: center; }
.sec-title.center::after { margin-left: auto; margin-right: auto; }
.sec-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 620px;
  line-height: 1.75;
}
.sec-sub.center { text-align: center; margin: 0 auto; }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: var(--font-b);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-lt);
  border-color: var(--orange-lt);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,96,26,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* =============================================
   TOP BAR
============================================= */
#topbar {
  background: var(--navy);
  padding: 9px 0;
  font-size: 0.8rem;
}
#topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.78);
}
.topbar-item svg { color: var(--orange); }
.topbar-item a { color: rgba(255,255,255,0.78); }
.topbar-item a:hover { color: var(--orange); }

/* =============================================
   HEADER
============================================= */
#site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 20px;
}
.site-logo img {
  height: 64px;
  width: auto;
}

/* NAV */
#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#primary-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--navy);
  border-radius: var(--radius);
  transition: var(--ease);
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  color: var(--orange);
  background: rgba(200,96,26,0.07);
}
/* Book Consultation CTA button in nav — ONLY nav-cta class, NOT last-child */
#primary-nav ul li.nav-cta > a {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  margin-left: 8px;
}
#primary-nav ul li.nav-cta > a:hover {
  background: transparent;
  color: var(--orange) !important;
  border-color: var(--orange);
}

/* Header CTA — Book Consultation button always in header on desktop */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--ease);
}
.header-cta:hover {
  background: transparent;
  color: var(--orange) !important;
  border-color: var(--orange);
}
.header-cta svg { color: currentColor; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO — DESKTOP
============================================= */
#hero {
  position: relative;
  background: linear-gradient(120deg, rgba(26,26,46,0.94) 0%, rgba(26,26,46,0.78) 100%),
              url('images/office-bg.jpg') center / cover no-repeat;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 70px;
  background: var(--white);
  clip-path: ellipse(52% 100% at 50% 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content {
  max-width: 660px;
  padding: 70px 0 100px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,96,26,0.2);
  border: 1px solid rgba(200,96,26,0.5);
  color: #f5a87a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.hero-badge svg { color: var(--orange); }
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--orange); }
.hero-content p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
}
.hero-stat {
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat strong {
  display: block;
  font-family: var(--font-h);
  font-size: 2.2rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Mobile hero — hidden on desktop */
.hero-mobile { display: none; }

/* =============================================
   ABOUT SECTION
============================================= */
#about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

/* Image column — fixed proportions */
.about-img-col { position: relative; }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Fixed aspect ratio — no 2m tall images */
  aspect-ratio: 4 / 5;
  max-height: 520px;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 120px;
}
.about-badge strong {
  display: block;
  font-family: var(--font-h);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.about-badge span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Content column */
.about-text-col {}
.about-text-col .sec-title { margin-bottom: 18px; }
.about-text-col p { color: var(--mid); font-size: 0.95rem; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 32px;
}
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--light-gray);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}
.value-icon {
  width: 40px;
  height: 40px;
  background: rgba(200,96,26,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.value-card h4 { font-size: 0.88rem; margin-bottom: 3px; color: var(--navy); }
.value-card p { font-size: 0.8rem; color: var(--gray); margin: 0; line-height: 1.5; }

/* =============================================
   PRACTICE AREAS
============================================= */
#practice { background: var(--light-gray); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.practice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
}
.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--orange);
}
.practice-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,96,26,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 18px;
  transition: var(--ease);
}
.practice-card:hover .practice-icon {
  background: var(--orange);
  color: var(--white);
}
.practice-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.practice-card p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* =============================================
   TEAM SECTION
============================================= */
#team { background: var(--light-gray); }

/* Team grid — centered, balanced regardless of member count */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
  justify-items: stretch;
}
/* When only 1 card exists, center it with a max width */
.team-grid:has(.team-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Photo — always fills full card width */
.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  display: block;
}
.team-card:hover .team-photo img { transform: scale(1.05); }

/* Gradient overlay with social icons */
.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.88) 0%, rgba(26,26,46,0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--ease);
}
.team-card:hover .team-overlay { opacity: 1; }
.team-socials { display: flex; gap: 8px; }
.team-socials a {
  width: 32px; height: 32px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.team-socials a:hover { background: var(--orange-lt); color: var(--white); }

/* Info block — equal padding, consistent typography */
.team-info {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--orange);
}
.team-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--navy);
  line-height: 1.3;
}
.team-role {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 12px;
}
.team-info p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* =============================================
   WHY US
============================================= */
#why-us { background: var(--navy); }
#why-us .sec-title { color: var(--white); }
#why-us .sec-sub { color: rgba(255,255,255,0.65); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.why-card {
  padding: 32px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--ease);
}
.why-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--orange);
  transform: translateY(-4px);
}
.why-icon {
  width: 64px;
  height: 64px;
  background: rgba(200,96,26,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin: 0 auto 18px;
  transition: var(--ease);
}
.why-card:hover .why-icon { background: var(--orange); color: var(--white); }
.why-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.65); font-size: 0.87rem; margin: 0; line-height: 1.65; }

/* =============================================
   TESTIMONIALS
============================================= */
#testimonials { background: var(--light-gray); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.testi-quote { color: var(--orange); opacity: 0.3; margin-bottom: 6px; }
.testi-stars { display: flex; gap: 3px; color: #f59e0b; margin-bottom: 14px; }
.testi-card p { font-size: 0.9rem; color: var(--mid); font-style: italic; line-height: 1.7; flex: 1; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testi-author span { font-size: 0.78rem; color: var(--gray); }

/* =============================================
   CONTACT SECTION
============================================= */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}
.contact-info-col h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-info-col > p { color: var(--gray); margin-bottom: 28px; font-size: 0.93rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--light-gray);
  border-radius: var(--radius);
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--navy); margin-bottom: 3px; }
.contact-item-text a,
.contact-item-text span { font-size: 0.9rem; color: var(--gray); }
.contact-item-text a:hover { color: var(--orange); }

/* Social links — equal sized pills */
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--ease);
  white-space: nowrap;
}
.social-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white); }
.social-pill.fb   { background: #1877f2; }
.social-pill.ig   { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-pill.li   { background: #0a66c2; }
.social-pill.tt   { background: #010101; }

/* Contact Form */
.contact-form-col {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form-col h3 { font-size: 1.4rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--navy); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-b);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--dark);
  transition: var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(200,96,26,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; font-size: 0.92rem; }
.form-msg {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-msg.success { background: #d1fae5; color: #065f46; }
.form-msg.error   { background: #fee2e2; color: #991b1b; }

/* =============================================
   MAP
============================================= */
#map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* =============================================
   FOOTER — BALANCED 4-column layout
   Each column has roughly the same number of items
============================================= */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Brand column */
.footer-brand img {
  height: 54px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--ease);
}
.footer-social-icon:hover { transform: translateY(-3px); color: var(--white); }
.footer-social-icon.fb { background: #1877f2; }
.footer-social-icon.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social-icon.li { background: #0a66c2; }
.footer-social-icon.tt { background: #010101; }

/* Footer columns — equal items */
.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--ease);
}
.footer-col ul li a:hover { color: var(--orange); padding-left: 4px; }
.footer-col ul li a svg { color: var(--orange); flex-shrink: 0; }

/* Contact column */
.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-row svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-contact-row a { color: rgba(255,255,255,0.6); }
.footer-contact-row a:hover { color: var(--orange); }

/* Footer bottom bar */
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--orange); }

/* =============================================
   SCROLL TO TOP
============================================= */
#scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--orange);
  color: var(--white);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px);
  transition: var(--ease); z-index: 800;
}
#scroll-top.show { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--orange-lt); transform: translateY(-3px); }

/* =============================================
   FADE-IN ANIMATION
============================================= */
.fade { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade.in { opacity: 1; transform: translateY(0); }

/* =============================================
   TABLET — max 1024px
============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-badge { right: 0; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* =============================================
   MOBILE — max 768px
============================================= */
@media (max-width: 768px) {
  .sec { padding: 56px 0; }
  .wrap { padding: 0 18px; }

  /* Top bar hidden on mobile */
  #topbar { display: none; }

  /* Header — logo stays visible on mobile */
  .hamburger { display: flex; }

  /* Hide header CTA on mobile — hero already has consultation button */
  .header-cta { display: none; }

  /* Hero mobile — NO logo inside hero (already in header above) */
  .hero-mobile-logo { display: none; }
  #primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 18px 20px;
    z-index: 800;
  }
  #primary-nav.open { display: block; }
  #primary-nav ul { flex-direction: column; gap: 2px; }
  #primary-nav ul li a { padding: 11px 14px; font-size: 0.9rem; }

  /* ---- HERO MOBILE ---- */
  .hero-mobile { display: flex; }
  .hero-inner { display: none; }
  #hero {
    min-height: unset;
    background: none;
    padding: 0;
  }
  #hero::after { display: none; }

  .hero-mobile {
    width: 100%;
    /* Owner photo as hero background with professional dark overlay */
    background-image:
      linear-gradient(to bottom,
        rgba(26,26,46,0.65) 0%,
        rgba(26,26,46,0.40) 35%,
        rgba(26,26,46,0.82) 100%),
      url('images/hero-mobile-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100svh;
  }
  /* Subtle orange accent bar at bottom */
  .hero-mobile::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-lt), var(--orange));
    z-index: 3;
  }
  .hero-mobile-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Push content to bottom so owner photo shows at top */
    padding: 52px 22px 48px;
    width: 100%;
    min-height: 100svh;
    justify-content: flex-end;
  }
  /* NO logo in mobile hero — logo is already in header */
  .hero-mobile-logo { display: none; }
  .hero-mobile-line {
    width: 48px; height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin-bottom: 22px;
  }
  .hero-mobile .hero-badge {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
  }
  .hero-mobile h1 {
    font-size: 1.9rem;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 14px;
  }
  .hero-mobile h1 span { color: var(--orange); }
  .hero-mobile-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 340px;
  }
  .hero-mobile-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 32px;
  }
  .hero-mobile-btns .btn { width: 100%; padding: 14px 20px; font-size: 0.88rem; }
  .hero-mobile-stats {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 18px 0;
    margin-bottom: 26px;
  }
  .hero-mobile-stat { flex: 1; text-align: center; padding: 0 10px; }
  .hero-mobile-stat strong {
    display: block;
    font-family: var(--font-h);
    font-size: 1.5rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 4px;
  }
  .hero-mobile-stat span {
    display: block;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
  }
  .hero-mobile-divider {
    width: 1px; height: 38px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
  }
  .hero-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
  }
  .hero-mobile-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: rgba(255,255,255,0.82);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--ease);
  }
  .hero-mobile-contact a svg { color: var(--orange); }
  .hero-mobile-contact a:hover {
    background: rgba(200,96,26,0.15);
    border-color: var(--orange);
    color: var(--white);
  }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img-wrap { max-height: 340px; }
  .about-badge { right: 0; bottom: 16px; }
  .about-values { grid-template-columns: 1fr; }

  /* Practice */
  .practice-grid { grid-template-columns: 1fr; }

  /* Team — single column, photo shows full face not cropped */
  .team-grid { grid-template-columns: 1fr; }
  .team-photo {
    aspect-ratio: 4 / 5;
    width: 100% !important;
  }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-col { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .site-logo img { height: 52px; }
  .hero-mobile h1 { font-size: 1.65rem; }
  .practice-grid { grid-template-columns: 1fr; }
}

/* =============================================
   WORDPRESS CORE
============================================= */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; }
