﻿/* ============================================
   ESTUDIOS MI ARQUITECTO — ARCHITECTURAL PRECISION
   Clean lines, no infinite motion, brand identity
   ============================================ */

/* ============================================
   ACHIEVEMENT CARDS — Static, architectural corner accent
   (spin animation removed)
   ============================================ */
.achievement-card {
    position: relative;
    overflow: hidden;
}

/* ============================================
   HERO SECTION — Static decorative overlay only
   (aurora loop removed)
   ============================================ */
.hero {
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        linear-gradient(145deg, rgba(168, 94, 14, 0.07) 0%, transparent 50%),
        linear-gradient(315deg, rgba(168, 94, 14, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero logo — no float/glow-pulse */
.hero-logo {
    animation: none;
    filter: drop-shadow(0 10px 30px rgba(168, 94, 14, 0.42));
}

/* ============================================
   STAT ITEMS
   ============================================ */
.stat-item {
    position: relative;
    padding: 20px;
    background: rgba(20, 25, 45, 0.5);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 140, 66, 0.2);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 18px rgba(168, 94, 14, 0.2);
}

/* ============================================
   BUTTONS — No shimmer loop, no hover scale
   ============================================ */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(168, 94, 14, 0.36);
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    display: none;
}

/* ============================================
   SECTION TITLES — Static rule line (title-glow removed)
   ============================================ */
.section-title {
    position: relative;
    gap: clamp(10px, 1.4vw, 18px);
}

/* Symmetric decorative lines: ——  Title  —— */
.section-title::before,
.section-title::after {
    content: '';
    display: block;
    width: clamp(40px, 6vw, 68px);
    height: 2px;
    flex-shrink: 0;
    background: var(--metallic-gradient);
    border-radius: 0;
    margin: 0;
}

/* Hero page titles — no decorative lines, they stand alone */
.hero .section-title::before,
.hero .section-title::after {
    display: none;
}

/* Left-aligned info-feature titles — architectural L-bracket replaces leading line */
.info-feature-section .section-title::before {
    width: 14px;
    height: 14px;
    background: transparent;
    border-top: 2px solid rgba(255, 179, 102, 0.65);
    border-left: 2px solid rgba(255, 179, 102, 0.65);
    self-align: center;
}

/* ============================================
   NAVBAR — preserve original glass style; only kill radial glow ::before
   ============================================ */
.nav-link {
    position: relative;
    overflow: visible;
}

.nav-link::before {
    display: none;
}

/* ============================================
   FEEDBACK FORM — No transform on focus
   ============================================ */
.feedback-form {
    position: relative;
    background: linear-gradient(145deg, rgba(21, 24, 36, 0.96) 0%, rgba(30, 36, 56, 0.92) 100%);
    border: 1px solid rgba(255, 140, 66, 0.35) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(168, 94, 14, 0.18);
}

/* ============================================
   FOOTER — Static decorative top line (glow loop removed)
   ============================================ */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-dark) 25%, var(--primary) 50%, var(--primary-dark) 75%, transparent 100%);
}

.social-icons a {
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    display: none;
}

/* ============================================
   FLATTEN PILL SHAPES — Brand-aligned angular elements
   Tags, badges, kickers, buttons
   ============================================ */
.btn {
    border-radius: 2px;
}

.nav-link-odoo {
    border-radius: 2px !important;
}

.service-tagline,
.project-category {
    border-radius: 2px;
}

.info-feature-kicker::before {
    border-radius: 0;
    height: 2px;
    width: 26px;
    background: linear-gradient(90deg, rgba(255, 179, 102, 0.45) 0%, var(--primary-light) 100%);
    opacity: 0.9;
    box-shadow: 0 0 5px rgba(255, 179, 102, 0.25);
}

.achievement-card::after {
    border-radius: 0;
}

.franchise-fit-tags span,
.franchise-process-stage-range,
.process-step-phase {
    border-radius: 2px;
}

.service-card-highlight,
.career-fields {
    border-radius: 2px;
}

.cookie-banner {
    border-radius: 2px;
}

.project-meta-list li {
    border-radius: 2px;
}

/* ============================================
   SERVICE ICON — Sharp square, no float
   ============================================ */
.service-icon {
    border-radius: 4px;
    animation: none;
}

/* ============================================
   SCROLL REVEAL — One-shot entrance only
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================
   BRAND DISPLAY FONT — Cormorant Garamond
   Elegant, high-contrast editorial serif for headings
   ============================================ */
