:root {
    --primary-dark: #0b1b3d;
    --primary-blue: #13274f;
    --accent-gold: #c59b27;
    --accent-copper: #d4a373;
    --bg-light: #f8f9fa;
    --text-dark: #222222;
    --text-muted: #666666;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   RESET / GERAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.logo-name {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* =====================================================
   BOTÕES
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-copper);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--white);
    font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-gold);
}

.header-search {
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =====================================================
   HERO
===================================================== */

.hero-section {
    position: relative;
    background: url('../img/hero-portuario.png') no-repeat right center / cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #0b1b3d 0%,
        rgba(11, 27, 61, 0.88) 45%,
        rgba(11, 27, 61, 0.3) 100%
    );
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 390px;
    color: var(--white);
}

.hero-subtitle-top {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-subtitle-top .separator {
    margin: 0 8px;
    color: var(--accent-copper);
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-subheading {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 8px;
    color: var(--accent-gold);
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-text p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-badge-side {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--accent-gold);
    padding-left: 20px;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* =====================================================
   SOBRE
===================================================== */

.about-section {
    padding: 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 0;
    align-items: stretch;
}

.about-image {
    width: 100%;
    overflow: hidden;
}

.about-image .image-placeholder-frame {
    width: 100%;
    height: 100%;
}

.about-image img,
.about-image .image-placeholder-frame img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-content {
    padding: 38px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.about-content .btn {
    align-self: flex-start;
}

/* =====================================================
   ÁREAS DE ATUAÇÃO
===================================================== */

.practices-section {
    padding: 22px 0 28px;
    background-color: var(--bg-light);
}

.practices-section .section-tag {
    text-align: left;
    margin-bottom: 18px;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: 0;
}

.practice-card {
    background: transparent;
    padding: 0 35px 10px;
    text-align: center;
    border-right: 1px solid #dddddd;
}

.practice-card:last-child {
    border-right: none;
}

.practice-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.practice-card h3 {
    font-size: 1.25rem;
    line-height: 1.05;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.practice-card p {
    max-width: 230px;
    margin: 0 auto;
    font-size: 0.78rem;
    color: var(--primary-blue);
    line-height: 1.25;
}

/* =====================================================
   AGENDA
===================================================== */

.agenda-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.agenda-viewport {
    width: 100%;
    overflow: hidden;
}

.agenda-track {
    display: flex;
    gap: 18px;
    transition: transform 0.4s ease;
}

.agenda-card {
    flex: 0 0 calc((100% - 36px) / 3);
    background: var(--bg-light);
    padding: 14px 18px;
    min-height: 100px;
    position: relative;
}

.agenda-arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent-gold);
    background: transparent;
    color: var(--primary-dark);
    cursor: pointer;
    border-radius: 50%;
}

.agenda-arrow:hover {
    background: var(--accent-gold);
}

.agenda-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.agenda-card h4 {
    font-size: 0.9rem;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.agenda-card p {
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--text-muted);
}

/* =====================================================
   CONTATO
===================================================== */

.contact-section {
    padding: 28px 0 22px;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: left;
}

.contact-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 55px;
    align-items: center;
}

.contact-section .section-tag {
    text-align: left;
    margin-bottom: 8px;
}

.contact-section h2 {
    font-size: 2.3rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.contact-lead {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.35;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

.contact-form textarea {
    display: block;
    height: 70px;
    resize: vertical;
    margin-bottom: 8px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #dddddd;
}

.contact-form .btn {
    padding: 10px 28px;
}

.contact-feedback {
    display: none;
    margin: 8px 0;
    font-size: 0.85rem;
}

.contact-feedback.success {
    display: block;
    color: #9ee6a8;
}

.contact-feedback.error {
    display: block;
    color: #ffb3b3;
}

.contact-info-footer {
    display: flex;
    justify-content: flex-start;
    gap: 28px;
    margin: 0;
    font-size: 0.78rem;
    color: var(--white);
}

.contact-info-footer i {
    color: var(--white);
    margin-right: 6px;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.social-links a {
    display: inline-block;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--accent-gold);
    font-size: 1.25rem;
    line-height: 1;
}

.social-links a:hover {
    background: transparent;
    color: var(--accent-copper);
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    background-color: var(--white);
    color: var(--primary-dark);
    padding: 14px 0;
    border-top: 1px solid #eeeeee;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo-name {
    color: var(--primary-dark);
    font-size: 1.25rem;
    line-height: 1;
}

.footer-logo .logo-sub {
    color: var(--accent-gold);
    font-size: 0.5rem;
    letter-spacing: 3px;
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.footer-nav li:not(:last-child)::after {
    content: "|";
    color: #cccccc;
    margin-left: 22px;
}

.footer-nav a {
    font-size: 0.68rem;
    color: var(--primary-blue);
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: right;
    font-size: 0.62rem;
    color: #666666;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    .practices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .hero-badge-side {
        display: none;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* HEADER */

    .site-header {
        padding: 18px 0;
    }

   .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 14px 5px;
        color: var(--white);
    }

    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 101;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo-name {
        font-size: 1.35rem;
    }

    /* HERO */

    .hero-section {
        min-height: 560px;
        height: auto;
        padding-top: 100px;
        padding-bottom: 35px;
        background-position: 90% center;
    }

    .hero-content-wrapper {
        display: block;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-subtitle-top {
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        font-size: 0.55rem;
        line-height: 1.4;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }

    .hero-subtitle-top .separator {
        margin: 0;
    }

    .hero-text h1 {
        font-size: 2.65rem;
        line-height: 1;
    }

    .hero-subheading {
        font-size: 0.85rem;
        letter-spacing: 7px;
        margin-bottom: 22px;
    }

    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .hero-text .btn {
        padding: 11px 20px;
        font-size: 0.75rem;
    }

    .hero-badge-side {
        display: none;
    }

    /* SOBRE */

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        display: none;
    }

    .about-content {
        padding: 30px 20px 35px;
    }

    .about-content h2 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    /* ÁREAS */

    .practices-section {
        padding: 30px 0;
    }

    .practices-grid {
        grid-template-columns: 1fr;
    }

    .practice-card {
        padding: 22px 10px;
        border-right: none;
        border-bottom: 1px solid #dddddd;
    }

    .practice-card:last-child {
        border-bottom: none;
    }

    /* AGENDA */

    .agenda-header-flex {
        display: block;
    }

    .agenda-link-top {
        display: inline-block;
        margin-top: 15px;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .agenda-card {
        flex: 0 0 100%;
    }

    .agenda-carousel {
        gap: 6px;
    }

    .agenda-arrow {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }
    /* CONTATO */

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-footer {
        flex-direction: column;
        gap: 8px;
    }

 .loading-spinner {
    display: inline-block;
    color: #0b1b3d;
    font-size: 24px;
    line-height: 1;
    animation: loading-spin 0.7s linear infinite;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

    .social-links {
        justify-content: flex-start;
    }

    /* FOOTER */

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-nav li:not(:last-child)::after {
        display: none;
    }

    .copyright {
        text-align: center;
    }
}