/* ============================================
   Herbert & Tia Law Firm — Clean White Theme
   ============================================ */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --white: #ffffff;
    --off-white: #f9fafb;
    --light-gray: #f1f3f5;
    --border-gray: #e5e7eb;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #9ca3af;
    --accent: #1a3a5c;
    --accent-light: #2a5a8c;
    --gold: #c5a55a;
    --gold-light: #d4b96e;
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.8;
}

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

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gray);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-logo span {
    display: none; /* Removed redundant text because the uploaded logo image already has the text burned into it */
}

.nav-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 36px);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 6px;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px !important;
    background: var(--text-primary);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 500 !important;
}

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

.nav-cta:hover {
    background: var(--accent-light) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ---- Hero Section ---- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197,165,90,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: fadeIn 1s ease 0.3s both;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
    display: block;
    margin: 0 auto;
}

/* ---- Scroll Reveal Animation ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Global Keyframes ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,26,46,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-gray);
}

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

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* ---- Sections ---- */
section {
    padding: 100px 0;
}

section:nth-child(even) {
    background: var(--off-white);
}

/* ---- About Section ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    max-width: 500px;
    margin: 0 auto;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
    display: block;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-gray);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Services / Topics ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Team Section ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-gray);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* ---- Team Photo Wrapper — photo fits perfectly inside frame ---- */
.team-photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    background: var(--off-white);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.03);
}

.team-photo-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #c5a55a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.team-info {
    padding: 28px;
    text-align: center;
}

.team-info h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.team-info .position {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.team-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,165,90,0.1);
}

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

/* ---- Footer ---- */
.footer {
    background: #ffffff;
    color: #4b5563;
    padding: 0 0 24px 0;
}

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

.footer-brand h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 360px;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--gold);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-credit {
    color: rgba(255,255,255,0.5);
}

.footer-credit a {
    color: var(--gold) !important;
}

/* ---- Page Header (Inner Pages) ---- */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
}

.page-header h1 {
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ---- Flash Messages ---- */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInDown 0.4s ease;
}

.flash-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll animation utility */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image { order: -1; }

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

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

@media (max-width: 1120px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-gray);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-image::after {
        display: none;
    }

    .hero-image img {
        max-height: 400px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    section { padding: 60px 0; }
}

/* ---- Language Dropdown Switcher ---- */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--off-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown-btn:hover {
    border-color: var(--gold);
    background: white;
}

.lang-dropdown-btn .flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-dropdown-btn .chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-dropdown.open .chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 175px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.lang-dropdown-menu a.active {
    background: var(--gold);
    color: white;
}

.lang-dropdown-menu a .flag-icon {
    font-size: 1.15rem;
}

.lang-dropdown-menu a .check-icon {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--gold);
}

.lang-dropdown-menu a.active .check-icon {
    color: white;
}

/* ---- Portfolio Cards with Images ---- */
.portfolio-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    transition: var(--transition);
}

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

.portfolio-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

.portfolio-card-body {
    padding: 24px;
}

.portfolio-card-body .service-icon {
    margin-bottom: 14px;
}

.portfolio-card-body h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.portfolio-card-body p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---- Testimonials Section ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 480px));
    justify-content: center;
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 4.5rem;
    font-family: var(--font-heading);
    color: var(--gold);
    opacity: 0.12;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-gray);
    padding-top: 18px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.testimonial-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.testimonial-author-pos {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- Contact Info Grid ---- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    text-decoration: none;
}

.contact-link-item:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.contact-link-item i {
    font-size: 1.2rem;
    color: var(--gold);
    width: 24px;
    text-align: center;
}

.contact-link-item span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
}

/* ---- Responsive Images with Border ---- */
.img-bordered {
    border: 3px solid var(--border-gray);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.img-bordered:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

/* Social Links Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-card-image {
        height: 180px;
    }
}

/* ============================================
   Member Business Card Modal
   ============================================ */
.member-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.member-modal-card {
    background: #fafafa;
    width: 90%;
    max-width: 750px;
    border-radius: 16px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.member-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    z-index: 10;
}
.member-modal-close:hover { color: #333; }

.business-card-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    background: #fafafa;
    border-radius: 16px;
}

/* ---- Left column (photo) ---- */
.business-card-left {
    flex: 0 0 35%;
    min-height: 100%;
    background: var(--text-primary);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.business-card-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0.3;
}
.business-card-ring--bottom {
    bottom: -50px; left: -50px;
    width: 150px; height: 150px;
}
.business-card-ring--top {
    top: -50px; right: -50px;
    width: 100px; height: 100px;
}

.business-card-photo-frame {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    overflow: hidden;
    border: 4px solid var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    z-index: 2;
}

.business-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card-initials {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    background: var(--gold);
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ---- Right column (details) ---- */
.business-card-right {
    flex: 1;
    padding: 40px;
    background: #fafafa;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.business-card-name {
    margin-bottom: 0;
    font-size: 1.7rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.25;
    text-transform: capitalize;
}

.business-card-divider {
    width: 100%;
    height: 1px;
    background: var(--gold);
    margin: 15px 0;
    position: relative;
}
.business-card-diamond {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    top: -2px; left: 50%;
}

.business-card-position {
    color: var(--gold);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    font-size: 1.15rem;
    text-transform: capitalize;
}

.business-card-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}
.business-card-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.business-card-company {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

/* ---- Contact rows ---- */
.business-card-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.contact-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.contact-icon-circle i {
    color: var(--gold);
    font-size: 0.8rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-detail strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
    width: 55px;
}
.contact-detail a,
.contact-detail span {
    color: #555;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 500;
    text-transform: capitalize;
}

/* ---- Bio ---- */
.business-card-bio {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    text-align: justify;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

/* ---- Download button ---- */
.business-card-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 25px;
    align-self: flex-start;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(197,165,90,0.3);
}
.business-card-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197,165,90,0.4);
}

/* ---- Mobile responsive ---- */
@media (max-width: 768px) {
    .business-card-content {
        flex-direction: column !important;
    }
    .member-modal-card {
        width: 95% !important;
    }
    .business-card-left {
        border-bottom-left-radius: 0;
        border-top-right-radius: 16px;
        padding: 30px 20px;
    }
    .business-card-right {
        border-top-right-radius: 0;
        border-bottom-left-radius: 16px;
        padding: 30px 20px;
    }
}

/* ============================================
   Premium Contact Section
   ============================================ */
section.contact-section#contact {
    position: relative;
    background: #ffffff !important;
    color: #1a1a2e;
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
}

.contact-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.18;
}
.contact-bg-glow-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #c5a55a 0%, transparent 70%);
    top: -150px; left: -150px;
}
.contact-bg-glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #3a7bd5 0%, transparent 70%);
    bottom: -100px; right: -100px;
}

.contact-cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-cta-btn:hover { transform: translateY(-3px); }

.contact-cta-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-cta-gold {
    background: linear-gradient(135deg, #c5a55a 0%, #d4b96e 100%);
    color: #1a1a2e;
    box-shadow: 0 8px 30px rgba(197,165,90,0.4);
}
.contact-cta-gold:hover { box-shadow: 0 12px 40px rgba(197,165,90,0.6); }

.contact-cta-white {
    background: rgba(0,0,0,0.03);
    color: #1a1a2e;
    border: 2px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}
.contact-cta-white:hover { border-color: #1a1a2e; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.contact-cta-wa {
    background: rgba(37,211,102,0.15);
    color: #25d366;
    border: 2px solid rgba(37,211,102,0.4);
    backdrop-filter: blur(10px);
}
.contact-cta-wa:hover { background: rgba(37,211,102,0.25); border-color: #25d366; box-shadow: 0 8px 30px rgba(37,211,102,0.3); }

.contact-cta-ig {
    background: rgba(217,49,122,0.1);
    color: #d9317a;
    border: 2px solid rgba(217,49,122,0.3);
    backdrop-filter: blur(10px);
}
.contact-cta-ig:hover { background: rgba(217,49,122,0.2); border-color: #d9317a; box-shadow: 0 8px 30px rgba(217,49,122,0.25); }
.contact-cta-ig .contact-cta-icon {
    background: linear-gradient(45deg,#833ab4,#fd1d1d,#fcb045);
    color: white;
}

.contact-cta-li {
    background: rgba(0,119,181,0.1);
    color: #0077b5;
    border: 2px solid rgba(0,119,181,0.3);
    backdrop-filter: blur(10px);
}
.contact-cta-li:hover { background: rgba(0,119,181,0.2); border-color: #0077b5; box-shadow: 0 8px 30px rgba(0,119,181,0.25); }
.contact-cta-li .contact-cta-icon {
    background: #0077b5;
    color: white;
}

.contact-cta-fb {
    background: rgba(24,119,242,0.1);
    color: #1877f2;
    border: 2px solid rgba(24,119,242,0.3);
    backdrop-filter: blur(10px);
}
.contact-cta-fb:hover { background: rgba(24,119,242,0.2); border-color: #1877f2; box-shadow: 0 8px 30px rgba(24,119,242,0.25); }
.contact-cta-fb .contact-cta-icon {
    background: #1877f2;
    color: white;
}

.contact-cta-tw {
    background: rgba(0,0,0,0.05);
    color: #1a1a2e;
    border: 2px solid rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}
.contact-cta-tw:hover { background: rgba(0,0,0,0.1); border-color: #1a1a2e; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.contact-cta-tw .contact-cta-icon {
    background: #1a1a2e;
    color: white;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto 50px;
    text-align: left;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197,165,90,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(197,165,90,0.2);
    color: white;
}

.contact-card-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.contact-card:hover .contact-card-icon { transform: scale(1.1) rotate(-5deg); }

.contact-card-icon--email    { background: linear-gradient(135deg,#4f46e5,#7c3aed); box-shadow: 0 4px 15px rgba(79,70,229,.4); color: white; }
.contact-card-icon--phone    { background: linear-gradient(135deg,#059669,#10b981); box-shadow: 0 4px 15px rgba(5,150,105,.4); color: white; }
.contact-card-icon--wa       { background: linear-gradient(135deg,#128c7e,#25d366); box-shadow: 0 4px 15px rgba(37,211,102,.4); color: white; }
.contact-card-icon--location { background: linear-gradient(135deg,#dc2626,#ef4444); box-shadow: 0 4px 15px rgba(220,38,38,.4); color: white; }
.contact-card-icon--ig       { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); box-shadow: 0 4px 15px rgba(131,58,180,.4); color: white; }
.contact-card-icon--fb       { background: linear-gradient(135deg,#1877f2,#0c5ecb); box-shadow: 0 4px 15px rgba(24,119,242,.4); color: white; }

.contact-card-body  { flex: 1; min-width: 0; }
.contact-card-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #c5a55a; margin-bottom: 3px; }
.contact-card-value { font-size: 0.9rem; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-card-arrow { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: all 0.3s; flex-shrink: 0; }
.contact-card:hover .contact-card-arrow { color: #c5a55a; transform: translateX(4px); }

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.contact-social-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    color: #1a1a2e;
    border: 2px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.contact-social-icon:hover { transform: translateY(-4px) scale(1.1); color: white; }
.contact-social-icon--fb:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 8px 20px rgba(24,119,242,0.5); }
.contact-social-icon--ig { background: linear-gradient(45deg,#833ab4,#fd1d1d,#fcb045); color: white; border-color: transparent; box-shadow: 0 4px 15px rgba(131,58,180,0.3); }
.contact-social-icon--ig:hover { box-shadow: 0 8px 20px rgba(131,58,180,0.5); }
.contact-social-icon--li:hover { background: #0077b5; border-color: #0077b5; box-shadow: 0 8px 20px rgba(0,119,181,0.5); }
.contact-social-icon--tw:hover { background: #000; border-color: #555; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }

@media (max-width: 600px) {
    .contact-cards-grid { grid-template-columns: 1fr; }
    .contact-cta-row { gap: 10px; }
    .contact-cta-btn { padding: 12px 20px; font-size: 0.88rem; }
}
