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

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #9a8866;
    --color-light: #f5f5f5;
    --color-gray: #666;
    --color-light-gray: #e0e0e0;
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-secondary);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-dark:hover {
    background-color: var(--color-secondary);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

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

.logo img {
    height: 50px;
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.logo h1 {
    margin: 0;
    font-size: 1.9rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-menu a {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('tribunal.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--color-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-gray);
    line-height: 1.8;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat {
    flex: 1 0 calc(33.333% - 2rem);
    text-align: center;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--color-secondary);
}

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

.service-card p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* Detailed Services Section */
.detailed-services {
    padding: 100px 0;
    background-color: var(--color-light);
}

.service-description {
    margin-top: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-description p {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.8;
    font-style: italic;
    padding: 2rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--color-light);
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3rem;
}

.team-member {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: var(--color-primary);
}

.member-role {
    color: var(--color-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.member-desc {
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--color-primary);
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-title::after {
    background-color: var(--color-secondary);
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 2rem;
}

blockquote::before,
blockquote::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--color-secondary);
    position: absolute;
    opacity: 0.3;
}

blockquote::before {
    top: -20px;
    left: 0;
}

blockquote::after {
    content: '"';
    bottom: -40px;
    right: 0;
}

cite {
    font-style: normal;
    font-size: 1rem;
    color: var(--color-light-gray);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-item p {
    color: var(--color-gray);
    line-height: 1.6;
}

.contact-form {
    background-color: var(--color-light);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-light-gray);
    background-color: white;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Field Error Styles */
.field-error {
    color: #721c24 !important;
    font-size: 0.85rem !important;
    margin-top: 5px !important;
    font-family: var(--font-secondary);
    font-weight: 500;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f5c6cb !important;
    background-color: #f8f9fa;
}

/* Contact Messages */
.contact-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.contact-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo p {
    color: var(--color-light-gray);
}

.footer-logo .logo h1 {
    color: white;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--color-light-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-legal a {
    color: var(--color-light-gray);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-toggle-label span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-primary);
        transition: var(--transition);
    }
    
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        flex: 1 0 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero {
        height: 90vh;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about, .services, .team, .testimonials, .contact {
        padding: 60px 0;
    }
    
    .team-grid {
        gap: 2rem;
    }
    
    blockquote {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .section-title, .service-card, .team-member, .testimonial, .contact-form {
    animation: fadeIn 1s ease-out;
}

/* Accessibility */
:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print styles */
@media print {
    .header, .footer, .hero, .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .about, .services, .team, .contact-info {
        page-break-inside: avoid;
    }
}