/* ==========================================================================
   Kancelaria Adwokacka Dobrosława Tomzik — Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Bottle Green Palette */
    --green-900: #0D2818;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --green-400: #74C69D;
    --green-300: #95D5B2;
    --green-200: #B7E4C7;
    --green-100: #D8F3DC;

    /* Gold Accent */
    --gold-500: #C5A55A;
    --gold-400: #D4B96A;
    --gold-300: #E8D5A3;

    /* Neutrals */
    --neutral-50: #FAFAF9;
    --neutral-100: #F5F5F4;
    --neutral-200: #E7E5E4;
    --neutral-300: #D6D3D1;
    --neutral-700: #44403C;
    --neutral-800: #292524;
    --neutral-900: #1C1917;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.14);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);
    --transition-slow: 0.5s var(--ease);

    /* Layout */
    --header-height: 80px;
    --max-width: 1200px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    overflow-x: hidden;
}

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--green-500);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--green-800);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.15rem;
    font-family: var(--font-body);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.text-gold {
    color: var(--gold-500);
}

.text-green {
    color: var(--green-700);
}

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section--alt {
    background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
    color: white;
}

.section--alt h2,
.section--alt h3 {
    color: white;
}

.section--alt .section-separator {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

/* Team elements on dark section--alt background */
.section--alt .team-name {
    color: white;
}

.section--alt .team-role {
    color: var(--gold-400);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.section--alt .team-bio {
    color: rgba(255, 255, 255, 0.82);
}

.section--alt .team-bio b {
    color: white;
}

.section--dark {
    background-color: var(--green-800);
    color: white;
}

.section--dark h2,
.section--dark h3 {
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-separator {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(27, 67, 50, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition);
    height: var(--header-height);
}

.site-header.scrolled {
    background: rgba(13, 40, 24, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    transition: opacity var(--transition);
}

.nav-logo:hover {
    opacity: 0.85;
    color: white;
}

.nav-logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-400);
    font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gold-400);
    transform: scaleX(0);
    transition: transform var(--transition);
    border-radius: 1px;
}

.nav-menu a:hover {
    color: white;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.nav-menu a.active {
    color: white;
}

.nav-menu a.active::after {
    transform: scaleX(1);
}

/* Hamburger Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    position: absolute;
    transition: all var(--transition);
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

.nav-toggle-label span::after {
    content: '';
    top: 8px;
}

.nav-toggle:checked+.nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked+.nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle:checked+.nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(13, 40, 24, 0.88) 0%,
            rgba(27, 67, 50, 0.75) 40%,
            rgba(45, 106, 79, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-400);
    border: 1px solid var(--gold-500);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--green-900);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(197, 165, 90, 0.3);
    letter-spacing: 0.03em;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 165, 90, 0.4);
    color: var(--green-900);
}

.hero-cta svg {
    transition: transform var(--transition);
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   7. Feature Cards (Homepage)
   -------------------------------------------------------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-600), var(--green-400));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
    color: inherit;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--green-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(13, 40, 24, 0.25);
}

.card:hover .card-icon {
    background: var(--green-700);
    box-shadow: 0 6px 18px rgba(13, 40, 24, 0.35);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: color var(--transition);
}

.card:hover .card-icon svg {
    color: white;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Info / Hours Section
   -------------------------------------------------------------------------- */
.info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 48px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(197, 165, 90, 0.2);
    position: relative;
}

.info-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.info-card-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.info-card h3 {
    color: var(--green-800);
    font-family: var(--font-heading);
    font-size: 1.75rem;
}

.info-card .hours-main {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-500);
    margin: 20px 0;
    letter-spacing: 0.05em;
    display: inline-block;
    padding: 8px 32px;
    border: 1px solid var(--gold-400);
    border-radius: 50px;
    background: rgba(197, 165, 90, 0.05);
}

.info-card .hours-notes {
    font-size: 0.85rem;
    color: var(--neutral-700);
    line-height: 1.8;
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-200);
    margin-top: 20px;
}

