/* Font Faces */
@font-face {
    font-family: 'Readex Pro';
    src: url('assets/Readex_Pro/ReadexPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('assets/Readex_Pro/ReadexPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('assets/Readex_Pro/ReadexPro-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Readex Pro';
    src: url('assets/Readex_Pro/ReadexPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Georgia';
    src: url('assets/georgia-2/georgia.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Georgia';
    src: url('assets/georgia-2/georgiab.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* CSS Variables */
:root {
    --green: #264937;
    --gold: #d5af34;
    --black: #000000;
    --white: #ffffff;
    --gray: #dcddde;
    --cream: #ebe7de;
    --font-primary: 'Readex Pro', sans-serif;
    --font-secondary: 'Georgia', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--black);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: 50px;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    margin: 0;
    line-height: 1.3;
}

.company-tagline {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--gold);
    margin: 0;
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--green);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link.active {
    color: var(--gold);
}

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

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

.nav-link:hover {
    color: var(--gold);
}

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green) 0%, #1a3325 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(213,175,52,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.hero-tagline {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(213, 175, 52, 0.4);
}

.btn-primary:hover {
    background-color: #c49d2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 175, 52, 0.6);
}

/* Section Styles */
.section {
    padding: 80px 20px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--green);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Why Us Section */
.why-us-section {
    background-color: var(--cream);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-us-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--gold);
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green);
    line-height: 1.6;
}

/* Lawyers Section */
.lawyers-section {
    background-color: var(--white);
}

.lawyer-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-right: 5px solid var(--gold);
}

.lawyer-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 25px;
    text-align: center;
}

.lawyer-description {
    font-size: 1.1rem;
    line-height: 2;
    color: #333;
    text-align: justify;
}

/* Services Section */
.services-section {
    background-color: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--green);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    margin: 0;
    flex: 1;
}

.service-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    margin-right: 15px;
    color: var(--green);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--cream);
}

.service-toggle:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: rotate(90deg);
}

.service-toggle.active {
    transform: rotate(45deg);
}

.service-toggle.active:hover {
    transform: rotate(45deg);
}

.toggle-icon {
    display: block;
    transition: transform 0.3s ease;
}

.service-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

/* Desktop: Always show content */
@media (min-width: 969px) {
    .service-content {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 0 !important;
    }
    
    .service-card {
        cursor: default;
    }
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 12px 0;
    padding-right: 25px;
    position: relative;
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-list li:not(:last-child) {
    border-bottom: 1px solid var(--gray);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
}

.floating-text {
    position: absolute;
    right: 70px;
    background-color: var(--green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp:hover .floating-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }

    .floating-whatsapp svg {
        width: 24px;
        height: 24px;
    }

    .floating-text {
        display: none;
    }
}

/* Footer */
.footer {
    background-color: var(--green);
    color: var(--white);
    padding: 50px 20px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.footer-tagline {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--gold);
    font-style: italic;
    margin: 0;
}

.footer-info {
    text-align: left;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .service-toggle {
        display: flex !important;
    }

    .service-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .service-card.active .service-content {
        max-height: 5000px;
        opacity: 1;
        margin-top: 20px;
    }

    .service-card.active .service-toggle {
        transform: rotate(45deg);
    }

    .service-header {
        cursor: pointer;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 600px) {
    .hero {
        min-height: 70vh;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .lawyer-card {
        padding: 30px 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-header {
        cursor: pointer;
    }

    .service-toggle {
        display: flex !important;
    }

    .service-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }

    .service-card.active .service-content {
        max-height: 5000px;
        opacity: 1;
        margin-top: 20px;
    }

    .service-card.active .service-toggle {
        transform: rotate(45deg);
    }

    .service-card.active .service-toggle:hover {
        transform: rotate(45deg);
    }

    .logo {
        flex-direction: row;
        gap: 10px;
    }

    .company-name {
        font-size: 1rem;
        text-align: center;
    }

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

/* Smooth Scroll Animation */
@media (prefers-reduced-motion: no-preference) {
    .section {
        animation: fadeInUp 0.6s ease-out;
    }
}

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

