/* 
   REGA Law Firm - "Modern Authority" Design System 
   Theme: Premium, Professional, Trustworthy
   Colors: Midnight Blue & Antique Gold
*/

:root {
    /* Colors */
    --primary-color: #02122B;
    /* Deep Midnight Blue */
    --primary-light: #0A2540;
    /* Lighter Navy */
    --accent-color: #B89146;
    /* Antique Gold */
    --accent-light: #D4AF6A;
    /* Lighter Gold */
    --accent-dark: #8C6D32;
    /* Darker Gold */

    --text-dark: #1A1A1A;
    /* Almost Black */
    --text-gray: #4A5568;
    /* Dark Gray */
    --text-light: #A0AEC0;
    /* Light Gray */
    --text-white: #FFFFFF;
    /* Pure White */

    --bg-body: #F9FAFB;
    /* Warm Off-White */
    --bg-white: #FFFFFF;
    /* Pure White */
    --bg-light: #EDF2F7;
    /* Light Gray Blue */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1280px;
    --header-height: 100px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 10px 30px rgba(184, 145, 70, 0.2);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

/* Typography Utilities */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-white);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;

}

.btn-primary:hover {
    color: var(--accent-color);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    border-color: var(--text-white);
}

/* --- Header & Navigation --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(2, 18, 43, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header.scrolled {
    background: rgba(2, 18, 43, 0.95);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 42px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(0);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(2, 18, 43, 0.85), rgba(2, 18, 43, 0.7)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    padding-top: var(--header-height);
}

.hero-content {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    color: var(--text-white);
    line-height: 1.1;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

/* --- About Section --- */
.about {
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: -1;
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: -40px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-gold);
}

.badge-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
}

.badge-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-text .section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.about-text .section-title::after {
    margin: 20px 0 0;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(184, 145, 70, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 1rem;
}

.feature-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Services Section --- */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px 40px;
    transition: var(--transition);
    position: relative;
    border-bottom: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-list {
    margin-top: auto;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* --- Team Section --- */
.team {
    background-color: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.team-member {
    position: relative;
    cursor: pointer;
}

.member-img {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.member-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.team-member:hover .member-img img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.member-info {
    text-align: center;
}

.member-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Blog Section --- */
.blog {
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--bg-white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover h3 {
    color: var(--accent-color);
}

.blog-card p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.read-more:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* --- Contact Section --- */
.contact {
    background-color: var(--primary-color);
    color: var(--text-white);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    color: var(--text-white);
    margin-bottom: 2rem;
}

.contact-info .section-title::after {
    margin: 20px 0 0;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-item:hover i {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.contact-form {
    background: var(--bg-white);
    padding: 60px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-body);
    border: 1px solid #E2E8F0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-white);
}

.contact-form button {
    width: 100%;
    padding: 20px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: #010B1A;
    color: rgba(255, 255, 255, 0.6);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-logo p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 400px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.footer-links ul li {
    margin-bottom: 16px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image img {
        height: 400px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .language-selector {
        display: none;
        /* Simplify for mobile for now */
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 30px;
    }
}

/* --- Article Share Section --- */
.article-share {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.article-share h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
    transform: translateY(-1px);
}

/* Twitter Button */
.share-twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.share-twitter:hover {
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

/* LinkedIn Button */
.share-linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005582 100%);
}

.share-linkedin:hover {
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

/* Facebook Button */
.share-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0c5dc7 100%);
}

.share-facebook:hover {
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .share-btn {
        justify-content: center;
    }
}

/* --- Article Page Styles --- */
.article-hero {
    padding-top: 180px;
    /* Header height + extra space */
    padding-bottom: 60px;
    background-color: var(--bg-body);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(2, 18, 43, 0.1);
}

.back-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    color: var(--accent-color);
    background-color: var(--bg-white);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(-5px);
}

.back-button:hover svg {
    transform: translateX(-3px);
}

.article-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.article-date {
    display: block;
    font-family: var(--font-body);
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body-section {
    padding-bottom: 100px;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Responsive Article */
@media (max-width: 768px) {
    .article-hero {
        padding-top: 140px;
    }

    .article-title {
        font-size: 2.5rem;
    }
}