/* ========================================
   ZENON CAPITAL — Premium Design System
   ======================================== */

/* --- Design Tokens --- */
:root {
  --bg-deep: #080c14;
  --bg-surface: #0f1422;
  --bg-card: #151b2e;
  --bg-elevated: #1a2238;
  --gold: #c79662;
  --gold-light: #dfb689;
  --gold-dark: #9b6f42;
  --text-primary: #eee9df;
  --text-secondary: #8c96b8;
  --text-muted: #4e5879;
  --border-subtle: rgba(199,150,98,0.12);
  --border-accent: rgba(199,150,98,0.25);
  --glass-bg: rgba(15,20,34,0.75);
  --glass-border: rgba(255,255,255,0.06);
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --container: 1400px;
  --section-py: clamp(6rem,12vw,10rem);
}

/* --- Reset --- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}
img { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration: none; }
button { border:none; background:none; cursor:pointer; font-family:inherit; color:inherit; }
input,textarea { font-family:inherit; }
.mono { font-family: var(--font-mono); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.5rem,4vw,3rem); }

/* --- Grain Overlay --- */
.grain-overlay {
  position: fixed; inset:0; z-index:9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --- Preloader --- */
#preloader {
  position: fixed; inset:0; z-index:10000;
  background: var(--bg-deep);
  display: flex; align-items:center; justify-content:center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#preloader.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.preloader-inner { text-align:center; }
.preloader-text {
  font-size: clamp(3rem,8vw,6rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}
.preloader-bar { width:120px; height:2px; background:var(--border-subtle); margin:0 auto; border-radius:2px; overflow:hidden; }
.preloader-fill { width:0; height:100%; background:var(--gold); border-radius:2px; transition: width 1.5s var(--ease); }
.preloader-fill.active { width:100%; }

/* --- Navigation --- */
#navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 1.25rem 0;
  transition: all 0.5s var(--ease);
}
#navbar.scrolled {
  padding: 0.75rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem,4vw,3rem);
  display: flex; align-items:center; justify-content:space-between;
}
.nav-logo img { height:48px; width:auto; opacity:0.95; transition: opacity 0.3s; }
.nav-logo:hover img { opacity:1; }
.nav-links { display:flex; gap:clamp(1rem, 2vw, 2.5rem); align-items:center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
  position: relative;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0;
  width:0; height:1px; background:var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width:100%; }
