/*
Theme Name: Hamunyela Inc
Theme URI: https://hamunyelainc.com
Author: Hamunyela & Company Incorporated
Description: A modern, professional theme for Hamunyela & Company Incorporated Law Firm
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hamunyela-inc
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black:       #111111;
    --dark:        #2c2c2c;
    --mid-grey:    #888888;
    --light-grey:  #d8d8d8;
    --off-white:   #f7f5f2;
    --white:       #ffffff;
    --accent:      #3a3a3a;

    /* Gold palette — muted, prestigious */
    --gold:        #C4964A;
    --gold-light:  #E8D09A;
    --gold-dark:   #9A7230;
    --gold-faint:  rgba(196, 150, 74, 0.08);

    --font-main:   'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-serif:  'Cormorant Garamond', 'Georgia', serif;
    --transition:  0.3s ease;
    --radius:      4px;
    --max-width:   1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--mid-grey);
    max-width: 600px;
    line-height: 1.85;
}

/* =============================================
   H-PATTERN BACKGROUND UTILITY
   ============================================= */
.h-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.06'%3E%3Cpath d='M0 0h10v25H0zM20 0h10v25H20zM7 25h16v10H7zM0 35h10v25H0zM20 35h10v25H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =============================================
   NAVIGATION
   ============================================= */

/* ── Default: WHITE bar — stands out against the dark hero ── */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: background  0.35s ease,
                border-color 0.35s ease,
                box-shadow   0.35s ease,
                padding      0.35s ease;
}

/* Logo and nav links are dark on white background */
#site-header .logo-text span:first-child { color: var(--black); }
#site-header .logo-text span:last-child  { color: var(--mid-grey); }
#site-header .logo-h                     { color: var(--black); }
#site-header .main-nav a                 { color: var(--dark); }
#site-header .main-nav a::after          { background: var(--black); }
#site-header .nav-toggle span            { background: var(--black); }

/* Contact button — gold on white nav */
#site-header .nav-cta {
    background: var(--gold) !important;
    color: var(--black) !important;
}
#site-header .nav-cta:hover {
    background: var(--gold-dark) !important;
}

/* ── Scrolled: DARK bar — blends into page sections below ── */
#site-header.scrolled {
    background: rgba(15, 15, 15, 0.97);
    border-bottom-color: rgba(255,255,255,0.05);
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    padding: 0.75rem 0;
}

#site-header.scrolled .logo-text span:first-child { color: var(--white); }
#site-header.scrolled .logo-text span:last-child  { color: var(--light-grey); }
#site-header.scrolled .logo-h                     { color: var(--white); }
#site-header.scrolled .main-nav a                 { color: rgba(255,255,255,0.8); }
#site-header.scrolled .main-nav a::after          { background: var(--white); }
#site-header.scrolled .nav-toggle span            { background: var(--white); }

#site-header.scrolled .nav-cta {
    background: var(--gold) !important;
    color: var(--black) !important;
}
#site-header.scrolled .nav-cta:hover {
    background: var(--gold-dark) !important;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-h {
    width: 42px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span:first-child {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.35s ease;
}

.logo-text span:last-child {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

.logo-h { transition: color 0.35s ease; }

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

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    transition: width var(--transition), background 0.35s ease;
}

.main-nav a:hover::after { width: 100%; }

.nav-cta {
    padding: 0.6rem 1.5rem !important;
    border-radius: var(--radius);
    font-weight: 600 !important;
    transition: background var(--transition), color var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle span { transition: background 0.35s ease, transform 0.3s ease, opacity 0.3s ease; }

.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(--white);
    transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
#hero {
    min-height: 100vh;
    background: var(--black);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* subtle tiled H pattern */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h14v34H0zM26 0h14v34H26zM9 34h22v12H9zM0 46h14v34H0zM26 46h14v34H26z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* soft radial spotlight from top-left */
.hero-spotlight {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 80vw;
    height: 80vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Two-column split ── */
.hero-inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 8rem 2rem 3rem;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* ── Left: text ── */
.hero-text { display: flex; flex-direction: column; }

.hero-tagline-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 5.8vw, 6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.hero-word {
    color: var(--white);
    display: block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.hero-word--light { color: var(--gold-light); }

/* stagger delays */
.hero-word:nth-child(1) { transition-delay: 0.15s; }
.hero-word:nth-child(2) { transition-delay: 0.30s; }
.hero-word:nth-child(3) { transition-delay: 0.45s; }

/* triggered on page load */
.hero-title.hero-animate .hero-word {
    opacity: 1;
    transform: translateY(0);
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 480px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease 0.65s, transform 0.7s ease 0.65s;
}

.hero-desc.hero-animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease 0.85s, transform 0.6s ease 0.85s;
}

.hero-actions.hero-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius);
    transition: background var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 24px rgba(196,150,74,0.25);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(196,150,74,0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--gold-light);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.95rem 2.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(196,150,74,0.35);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(196,150,74,0.06);
}

/* ── Right: lettermark ── */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.hero-mark-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.9s ease 0.3s, transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s;
}