.info-card .hours-sub {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-800);
    margin: 4px 0 16px;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   9. Social Media Section
   -------------------------------------------------------------------------- */
.social-section {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    transition: all var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--green-700);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
}

.social-link svg {
    width: 48px;
    height: 48px;
}

/* Facebook brand colors */
.social-link[aria-label="Facebook"] {
    background: #1877F2;
    color: white;
}

.social-link[aria-label="Facebook"]:hover {
    background: #0C5EC7;
    color: white;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

/* --------------------------------------------------------------------------
   10. About Page
   -------------------------------------------------------------------------- */
.about-intro {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--neutral-800);
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

.about-intro p {
    margin-bottom: 1.2rem;
}

.team-member {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.team-photo {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.team-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--gold-500);
    border-radius: var(--radius-md);
    opacity: 0.5;
    pointer-events: none;
}

.team-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--gold-500);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: inline-block;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green-200);
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--neutral-700);
    text-align: justify;
}

.team-bio p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   11b. Publications Timeline
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* Vertical center line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom,
            transparent,
            var(--gold-500) 5%,
            var(--gold-500) 95%,
            transparent);
}

/* Year marker */
.timeline-year-marker {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin: 32px 0 8px;
}

.timeline-year-marker span {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--green-900);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 7px 26px;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(197, 165, 90, 0.35);
}

/* Timeline item */
.timeline-item {
    position: relative;
    width: 44%;
    padding: 12px 0 24px;
}

.timeline-item--left {
    margin-left: 0;
    margin-right: auto;
    padding-right: 48px;
    text-align: right;
}

.timeline-item--right {
    margin-left: auto;
    margin-right: 0;
    padding-left: 48px;
    text-align: left;
}

/* Dot on the line */
.timeline-dot {
    position: absolute;
    top: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold-500);
    border: 3px solid var(--green-800);
    box-shadow: 0 0 0 2px var(--gold-500);
    z-index: 2;
}

.timeline-item--left .timeline-dot {
    right: -7px;
}

.timeline-item--right .timeline-dot {
    left: -7px;
}

.timeline-dot--pending {
    background: rgba(197, 165, 90, 0.4);
    box-shadow: 0 0 0 2px var(--gold-400), 0 0 12px rgba(197, 165, 90, 0.4);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 2px var(--gold-400), 0 0 8px rgba(197, 165, 90, 0.3);
    }

    50% {
        box-shadow: 0 0 0 4px var(--gold-400), 0 0 18px rgba(197, 165, 90, 0.55);
    }
}

/* Card */
.timeline-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: background var(--transition), border-color var(--transition);
    backdrop-filter: blur(4px);
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(197, 165, 90, 0.35);
}

.publication-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: white;
    line-height: 1.5;
    margin-bottom: 8px;
}

.publication-source {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.publication-source em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.publication-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin-left: 6px;
}

.publication-note::before {
    content: '— ';
}

.publication-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: rgba(197, 165, 90, 0.15);
    border: 1px solid var(--gold-500);
    color: var(--gold-400);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 20px;
    vertical-align: middle;
}

/* Mobile: collapse to single column */
@media (max-width: 768px) {
    .timeline::before {
        left: 18px;
    }

    .timeline-year-marker {
        justify-content: flex-start;
        padding-left: 48px;
    }

    .timeline-item--left,
    .timeline-item--right {
        width: 100%;
        margin-left: 0;
        padding-left: 52px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item--left .timeline-dot,
    .timeline-item--right .timeline-dot {
        left: 11px;
        right: auto;
    }
}

/* --------------------------------------------------------------------------
   11. Gallery & Lightbox
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

/* Zdjęcia kancelarii — pełne zdjęcie bez przycinania */
.gallery-item[data-gallery="o-nas"] {
    aspect-ratio: 3 / 4;
    background: var(--green-900);
}

.gallery-item[data-gallery="o-nas"] img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 40, 24, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 2;
    color: white;
    opacity: 0;
    transition: all var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
    border: none;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
    border: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   12. Services Page
   -------------------------------------------------------------------------- */
.services-intro {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--neutral-700);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

.service-card-icon {
    width: 52px;
    height: 52px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--green-700);
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-200);
}

