/* ============================================================
   BTO AUTOMATIZACIONES — styles.css
   ============================================================ */

/* ── Variables ── */
:root {
  --gold: #C9A84C;
  --gold-light: #deb84e;
  --gold-dim: rgba(201,168,76,0.15);
  --gold-glow: rgba(201,168,76,0.25);
  --bg: #070707;
  --bg2: #0f0f0f;
  --bg3: #131313;
  --card: rgba(255,255,255,0.025);
  --txt: #f0f0f0;
  --txt2: #999;
  --txt3: #555;
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(201,168,76,0.22);
  --r: 14px;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Space Grotesk', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── Selection ── */
::selection { background: var(--gold-dim); color: var(--gold); }

/* ── Utilities ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.gt {
  background: linear-gradient(135deg, #b8932a, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.loader-svg {
  width: 90px;
  height: 90px;
}
.ld-outer {
  animation: ld-draw-outer 1s ease forwards;
}
.ld-inner {
  animation: ld-draw-inner 0.8s 0.6s ease forwards;
  stroke-dashoffset: 169;
}
.ld-dot { animation: ld-fade 0.4s 1.2s ease forwards; }
.ld-line { animation: ld-fade 0.4s 1.3s ease forwards; }

@keyframes ld-draw-outer {
  to { stroke-dashoffset: 0; }
}
@keyframes ld-draw-inner {
  to { stroke-dashoffset: 0; opacity: 0.4; }
}
@keyframes ld-fade {
  to { opacity: 1; }
}

.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  opacity: 0;
  animation: ld-fade 0.5s 1.4s ease forwards;
}
.ld-bto {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.ld-auto {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--txt2);
  text-transform: uppercase;
}

/* ============================================================
   CURSOR
   ============================================================ */
#cursor {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,168,76,0.6);
  border-radius: 50%;
  position: fixed;
  top: -18px;
  left: -18px;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease), opacity 0.2s, border-color 0.2s, background 0.2s;
  will-change: transform;
}
#cursorDot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: -2.5px;
  left: -2.5px;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}
body:not(:hover) #cursor,
body:not(:hover) #cursorDot { opacity: 0; }
#cursor.hovered {
  transform: scale(1.6);
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s var(--ease), box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(7,7,7,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-svg { width: 28px; height: 28px; flex-shrink: 0; }
.logo-words {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.logo-bto {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.logo-auto {
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  color: var(--txt2);
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--txt2);
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--txt); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--gold-light);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-1px);
}

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--txt);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 2rem;
  background: rgba(7,7,7,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}
.mobile-nav.open {
  max-height: 300px;
  padding: 1rem 2rem 1.5rem;
}
.mn-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--txt2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mn-link:last-child { border-bottom: none; }
.mn-link:hover { color: var(--gold); }
.mn-cta { color: var(--gold); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  transition: box-shadow 0.25s, transform 0.15s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-gold:hover { box-shadow: 0 0 30px var(--gold-glow), 0 4px 20px rgba(0,0,0,0.3); }
.btn-gold:hover::before { opacity: 1; }
.btn-gold > * { position: relative; z-index: 1; }
.btn-gold.full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--txt);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.btn-ghost:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(7,7,7,0.6) 80%, var(--bg) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 80px;
}

/* Hero Tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  background: rgba(201,168,76,0.05);
  margin-bottom: 2rem;
  opacity: 0;
}
.tag-pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero Title */
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--txt);
}
.h1-line {
  display: block;
  opacity: 0;
}

.hero-p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--txt2);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.5rem;
  opacity: 0;
}
.hero-p strong { color: var(--txt); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
}

/* Hero trust badges */
.hero-trust {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--txt2);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.trust-item i {
  color: var(--gold);
  font-size: 0.72rem;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
}
.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--txt3);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 0.2; }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.sec {
  padding: 8rem 0;
  position: relative;
}
.sec-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 5rem;
}
.sec-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.sec-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--txt);
  margin-bottom: 1rem;
}
.sec-p {
  font-size: 1rem;
  color: var(--txt2);
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--border);
}
.svc-card {
  position: relative;
  padding: 2.5rem;
  background: var(--bg2);
  transition: background 0.3s var(--ease);
  cursor: none;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.svc-card:hover { background: var(--bg3); }
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after { opacity: 1; }

.svc-ico {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s;
}
.svc-card:hover .svc-ico {
  box-shadow: 0 0 20px var(--gold-glow);
}
.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.svc-card p {
  font-size: 0.9rem;
  color: var(--txt2);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.svc-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--txt3);
  transition: color 0.3s, transform 0.3s;
  z-index: 1;
}
.svc-card:hover .svc-arrow {
  color: var(--gold);
  transform: translate(3px, -3px);
}