.hero-mark-wrap.hero-animate {
    opacity: 1;
    transform: scale(1);
}

.hero-mark {
    width: 160px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.06));
}

/* pulsing rings */
.hero-mark-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ring-pulse 4s ease-in-out infinite;
}

.hero-mark-ring--1 {
    width: 240px;
    height: 240px;
    animation-delay: 0s;
}

.hero-mark-ring--2 {
    width: 310px;
    height: 310px;
    animation-delay: 1s;
    border-color: rgba(255,255,255,0.03);
}

@keyframes ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
    50%       { transform: translate(-50%, -50%) scale(1.04); opacity: 0.5; }
}

/* floating pill */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 0.55rem 1.25rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.6s ease 1s;
}

.hero-pill.hero-animate { opacity: 1; }

.hero-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    animation: dot-blink 2.5s ease-in-out infinite;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── Bottom stats strip ── */
.hero-stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 1px solid rgba(196,150,74,0.2);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 2;
    padding: 0;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.6rem 3rem;
    gap: 0.3rem;
    flex: 1;
}

.hero-stat strong {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1;
    letter-spacing: -0.01em;
}

.hero-stat span {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    text-align: center;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(196,150,74,0.2);
    flex-shrink: 0;
}

/* ── Scroll indicator ── */
.hero-scroll {
    position: absolute;
    bottom: 7rem; /* above stats strip */
    right: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 2;
    animation: bounce 2.2s ease-in-out infinite;
}

.hero-scroll svg { opacity: 0.3; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* =============================================
   STATS BAR
   ============================================= */
#stats-bar {
    background: var(--off-white);
    border-bottom: 1px solid var(--light-grey);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 1rem 2rem;
    border-right: 1px solid var(--light-grey);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid-grey);
}

/* =============================================
   ABOUT
   ============================================= */
#about {
    padding: 7rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-logo-block {
    background: var(--black);
    padding: 4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.about-logo-block .h-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h10v25H0zM20 0h10v25H20zM7 25h16v10H7zM0 35h10v25H0zM20 35h10v25H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-logo-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.about-logo-inner svg {
    margin: 0 auto 1.5rem;
}

.about-logo-inner p {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.about-logo-inner span {
    display: block;
    color: var(--mid-grey);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.about-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 140px;
}

.about-badge strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold-dark);
    line-height: 1;
}

.about-badge small {
    font-size: 0.72rem;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-text { padding: 1rem 0; }

.about-text p {
    color: #555;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.pillar {
    padding: 1.25rem;
    background: var(--off-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
}

.pillar h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}

.pillar p {
    font-size: 0.82rem;
    color: var(--mid-grey);
    margin: 0 !important;
    line-height: 1.6;
}

/* =============================================
   PRACTICE AREAS
   ============================================= */
#practice-areas {
    padding: 7rem 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

#practice-areas .hero-pattern {
    opacity: 0.6;
}

.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.practice-header .section-label { color: var(--gold); }
.practice-header .section-label::before { background: var(--gold); }
.practice-header .section-title { color: var(--white); margin-bottom: 0; }
.practice-header .section-intro { color: rgba(255,255,255,0.5); }

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.practice-card {
    background: rgba(255,255,255,0.02);
    padding: 2.5rem 2rem;
    transition: background var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.practice-card:hover { background: rgba(255,255,255,0.06); }
.practice-card:hover::before { transform: scaleX(1); }

.practice-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.practice-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

.practice-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
}

/* =============================================
   VISION & MISSION
   ============================================= */
#vision-mission {
    padding: 7rem 0;
    background: var(--off-white);
}

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

.vm-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--light-grey);
    position: relative;
    overflow: hidden;
}

.vm-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
}

.vm-card .icon {
    width: 52px;
    height: 52px;
    background: var(--gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.vm-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.vm-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1.02rem;
}

.values-section {
    margin-top: 2rem;
}

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

.value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--light-grey);
}

.value-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.45rem;
}

.value-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.82rem;
    color: var(--mid-grey);
    line-height: 1.6;
}

/* =============================================
   TEAM
   ============================================= */
#team {
    padding: 7rem 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.team-card {
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.team-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.team-avatar {
    background: var(--black);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-avatar .h-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h10v25H0zM20 0h10v25H20zM7 25h16v10H7zM0 35h10v25H0zM20 35h10v25H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.team-initials {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}

.team-info {
    padding: 1.75rem;
}

.team-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.team-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-grey);
    width: 100%;
}

.team-info p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}

/* =============================================
   CSR
   ============================================= */
#csr {
    padding: 7rem 0;
    background: var(--off-white);
}

.csr-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.csr-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.csr-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.csr-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.csr-item p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.7;
    padding-top: 0.4rem;
}

.csr-visual {
    background: var(--black);
    border-radius: 8px;
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.csr-visual .h-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h10v25H0zM20 0h10v25H20zM7 25h16v10H7zM0 35h10v25H0zM20 35h10v25H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.csr-visual-content {
    position: relative;
    z-index: 1;
}

.csr-visual-content p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.5;
    font-style: italic;
}

