/* =========================================================
   RENASCENT - main stylesheet
   1. Variables  2. Base  3. Header  4. Hero  5. Features
   6. About  7. Solutions  8. Portfolio  9. Industries
   10. CTA  11. Footer  12. Mobile
   ========================================================= */

/* 1. VARIABLES: change a color here and it changes everywhere */
:root {
  --navy-900: #050b1c;
  --navy-800: #081330;
  --navy-700: #0c1d4a;
  --blue-500: #1e6bff;
  --blue-400: #3d8bff;
  --blue-300: #6fb0ff;
  --text: #e8eefc;
  --text-muted: #9fb0d4;
  --border: rgba(111, 176, 255, 0.22);
  --radius: 14px;
  --max-width: 1200px;
}

/* 2. BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--max-width), 92%); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-300); margin-bottom: 16px;
}
.eyebrow::after { content: ""; width: 36px; height: 1px; background: var(--blue-400); }

h1, h2 { font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.accent { color: var(--blue-400); }
.lead { color: var(--text-muted); max-width: 46ch; }

/* ONE button style for the whole site: text with a thin line underneath.
   Edit here and every page changes together. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 0; border: 0; border-bottom: 1px solid var(--blue-400);
  border-radius: 0; background: none; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: 0.9rem;
  transition: 0.25s;
}
.btn:hover { color: var(--blue-300); gap: 16px; }

section { position: relative; }
.section-pad { padding: 90px 0; }

/* 3. HEADER */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(5, 11, 28, 0.92), rgba(5, 11, 28, 0));
  backdrop-filter: blur(6px);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav-leading { display: flex; align-items: center; gap: clamp(8px, 1.3vw, 18px); }
.site-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; color: var(--text-muted); font-size: 0.85rem; white-space: nowrap;
}
.site-back:hover { color: var(--text); }
.site-back[hidden] { display: none; }
.site-back svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; }
.brand span { letter-spacing: 0.35em; font-size: 1.05rem; font-weight: 500; }

.main-nav ul { display: flex; gap: 34px; align-items: center; }
.main-nav a { font-size: 0.88rem; color: var(--text-muted); padding: 6px 0; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active { border-bottom: 2px solid var(--blue-400); }

/* Dropdown (Solutions) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -16px; min-width: 230px;
  background: var(--navy-800); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.main-nav .dropdown { flex-direction: column; align-items: stretch; gap: 2px; white-space: nowrap; }
.dropdown li { display: block; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; border: 0; }
.dropdown a:hover { background: rgba(30, 107, 255, 0.18); }

.nav-cta { display: block; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); width: 44px; height: 44px; border-radius: 10px;
  font-size: 1.4rem; cursor: pointer;
}

/* 4. HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px;
  /* Layers, top to bottom: dark fade on the left (keeps text readable),
     fade at the bottom (blends into the next section), then the photo. */
  background:
    linear-gradient(90deg, rgba(5, 11, 28, 0.92) 0%, rgba(5, 11, 28, 0.55) 40%, rgba(5, 11, 28, 0) 70%),
    linear-gradient(180deg, rgba(5, 11, 28, 0.5) 0%, rgba(5, 11, 28, 0) 25%, rgba(5, 11, 28, 0) 75%, var(--navy-900) 100%),
    var(--navy-900);
  overflow: hidden;
}
.hero-grid { display: block; }
.hero-grid > div { max-width: 560px; }
.hero p.lead { margin: 22px 0 32px; font-size: 1.05rem; }
.scroll-hint { margin-top: 48px; font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }
.scroll-hint i { width: 22px; height: 34px; border: 1px solid var(--text-muted); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; background: var(--blue-300); transform: translateX(-50%); border-radius: 2px; }

/* Placeholder "screen": replace with a real <img> later */
.screen-mock {
  aspect-ratio: 16 / 10; border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 150, 90, 0.55), rgba(70, 90, 200, 0.55) 45%, rgba(10, 25, 80, 0.9)),
    linear-gradient(135deg, #1e3a8a, #0b1b4a);
  box-shadow: 0 0 80px rgba(30, 107, 255, 0.35);
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem; letter-spacing: 0.1em;
}

