/* Colubris Technologies - styles.css */

:root {
  --ocean-900: #06223A;
  --ocean-800: #093A5E;
  --ocean-600: #0A6FB5;
  --turquoise: #2BC4C9;
  --turquoise-300: #7BE0E3;
  --sand: #F4E7CF;
  --coral: #F5855A;
  --coral-600: #DC6C41;
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --ink: #0E1B2C;
  --ink-soft: #3A4A5E;
  --muted: #6B7A8F;
  --border: rgba(6, 34, 58, 0.08);
  --shadow-sm: 0 1px 2px rgba(6, 34, 58, 0.06), 0 2px 8px rgba(6, 34, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(6, 34, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(6, 34, 58, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1180px;
  --gradient-ocean: linear-gradient(135deg, #06223A 0%, #0A6FB5 55%, #2BC4C9 100%);
  --gradient-warm: linear-gradient(135deg, #FF6F61 0%, #FFB36B 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ocean-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--coral); }

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ocean-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

::selection { background: var(--turquoise); color: var(--ocean-900); }

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean-600);
  background: rgba(43, 196, 201, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 248, 243, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ocean-900);
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand:hover { color: var(--ocean-900); }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient-ocean);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ocean-900); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ocean-900);
  margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 133, 90, 0.28);
}
.btn-primary:hover {
  background: var(--coral-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 133, 90, 0.36);
}
.btn-ghost {
  background: transparent;
  color: var(--ocean-900);
  border-color: rgba(6, 34, 58, 0.18);
}
.btn-ghost:hover {
  border-color: var(--ocean-900);
  background: var(--ocean-900);
  color: white;
  transform: translateY(-2px);
}
.btn-light {
  background: white;
  color: var(--ocean-900);
}
.btn-light:hover {
  color: var(--ocean-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
  background: white;
  color: var(--ocean-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  padding: 120px 24px 140px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=2400&q=70');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(6, 34, 58, 0.92) 0%, rgba(10, 111, 181, 0.78) 55%, rgba(43, 196, 201, 0.55) 100%);
  z-index: -1;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: var(--turquoise-300);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.hero h1 {
  color: white;
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 14ch;
  margin: 0 auto 22px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--turquoise-300), var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}
.hero-trust .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--turquoise-300);
  box-shadow: 0 0 0 4px rgba(123, 224, 227, 0.25);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 196, 201, 0.35);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(43, 196, 201, 0.12);
  color: var(--ocean-600);
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-ocean);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { margin-top: 6px; }
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--gradient-ocean);
  color: white;
  box-shadow: 0 10px 24px rgba(10, 111, 181, 0.25);
}
.service-card .icon svg { width: 26px; height: 26px; }

/* ---------- Why ---------- */
.why {
  background: linear-gradient(180deg, transparent 0%, rgba(43, 196, 201, 0.08) 100%);
}
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.02rem;
  color: var(--ink);
}
.why-list .check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient-ocean);
  color: white;
  display: grid;
  place-items: center;
  margin-top: 2px;
  box-shadow: 0 6px 14px rgba(10, 111, 181, 0.25);
}
.why-list .check svg { width: 14px; height: 14px; }
.why-list strong { color: var(--ocean-900); display: block; margin-bottom: 2px; }
.why-list span.detail { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

.why-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-ocean);
  box-shadow: var(--shadow-lg);
}
.why-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?auto=format&fit=crop&w=1400&q=70');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  mix-blend-mode: luminosity;
}
.why-art .blob {
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--coral), transparent 65%);
  filter: blur(10px);
  opacity: 0.85;
}
.why-art .badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(6, 34, 58, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  max-width: 70%;
}
.why-art .badge strong { display: block; font-weight: 700; margin-bottom: 2px; }

/* ---------- Contact ---------- */
.contact-panel {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  overflow: hidden;
  color: white;
  text-align: center;
  background: var(--gradient-ocean);
  box-shadow: var(--shadow-lg);
}
.contact-panel::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 111, 97, 0.45), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(43, 196, 201, 0.55), transparent 50%);
  z-index: -1;
}
.contact-panel h2 { color: white; }
.contact-panel p { color: rgba(255,255,255,0.85); }
.contact-email {
  display: inline-block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: white;
  margin: 18px 0 10px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-email:hover { color: var(--sand); border-bottom-color: var(--sand); }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.contact-meta a { color: rgba(255,255,255,0.95); border-bottom: 1px dashed rgba(255,255,255,0.4); }
.contact-meta a:hover { color: var(--sand); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ocean-900);
  color: rgba(255,255,255,0.72);
  padding: 56px 24px 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.site-footer a:hover { color: var(--turquoise-300); }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-art { max-width: 480px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 20px; }
  .hero { padding: 96px 20px 110px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 12px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .btn {
    margin-top: 12px;
    justify-content: center;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-panel { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
