/* ============================================
   André Fernandes Advocacia - Estilos
   Design: Híbrido Light + Dark
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Cores Principais */
    --primary-dark: #1a2a3a;
    --primary-dark-rgb: 26, 42, 58;
    --primary-gold: #c9a227;
    --primary-gold-light: #d4af37;
    --gold-text: #e8d48b;

    /* Cores Neutras */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray-medium: #6c757d;
    --text-dark: #1a2a3a;
    --text-light: #ffffff;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Sizes */
    --header-height: 90px;
    --container-width: 1200px;
    --section-padding: 70px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
.section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 12px;
}

.section-label--light {
    color: var(--gold-text);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.section-title--light {
    color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn__icon {
    width: 20px;
    height: 20px;
}

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

.btn--primary:hover {
    background-color: var(--primary-gold-light);
    border-color: var(--primary-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

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

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

.btn--full {
    width: 100%;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(var(--primary-dark-rgb), 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color var(--transition-medium);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__logo-escudo {
    height: 72px;
    width: auto;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.header__logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.header__logo-tagline {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.header__nav-list {
    display: flex;
    gap: 40px;
}

.header__nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: 8px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width var(--transition-medium);
}

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

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

/* Mobile Menu Toggle */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__menu-bar {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition-fast);
}

/* ---------- Hero Section ---------- */
.hero {
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    padding: calc(var(--header-height) + 40px) 0 60px;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    padding: 40px 0;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 16px;
}

.hero__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    max-width: 480px;
    line-height: 1.7;
}

.hero__areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.hero__area-tag {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gold-text);
    background-color: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero__photo {
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ---------- Sobre Section ---------- */
.sobre {
    padding: var(--section-padding) 0;
    background-color: var(--off-white);
}

.sobre__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre__image {
    position: relative;
}

.sobre__photo {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sobre__photo::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-gold);
    border-radius: 8px;
    z-index: -1;
}

.sobre__text {
    font-size: 1.0625rem;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.sobre__text strong {
    color: var(--text-dark);
}

.sobre__oab {
    margin-top: 32px;
}

.sobre__oab-badge {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-dark);
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

/* ---------- Áreas Section ---------- */
.areas {
    padding: var(--section-padding) 0;
    background-color: var(--primary-dark);
    text-align: center;
}

.areas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.area-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-medium);
}

.area-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.area-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--primary-gold);
}

.area-card__icon svg {
    width: 100%;
    height: 100%;
}

.area-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.area-card__description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ---------- Contato Section ---------- */
.contato {
    padding: var(--section-padding) 0;
    background-color: var(--off-white);
}

.contato__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contato__text {
    font-size: 1.0625rem;
    color: var(--gray-medium);
    margin-bottom: 32px;
}

.contato__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contato__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contato__item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark);
    color: var(--primary-gold);
    border-radius: 8px;
    flex-shrink: 0;
}

.contato__item-icon svg {
    width: 24px;
    height: 24px;
}

.contato__item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contato__item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-medium);
}

.contato__item-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contato__item-value:hover {
    color: var(--primary-gold);
}

/* Form Styles */
.contato__form-wrapper {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contato__form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--primary-dark);
    padding-top: 48px;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__brand {
    text-align: center;
}

.footer__logo {
    height: 100px;
    margin: 0 auto 12px;
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.footer__info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer__text strong {
    color: var(--white);
}

.footer__bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer__copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__description {
        max-width: 100%;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__photo {
        max-height: 400px;
    }

    .sobre__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sobre__image {
        order: -1;
    }

    .areas__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer__info {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-padding: 60px;
    }

    /* Mobile Navigation */
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }

    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .header__menu-toggle {
        display: flex;
    }

    .header__logo-escudo {
        height: 50px;
    }

    .header__logo-name {
        font-size: 1.125rem;
    }

    .header__logo-tagline {
        font-size: 0.625rem;
    }

    .header__menu-toggle.active .header__menu-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__menu-toggle.active .header__menu-bar:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.active .header__menu-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero__cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contato__form-wrapper {
        padding: 24px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .area-card {
        padding: 32px 24px;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Apply animations */
.hero__content,
.hero__image {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero__image {
    animation-delay: 0.2s;
}

.section-label,
.section-title {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}