/* ============================================================
   TOOLS BAND
   ============================================================ */
.tools-band {
  padding: 4rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.tools-label-wrap {
  text-align: center;
  margin-bottom: 2rem;
}
.tools-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt3);
}
.tools-marquee-wrap {
  position: relative;
  overflow: hidden;
}
.tools-marquee-wrap::before,
.tools-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.tools-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg2), transparent);
}
.tools-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg2), transparent);
}
.tools-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.tools-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--txt2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.tool-pill:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

/* ============================================================
   PROCESS
   ============================================================ */
.proc-wrap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.proc-track {
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.proc-step {
  display: grid;
  grid-template-columns: 80px 60px 1fr;
  align-items: start;
  gap: 0 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.proc-step:last-child { border-bottom: none; }
.ps-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--txt3);
  padding-top: 0.5rem;
  text-align: right;
  padding-right: 1rem;
}
.ps-ico {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  background: var(--bg2);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s, background 0.3s;
}
.proc-step:hover .ps-ico {
  background: var(--gold-dim);
  box-shadow: 0 0 20px var(--gold-glow);
}
.ps-body { padding-top: 0.25rem; }
.ps-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 0.5rem;
}
.ps-body p {
  font-size: 0.9rem;
  color: var(--txt2);
  line-height: 1.7;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-sec { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 6rem;
  align-items: center;
}
.about-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
}
.about-card:hover { border-color: var(--border-gold); }
.ac-diamond {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  animation: diamond-spin 20s linear infinite;
}
@keyframes diamond-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.about-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 0.25rem;
}
.ac-role {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}
.ac-quote {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--border-gold);
  padding-left: 1rem;
  text-align: left;
}
.ac-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cpill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--txt2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.cpill:hover { border-color: var(--border-gold); color: var(--gold); }
.cpill i { color: var(--gold); font-size: 0.85rem; }

/* About text */
.about-text { max-width: 540px; }
.about-text p {
  font-size: 1rem;
  color: var(--txt2);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-text p strong { color: var(--txt); }
.about-vals {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-vals li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--txt2);
}
.about-vals li i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-sec { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Info */
.cinfo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}
.citem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s, background 0.2s;
}
.citem:hover { border-color: var(--border-gold); background: var(--bg3); }
.cico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 10px;
  flex-shrink: 0;
}
.citem small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt3);
  margin-bottom: 0.2rem;
}
.citem span {
  font-size: 0.9rem;
  color: var(--txt);
  font-weight: 500;
}
.resp-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  margin-top: 0.5rem;
}
.resp-badge i { font-size: 0.9rem; }

/* Contact Form */
.cform {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ff {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ff label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--txt2);
  text-transform: uppercase;
}
.ff input,
.ff textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  color: var(--txt);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  outline: none;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ff input:focus,
.ff textarea:focus {
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.06);
  background: var(--bg3);
}
.ff input::placeholder,
.ff textarea::placeholder { color: var(--txt3); }
.form-note {
  font-size: 0.75rem;
  color: var(--txt3);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--txt3);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 220px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--txt3);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col ul li a i { font-size: 0.75rem; width: 14px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--txt3);
}

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

/* ============================================================
   MAGNETIC BUTTON EFFECT (applied via JS)
   ============================================================ */
.magnetic {
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

/* ============================================================
   CARD TILT (applied via JS)
   ============================================================ */
.svc-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================================
   FORM SUCCESS STATE
   ============================================================ */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  min-height: 300px;
}
.form-success i {
  font-size: 3rem;
  color: var(--gold);
  animation: success-pop 0.5s var(--ease);
}
.form-success h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--txt);
}
.form-success p { color: var(--txt2); font-size: 0.9rem; }
@keyframes success-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-card-wrap { max-width: 420px; }
  .about-text { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav { display: flex; }

  #cursor, #cursorDot { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }

  .hero-h1 { font-size: clamp(2.8rem, 10vw, 4rem); }

  .svc-grid { grid-template-columns: 1fr; }

  .proc-step { grid-template-columns: 50px 50px 1fr; gap: 0 1rem; }
  .proc-track { left: 25px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-card-wrap { max-width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .sec { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-inner { padding: 0 1.25rem; padding-top: 80px; }
  .hero-actions { flex-direction: column; }
  .btn-gold, .btn-ghost { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-tag, .h1-line, .hero-p, .hero-actions, .hero-trust, .scroll-hint {
    opacity: 1;
    transform: none;
  }
  #heroCanvas { display: none; }
}
