/* ==========================================================================
   COPENHAGEN SOLUTIONS - MODULAR COMPONENTS STYLES
   ========================================================================== */

/* ==========================================================================
   1. BUTTONS (Bases & Variants)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-label-md);
    font-weight: var(--weight-label-md);
    letter-spacing: var(--letter-spacing-label-md);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-default); /* 4px */
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Primary Button: Solid Matte Gold, Navy Text */
.btn-primary {
    background-color: var(--color-matte-gold);
    color: var(--color-deep-navy);
    border-color: var(--color-matte-gold);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--color-matte-gold-hover);
    border-color: var(--color-matte-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button: Outlined Navy, Navy Text */
.btn-secondary {
    background-color: transparent;
    color: var(--color-deep-navy);
    border-color: var(--color-deep-navy);
}

.btn-secondary:hover {
    background-color: var(--color-deep-navy);
    color: var(--color-on-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 33, 71, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Outlined Gold: For Dark/Navy Backgrounds */
.btn-outlined-gold {
    background-color: transparent;
    color: var(--color-matte-gold);
    border-color: var(--color-matte-gold);
}

.btn-outlined-gold:hover {
    background-color: var(--color-matte-gold);
    color: var(--color-deep-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

/* Tertiary Button: Text-only with golden underline on hover */
.btn-tertiary {
    background: none;
    border: none;
    padding: 0.5rem 0;
    color: var(--color-deep-navy);
    text-transform: uppercase;
}

.btn-tertiary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-deep-navy);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.btn-tertiary:hover {
    color: var(--color-matte-gold);
}

.btn-tertiary:hover::after {
    background-color: var(--color-matte-gold);
    transform: scaleX(1);
}


/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(249, 247, 242, 0.9); /* Warm Off-White with Opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-subtle);
    transition: all var(--transition-normal);
}

.header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: var(--shadow-header);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: height var(--transition-normal);
}

.header.scrolled .header-container {
    height: 70px;
}

/* Logo block */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-monograma {
    height: 45px !important;
    width: auto !important;
    transition: height var(--transition-normal);
}

.logo-texto {
    height: 68px !important;
    width: auto !important;
    transition: height var(--transition-normal);
}

/* Redução no Scroll */
.header.scrolled .logo-monograma {
    height: 36px !important;
}

.header.scrolled .logo-texto {
    height: 54px !important;
}

@media (min-width: 768px) {
    .header-container {
        height: 110px;
    }
    .header.scrolled .header-container {
        height: 80px;
    }
    .logo {
        gap: 0.75rem;
    }
    .logo-monograma {
        height: 60px !important;
        width: auto !important;
    }
    .logo-texto {
        height: 90px !important;
        width: auto !important;
    }
    .header.scrolled .logo-monograma {
        height: 45px !important;
    }
    .header.scrolled .logo-texto {
        height: 68px !important;
    }
}


/* Navigation items */
.nav-menu {
    display: none; /* Mobile hidden by default */
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-deep-navy);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-matte-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile toggle button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-deep-navy);
    transition: all var(--transition-fast);
}

/* Active menu states */
@media (min-width: 1024px) {
    .nav-menu {
        display: block;
    }
    .menu-toggle {
        display: none;
    }
}


/* ==========================================================================
   3. CARDS (Service & Premium Variants)
   ========================================================================== */

/* Base Card structure */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-default); /* 4px */
    padding: 2.5rem;
    transition: all var(--transition-normal);
    position: relative;
}

/* Service Card (Sage equilibrium accent) */
.card-service {
    border-color: rgba(135, 169, 141, 0.2); /* Faint Sage */
    background-color: var(--color-warm-off-white-bright);
}

.card-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-sage-equilibrium);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-service-card);
    border-color: var(--color-sage-equilibrium);
}

.card-service:hover::before {
    transform: scaleX(1);
}

.card-service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-default);
    background-color: rgba(135, 169, 141, 0.1); /* 10% Sage */
    color: var(--color-sage-equilibrium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

/* Premium Content Card (Matte Gold top-border) */
.card-premium {
    border-top: 3px solid var(--color-matte-gold);
    box-shadow: 0 4px 20px rgba(0, 33, 71, 0.02);
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 33, 71, 0.06);
}


/* ==========================================================================
   4. FORM FIELDS & INPUTS
   ========================================================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: 1.5rem;
}

.form-label {
    font-family: var(--font-sans);
    font-size: var(--font-size-label-md);
    font-weight: var(--weight-label-md);
    letter-spacing: var(--letter-spacing-label-md);
    text-transform: uppercase;
    color: var(--color-deep-navy);
}

/* Form input under standard visual system */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: var(--font-size-body-md);
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-default); /* 4px */
    color: var(--color-text-main);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-matte-gold);
    background-color: #FFFFFF;
    box-shadow: var(--shadow-focus);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

/* Sublined form input alternative */
.form-input-underline {
    border: none;
    border-bottom: 2px solid var(--color-border-medium);
    border-radius: 0;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.form-input-underline:focus {
    border-bottom-color: var(--color-matte-gold);
    box-shadow: none;
}


/* ==========================================================================
   5. FOOTER STYLES
   ========================================================================== */

.footer {
    background-color: var(--color-deep-navy);
    color: rgba(249, 247, 242, 0.7);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid rgba(249, 247, 242, 0.1);
    font-size: 0.9375rem;
}

.footer-title {
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: rgba(249, 247, 242, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(249, 247, 242, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}