/* 5. FEATURE STRIP */
.features { margin-top: -60px; position: relative; z-index: 5; }
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 19, 48, 0.9); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(8px);
}
.feature { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.feature:last-child { border-right: 0; }
.feature .icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature h3 { font-size: 0.92rem; font-weight: 600; }
.feature p { font-size: 0.78rem; color: var(--text-muted); }

/* 6. ABOUT */
.about { background: linear-gradient(100deg, #1a2a55, var(--navy-900) 55%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.building {
  min-height: 340px; border-radius: var(--radius);
  background: linear-gradient(160deg, #0d2257, #050b1c);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.building img { width: 90px; height: 90px; }
.about .lead { margin-bottom: 26px; }

/* 7. SOLUTIONS */
.solutions { background: var(--navy-800); }
.solutions-grid { display: grid; grid-template-columns: 0.9fr 2fr; gap: 40px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--navy-900); transition: 0.25s; display: block;
}
.card:hover { transform: translateY(-6px); border-color: var(--blue-400); }
.card .thumb { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #12338a, #070f2b); }
.card .label { display: flex; justify-content: space-between; padding: 14px 16px; font-size: 0.85rem; }

/* 8. PORTFOLIO */
.portfolio-grid { display: grid; grid-template-columns: 0.8fr 2fr; gap: 40px; align-items: center; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.strip div { aspect-ratio: 3 / 4; border-radius: var(--radius); border: 1px solid var(--border); }
.strip div:nth-child(1) { background: linear-gradient(160deg, #3a2a1a, #0d1530); }
.strip div:nth-child(2) { background: linear-gradient(160deg, #1d4fbf, #0b1a40); }
.strip div:nth-child(3) { background: linear-gradient(160deg, #2a2230, #0c1330); }

/* 9. INDUSTRIES */
.industries { background: var(--navy-800); }
.industry-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.industry-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.industry-list a { text-align: center; padding: 20px 10px; border-right: 1px solid var(--border); transition: 0.2s; }
.industry-list a:last-child { border-right: 0; }
.industry-list a:hover { color: var(--blue-300); }
.industry-list .icon { font-size: 1.8rem; margin-bottom: 8px; }
.industry-list span { font-size: 0.85rem; }

/* 10. CALL TO ACTION */
.cta {
  background: linear-gradient(100deg, #0a2a8a, #081330 70%);
  text-align: left;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 6px; }

/* 11. FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 46px 0 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-contact { display: flex; gap: 34px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); }
.footer-contact a:hover { color: #fff; }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem; transition: 0.2s;
}
.socials a:hover { background: var(--blue-500); }
.footer-bottom {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem; color: var(--text-muted);
}
.footer-bottom nav { display: flex; gap: 20px; }

/* Switch the navigation before the desktop buttons wrap. */
@media (max-width: 1040px) {
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.35s;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 4%; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 14px 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 14px; background: none; }

  .main-nav:not(.open) .dropdown { visibility: hidden; }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .solutions-grid, .portfolio-grid, .industry-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .industry-list { grid-template-columns: repeat(2, 1fr); }
  .industry-list a { border-right: 0; }
}
/* Floating WhatsApp button (every page) */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--text);
  border: 1px solid rgba(111, 176, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); background: #25d366; border-color: #25d366; }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Footer corner icons */
.footer-icons { display: flex; gap: 20px; }
.footer-icons a { color: var(--text-muted); transition: color 0.2s; }
.footer-icons a:hover { color: #fff; }
.footer-icons svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.footer-icons svg.fill { fill: currentColor; stroke: none; }

/* Keep the footer icons clear of the floating WhatsApp button */
.footer-bottom { padding-right: 76px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 201;
  padding: 10px 14px; border-radius: 8px; color: var(--navy-900); background: var(--text);
  transform: translateY(calc(-100% - 16px));
}
.skip-link:focus { transform: none; }
#main-content { scroll-margin-top: 80px; }
.text-link { color: var(--blue-300); text-decoration: underline; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue-300); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .main-nav, .card, .slides img { transition: none; }
  .rail-track { scroll-behavior: auto; }
}

@media (max-width: 380px) {
  .nav-leading { gap: 8px; }
  .site-back { min-width: 36px; }
  .site-back span { display: none; }
}