.csr-visual-content small {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mid-grey);
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
    padding: 7rem 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

#contact .hero-pattern { opacity: 0.4; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.contact-info .section-label { color: var(--gold); }
.contact-info .section-label::before { background: var(--gold); }
.contact-info .section-title { color: var(--white); }
.contact-info .section-intro { color: rgba(255,255,255,0.5); }

.contact-details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-detail .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-detail-text strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-bottom: 0.25rem;
}

.contact-detail-text span,
.contact-detail-text a {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.5;
}

.contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2.5rem;
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.75rem;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.4);
}

.form-group select option { background: var(--dark); }

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 1rem;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(196,150,74,0.2);
}

.btn-submit:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(196,150,74,0.35);
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 2rem;
}

.footer-brand .site-logo {
    margin-bottom: 1rem;
    display: flex;
}

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

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

.reg-number {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.05em;
}

/* =============================================
   FADE-UP ANIMATION
   ============================================= */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children inside grids */
.practice-grid  .fade-up:nth-child(2),
.team-grid      .fade-up:nth-child(2),
.vm-grid        .fade-up:nth-child(2),
.stats-grid     .fade-up:nth-child(2) { transition-delay: 0.1s; }

.practice-grid  .fade-up:nth-child(3),
.team-grid      .fade-up:nth-child(3),
.stats-grid     .fade-up:nth-child(3) { transition-delay: 0.2s; }

.practice-grid  .fade-up:nth-child(4),
.stats-grid     .fade-up:nth-child(4) { transition-delay: 0.3s; }

.practice-grid  .fade-up:nth-child(5) { transition-delay: 0.1s; }
.practice-grid  .fade-up:nth-child(6) { transition-delay: 0.2s; }
.practice-grid  .fade-up:nth-child(7) { transition-delay: 0.0s; }
.practice-grid  .fade-up:nth-child(8) { transition-delay: 0.1s; }
.practice-grid  .fade-up:nth-child(9) { transition-delay: 0.2s; }
.practice-grid  .fade-up:nth-child(10){ transition-delay: 0.0s; }
.practice-grid  .fade-up:nth-child(11){ transition-delay: 0.1s; }
.practice-grid  .fade-up:nth-child(12){ transition-delay: 0.2s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-inner         { grid-template-columns: 1fr; padding-top: 7rem; gap: 2.5rem; text-align: center; }
    .hero-text          { align-items: center; }
    .hero-tagline-wrap  { justify-content: center; }
    .hero-desc          { max-width: 560px; margin-left: auto; margin-right: auto; }
    .hero-actions       { justify-content: center; }
    .hero-visual        { display: none; }
    .hero-scroll        { right: 50%; transform: translateX(50%); bottom: 8.5rem; }

    .about-grid     { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual   { max-width: 480px; }
    .csr-inner      { grid-template-columns: 1fr; gap: 3rem; }
    .contact-grid   { grid-template-columns: 1fr; gap: 3rem; }
    .footer-inner   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-stat          { padding: 1.2rem 1.25rem; }
    .hero-stat strong   { font-size: 1.25rem; }
    .hero-stat-divider  { height: 28px; }

    .practice-grid      { grid-template-columns: 1fr 1fr; }
    .team-grid          { grid-template-columns: 1fr 1fr; }
    .vm-grid            { grid-template-columns: 1fr; }
    .values-grid        { grid-template-columns: 1fr; }
    .form-row           { grid-template-columns: 1fr; }
    .footer-inner       { grid-template-columns: 1fr; }

    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        /* inherit background from header state */
        background: #ffffff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        align-items: flex-start;
    }
    /* scrolled state: dark mobile menu */
    #site-header.scrolled .main-nav.open {
        background: rgba(15,15,15,0.98);
        border-top-color: rgba(255,255,255,0.06);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .nav-toggle { display: flex; }
    .nav-inner  { position: relative; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .hero-stats-strip   { flex-wrap: wrap; }
    .hero-stat          { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .hero-stat-divider  { display: none; }
    .hero-stat:nth-child(1),
    .hero-stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.07); }
}

@media (max-width: 480px) {
    .practice-grid      { grid-template-columns: 1fr; }
    .team-grid          { grid-template-columns: 1fr; }
    .about-pillars      { grid-template-columns: 1fr; }
    .hero-actions       { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { text-align: center; justify-content: center; width: 100%; }
    .practice-header    { flex-direction: column; align-items: flex-start; }
    .hero-stat          { flex: 0 0 100%; border-right: none !important; }
}

/* =============================================
   FLOATING WHATSAPP BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;

    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
    text-decoration: none;

    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.25s ease;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
}

/* Ripple rings */
.wa-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: wa-ripple 2.4s ease-out infinite;
}

.wa-ring--2 {
    animation-delay: 0.8s;
    border-color: rgba(37, 211, 102, 0.3);
}

@keyframes wa-ripple {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--black);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--black);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Shrink slightly on small screens so it doesn't crowd content */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .wa-tooltip { display: none; }
}
