/* ==========================================================================
   Srianu Technologies — site stylesheet
   Design tokens extracted from the live srianutech.com (Elementor build):
   navy #00205C · brand red #EB0045 (hover #B80037) · body #2C374A ·
   hero gradient #FFFDFD → #FFE9EC · font Inter · rounded 0 0 100px 0 hero
   ========================================================================== */

:root {
  --navy: #00205C;          /* headings, dark sections (site's primary) */
  --navy-2: #0A2E6E;        /* cards on dark sections */
  --red: #EB0045;           /* brand red — buttons, links, accents */
  --red-dark: #B80037;      /* button hover (site's exact hover) */
  --ink: #2C374A;           /* body text (site's exact body color) */
  --muted: #5a6577;         /* secondary text */
  --line: #E8E8E8;          /* hairline borders */
  --divider: #9F9F9F;       /* site's divider gray */
  --bg: #ffffff;
  --bg-soft: #F8F8F8;       /* site's alternating section bg */
  --hero-grad: linear-gradient(169deg, #FFFDFD 0%, #FFE9EC 100%);
  --radius: 20px;           /* site uses 20px card rounding */
  --shadow: 0 8px 24px rgba(0, 32, 92, 0.08);
  --font: "Inter", "Segoe UI", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

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

h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.125rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
section.dark { background: var(--navy); }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #cdd6e8; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
section.dark .kicker { color: #ff8fae; }

.lead { color: var(--muted); max-width: 720px; margin-top: 14px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  padding: 15px 40px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.15rem; flex-shrink: 0; }
.logo .logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 700;
}
.logo span em { color: var(--red); font-style: normal; }
.logo img { max-height: 51px; width: auto; max-width: none; }
.logo-footer img { filter: brightness(0) invert(1); opacity: 0.95; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > .nav-item { position: relative; }
.main-nav a.nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--red); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--red); }
.dropdown a small { display: block; color: var(--muted); font-size: 0.78rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ------------------------------------------------------------------ hero
   Matches the live site: light pink gradient, navy headline with red
   accent span, rounded bottom-right corner. */
.hero {
  background-image: radial-gradient(circle, rgba(0, 32, 92, 0.06) 1.5px, transparent 1.6px), var(--hero-grad);
  background-size: 26px 26px, 100% 100%;
  border-radius: 0 0 100px 0;
  color: var(--ink);
  padding: 96px 0;
}
.hero-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-illus img { width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.hero h1 { color: var(--navy); margin-bottom: 18px; font-weight: 700; }
.hero .accent { color: var(--red); }
.hero p { color: var(--ink); max-width: 640px; margin-bottom: 30px; font-size: 1.05rem; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  border: 1px solid #f3cdd5;
}

/* ------------------------------------------------------------------ grids */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .card-link { margin-top: 18px; font-weight: 600; font-size: 0.92rem; }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #FFE9EC;
  color: var(--red);
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: #FFE9EC;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

section.dark .card { background: var(--navy-2); border-color: rgba(255,255,255,0.14); }
section.dark .card p { color: #bcc8e0; }
section.dark .card h3 { color: #fff; }

/* ------------------------------------------------------------- chip grid */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--navy);
}
section.dark .chip { background: var(--navy-2); border-color: rgba(255,255,255,0.18); color: #dbe3f2; }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.step .num { font-size: 0.8rem; font-weight: 700; color: var(--red); letter-spacing: 0.1em; }
.step h4 { margin: 8px 0 6px; font-size: 1rem; }
.step p { font-size: 0.84rem; color: var(--muted); }
section.dark .step { background: var(--navy-2); border-color: rgba(255,255,255,0.14); }
section.dark .step .num { color: #ff8fae; }
section.dark .step h4 { color: #fff; }
section.dark .step p { color: #bcc8e0; }

/* --------------------------------------------------------------- tables */
.tier-table { width: 100%; border-collapse: collapse; margin-top: 36px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tier-table th, .tier-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.tier-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.tier-table td:first-child { font-weight: 600; color: var(--navy); }
.tier-table .yes { color: var(--red); font-weight: 700; }
.tier-table tbody .featured { background: var(--bg-soft); }
.tier-table thead th.featured { background: var(--navy-2); box-shadow: inset 0 -3px 0 var(--red); }

/* ------------------------------------------------------------- checklist */
.checklist { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; color: var(--muted); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  display: grid; place-items: center;
}
section.dark .checklist li { color: #cdd6e8; }

/* ------------------------------------------------------------- split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 40px; }

/* --------------------------------------------------------------- CTA band */
.cta-band {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #cdd6e8; max-width: 520px; }
.cta-band .btn-light:hover { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; text-align: center; }
.stat .n { font-size: 2.4rem; font-weight: 700; color: var(--red); }
.stat .l { color: var(--muted); font-size: 0.9rem; }
section.dark .stat .n { color: #ff8fae; }
section.dark .stat .l { color: #cdd6e8; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #c3cde2; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: #c3cde2; display: block; padding: 4px 0; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-note { font-size: 0.78rem; color: #8b99b8; margin-top: 14px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 44px; padding-top: 22px; font-size: 0.82rem; color: #8b99b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ page hero
   Inner pages match the live site's light gradient banner with navy text. */
.page-hero {
  background-image: radial-gradient(circle, rgba(0, 32, 92, 0.06) 1.5px, transparent 1.6px), var(--hero-grad);
  background-size: 26px 26px, 100% 100%;
  border-radius: 0 0 100px 0;
  color: var(--ink);
  padding: 72px 0 60px;
}
.page-hero h1 { color: var(--navy); }
.page-hero p { color: var(--ink); max-width: 700px; margin-top: 14px; }
.page-hero-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.page-hero-illus img { width: 100%; max-width: 300px; height: auto; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--red); }

/* ---------------------------------------------------------- booking embed */
.booking-embed {
  margin: 32px auto 0;
  max-width: 920px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;           /* clip the iframe to the rounded corners */
}
.booking-frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  background: #fff;
}
.booking-fallback {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.booking-fallback a { font-weight: 600; }
@media (max-width: 720px) {
  /* MS Bookings stacks to a single column on narrow screens, so it needs more height. */
  .booking-frame { height: 1180px; }
}
.booking-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #FFE9EC;
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

/* ---------------------------------------------------------- job listings */
.job-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.job-card .job-meta { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.job-card p { flex: unset; }

/* -------------------------------------------------------- prose (job body) */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.5em; margin-bottom: 0.4em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin-top: 0.6em; }
.prose > * + * { margin-top: 1em; }

/* ----------------------------------------------- application / web forms */
.apply-form { margin-top: 28px; }
.apply-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.apply-form p { margin-bottom: 18px; }
.apply-form label { display: block; font-weight: 500; font-size: 0.9rem; color: var(--navy); margin-bottom: 6px; }
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="url"],
.apply-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
.apply-form input:focus, .apply-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.apply-form input[type="file"] {
  width: 100%;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}
.apply-form .hp-field { position: absolute !important; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 8px; margin-top: 20px; font-size: 0.95rem; }
.form-notice.success { background: #e6f6ec; color: #14532d; border-left: 3px solid #16a34a; }
.form-notice.error { background: #FFE9EC; color: var(--red-dark); border-left: 3px solid var(--red); }

/* ------------------------------------------------- logo carousels
   Clients / Technologies — infinite CSS marquee. Track is duplicated in
   the markup; logos shown in full brand colour; pauses on hover;
   falls back to a static wrapped row when reduced motion is requested. */
.logo-carousel {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: srianu-scroll 35s linear infinite;
  animation-delay: -17.5s;
}
.logo-carousel:hover .logo-track { animation-play-state: paused; }
.logo-item {
  height: 72px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-item img {
  max-height: 56px;
  width: auto;
  opacity: 1;
  transition: transform 0.2s;
}
.logo-item img:hover { transform: scale(1.05); }
.logo-item img[src$=".svg"] { height: 48px; width: auto; max-width: 180px; object-fit: contain; }
.logo-text {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes srianu-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-track .logo-item:nth-child(n+16) { display: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero, .page-hero { border-radius: 0 0 60px 0; }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-illus { display: none; }
  .page-hero-wrap { grid-template-columns: 1fr; }
  .page-hero-illus { display: none; }
}

@media (max-width: 1199px) {
  /* Dense top nav: drop the standalone CTA button before the bar overflows. */
  .nav-cta { display: none; }
}

@media (max-width: 1024px) {
  /* Collapse the top nav to a hamburger before it runs out of horizontal room. */
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .dropdown { position: static; display: block; border: 0; box-shadow: none; padding-left: 16px; }
}

@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; }
  .hero, .page-hero { border-radius: 0 0 40px 0; }
  .apply-form .form-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 32, 92, 0.28);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .cookie-copy { flex: 1 1 420px; font-size: 0.92rem; line-height: 1.6; color: #e7ecf6; }
.cookie-banner .cookie-copy strong { color: #fff; display: block; margin-bottom: 4px; font-size: 1rem; }
.cookie-banner .cookie-copy a { color: var(--pink, #FF8FAE); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cookie-banner .btn { padding: 11px 22px; font-size: 0.9rem; }
.cookie-banner .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cookie-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cookie-settings-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
/* Small cookie-settings box pinned to the bottom-right of the footer */
.footer-cookie-wrap { width: 100%; display: flex; justify-content: flex-end; margin-top: 4px; }
.footer-cookie-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #cdd6e8;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-cookie-box:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 720px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 18px; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .cookie-actions .btn { flex: 1 1 auto; text-align: center; }
}
