/* Infinite Loop — clone of infiniteloopit.com
   Tokens captured from the live Wix site:
   - accent coral  rgb(253,98,98) = #FD6262
   - font          "Space Grotesk"
   - background    near-black #0e0e0e
*/

:root {
  --bg: #0e0e0e;
  --bg-elev: #1b1b1d;
  --accent: #fd6262;
  --accent-dark: #e55e75;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --maxw: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

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

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo { color: #fff; }
.logo svg { width: 150px; height: auto; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--accent);
  font-size: 16px;
  transition: opacity .2s ease;
}
.nav a:hover { opacity: .75; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: #050505 url("../img/hero-abstract-lines.jpg") center / cover no-repeat;
  padding: 210px 0 90px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.25) 0%, rgba(14,14,14,.15) 60%, var(--bg) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-weight: 400;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 900px;
  letter-spacing: .5px;
}
.hero p.tagline {
  font-size: clamp(15px, 2.2vw, 19px);
  color: rgba(255,255,255,.85);
  margin: 0;
}

/* ---------- Who we are ---------- */
.about {
  position: relative;
  background: var(--bg) url("../img/connecting-dots.jpg") center top / cover no-repeat;
  padding: 90px 0 120px;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(14,14,14,.55) 22%, rgba(14,14,14,.75) 100%);
}
.about .wrap { position: relative; z-index: 2; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 56px;
  align-items: start;
}
.about h2 {
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 22px;
}
.about .intro p { color: var(--muted); margin: 0 0 18px; }

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: rgba(28, 28, 30, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  backdrop-filter: blur(2px);
  transition: transform .25s ease, border-color .25s ease;
}
.card:nth-child(1) { margin-top: 0; }
.card:nth-child(2) { margin-top: 70px; }
.card:nth-child(3) { margin-top: 140px; }
.card:hover { transform: translateY(-6px); border-color: rgba(253,98,98,.4); }
.card .icon { color: var(--accent); width: 54px; height: 54px; margin-bottom: 22px; }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Contact page ---------- */
.contact-hero { padding: 200px 0 30px; text-align: center; }
.contact-hero h2 { font-size: clamp(34px, 6vw, 52px); font-weight: 700; margin: 0 0 16px; }
.contact-hero p { color: var(--muted); margin: 2px 0; }

.contact-body { padding: 40px 0 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.contact-photo {
  background: #222 center / cover no-repeat;
  min-height: 430px;
}
.contact-panel { padding: 8px 0 8px 48px; }
.contact-info p { margin: 0 0 4px; color: var(--muted); font-size: 16px; }
.contact-info a { color: var(--muted); }
.contact-form { margin-top: 30px; max-width: 430px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 6px 0;
  outline: none;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.btn-send {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 16px;
  padding: 10px 34px;
  border-radius: 4px;
  cursor: pointer;
  transition: filter .2s ease;
}
.btn-send:hover { filter: brightness(1.08); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  padding: 60px 0 70px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.site-footer .logo svg { width: 150px; }
.site-footer .addr { margin-top: 18px; }
.site-footer .addr p { margin: 0 0 2px; color: var(--muted); font-size: 15px; }
.site-footer .addr a { color: var(--muted); }

/* ---------- Floating chat ---------- */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(n) { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 28px 0 0; }
  .contact-photo { min-height: 260px; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .site-header .wrap { height: 72px; }
}

/* ---------- Subtle entrance animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Header eases down from the top on load */
.site-header.reveal { transform: translateY(-16px); }
.site-header.reveal.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .site-header.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