.service-card-list {
    list-style: none;
}

.service-card-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.service-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-400);
}

/* Nested lists */
.service-card-list li ul {
    margin-top: 8px;
    padding-left: 8px;
}

.service-card-list li ul li {
    padding-left: 20px;
    font-size: 0.9rem;
}

.service-card-list li ul li::before {
    width: 6px;
    height: 6px;
    background: var(--green-300);
    top: 13px;
}

/* Mediation section */
.mediation-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 48px;
    border-left: 4px solid var(--gold-500);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.mediation-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--neutral-700);
    text-align: justify;
}

/* --------------------------------------------------------------------------
   13. Contact Page
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info-block {
    margin-bottom: 32px;
}

.contact-info-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green-200);
    display: inline-block;
}

.contact-info-value {
    font-size: 1rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.contact-info-value a {
    color: var(--green-700);
    font-weight: 500;
}

.contact-info-value a:hover {
    color: var(--green-500);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green-200);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--neutral-50);
    transition: all var(--transition);
    outline: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
    background: white;
}

.form-textarea {
    height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.form-info {
    font-size: 0.8rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin-top: 16px;
    text-align: justify;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
    margin-top: 8px;
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
}

.form-submit svg {
    transition: transform var(--transition);
}

.form-submit:hover svg {
    transform: translateX(4px);
}

#form-messages {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

#form-messages.success {
    display: block;
    background: var(--green-100);
    color: var(--green-800);
    border: 1px solid var(--green-300);
}

#form-messages.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Map */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Career Section */
.career-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    max-width: 900px;
    margin: 0 auto;
}

.career-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--neutral-700);
    text-align: justify;
}

.career-section a {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. Page Hero (Subpages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding: calc(var(--header-height) + 60px) 0 60px;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-heading);
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.page-hero .section-separator {
    margin-top: 16px;
}

/* --------------------------------------------------------------------------
   15. Photo Credits
   -------------------------------------------------------------------------- */
.photo-credits {
    text-align: center;
    font-size: 0.85rem;
    color: var(--neutral-700);
    padding-top: 24px;
}

.photo-credits a {
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.8);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo:hover {
    color: white;
}

.footer-logo-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    font-weight: 500;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-nav a:hover {
    color: var(--gold-400);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: var(--gold-400);
}

.footer-contact a:hover {
    color: var(--gold-300);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--green-700);
    color: white;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-social a[aria-label="Facebook"] {
    background: #1877F2;
    color: white;
}

.footer-social a[aria-label="Facebook"]:hover {
    background: #0C5EC7;
    color: white;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   17. Animations
   -------------------------------------------------------------------------- */
@keyframes heroZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.12);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   18. Responsive — Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 72px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-member {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }

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

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* --------------------------------------------------------------------------
   19. Responsive — Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 56px;
        --header-height: 70px;
    }

    /* Mobile Nav */
    .nav-toggle-label {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--green-900);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        align-items: stretch;
    }

    .nav-toggle:checked~.nav-menu {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.05rem;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-menu a::after {
        display: none;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 36px 28px;
    }

    /* Team */
    .team-member {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-photo {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .mediation-section {
        padding: 32px 24px;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 32px 24px;
    }

    /* Info card */
    .info-card {
        padding: 36px 28px;
    }

    /* Hero */
    .hero-cta {
        padding: 14px 32px;
        font-size: 0.9rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 18px;
    }

    /* Page hero */
    .page-hero {
        padding: calc(var(--header-height) + 40px) 0 40px;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .career-section {
        padding: 32px 24px;
    }
}

/* --------------------------------------------------------------------------
   20. Responsive — Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero {
        min-height: 500px;
    }

    .container {
        padding: 0 16px;
    }
}