/* ============================================================
   VORREXO — styles.css
   ------------------------------------------------------------
   Organized top-to-bottom:
     1. Design tokens (colors, fonts, spacing)  <- edit here first
     2. Base / reset
     3. Layout helpers
     4. Buttons
     5. Header / nav
     6. Hero
     7. Sections (services, work, about, contact)
     8. Footer
     9. Responsive (mobile) tweaks
  ============================================================ */

/* ---- 1. DESIGN TOKENS -------------------------------------- */
:root {
  /* Brand palette (from your brief) */
  --navy:      #0D1B2A;   /* primary / dark */
  --teal:      #14B8A6;   /* accent — buttons & highlights */
  --teal-dark: #0E9384;   /* hover state for teal */
  --offwhite:  #F8FAFC;   /* page background */
  --slate:     #1E293B;   /* body text */

  /* Supporting shades derived from the palette */
  --navy-2:    #122438;   /* slightly lighter navy for layering */
  --muted:     #64748B;   /* secondary text */
  --line:      #E2E8F0;   /* hairline borders */
  --card:      #FFFFFF;   /* card surface */
  --white:     #FFFFFF;

  /* Typography */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
  --shadow:    0 10px 30px rgba(13, 27, 42, .08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, .14);
}

/* ---- 2. BASE / RESET --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; /* offset sticky header on anchor jumps */ }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--offwhite);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }

/* ---- 3. LAYOUT HELPERS ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; }
.section-alt { background: #EEF2F6; } /* subtle contrast band */

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-lead { color: var(--muted); font-size: 1.075rem; margin: 0; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 .75rem;
}

.accent { color: var(--teal); }

/* ---- 4. BUTTONS -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: #04302B;
  box-shadow: 0 8px 22px rgba(20, 184, 166, .35);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---- 5. HEADER / NAV --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.brand-mark { flex: none; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 500;
  color: var(--slate);
  font-size: .98rem;
}
.main-nav a:hover { color: var(--teal-dark); text-decoration: none; }
.main-nav .nav-cta { color: #04302B; }
.main-nav .nav-cta:hover { color: var(--white); }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ---- 6. HERO ----------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #E6EDF5;
  overflow: hidden;
  padding: 110px 0 96px;
}
/* Layered glow + faint grid for a subtle "tech" feel */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(20, 184, 166, .22), transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(20, 184, 166, .12), transparent 55%),
    linear-gradient(180deg, #0D1B2A 0%, #0B1622 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 80%);
}
.hero-inner { position: relative; max-width: 800px; }
.hero .eyebrow { color: var(--teal); }

.hero-title {
  color: var(--white);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: #B9C6D6;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.5rem; }

.hero-badges {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 14px 28px;
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; color: #C7D3E1;
}
.hero-badges .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .18);
  flex: none;
}

/* ---- 7. SECTIONS ------------------------------------------- */

/* Generic card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* 3-column grid used by services + work */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Services --- */
.service-card { padding: 32px 28px; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFEEEA; }
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(20, 184, 166, .12);
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--muted); margin: 0; }

/* --- How it works --- */
.how-it-works { margin-top: 72px; }
.hiw-title { text-align: center; font-size: 1.5rem; margin-bottom: 36px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h4 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* --- Work / portfolio --- */
.work-card { overflow: hidden; padding: 0; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Placeholder thumbnails — colorful gradient panels with the project
   name. Swap a <div class="thumb"> for an <img class="thumb-img"> to
   use a real screenshot (same height, just drop it in). */
.thumb, .thumb-img {
  aspect-ratio: 16 / 10;
  width: 100%;
}
.thumb {
  display: grid; place-items: center;
  position: relative;
  color: var(--white);
}
.thumb-img { object-fit: cover; }
.thumb-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .01em;
  padding: 0 16px;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
/* A different on-brand gradient per sample card */
.thumb-1 { background: linear-gradient(135deg, #0D1B2A, #1f4f5c); }
.thumb-2 { background: linear-gradient(135deg, #14B8A6, #0E9384); }
.thumb-3 { background: linear-gradient(135deg, #1E293B, #0D1B2A); }
.thumb-4 { background: linear-gradient(135deg, #0E9384, #122438); }
.thumb-5 { background: linear-gradient(135deg, #243B53, #14B8A6); }
.thumb-6 { background: linear-gradient(135deg, #0B1622, #1f4f5c); }
.thumb-7 { background: linear-gradient(135deg, #0C2B2A, #16635F); }

.work-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-dark);
  background: rgba(20, 184, 166, .1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.work-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.work-card p { color: var(--muted); margin: 0; font-size: .96rem; }
/* "View live demo" link shown on cards that have a demo built */
.work-demo {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--teal-dark);
}
.work-demo:hover { color: var(--navy); text-decoration: none; transform: translateX(2px); }

.work-note { text-align: center; margin-top: 48px; color: var(--muted); font-size: 1.05rem; }

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--slate); font-size: 1.05rem; }
.about-text .section-title { text-align: left; }
.about-actions { margin-top: 28px; }

.about-aside {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.creds li { display: flex; gap: 16px; align-items: flex-start; }
.cred-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(20, 184, 166, .16);
  color: var(--teal);
}
.creds strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.02rem; }
.creds span { color: #9FB0C2; font-size: .92rem; }

/* --- Contact --- */
.section-contact { background: #EEF2F6; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-intro .section-title { text-align: left; }
.contact-intro .section-lead { margin-bottom: 28px; }

.contact-direct {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 18px;
}
.contact-or { color: var(--muted); margin-bottom: .25rem; font-size: .95rem; }
.email-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
}
.email-link:hover { color: var(--teal-dark); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  margin-bottom: 7px;
}
.field .opt { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--offwhite);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .15);
}
.field textarea { resize: vertical; }

/* Honeypot — visually hidden but reachable by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-fineprint { text-align: center; color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

/* ---- 8. FOOTER -------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #B9C6D6;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  color: var(--white);
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: #B9C6D6; font-size: .95rem; }
.footer-nav a:hover { color: var(--teal); text-decoration: none; }
.footer-meta { margin: 0; font-size: .88rem; width: 100%; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-meta a { color: var(--teal); }
.footer-meta .sep { margin: 0 8px; opacity: .5; }

/* ---- 9. RESPONSIVE ---------------------------------------- */

/* Tablets */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .br-desktop { display: none; }
}

/* Phones */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 84px 0 72px; }

  /* Collapse nav into a dropdown panel */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
    /* hidden until toggled */
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 6px; border-radius: 8px; }
  .main-nav a:hover { background: var(--offwhite); }
  .main-nav .nav-cta { margin-top: 8px; text-align: center; justify-content: center; }

  /* Hamburger -> X when open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