.nav-cta {
  font-size: 0.8125rem; font-weight: 600;
  padding: 0.625rem 1.5rem;
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: 6px;
  transition: all 0.4s var(--ease);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nav-hamburger { display:none; flex-direction:column; gap:5px; padding:8px; }
.nav-hamburger span { display:block; width:22px; height:1.5px; background:var(--text-primary); transition: all 0.3s var(--ease); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-hamburger.active span:nth-child(2) { opacity:0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile Menu */
.mobile-menu {
  position:fixed; inset:0; z-index:999;
  background: var(--bg-deep);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:1.75rem;
  opacity:0; visibility:hidden;
  transition: all 0.5s var(--ease);
}
.mobile-menu.open { opacity:1; visibility:visible; }
.mobile-link { font-size:1.5rem; font-weight:600; color:var(--text-secondary); transition: color 0.3s; }
.mobile-link:hover { color: var(--gold); }
.mobile-cta {
  font-size: 1.125rem; font-weight: 600;
  padding: 0.875rem 2rem;
  background: var(--gold);
  color: var(--bg-deep) !important;
  border-radius: 8px;
  text-align: center;
  max-width: 280px;
  width: 90%;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(200, 169, 126, 0.25);
  transition: all 0.3s var(--ease);
}
.mobile-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

/* --- Buttons --- */
.btn {
  display:inline-flex; align-items:center; gap:0.5rem;
  font-size: 0.9375rem; font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  transition: all 0.4s var(--ease);
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn-primary { background:var(--gold); color:var(--bg-deep); }
.btn-primary:hover { 
    background: var(--gold-light); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 30px rgba(200,169,126,0.2); 
  }
.btn-primary:active { transform:translateY(0) scale(0.98); }
.btn-outline { border:1px solid var(--border-accent); color:var(--gold); background:transparent; }
.btn-outline:hover { 
    background: rgba(200,169,126,0.08); 
    border-color: var(--gold); 
    transform: translateY(-2px); 
  }
.btn-lg { padding:1rem 2.5rem; font-size:1rem; }
.btn-full { width:100%; justify-content:center; }
.btn:active { 
  transform: scale(0.98); 
}

/* --- Section Labels & Titles --- */
.section-label {
  display:inline-flex; align-items:center; gap:0.75rem;
  font-size:0.75rem; font-weight:500;
  text-transform:uppercase; letter-spacing:0.15em;
  color:var(--gold); margin-bottom:1.5rem;
}
.label-line { display:inline-block; width:32px; height:1px; background:var(--gold); }
.section-title {
  font-size:clamp(2rem,4.5vw,3.5rem);
  font-weight:700; line-height:1.1;
  letter-spacing:-0.03em; color:var(--text-primary);
  margin-bottom:1.5rem;
}
.section-desc { font-size:1.0625rem; color:var(--text-secondary); max-width:55ch; line-height:1.7; }
.section-header { margin-bottom: clamp(3rem,6vw,5rem); }

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 40px -15px rgba(0,0,0,0.3);
  border-radius: var(--radius, 16px);
}

/* ============================
   HERO
   ============================ */
#hero {
  min-height: 100dvh;
  display:flex; align-items:center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,6rem);
  align-items:center;
}
.hero-content { position:relative; z-index:2; }
.hero-label {
  display:inline-flex; align-items:center; gap:0.85rem;
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 2rem;
}
.hero-label .label-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--gold);
}
.hero-title {
  font-size: clamp(2.5rem,5.5vw,4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: var(--text-primary);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.hero-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero-ctas { display:flex; gap:1rem; flex-wrap:wrap; }
.hero-visual { position:relative; }
.hero-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 7/9;
  position: relative;
}
.hero-img-wrap::after {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-deep) 100%);
  pointer-events:none;
}
.hero-img {
  width:100%; height:100%;
  object-fit:cover;
  filter: brightness(0.85) contrast(1.1) saturate(0.9);
  transition: transform 0.8s var(--ease);
}
.hero-float-card {
  position:absolute;
  bottom: 2rem; left:-3rem;
  padding: 1.5rem 2rem;
  display:flex; align-items:center; gap:1.5rem;
  --radius: 14px;
  z-index:3;
}
.float-stat { display:flex; flex-direction:column; align-items:flex-start; }
.stat-value {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
  line-height: 1;
}
.float-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
}
.float-plus, .float-suffix, .float-prefix {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  display: inline-block;
  margin-top: 0.1em;
  line-height: 1;
}
.float-label { font-size:0.7rem; color:var(--text-secondary); margin-top:0.35rem; text-transform:uppercase; letter-spacing:0.08em; }
.float-divider { width:1px; height:40px; background:var(--border-accent); }

/* ============================
   MARQUEE
   ============================ */
.marquee-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display:flex; align-items:center; gap:2.5rem;
  white-space:nowrap;
  will-change:transform;
}
.marquee-item {
  font-size: clamp(1.25rem,2.5vw,2rem);
  font-weight: 200;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink:0;
}
.marquee-dot {
  width:6px; height:6px;
  background:var(--gold-dark);
  border-radius:50%;
  flex-shrink:0;
  opacity:0.5;
}

/* ============================
   ABOUT
   ============================ */
#about { padding: var(--section-py) 0; }
.about-grid {
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem,6vw,6rem);
  align-items:center;
}
.about-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.about-text-wrap p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 62ch;
}
.about-highlight {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-accent);
}
.about-img {
  border-radius: 16px;
  width:100%; height:auto;
  aspect-ratio: 4/5;
  object-fit:cover;
  filter: brightness(0.85) contrast(1.05) saturate(0.9);
}

/* ============================
   MISSION — Nossos Pilares (Clean Grid Flow)
   ============================ */
