/* =========================================================
   XOR Services — Corporate site stylesheet
   Brand colors sourced from the XOR logo:
   Blue #2E9BE5 · Orange #FF7F00 · Navy #1B3B5F
   ========================================================= */

:root {
  --blue: #2E9BE5;
  --blue-dark: #1D7BC0;
  --orange: #FF7F00;
  --orange-dark: #E36F00;
  --navy: #1B3B5F;
  --navy-light: #24507D;
  --light-blue: #EAF4FC;
  --gray: #5A6B7A;
  --gray-light: #F4F7FA;
  --border: #E1E9F0;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(27, 59, 95, 0.08);
  --shadow-hover: 0 12px 32px rgba(27, 59, 95, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: #263544;
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: #3B4B5C; }

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

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.bg-light { background: var(--gray-light); }
.bg-light-blue { background: var(--light-blue); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #C9D9E8; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-blue { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 78px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 27px 16px;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--orange); }
.caret { font-size: 0.65em; margin-top: 2px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.main-nav > ul > li:hover .dropdown,
.main-nav > ul > li.focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
}
.dropdown a:hover { background: var(--light-blue); color: var(--blue); }
.dropdown small { display: block; font-weight: 400; color: var(--gray); font-size: 0.8rem; margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .phone { color: #fff; font-weight: 700; font-size: 0.92rem; }
.header-cta .phone span { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .main-nav { position: fixed; top: 104px; left: 0; right: 0; bottom: 0; background: var(--navy); flex-direction: column;
    padding: 10px 20px 40px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; width: 100%; gap: 0; }
  .main-nav > ul > li > a { padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.04); display: none; min-width: 0; }
  .main-nav > ul > li.mobile-open .dropdown { display: block; }
  .dropdown a { color: #fff; }
  .dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--orange); }
  .header-cta .phone { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  /* Navy gradient overlay (for text readability) layered over the banner photo */
  background:
    linear-gradient(120deg, rgba(27,59,95,0.74) 0%, rgba(36,80,125,0.72) 60%, rgba(43,87,136,0.69) 100%),
    url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,0,0.18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p.lead { color: #C9D9E8; font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; color: #fff;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(4px);
}
.hero-panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.hero-step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-step:last-child { border-bottom: none; }
.hero-step .num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.hero-step strong { color: #fff; display: block; font-size: 0.95rem; }
.hero-step span { color: #B9CBDE; font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 64px 0 56px;
}
.page-header .eyebrow { color: var(--orange); }
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header p { color: #C9D9E8; font-size: 1.08rem; max-width: 680px; margin: 0; }
.breadcrumbs { font-size: 0.85rem; color: #9FB6CC; margin-bottom: 16px; }
.breadcrumbs a { color: #C9D9E8; }
.breadcrumbs a:hover { color: var(--orange); }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--orange); }
.stat-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { text-align: center; padding: 34px 20px; }
.stat-item .num { font-size: 2.4rem; font-weight: 900; color: #fff; display: block; }
.stat-item .label { color: #FFE3C2; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; }
@media (max-width: 700px) {
  .stat-strip .container { grid-template-columns: 1fr; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card img.icon { width: 56px; height: 56px; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 14px; }
.card .link { font-weight: 700; font-size: 0.9rem; }

.service-card { text-align: left; }
.service-card .icon-wrap {
  width: 64px; height: 64px; border-radius: 16px; background: var(--light-blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card .icon-wrap img { width: 40px; height: 40px; }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; position: relative; }
@media (max-width: 800px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; position: relative; padding: 0 10px; }
.process-step .icon-circle {
  width: 92px; height: 92px; border-radius: 50%; background: var(--light-blue);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.process-step .icon-circle img { width: 52px; height: 52px; }
.process-step .step-label { color: var(--orange); font-weight: 800; letter-spacing: 0.06em; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 6px; }
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { font-size: 0.95rem; color: var(--gray); }

/* ---------- Pillars ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.pillar.orange { border-top-color: var(--orange); }
.pillar img { width: 48px; height: 48px; margin: 0 auto 16px; }
.pillar h3 { text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em; }
.pillar p { font-size: 0.95rem; margin: 0; }

/* ---------- Case studies ---------- */
.cs-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.cs-tag { display: inline-block; background: var(--light-blue); color: var(--blue); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.cs-card h3 { margin-bottom: 4px; }
.cs-card .cs-project { color: var(--gray); font-style: italic; font-size: 0.92rem; margin-bottom: 16px; display: block; }
.cs-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.cs-row .k { flex: 0 0 96px; font-weight: 800; color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; padding-top: 2px; }
.cs-row .v { flex: 1; font-size: 0.95rem; }
.cs-row.result .v { color: var(--blue-dark); font-weight: 700; }
.cs-note { font-size: 0.82rem; color: var(--gray); font-style: italic; margin-top: 28px; }

/* ---------- Table (services listing) ---------- */
.table-list { width: 100%; border-collapse: collapse; }
.table-list th { text-align: left; color: var(--orange); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; padding: 10px 14px; border-bottom: 2px solid var(--orange); }
.table-list td { padding: 18px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; font-size: 1.6rem; }
.cta-banner p { color: #C9D9E8; margin: 0; }

/* ---------- Partners strip ---------- */
.partner-logo {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 22px 18px; height: 96px;
  filter: grayscale(15%);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}
.partner-logo:hover { box-shadow: var(--shadow-hover); filter: none; }
.partner-logo img { max-height: 52px; width: auto; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card img.avatar { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 16px; }
.team-card h3 { margin-bottom: 2px; }
.team-card .role { color: var(--orange); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; }
.team-card.open { border: 2px dashed var(--border); box-shadow: none; background: var(--gray-light); }
.team-card.open .avatar-placeholder {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 16px;
  background: #fff; border: 2px dashed #C7D4E0; display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 2rem; font-weight: 800;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow);
  position: relative; border: 2px dashed var(--border);
}
.testimonial-card img.quote { width: 40px; margin-bottom: 12px; opacity: 0.55; }
.testimonial-card .quote-text { font-style: italic; color: var(--gray); min-height: 70px; }
.testimonial-card .who { font-weight: 800; color: var(--navy); margin-top: 16px; }
.testimonial-card .who small { display: block; font-weight: 500; color: var(--gray); font-style: normal; }

/* ---------- History / timeline ---------- */
.history-block { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 30px; }
.history-block img { width: 54px; height: 54px; flex: 0 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-info-item img { width: 34px; height: 34px; flex: 0 0 auto; margin-top: 2px; }
.contact-info-item strong { display: block; color: var(--navy); }
.contact-info-item a, .contact-info-item span { color: var(--gray); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 0.96rem; color: #263544; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,155,229,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-weight: 600; font-size: 0.95rem; }
.alert-success { background: #E4F6EA; color: #1E7A3F; border: 1px solid #BEE8CC; }
.alert-error { background: #FBEAEA; color: #B23A3A; border: 1px solid #F3C7C7; }

/* ---------- Footer ---------- */
.site-footer { background: #12283F; color: #B9CBDE; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #B9CBDE; font-size: 0.92rem; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { height: 62px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: #8FA6BC; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; font-size: 0.82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7C93AA;
}
.footer-bottom a { color: #7C93AA; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem;
}
.footer-social a:hover { background: var(--orange); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; color: var(--gray); }
.tag-list { list-style: none; padding: 0; margin: 0 0 20px; }
.tag-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.96rem; }
.tag-list img { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }
