/*
Theme Name: Preda & Associates 2025
Description: Professional WordPress theme for Preda & Associates law firm. Features modern 2025 design trends, bilingual support (Romanian/English), blog functionality, and easy administration for services and team management.
Author: Manus AI
Version: 2.1
License: GPL v2 or later
Text Domain: preda-theme
Domain Path: /languages
Tags: law-firm, professional, business, responsive, blog, multilingual
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography with 2025 Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 { 
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
}

h3 { 
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    color: #c2410c;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Keep general links steady to prevent tiny layout jumps */
a:hover { color: #ea580c; transform: none; }

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

.section {
    padding: 5rem 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Enhanced Hero Section */
.section-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
    color: white;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
    animation: slideInUp 1s ease-out 0.2s both;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header Enhancements */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Offset sticky header for admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem; /* consolidated */
}

.site-logo {
    flex-shrink: 0;
    margin-right: 2rem;
    transition: transform 0.3s ease;
}

.site-logo:hover { transform: scale(1.05); }

.navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation a {
    color: #1f2937;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 65, 12, 0.1), transparent);
    transition: left 0.5s ease;
}

.main-navigation a:hover::before { left: 100%; }
.main-navigation a:hover {
    background: #c2410c;
    color: white;
    transform: translateY(-2px); /* lift on nav only */
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 65, 12, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white;
    transform: translateY(-3px); /* lift on buttons */
    box-shadow: 0 8px 25px rgba(194, 65, 12, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}
.btn-secondary:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-3px); /* lift on buttons */
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

/* Enhanced Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.15);
}
.service-card:hover::before {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
}

.service-icon {
    position: relative;
    z-index: 2;
    background: white;
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    margin-top: -45px;
    color: #1e3a8a;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    color: #c2410c;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(194, 65, 12, 0.2);
}

.service-card .service-title,
.service-card .service-description,
.service-card .service-link { padding: 0 2rem; }

.service-card .service-title {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card .service-description {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-card .service-link {
    color: #c2410c;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.service-card .service-link:hover {
    background: #c2410c;
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.team-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(30, 58, 138, 0.1);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.team-photo,
.team-photo-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Always-image approach: if you switched template to always render an <img>, hide the placeholder */
.team-photo-placeholder { display: none; }

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* avoid sub-pixel gaps */
    transition: transform 0.3s ease;
}
.team-card:hover .team-photo img { transform: scale(1.05); }

.team-icon { font-size: 4rem; color: #94a3b8; }

.team-card .team-name,
.team-card .team-position,
.team-card .team-bio,
.team-card .team-link { padding: 0 2rem; }

.team-card .team-name {
    color: #1e3a8a;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.team-card .team-position {
    color: #c2410c;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-card .team-bio {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-card .team-link {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid #1e3a8a;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.team-card .team-link:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

/* Enhanced News/Blog Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.news-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(30, 58, 138, 0.1);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    position: relative;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* avoid sub-pixel gaps */
    transition: transform 0.3s ease;
}
.news-card:hover .news-image img { transform: scale(1.05); }

.news-content { padding: 2rem; }
.news-meta { color: #9ca3af; font-size: 0.9rem; margin-bottom: 1rem; font-weight: 500; }

.news-title a {
    color: #1e3a8a;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-bottom: 1rem;
}
.news-title a:hover { color: #c2410c; }

.news-excerpt {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: #c2410c;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.news-link:hover { transform: translateX(5px); }
.news-link::after { content: '→'; transition: transform 0.3s ease; }
.news-link:hover::after { transform: translateX(3px); }

/* Language Switcher Enhancements */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}
.language-switcher a:hover {
    background: #f3f4f6;
    border-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.2);
}
.language-switcher a.active,
.language-switcher a[aria-current="page"] {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}
.language-switcher img {
    width: 18px; height: 14px; object-fit: cover; border-radius: 3px;
}
.language-switcher .flag { font-size: 1.1rem; line-height: 1; }

/* Contact Form Enhancements */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.contact-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.contact-icon {
    font-size: 1.8rem;
    color: #c2410c;
    margin-top: 0.25rem;
    background: rgba(194, 65, 12, 0.1);
    padding: 0.75rem;
    border-radius: 0.75rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.form-group { margin-bottom: 2rem; }
.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c2410c;
    box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
    background: white;
    transform: translateY(-2px);
}

/* Footer Enhancements */
.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c2410c, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #c2410c;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #d1d5db;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}
.footer-section a:hover { color: #c2410c; transform: translateX(5px); }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content { padding-left: 1rem; padding-right: 1rem; }
    .site-logo { margin-right: 1rem; }
    .main-navigation ul { gap: 1rem; }
    .main-navigation a { padding: 0.6rem 0.8rem; font-size: 0.95rem; }
    .language-switcher { margin-left: 1rem; }
    .language-switcher a { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .section { padding: 3rem 0; }
    .section-hero { padding: 2rem 0; min-height: 35vh; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 250px; }

    .services-grid,
    .team-grid,
    .news-grid { grid-template-columns: 1fr; gap: 2rem; }

    .contact-content { grid-template-columns: 1fr; gap: 2rem; }

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

    .navigation-wrapper { display: none; }
    .mobile-menu-toggle { display: flex; }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.mobile-menu-toggle:hover { background: rgba(30, 58, 138, 0.1); }
.mobile-menu-toggle span {
    width: 28px; height: 3px; background: #1e3a8a;
    margin: 3px 0; transition: 0.3s; border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu-content {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    max-width: 90%; max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideInUp 0.4s ease-out;
}

.mobile-menu-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; font-size: 2rem; cursor: pointer; color: #6b7280;
    transition: all 0.3s ease;
    padding: 0.75rem; /* bigger tap target */
    border-radius: 0.5rem;
}
.mobile-menu-close:hover { color: #c2410c; background: rgba(194, 65, 12, 0.1); }

.mobile-menu { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { margin-bottom: 1rem; }
.mobile-menu a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
    border: 1px solid #eee; /* subtle separation */
}
.mobile-menu a:hover,
.mobile-menu a.current {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: white;
    transform: translateX(10px);
}

.mobile-language-switcher {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.mobile-language-switcher a {
    padding: 0.75rem 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.mobile-language-switcher a.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    border-color: #1e3a8a;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* WordPress Specific */
.wp-block-image { margin-bottom: 1rem; }
.wp-block-image img {
    max-width: 100%; height: auto; border-radius: 0.75rem;
}
.aligncenter { text-align: center; margin: 0 auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }

/* Article Content Styling */
.article-content { max-width: 800px; margin: 0 auto; }
.article-content h2,
.article-content h3,
.article-content h4 { margin-top: 2.5rem; margin-bottom: 1.5rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul,
.article-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-content li { margin-bottom: 0.75rem; }
.article-content blockquote {
    border-left: 4px solid #c2410c;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: rgba(194, 65, 12, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 0 0.75rem 0.75rem 0;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .mobile-menu-toggle,
    .language-switcher { display: none; }

    body { font-size: 12pt; line-height: 1.4; }
    h1, h2, h3 { page-break-after: avoid; }
    .section { padding: 1rem 0; }

    /* Let articles breathe a bit in print */
    .article-content { max-width: 100%; }
    .article-content p { margin-bottom: 1rem; }
}

/* Performance Optimizations */
.service-card,
.team-card,
.news-card { will-change: transform; }

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #c2410c;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .team-card,
    .news-card { border: 2px solid #000; }
    .btn-primary { background: #000; border: 2px solid #000; }
    .btn-secondary { border: 2px solid #000; color: #000; }
/* Service icon sizing – consistent across pages */
:root {
  --service-icon-diameter: 100px;   /* circle size */
  --service-icon-font: 2.3rem;     /* emoji size */
  --service-icon-img-scale: 60%;   /* if using an image/SVG inside the circle */
}

/* existing class – now controlled via variables */
.service-icon {
  width: var(--service-icon-diameter);
  height: var(--service-icon-diameter);
  font-size: var(--service-icon-font);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* If you decide to use an image/SVG instead of emoji */
.service-icon img,
.service-icon svg {
  width: var(--service-icon-img-scale);
  height: var(--service-icon-img-scale);
  object-fit: contain;
  display: block;
}
/* Tweak the overlap so the circle isn't cut */
.service-card { padding-top: 4rem; }
.service-card::before { height: 80px; }   /* keep your original band height */
.service-icon { margin-top: 0; }          /* no negative margin */
}
// Localize archive slugs per language (Polylang)
add_filter('register_post_type_args', function($args, $post_type){
    if (!function_exists('pll_current_language')) return $args;

    $lang = pll_current_language();

    if ($post_type === 'team_member') {
        // Choose your Romanian slug: 'echipa' or 'avocati'
        $args['has_archive'] = true;
        $args['rewrite'] = array(
            'slug'       => ($lang === 'ro' ? 'echipa' : 'team'),
            'with_front' => false
        );
    }

    // OPTIONAL: services too (if you want)
/*
    if ($post_type === 'service') {
        $args['has_archive'] = true;
        $args['rewrite'] = array(
            'slug'       => ($lang === 'ro' ? 'competente' : 'services'),
            'with_front' => false
        );
    }
*/
    return $args;
}, 10, 2);