/* ===================================================================
   TITAN CR INC. — Website Styles  (V2, LEO-first)
   Navy #1B2A4A  |  Orange #E8722A  |  black surfaces
   Fonts: Oswald (headings) + Inter (body) + Syne/DM Sans (Leo)
   =================================================================== */

:root {
  --bg:        #000000;
  --surface:   #161616;
  --surface-2: #1f1f1f;
  --navy:      #1B2A4A;
  --navy-2:    #12203b;
  --orange:    #E8722A;
  --orange-d:  #cf5f1c;
  --peach:     #2a1d12;
  --ink:       #ffffff;
  --sub:       #b3b3b3;
  --line:      rgba(255,255,255,.12);
  --maxw:      1160px;
  --radius:    10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600; line-height: 1.08; margin: 0 0 .5em;
  letter-spacing: .5px; color: #fff;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .8px; }

p { margin: 0 0 1rem; }
a { color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; font-size: .95rem; text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all .18s ease; line-height: 1;
}
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blip 2.2s ease-in-out infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 3px;
  font-size: .8rem; font-weight: 600; color: var(--orange); margin: 0 0 .8rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; }
.brand-logo { height: 44px; width: auto; display: block; background: #fff; padding: 6px 10px; border-radius: 8px; }
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: #fff; font-weight: 600; font-size: .95rem;
  font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
.main-nav a:hover { color: var(--orange); border-color: var(--orange); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link { font-family: 'Oswald', sans-serif; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: .5px; white-space: nowrap; }
.phone-link:hover { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* ===================================================================
   HERO — LEO-first
   =================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 48%, rgba(8,18,40,.66) 100%),
    url("assets/ardilla-front.jpg") center/cover no-repeat, #000;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(232,114,42,.22), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 2px, transparent 2px 22px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero h1 .accent { color: var(--orange); }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.84); margin: 0 0 1.8rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-license { font-size: .82rem; letter-spacing: 1.4px; color: rgba(255,255,255,.6); text-transform: uppercase; font-family: 'Oswald', sans-serif; margin: 0; }

/* Leo teaser card (opens the widget) */
.leo-teaser {
  background: rgba(12,12,12,.86); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-top: 2px solid var(--orange);
  border-radius: 16px; padding: 24px 22px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  cursor: pointer; transition: transform .18s ease, border-color .18s;
  text-align: left; width: 100%; font-family: inherit;
}
.leo-teaser:hover { transform: translateY(-3px); }
.leo-teaser-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.leo-teaser-head .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: blip 2.2s ease-in-out infinite; }
.leo-teaser-head .id { font-family: 'Syne', 'Oswald', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.leo-teaser-head .id span { color: var(--orange); }
.leo-bubble {
  background: #161616; border: 1px solid var(--line); border-left: 2px solid var(--orange);
  border-radius: 3px 13px 13px 13px; padding: 13px 16px; color: #f2efea;
  font-size: 1rem; line-height: 1.55; margin-bottom: 16px;
  font-family: 'DM Sans', 'Inter', sans-serif;
}
.leo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.leo-chip {
  padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: transparent; color: #fff; font-family: 'DM Sans','Inter',sans-serif; font-size: .9rem;
  cursor: pointer; transition: border-color .15s, color .15s; white-space: nowrap;
}
.leo-chip:hover { border-color: var(--orange); color: var(--orange); }
.leo-teaser-foot { display: flex; align-items: center; gap: 8px; color: var(--sub); font-size: .82rem; }
.leo-teaser-foot .arrow { color: var(--orange); font-weight: 700; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--orange); color: #fff; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 24px; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .5px; }
.trust-label { font-size: .82rem; opacity: .92; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-alt { background: #080808; }
.section-dark { background: var(--navy); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-lead { color: var(--sub); font-size: 1.1rem; margin: 0; }
.section-dark .section-lead { color: rgba(255,255,255,.78); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Service cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.5); border-color: var(--orange); }
.card-icon { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--orange); width: 46px; height: 46px; border: 2px solid rgba(232,114,42,.35); background: var(--peach); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card h3 { color: #fff; margin-bottom: .5rem; }
.service-card p { color: var(--sub); margin: 0; font-size: .98rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.process-step .step-num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 2.2rem; color: rgba(232,114,42,.5); line-height: 1; }
.process-step h3 { margin: 10px 0 8px; color: #fff; }
.process-step p { color: var(--sub); margin: 0; font-size: .95rem; }

/* ---------- Projects ---------- */
.project { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .18s, border-color .18s; }
.project:hover { transform: translateY(-4px); border-color: var(--orange); }
.project-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--navy); }
.project-meta { padding: 18px 20px; }
.project-meta h3 { margin: 0 0 4px; color: #fff; font-size: 1.05rem; }
.project-meta span { color: var(--sub); font-size: .85rem; }

/* ---------- Why Titan ---------- */
.why-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.why-copy p { color: var(--sub); }
.why-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.why-list li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); }
.why-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; background: var(--orange); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.why-list strong { color: #fff; }
.why-aside { display: flex; }
.stat-block { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; width: 100%; display: grid; gap: 28px; }
.stat { display: flex; flex-direction: column; border-left: 3px solid var(--orange); padding-left: 18px; }
.stat-num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 2.4rem; color: #fff; line-height: 1; }
.stat-label { color: rgba(255,255,255,.72); font-size: .9rem; margin-top: 6px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.about-copy p { color: rgba(255,255,255,.85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--sub); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; color: var(--orange); min-width: 80px; }
.contact-list a { text-decoration: none; color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--orange); }
.contact-list span:not(.contact-label) { color: var(--sub); }

/* Contact -> Leo card */
.contact-leo { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--orange); border-radius: var(--radius); padding: 34px 30px; }
.contact-leo h3 { margin: 0 0 .6rem; }
.contact-leo p { color: var(--sub); margin: 0 0 1.4rem; }
.contact-leo .leo-mini-bubble {
  background: var(--bg); border: 1px solid var(--line); border-left: 2px solid var(--orange);
  border-radius: 3px 12px 12px 12px; padding: 13px 16px; color: #f2efea;
  font-family: 'DM Sans','Inter',sans-serif; font-size: .98rem; line-height: 1.5; margin-bottom: 1.4rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #000; color: rgba(255,255,255,.75); padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-logo { height: 54px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.footer-brand p { margin: 12px 0 0; font-size: .9rem; max-width: 280px; }
.footer-meta { text-align: right; font-size: .9rem; }
.footer-meta p { margin: 2px 0; }
.footer-meta a { color: #fff; text-decoration: none; }
.footer-meta a:hover { color: var(--orange); }
.copyright { color: rgba(255,255,255,.45); margin-top: 10px !important; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 720px) {
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line); padding: 8px 24px; display: none; box-shadow: 0 12px 24px rgba(0,0,0,.5); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .grid-3, .grid-4, .process-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-meta { text-align: center; }
}
