/* --- Global Styles & Variables --- */
:root {
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --color-gold: #c9a96e;
    --color-gold-dark: #b08a4a;
    --color-dark: #1d2b38;
    --color-light: #fdfdfd;
    --color-grey: #f4f5f7;
    --color-text: #4a4a4a;
    --color-heading: #1d2b38;

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-light); 
    color: var(--color-text); 
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Reusable Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title, .sub-section-title {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 400;
    text-align: center;
    margin-top: 0;
}

.section-title {
    font-size: 3.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    text-align: center;
    line-height: 1.8;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-block;
    border: 2px solid transparent;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--color-gold); 
    color: #ffffff; 
    border-color: var(--color-gold);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3); 
}

.btn-primary:hover {
    background: var(--color-gold-dark); 
    border-color: var(--color-gold-dark); 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(176, 138, 74, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: #ffffff; 
    transform: translateY(-3px);
}

.decorative-line {
    width: 80px;
    height: 3px;
    background: var(--color-gold);
    margin: 1.5rem auto 2rem auto;
    border-radius: 2px;
}


/* --- Header & Navigation --- */
.site-header {
    background: var(--color-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    font-family: var(--font-heading);
    text-decoration: none;
}
.logo-text.first-word {
    font-weight: 700;
    color: #ffffff;
}
.logo-text.second-word {
    color: var(--color-gold);
}
.logo-img {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo:hover .logo-img {
    transform: scale(1.1) rotate(10deg);
}

.site-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav ul li { margin: 0 1.75rem; }
.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--color-gold); }
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}
.site-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.get-consultation-btn { 
    padding: 0.6rem 1.2rem; 
    font-weight: 500;
    background: var(--color-gold);
    color: #ffffff;
    border: 2px solid var(--color-gold);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-fast);
}
.get-consultation-btn:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    transform: translateY(-2px);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

/* --- Hero Section --- */
.hero {
    background-image: url('images/herocp.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 8rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 30, 0.8), rgba(10, 20, 30, 0.5));
  z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    animation: fadeIn 1s ease-out;
}
.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 1rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    opacity: 0;
    animation: slideInUp 1s 0.2s forwards;
}
.hero p {
    font-size: 1.2rem;
    color: #e0e0e0; 
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    opacity: 0;
    animation: slideInUp 1s 0.4s forwards;
}
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: slideInUp 1s 0.6s forwards;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
}
.scroll-indicator:hover { opacity: 1; transform: translateX(-50%) translateY(5px); }
.scroll-indicator i { font-size: 1.5rem; animation: bounce 2.5s infinite; }

/* --- About Section --- */
.about { padding: 6rem 0; }
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}
.about-image-container {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-text-container h3 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}
.mission-vision-wrapper { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.mission-box, .vision-box {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    border-left: 4px solid var(--color-gold);
    background: #ffffff;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}
.mission-box:hover, .vision-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mission-box h4, .vision-box h4 { font-size: 1.2rem; margin: 0 0 0.5rem 0; color: var(--color-heading); }
.box-icon { font-size: 1.5rem; color: var(--color-gold); margin-bottom: 0.75rem; }
.sub-section-title { font-size: 2.5rem; margin: 4rem 0 3rem 0; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.value-item {
    background: #ffffff; 
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: var(--transition-fast);
    text-align: center;
}
.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}
.value-icon { font-size: 2.5rem; color: var(--color-gold); margin-bottom: 1.5rem; }
.value-text h4 { font-size: 1.3rem; margin: 0 0 0.5rem 0; color: var(--color-heading); }

/* --- Stats Section --- */
.stats {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 5rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
}

/* --- Services Section --- */
.services { padding: 6rem 0; background: var(--color-grey); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
    border: 1px solid #e9ecef;
}
.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 20, 30, 0.9) 0%, rgba(10, 20, 30, 0.1) 100%);
    z-index: 1;
    transition: var(--transition-fast);
}
.service-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #ffffff;
}
.service-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #ffffff;
}
.service-description {
    font-size: 0.95rem;
    color: #e0e0e0; 
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.service-link {
    font-weight: 600;
    color: var(--color-gold);
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    display: inline-block;
}
.service-link i { margin-left: 0.5rem; }
.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    border-color: var(--color-gold);
}
.service-card:hover .service-card-bg { transform: scale(1.1); }
.service-card:hover::after { background: linear-gradient(to top, rgba(29, 43, 56, 0.9) 0%, rgba(29, 43, 56, 0.2) 100%); }
.service-card:hover .service-link { opacity: 1; transform: translateY(0); }
/* Ensure "Learn More" link is always visible (not only on hover) */
.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;

    /* Force visible state in case other rules hide it */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: relative !important;
    transition: none !important;
}

