/* =========================================
   VARIABLES & RESETS
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #0c1a30; /* Dark Navy - Trust, Authority */
    --primary-light: #162a4d;
    --accent-color: #D4AF37;  /* Gold - Prestige, Premium */
    --accent-hover: #b5952f;
    --text-main: #333333;     /* Dark Gray for readability */
    --text-muted: #666666;
    --bg-light: #f8f9fa;      /* Very light gray for alternating sections */
    --bg-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacings */
    --section-padding: 5rem 0;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.page-top {
    padding-top: 150px;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

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

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 1.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 1rem auto 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

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

.btn-gold:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

header.scrolled,
.subpage-header {
    background-color: rgba(12, 26, 48, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bg-white);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Typography Logo Styling */
.typography-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -5px; /* Adjust spacing to text */
}

.brand-letters {
    position: relative;
    font-family: var(--font-heading);
    font-size: 3rem; /* Increased size significantly */
    line-height: 1;
    color: var(--bg-white);
    display: flex;
    align-items: baseline;
    font-weight: 400;
}

.letter-t {
    z-index: 2;
}

.letter-a {
    position: relative;
    margin-left: -0.3em;
    font-size: 0.85em;
}

.star-accent {
    position: absolute;
    top: -0.4em;
    left: 45%;
    transform: translateX(-50%);
    font-size: 0.35em;
    color: var(--accent-color);
}

/* Creating the elegant wave swoop (pure CSS trick) */
.swoop {
    position: absolute;
    bottom: -0.1em;
    left: -0.3em;
    width: 150%;
    height: 1em;
    border-bottom: 3px solid var(--bg-white);
    border-right: 3px solid transparent; /* Hide right edge */
    border-left: 3px solid transparent;   /* Hide left edge */
    border-radius: 0 0 50% 50%; /* Creates the curve */
    transform: rotate(-15deg);
    z-index: 3;
}
.swoop::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Overlap to create the pointed end effect */
    right: -10px;
    width: 20px;
    height: 10px;
    background: var(--primary-color); /* Hide the end of the curve */
    transform: rotate(15deg);
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--bg-white);
}

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

header.scrolled .btn-primary,
.subpage-header .btn-primary {
    background-color: var(--accent-color);
}
header.scrolled .btn-primary:hover,
.subpage-header .btn-primary:hover {
    background-color: var(--accent-hover);
}

.mobile-menu-btn {
    display: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('./hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    padding-top: 80px; /* offset for header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 26, 48, 0.9) 0%, rgba(12, 26, 48, 0.7) 100%);
    z-index: 1;
}

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

.hero-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 4rem;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* =========================================
   ABOUT US SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.lawyer-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
}

.lawyer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.lawyer-image {
    height: 350px;
    overflow: hidden;
}

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

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

.lawyer-info {
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.lawyer-name {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.lawyer-title {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.lawyer-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.lawyer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.lawyer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.lawyer-socials a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* =========================================
   USE CASES (SERVICES) SECTION
   ========================================= */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.use-case-card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
}

.uc-header {
    padding: 2rem 2rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.uc-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

/* =========================================
   PREVIEW GRIDS (HOME PAGE)
   ========================================= */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border-top: 3px solid transparent;
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 300px;
    max-width: 400px;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    color: var(--accent-color);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.uc-question {
    font-size: 1.3rem;
    color: var(--bg-white);
    line-height: 1.4;
    font-family: var(--font-heading);
    margin: 0;
}

.uc-body {
    padding: 2rem;
    flex-grow: 1;
}

.uc-intro {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.uc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.uc-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.uc-list li:last-child {
    margin-bottom: 0;
}

.uc-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.uc-list li strong {
    color: var(--text-main);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 6rem 0;
    position: relative;
}

.cta-title {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    padding-right: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.info-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.working-hours {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.working-hours h4 {
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
    resize: vertical;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #060e1a; /* Even darker blue */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-desc {
    margin-bottom: 1.5rem;
    max-width: 400px;
    font-size: 0.9rem;
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--bg-white);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #040911;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================
   INTERACTIVE FEATURES (WhatsApp & FAQ)
   ========================================= */

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    color: #FFF;
    background-color: #20b858;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulse-wa 2s infinite;
    z-index: -1;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* FAQ Accordion */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: var(--bg-white);
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Agenda Info Box (Contact) */
.agenda-box {
    background: linear-gradient(135deg, rgba(12, 26, 48, 0.02) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    border: 1px dashed rgba(212, 175, 55, 0.4);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.agenda-box h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.agenda-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up, .fade-in, .slide-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up {
    transform: translateY(30px);
}

.slide-up {
    transform: translateY(50px);
}

.fade-in {
    transform: scale(0.95);
}

.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .contact-info { padding-right: 0; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-link { font-size: 1.2rem; }
    .d-none-mobile { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .services-grid, .use-cases-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================
   NEWS / INSIGHTS SECTION
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-color);
}

.news-img-container {
    height: 200px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

.news-card:hover .news-img {
    transform: scale(1.05); /* Zoom effect on hover */
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-category {
    color: var(--accent-color);
    font-weight: 600;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.news-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.news-link:hover {
    color: var(--accent-color);
}

.news-link:hover i {
    transform: translateX(5px);
}
