/* 
   Germano Advocacia Especializada
   Premium & Minimalist Style
*/

:root {
    /* Color Palette */
    --color-wine: #65021C;
    --color-wine-dark: #530015;
    --color-gold: #826D48;
    --color-beige: #D9C8AF;
    --color-off-white: #F7F5F2;
    --color-text-main: #333333;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    /* Fallback for Ashina */
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & rounded corners */
    --border-radius-xs: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
}

/* Base Styles */
body {
    background-color: var(--color-off-white);
    font-family: var(--font-body);
    color: var(--color-text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Utilities */
.text-wine {
    color: var(--color-wine);
}

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

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

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

.bg-beige-light {
    background-color: var(--color-off-white);
    /* Used beige for subtle cards */
}

section {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    font-family: var(--font-heading);
    color: var(--color-wine);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Navbar Logo */
.navbar-logo {
    height: 42px;
    /* Mobile size (40-44px range) */
    width: auto;
    /* Option 1: Enhance contrast/legibility on light background */
    filter: brightness(0.85) contrast(1.1);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .navbar-logo {
        height: 54px;
        /* Desktop size (48-56px range) */
    }
}

.nav-link {
    color: var(--color-text-main);
    font-weight: 500;
    margin-left: 15px;
}

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

/* Buttons */
.btn-gold {
    background-color: var(--color-gold);
    color: #fff;
    border: 2px solid var(--color-gold);
    border-radius: var(--border-radius-md);
    padding: 10px 24px;
    font-weight: 600;
}

.btn-gold:hover {
    background-color: var(--color-wine-dark);
    border-color: var(--color-gold);
    /* Gold border for contrast */
    color: #fff;
    transform: translateY(-1px);
    /* Slight lift */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Soft shadow */
}

.btn-gold:focus,
.btn-gold:active {
    outline: 2px solid var(--color-beige);
    outline-offset: 2px;
}

.btn-outline-light-custom {
    color: #fff;
    border: 2px solid #fff;
    border-radius: var(--border-radius-md);
    padding: 10px 24px;
    font-weight: 600;
}

.btn-outline-light-custom:hover {
    background-color: #fff;
    color: var(--color-wine);
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-wine-dark) 0%, var(--color-wine) 100%);
    color: #fff;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed nav */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Cards (Keep consistent style) */
.custom-card {
    background: #fff;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-off-white);
    color: var(--color-gold);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-img-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Offices */
.office-card {
    transition: all 0.3s ease;
}

.office-card.active-office {
    border-color: var(--color-gold) !important;
    box-shadow: 0 5px 20px rgba(130, 109, 72, 0.15);
}

#map {
    width: 100%;
    min-height: 380px;
    height: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 992px) {
    #map {
        height: 100%;
        min-height: 100%;
    }
}

/* Contact */
.form-control,
.form-select {
    border-radius: var(--border-radius-xs);
    border: 1px solid #ddd;
    padding: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.2rem rgba(130, 109, 72, 0.25);
}

/* Footer */
footer {
    background-color: #fff;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-link {
    color: var(--color-text-main);
    opacity: 0.7;
    margin-bottom: 10px;
    display: block;
}

.footer-link:hover {
    color: var(--color-wine);
    opacity: 1;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-gold);
    /* Gold instead of Green */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: var(--color-wine);
    /* Wine on hover */
    transform: scale(1.1);
    color: #fff;
}

/* Logo Symbol */
.navbar-symbol {
    height: 42px;
    /* Matches text height on mobile */
    width: auto;
}

@media (min-width: 992px) {
    .navbar-symbol {
        height: 50px;
        /* Matches text height on desktop */
    }
}

/* Typographic Logo */
.logo-germano {
    font-family: var(--font-heading);
    /* Fallback for Ashina */
    color: var(--color-wine);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 26px;
    /* Mobile base */
}

.logo-advocacia {
    font-family: var(--font-body);
    color: var(--color-gold);
    /* Using Gold to complement, or Wine-dark for hierarchy */
    font-weight: 400;
    font-size: 14px;
    /* Mobile base */
    letter-spacing: 0.15em;
    /* Elegant spacing */
    margin-top: 2px;
    text-transform: uppercase;
    /* Making uppercase for clean look, or remove for CamelCase */
}

/* Desktop sizing */
@media (min-width: 992px) {
    .logo-germano {
        font-size: 32px;
    }

    .logo-advocacia {
        font-size: 15px;
        letter-spacing: 0.2em;
        /* Increase spacing on desktop */
    }
}