#mission { 
  padding: var(--section-py) 0;
  position: relative;
  width: 100%;
  height: auto;
  min-height: auto;
  overflow: visible;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 2rem;
}
.pillar-card,
.stack-card {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: clamp(2.5rem,4vw,3.5rem);
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: auto;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  box-shadow: 0 15px 45px -15px rgba(0,0,0,0.6);
}
.pillar-card:hover,
.stack-card:hover { 
  border-color: var(--border-accent); 
  box-shadow: 0 20px 60px -20px rgba(199,150,98,0.15); 
}
.stack-number { font-size:3.5rem; font-weight:700; color:var(--gold); opacity:0.3; line-height:1; display:block; margin-bottom:1rem; }
.stack-title { font-size:clamp(1.5rem,3vw,2.25rem); font-weight:700; letter-spacing:-0.02em; margin-bottom:1rem; }
.stack-desc { font-size:1.0625rem; color:var(--text-secondary); max-width:65ch; line-height:1.8; }

/* ============================
   SOLUTIONS PF — Bento Grid
   ============================ */
#solutions { padding: var(--section-py) 0; }
.bento-grid {
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-flow: dense;
  gap: 1.25rem;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(2rem,3vw,2.5rem);
  position:relative;
  overflow:hidden;
  transition: all 0.5s var(--ease);
}
.bento-card:hover { border-color: var(--border-accent); transform:translateY(-4px); box-shadow: 0 20px 50px -15px rgba(0,0,0,0.4); }
.bento-large { grid-row: span 2; display:flex; flex-direction:column; justify-content:space-between; }
.bento-icon {
  width:56px; height:56px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(200,169,126,0.08);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.bento-card h3 { font-size:1.25rem; font-weight:600; letter-spacing:-0.01em; margin-bottom:0.75rem; }
.bento-card p { font-size:0.9375rem; color:var(--text-secondary); line-height:1.7; }
.bento-tag { display:inline-block; margin-top:1.5rem; font-size:0.75rem; color:var(--gold); padding:0.375rem 0.875rem; background:rgba(200,169,126,0.08); border:1px solid var(--border-accent); border-radius:20px; }

/* Spotlight border effect */
.spotlight-card { --x:50%; --y:50%; }
.spotlight-card::before {
  content:''; position:absolute; inset:-1px;
  border-radius:inherit;
  background: radial-gradient(400px circle at var(--x) var(--y), rgba(200,169,126,0.15), transparent 60%);
  z-index:-1; opacity:0;
  transition: opacity 0.4s;
}
.spotlight-card:hover::before { opacity:1; }

/* ============================
   SOLUTIONS PJ — Horizontal Scroll
   ============================ */
#solutions-pj { padding: var(--section-py) 0; overflow:hidden; }
.hscroll-controls {
  display:flex;
  justify-content:flex-end;
  gap:0.75rem;
  margin:-1rem 0 1rem;
}
.hscroll-btn {
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--text-primary);
  background:rgba(255,255,255,0.04);
  border:1px solid var(--border-subtle);
  border-radius:50%;
  cursor:pointer;
  transition:all 0.3s var(--ease);
}
.hscroll-btn:hover {
  color:var(--gold);
  border-color:var(--border-accent);
  background:rgba(200,169,126,0.08);
}
.hscroll-btn:disabled {
  opacity:0.35;
  cursor:default;
  pointer-events:none;
}
.hscroll-wrapper {
  overflow-x:auto;
  scrollbar-width:none;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
}
.hscroll-wrapper::-webkit-scrollbar { display:none; }
.hscroll-track {
  display:flex; gap:1.5rem;
  width:100%;
  min-width:100%;
  will-change:transform;
}
.hscroll-card {
  flex:0 0 calc((100% - 4.5rem) / 4);
  min-width:280px;
  scroll-snap-align:start;
  padding: clamp(2rem,3vw,2.5rem);
  --radius:16px;
  transition: all 0.4s var(--ease);
}
.hscroll-card:hover { border-color: var(--border-accent); transform:translateY(-4px); }
.hscroll-num { font-size:2.5rem; font-weight:700; color:var(--gold); opacity:0.2; display:block; margin-bottom:1rem; line-height:1; }
.hscroll-card h3 { font-size:1.25rem; font-weight:600; margin-bottom:0.75rem; letter-spacing:-0.01em; }
.hscroll-card p { font-size:0.9375rem; color:var(--text-secondary); line-height:1.7; }