.section-title,
.hero-tagline,
.feedback-info h3,
.footer-brand h3 {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Size tuning — Cormorant reads heavier at display size */
.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.feedback-info h3,
.footer-brand h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    letter-spacing: 0.06em;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
:root[data-theme="light"] .hero::before {
    background:
        linear-gradient(145deg, rgba(214, 124, 34, 0.09) 0%, transparent 50%),
        linear-gradient(315deg, rgba(214, 124, 34, 0.06) 0%, transparent 50%);
    opacity: 0.92;
}

:root[data-theme="light"] .stat-item {
    background: rgba(255, 250, 244, 0.92);
    border-color: rgba(168, 94, 14, 0.24);
    box-shadow: 0 8px 24px rgba(52, 35, 16, 0.08);
}

:root[data-theme="light"] .stat-item:hover {
    border-color: rgba(168, 94, 14, 0.42);
    box-shadow: 0 12px 28px rgba(52, 35, 16, 0.14);
}

:root[data-theme="light"] .navbar {
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 247, 239, 0.94) 100%);
}

:root[data-theme="light"] .nav-link::after {
    background: var(--primary);
}

:root[data-theme="light"] .feedback-form {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 237, 226, 0.96) 100%);
    border-color: rgba(168, 94, 14, 0.34) !important;
    box-shadow: 0 16px 40px rgba(52, 35, 16, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus {
    border-color: rgba(168, 94, 14, 0.54);
    box-shadow: 0 0 0 3px rgba(168, 94, 14, 0.14);
}

:root[data-theme="light"] .footer::before {
    background: linear-gradient(90deg, transparent, rgba(168, 94, 14, 0.8), transparent);
}

/* ============================================
   GLOBAL ARCHITECTURAL FLATTENING
   All visible cards, containers, icons — angular, no pills
   ============================================ */

/* Cards & panels */
.franchise-process-stage,
#franchise-process .process-step,
#franchise-benefits .service-card,
#requirements .support-card,
.project-card,
.testimonial-card,
.faq-item,
.requirement-card,
.process-step,
.real-estate-grid-item,
.team-card-shell {
    border-radius: 4px !important;
}

/* Icon containers */
.process-step-icon,
.step-number,
#franchise-process .step-number,
#franchise-benefits .service-icon,
#requirements .support-card .service-icon,
.franchise-fit-icon {
    border-radius: 4px !important;
}

/* Inline tags, badges, pills inside cards */
#requirements .support-card .service-card-footer span,
#franchise-benefits .service-card::after,
.service-card-highlight,
.franchise-fit-checklist li,
.franchise-fit-note,
#franchise-process .process-step::before + * {
    border-radius: 3px;
}

/* The "0X" counter badge on franchise benefit cards */
#franchise-benefits .service-card::after {
    border-radius: 3px !important;
}

/* Support card highlight panel */
#requirements .support-card .service-card-highlight {
    border-radius: 3px !important;
}

/* Project detail zoomable label */
.project-detail-visual.is-zoomable::after {
    border-radius: 2px;
}

/* Team card photo */
.team-card-image {
    border-radius: 3px !important;
}

/* Team card top-bar line */
.team-card-shell::after {
    border-radius: 0 !important;
}

/* Hover: remove aggressive scale on cards */
#franchise-benefits .service-card:hover,
.project-card:hover,
.franchise-directory-card:hover {
    transform: translateY(-6px) !important;
}

#requirements .support-card:hover {
    transform: translateY(-6px) !important;
}

/* ============================================
   MORE CARDS, PANELS & MODALS
   ============================================ */
.franchise-directory-card,
.franchise-directory-modal-card,
.franchise-directory-detail,
.franchise-directory-map-wrap,
.franchise-contact-card,
.company-green-visual,
.join-tribu-media,
.service-catalog-card,
.cookie-banner,
.cookie-modal-card,
.cookie-option,
.real-estate-cta-panel {
    border-radius: 4px !important;
}

/* Icon containers (additional) */
.franchise-contact-icon,
.franchise-directory-badge,
.franchise-directory-modal-badge {
    border-radius: 4px !important;
}

/* ============================================
   PILL BADGES & TAGS → flat
   (999px → 3px)
   ============================================ */
.franchise-fit-tags span,
.franchise-process-stage-range,
.process-step-phase,
.stars,
.franchise-directory-state,
.franchise-directory-meta span,
.franchise-directory-close,
.discord-join-btn {
    border-radius: 3px !important;
}

/* Nav Odoo link pill — needs !important to beat style.css's 999px !important */
.nav-link-odoo {
    border-radius: 3px !important;
}

/* ============================================
   MOBILE — decorative line widths
   ============================================ */
@media (max-width: 480px) {
    .section-title::before,
    .section-title::after {
        width: clamp(24px, 4vw, 40px);
    }
}

@media (max-width: 360px) {
    .section-title::before,
    .section-title::after {
        width: clamp(18px, 3.5vw, 30px);
    }
}
