/* Instituto Cássio de Oliveira — Identidade Visual ICO */
:root {
  --color-bg-primary: #f9fafb;
  --color-bg-secondary: #ffffff;
  --color-bg-subtle: #f1f5f9;
  --color-bg-dark: #0f172a;
  --color-bg-darker: #020617;
  --color-accent: #0077b6;
  --color-accent-hover: #005f92;
  --color-accent-light: #e0f2fe;
  --color-gold: #d4a373;
  --color-gold-hover: #b88654;
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: rgba(51, 65, 85, 0.15);
  --container: 1280px;
  --radius: 6px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--color-text-secondary); background: var(--color-bg-primary); -webkit-font-smoothing: antialiased; line-height: 1.6; }

/* Header */
.ico-header { background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
.ico-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.ico-nav-link { color: var(--color-text-secondary); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; padding: 0.5rem 0; position: relative; }
.ico-nav-link:hover { color: var(--color-accent); }
.ico-nav-link.active { color: var(--color-accent); }
.ico-nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--color-gold); }

/* Buttons */
.btn-primary { background: var(--color-accent); color: white; font-weight: 600; padding: 0.85rem 1.75rem; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.25s; box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 119, 182, 0.35); }
.btn-secondary { background: transparent; color: var(--color-accent); font-weight: 600; padding: 0.85rem 1.75rem; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.25s; border: 2px solid var(--color-accent); cursor: pointer; }
.btn-secondary:hover { background: var(--color-accent); color: white; }
.btn-gold { background: var(--color-gold); color: white; font-weight: 600; padding: 0.85rem 1.75rem; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.25s; box-shadow: 0 4px 14px rgba(212, 163, 115, 0.3); border: none; cursor: pointer; }
.btn-gold:hover { background: var(--color-gold-hover); transform: translateY(-2px); }

/* Hero variants */
.hero-overlay { position: relative; }
.hero-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.6) 60%, rgba(15,23,42,0.3) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; }

/* Cards */
.card { background: white; border: 1px solid var(--color-border); border-radius: var(--radius); transition: all 0.3s ease; }
.card:hover { border-color: var(--color-gold); box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }

/* Section titles */
.section-eyebrow { color: var(--color-gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; color: var(--color-text-primary); line-height: 1.15; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.125rem; color: var(--color-text-muted); max-width: 720px; margin: 0 auto; line-height: 1.6; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Number circle */
.num-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--color-accent); color: white; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; }

/* Footer */
.ico-footer { background: var(--color-bg-darker); color: #cbd5e1; padding: 4rem 0 2rem; }
.ico-footer h4 { color: white; font-weight: 600; margin-bottom: 1rem; font-size: 0.95rem; }
.ico-footer a { color: #94a3b8; transition: color 0.2s; font-size: 0.9rem; }
.ico-footer a:hover { color: var(--color-gold); }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* Dropdown menu */
.has-dropdown { position: relative; }
.has-dropdown .dropdown-trigger { display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; }
.has-dropdown .dropdown-trigger::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; margin-left: 4px; transition: transform 0.2s; }
.has-dropdown:hover .dropdown-trigger::after,
.has-dropdown.open .dropdown-trigger::after { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 280px; background: white; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,0.08); padding: 0.5rem; opacity: 0; visibility: hidden; transition: all 0.2s ease; z-index: 60; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 0.75rem 1rem; color: var(--color-text-secondary); font-weight: 500; font-size: 0.9rem; border-radius: var(--radius); transition: all 0.15s; }
.dropdown-menu a:hover { background: var(--color-bg-subtle); color: var(--color-accent); }
.dropdown-menu a .label-sub { display: block; font-size: 0.75rem; color: var(--color-text-muted); font-weight: 400; margin-top: 2px; }
/* Hover bridge - prevents dropdown from closing when moving to it */
.has-dropdown::before { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }

/* Mobile submenu */
.mobile-submenu { padding-left: 1rem; border-left: 2px solid var(--color-gold); margin-left: 0.5rem; display: none; }
.mobile-submenu.open { display: block; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 4px; }

/* Selection */
::selection { background: rgba(0, 119, 182, 0.2); color: #1b4f72; }

/* WhatsApp floating */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 100; background: #25d366; color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.08); }

/* Section dividers */
.section { padding: 5rem 1.5rem; }
@media (min-width: 768px) { .section { padding: 6rem 2rem; } }
.container-ico { max-width: var(--container); margin: 0 auto; }