/* ============================
/* ============================
   TEAM — Single Member (Douglas Ramos)
   ============================ */
#team { padding: var(--section-py) 0; }
.team-single {
  display: flex;
  justify-content: center;
  width: 100%;
}
.team-member-card {
  width: min(100%, 440px);
}
.team-member-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  margin-bottom: 1.25rem;
}
.team-member-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.2) brightness(0.9) contrast(1.05);
  transition: all 0.6s var(--ease);
}
.team-member-media:hover img {
  filter: grayscale(0) brightness(0.95);
  transform: scale(1.03);
}
.team-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-role { font-size: 0.9375rem; color: var(--gold); font-weight: 500; }

/* ============================
   CTA BANNER
   ============================ */
#cta-banner {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-inner { text-align:center; max-width:700px; margin:0 auto; }
.cta-title { font-size:clamp(2rem,4vw,3rem); font-weight:700; letter-spacing:-0.03em; line-height:1.15; margin-bottom:1.25rem; }
.cta-desc { font-size:1.0625rem; color:var(--text-secondary); margin-bottom:2.5rem; line-height:1.7; }

/* ============================
   CONTACT
   ============================ */
#contact { padding: var(--section-py) 0; }
.contact-grid {
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem,6vw,5rem);
  align-items:start;
}
.contact-items { display:flex; flex-direction:column; gap:1rem; margin:2rem 0; }
.contact-item {
  display:inline-flex; align-items:center; gap:0.75rem;
  font-size:0.9375rem; color:var(--text-secondary);
  transition: color 0.3s;
}
.contact-item:hover { color:var(--gold); }
.contact-item svg { color:var(--gold); flex-shrink:0; }
.contact-socials { display:flex; gap:0.75rem; margin-top:1rem; }
.social-link {
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border-subtle);
  border-radius:10px;
  color:var(--text-secondary);
  transition: all 0.3s var(--ease);
}
.social-link:hover { color:var(--gold); border-color:var(--border-accent); background:rgba(200,169,126,0.06); }
.contact-form {
  padding: clamp(2rem,4vw,3rem);
  --radius:20px;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-group { margin-bottom: 0.25rem; }
.form-group label {
  display:block; font-size:0.8125rem; font-weight:500;
  color:var(--text-secondary); margin-bottom:0.5rem;
  letter-spacing:0.02em;
}
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:0.875rem 1rem;
  background: rgba(255,255,255,0.03);
  border:1px solid var(--border-subtle);
  border-radius:8px;
  color:var(--text-primary);
  font-size:0.9375rem;
  transition: all 0.3s var(--ease);
  outline:none;
}
.form-group 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='%23c79662' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}
.form-group select option:disabled {
  color: var(--text-muted);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,126,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color:var(--text-muted); }
.form-group textarea { resize:vertical; min-height:100px; }

/* Contact Profile Fieldset */
.contact-profile {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease);
}
.contact-profile legend {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 0.5rem;
}
.profile-options {
  display: flex;
  gap: 2rem;
  margin-top: 0.375rem;
}
.profile-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}
.profile-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Error States */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
.contact-profile.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.field-error {
  display: none;
  font-size: 0.78125rem;
  color: #f87171;
  margin-top: 0.375rem;
  font-weight: 400;
}
.form-group.has-error .field-error,
.form-field-full.has-error .field-error {
  display: block;
}