/* Optional: make the link stand out */
.service-card .service-link i {
    transition: transform .18s ease;
}
.service-card .service-link:hover i {
    transform: translateX(4px);
}

/* Service background images */
.service-card-bg.corporate-law { background-image: url('images/cooparate-bg.png'); }
.service-card-bg.family-law { background-image: url('images/family-bg.jpg'); }
.service-card-bg.real-estate-law { background-image: url('images/real-estate.jpeg'); }
.service-card-bg.criminal-defense { background-image: url('images/criminal-bg.png'); }
.service-card-bg.intellectual-property { background-image: url('images/intellectual.png'); }
.service-card-bg.civil-litigation { background-image: url('images/civil.png'); }
.service-card-bg.maritime-law { background-image: url('images/maritime-bg.jpeg'); }
.service-card-bg.human-rights-law { background-image: url('images/human.jpeg'); }
.service-card-bg.tax-law { background-image: url('images/tax.jpeg'); }

/* --- Team Section --- */
.team { padding: 6rem 0; background: var(--color-light); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}
.team-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    text-align: center;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: #ddd; }
.team-card h3 {
    margin: 1rem 0 0.25rem;
    font-size: 1.5rem;
    color: var(--color-heading);
}
.team-card .role { font-weight: 600; color: var(--color-gold); margin-bottom: 1rem; }
.team-card .specialization { font-size: 0.95rem; line-height: 1.6; }

/* --- Contact Section --- */
.contact { padding: 6rem 0; background: var(--color-grey); }
.contact-header { margin-bottom: 3rem; }
.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background-color: #ffffff;
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: var(--shadow-sm);
}
.contact-info-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-weight: 400;
}
.contact-info-text { margin-bottom: 2.5rem; }
.info-item { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.info-item a { color: var(--color-text); text-decoration: none; transition: var(--transition-fast); }
.info-item a:hover { color: var(--color-gold); }
.info-item i {
    font-size: 1.5rem;
    color: var(--color-gold);
    width: 25px;
    text-align: center;
}
.contact-socials { margin-top: 3rem; display: flex; gap: 1rem; }
.social-icon {
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    width: 44px; height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
}
.social-icon:hover { background-color: var(--color-gold); color: #ffffff; transform: translateY(-5px); }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-grey);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}
.contact-form button { width: 100%; border: none; cursor: pointer; }
#form-feedback { margin-top: 1rem; font-weight: 500; }

/* --- Footer Section --- */
.site-footer {
    background-color: var(--color-dark);
    color: #cccccc;
    padding: 5rem 0 0;
}
.site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}
.footer-logo { font-family: var(--font-heading); font-size: 2rem; color: var(--color-gold); margin-bottom: 1rem; }
.footer-heading {
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--color-gold);
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a, .footer-contact a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--color-gold); padding-left: 5px; }
.footer-socials { margin-top: 1.5rem; display: flex; gap: 1rem; }
.footer-contact .info-item { gap: 1rem; }
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 10px;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    font-size: 16px;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
    z-index: 100;
}
.whatsapp-float img {
    width: 28px;
    height: 28px;
}
.whatsapp-float:hover {
    transform: scale(1.05);
    background: #1ebe5d;
}

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }


/* --- Responsive Design --- */
/* Desktop / Large Tablets */
@media (max-width: 1024px) {
    .section-title { font-size: 2.75rem; }
    .hero-title { font-size: 3.5rem; }
    .about-content-wrapper, .contact-content-wrapper { grid-template-columns: 1fr; }
    .about-image-container { max-width: 500px; margin: 0 auto 2rem auto; }
    .site-footer .container { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

/* Tablets & Mobile */
@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .hero { padding: 6rem 1.5rem; min-height: 70vh; }
    .hero-title { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
    .services-grid, .team-grid { grid-template-columns: 1fr; }

    .contact-content-wrapper { padding: 2rem; }
    
    .site-footer .container { grid-template-columns: 1fr; text-align: center; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-socials, .footer-contact .info-item { justify-content: center; }

    /* Mobile Navigation */
    .menu-toggle { display: block; }
    .get-consultation-btn { display: none; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-dark);
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .site-nav.active { 
        display: flex; 
        animation: slideDown 0.4s ease-out;
    }
    .site-nav ul { flex-direction: column; width: 100%; }
    .site-nav ul li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .site-nav ul li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .site-nav a { display: block; padding: 1.5rem; }
    .site-nav a::after { display: none; }
    .menu-toggle.active i::before { content: '\f00d'; /* Font Awesome close icon */ }
    
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 12px; }
}

/* Small Phones */
@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .logo-text { font-size: 1.8rem; }
    .btn-primary, .btn-secondary { width: 100%; }
}