/* Status Messages */
.form-status-msg {
  display: none;
  font-size: 0.9375rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.form-status-msg.status-success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.form-status-msg.status-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Honeypot Field Styling (Hidden without display: none) */
#company-website {
  position: absolute;
  opacity: 0;
  top: -9999px;
  left: -9999px;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Privacy & Sensitive Data Warning */
.form-privacy-notice {
  font-size: 0.78125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.form-awareness-notice {
  font-size: 0.78125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form-awareness-notice a {
  color: var(--gold);
  text-decoration: underline;
  transition: color 0.3s var(--ease);
}
.form-awareness-notice a:hover,
.form-awareness-notice a:focus {
  color: var(--text-primary);
}

/* ============================
   FOOTER
   ============================ */
#footer {
  padding: 4rem 0 2rem;
  border-top:1px solid var(--border-subtle);
}
.footer-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:3rem; flex-wrap:wrap; gap:2rem; }
.footer-brand img { height:30px; width:auto; margin-bottom:0.75rem; opacity:0.7; }
.footer-brand p { font-size:0.8125rem; color:var(--text-muted); }
.footer-links { display:flex; gap:2rem; flex-wrap:wrap; }
.footer-links a { font-size:0.8125rem; color:var(--text-secondary); transition:color 0.3s; }
.footer-links a:hover { color:var(--gold); }
.footer-bottom { border-top:1px solid var(--border-subtle); padding-top:2rem; }
.footer-legal { font-size:0.6875rem; color:var(--text-muted); line-height:1.7; max-width:90ch; margin-bottom:1rem; }
.footer-copy { font-size:0.75rem; color:var(--text-muted); }

/* ============================
   RESPONSIVE
   ============================ */
@media(max-width:1024px) {
  .hero-grid { grid-template-columns:1fr; gap:3rem; }
  .hero-visual { max-width:500px; }
  .hero-float-card { left:0; }
  .about-grid { grid-template-columns:1fr; }
  .about-img { max-height:400px; }
  .bento-grid { grid-template-columns:1fr 1fr; }
  .bento-large { grid-row:auto; grid-column:span 2; }
  .contact-grid { grid-template-columns:1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 20px; }
  .hscroll-card {
    flex:0 0 clamp(280px,42vw,340px);
  }
}
@media(max-width:768px) {
  .nav-links, .nav-cta { display:none; }
  .nav-hamburger { display:flex; }
  .hero-title { font-size:clamp(2rem,8vw,3rem); }
  .hero-ctas { flex-direction:column; }
  .hero-ctas .btn { width:100%; justify-content:center; }
  .bento-grid { grid-template-columns:1fr; }
  .bento-large { grid-column:auto; }
  .team-member-card { width: 100%; max-width: 420px; }
  .pillars-grid { display: flex; flex-direction: column; gap: 20px; }
  #solutions {
    position: relative;
    z-index: auto;
    clear: both;
    margin-top: 0;
  }

  .form-row { grid-template-columns:1fr; }
  .footer-top { flex-direction:column; }
  .hscroll-controls { margin-top:-0.5rem; }
  .hscroll-track { gap:1rem; }
  .hscroll-card {
    flex-basis:min(85vw,340px);
    min-width:min(85vw,340px);
  }
}

/* ============================
   REVEAL ANIMATION UTILITY
   ============================ */
.reveal-item { opacity:0; transform:translateY(30px); }
.reveal-item.visible {
  opacity:1; transform:translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* --- Form Loading & Disabled State --- */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading {
  position: relative;
}

.form-group input:disabled,
.form-group textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- WhatsApp Floating CTA --- */
.whatsapp-float {
  position: fixed;
  left: clamp(1rem,3vw,2rem);
  bottom: clamp(1rem,3vw,2rem);
  z-index: 950;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(200,169,126,0.14), rgba(15,20,34,0.78));
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 38px -18px rgba(0,0,0,0.75);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.whatsapp-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-float.is-hidden {
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(200,169,126,0.16);
  border-radius: inherit;
  pointer-events: none;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.whatsapp-float:hover {
  color: var(--gold-light);
  border-color: rgba(200,169,126,0.36);
  background: linear-gradient(145deg, rgba(200,169,126,0.22), rgba(15,20,34,0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 44px -20px rgba(200,169,126,0.35);
}

.whatsapp-float:hover svg {
  opacity: 1;
  transform: scale(1.04);
}

@media(max-width:768px) {
  .whatsapp-float {
    right: clamp(1rem,5vw,1.5rem);
    left: auto;
    bottom: clamp(1rem,5vw,1.5rem);
    width: 54px;
    height: 54px;
  }

  .mobile-menu.open ~ .whatsapp-float,
  .whatsapp-float.is-menu-hidden {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    pointer-events: none;
  }
}
