/*
 Theme Name: EL EL
 Version: 1.0.0
 Requires PHP: 7.4
 Text Domain: elel
*/

/* =========================================
   Design Tokens
   ========================================= */
:root {
  --primary: #4f7cff;
  --primary-600: #3966f3;
  --primary-100: #eaf0ff;

  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --bg: #fff;
  --bg-alt: #f7f9fc;

  --hover-red: rgba(212, 19, 23, .08);

  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --ring: rgba(79, 124, 255, .35);

  --maxw: 1080px;

  /* Global heading sizes (desktop) */
  --h1-px: 66px;
  --h2-px: 42px;
  --h3-px: 28px;
  --h4-px: 22px;

  --body: 16px;
}

/* =========================================
   Base & Typography
   ========================================= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: var(--body);
  line-height: 1.7;
  color: #000;
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  /* fluid padding, no brittle breakpoints */
  padding-left: clamp(12px, 3.6vw, 20px);
  padding-right: clamp(12px, 3.6vw, 20px);
}

/* Sections: fluid vertical rhythm */
.section {
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: clamp(48px, 8vw, 80px);
}
.head { margin-bottom: 40px; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px;
  width: auto; height: auto;
  background: #000; color: #fff;
  padding: 8px 12px; z-index: 10000; border-radius: 6px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Spinnaker', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  color: #1a2b6d;
  margin: 0 0 .6em;
}
h1 { font-size: var(--h1-px); }
h2 { font-size: var(--h2-px); }
h3 { font-size: var(--h3-px); }
h4 { font-size: var(--h4-px); }

@media (max-width: 860px) {
  h1 { font-size: clamp(28px, 6vw, 40px); }
  h2 { font-size: clamp(22px, 4.8vw, 32px); }
  h3 { font-size: clamp(18px, 4vw, 24px); }
}

/* Media never overflows */
img, svg, video, canvas { max-width: 100%; height: auto; }

/* =========================================
   Header
   ========================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transition: transform .3s ease, background .2s ease;
}
/* Released look (position stays fixed to avoid jitter) */
.site-header.header-released {
  background: #fff;
  backdrop-filter: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 0;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #1a2b6d; margin-right: 0;
}
.brand .logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #38f0b2);
  box-shadow: var(--shadow);
}
.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.custom-logo { height: 48px; width: auto; display: block; }
.brand-name { font-size: 20px; font-weight: 800; color: #1a2b6d; }

/* Primary menu (fluid-friendly) */
.menu { flex: 1 1 auto; margin-left: clamp(0px, 6vw, 64px); }
.menu .menu-list {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; /* prevents overflow on mid widths */
  list-style: none; margin: 0; padding: 0;
  column-gap: clamp(8px, 2.5vw, 18px);
  row-gap: clamp(6px, 1.8vw, 12px);
}
.menu .menu-list > li { flex: 0 1 auto; max-width: 100%; text-align: center; }
.menu .menu-list > li > a {
  display: inline-block;
  padding: clamp(6px, 1.6vw, 10px) clamp(8px, 2vw, 12px);
  font-weight: 900;
  font-size: clamp(13px, 2.6vw, 15px);
  line-height: 1.2;
  color: #1a2b6d;
  border-radius: 0;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.menu .menu-list > li > a:hover,
.menu .menu-list > li.is-active > a {
  background: var(--hover-red); color: #d41317;
}
/* Active state: red only when not on the homepage */
.menu .menu-list > li.is-active > a,
body:not(.home) .menu .menu-list > li.current-menu-item > a,
body:not(.home) .menu .menu-list > li.current_page_item > a {
  color: #d41317;
}

/* Compact header on narrow screens */
@media (max-width: 860px) {
  .nav {
    flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 0;
  }
  .brand { margin: 0 auto 20px; justify-content: center; }
  .custom-logo { height: 58px; }
  .brand .logo { width: 58px; height: 58px; }
}

/* =========================================
   Buttons
   ========================================= */
.cta-btn {
  display: flex; align-items: center; justify-content: flex-start;
  background: #d62828; color: #fff;
  font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 16px; line-height: 1.7;
  border-radius: 0; padding: 0; overflow: hidden;
  transition: all .3s ease;
}
.cta-btn .icon {
  background: #0b2c66;
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 100%;
  font-size: 32px; font-weight: 100;
}
.cta-btn span { padding: 12px 24px; }
.cta-btn:hover { opacity: .9; transform: translateY(-2px); }

/* =========================================
   Grid (base)
   ========================================= */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

/* Services grid: fluid auto-fit columns, never overflow */
.grid.cards-3 {
  gap: clamp(12px, 2.5vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 42vw, 340px), 1fr));
  align-items: stretch;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  --hero-bg-h: 520px;
  --hero-overlap: 140px;
  --hero-gap-below: 48px;
  --hero-right-pad: 20px;

  position: relative; background: none;
  padding: var(--hero-bg-h) 0 var(--hero-gap-below);
}
.hero::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: var(--hero-bg-h);
  background: var(--bg-alt); background-image: var(--hero-bg); background-size: cover; background-position: center;
  border-bottom: 20px solid #1a2b6d; z-index: 0;
}
.hero > .container {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: flex-end;
}
/* Centered variant */
.hero-centered > .container {
  align-items: center !important;
  justify-content: center !important;
}

/* Hero card */
.hero-card {
  margin-top: calc(-1 * var(--hero-overlap));
  margin-right: var(--hero-right-pad);
  max-width: 720px;
  background: #f2f2f2;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 6px 12px rgba(0,0,0,.30);
  padding: 48px 56px;
}
.hero-card h1 { margin: 0 0 40px; letter-spacing: -.5px; }
.hero-card .lead {
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-weight: 300; font-size: 16px; line-height: 1.7em; color: #000;
  padding-left: clamp(0px, 12vw, 160px);
  margin: 0;
}
.hero-card .lead::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 120px; height: 2px; background-color: #1a2b6d; border-radius: 1px;
}
@media (max-width: 1200px) {
  .hero-card { max-width: 560px; margin-right: 16px; }
}
@media (max-width: 980px) {
  .hero { --hero-bg-h: 460px; --hero-overlap: 120px; }
  .hero-card { max-width: 520px; margin-right: 14px; }
}
@media (max-width: 860px) {
  .hero { --hero-bg-h: 380px; --hero-overlap: 90px; --hero-right-pad: 12px; --hero-gap-below: 32px; }
  .hero > .container { justify-content: center; }
  .hero-card { max-width: 720px; padding: 22px; margin-right: 0px; }
  .hero-actions { justify-content: center; }
}
/* extra-tight phones */
@media (max-width: 560px) {
  .hero-card .lead { padding-left: 0; }
  .hero-card .lead::before { display: none; }
}

/* CTA inside hero */
.hero-actions { display: flex; justify-content: flex-end; margin-top: 40px; }

/* =========================================
   Services: Panels & Band
   ========================================= */
.panel-wrapper { position: relative; }
/* keep decorative outline inside on narrow widths */
.panel-wrapper { padding-right: clamp(0px, 2vw, 16px); padding-bottom: clamp(0px, 2vw, 16px); }
@supports (translate: 0) {
  .panel-wrapper::before {
    content: ""; position: absolute;
    inset: auto 0 0 auto; width: 100%; height: 100%;
    border: 3px solid #f2f2f2; border-radius: 0; z-index: -1;
    translate: clamp(0px, 2vw, 16px) clamp(0px, 2vw, 16px);
  }
}
@supports not (translate: 0) {
  .panel-wrapper::before {
    content: ""; position: absolute; right: 0; bottom: 0;
    width: calc(100% - clamp(0px, 2vw, 16px));
    height: calc(100% - clamp(0px, 2vw, 16px));
    border: 3px solid #f2f2f2; border-radius: 0; z-index: -1;
  }
}

.panel {
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(to bottom, #f0f0f0 0%, #f9f9f9 100%);
  border: 1px solid rgba(0,0,0,.08); border-radius: 14px; box-shadow: 0 3px 6px rgba(0,0,0,.25);
  padding: 28px 32px; transition: transform .15s ease, box-shadow .15s ease;
}
.panel:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.panel h3 { margin: 0 0 16px; }
.panel p {
  font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 16px; line-height: 1.7em;
  color: #000; margin: 0 0 32px; flex-grow: 1;
}
.panel a {
  margin-top: auto; padding-top: 16px;
  font-weight: 300; color: #d62828; text-decoration: none; transition: color .2s ease;
  overflow-wrap: anywhere; /* long links never overflow */
}
.panel a:hover { color: #a61c1c; }

/* Services blue band */
.section.services { position: relative; background: #fff; }
.section.services::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 400px; background: #1a2b6d; z-index: 0;
}
.section.services .container { position: relative; z-index: 1; }
.section.services .head { max-width: 720px; margin: 0 0 32px; }
.section.services .head h2,
.section.services .head p { color: #fff; }
.section.services .head p {
  font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 16px; line-height: 1.7em;
  margin: 0; max-width: 50%;
}
@media (max-width: 860px) {
  .section.services .head p { max-width: 100%; }
}

/* =========================================
   Centered CTA
   ========================================= */
.cta-center .cta-card {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: #f2f2f2; border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px; box-shadow: 0 6px 12px rgba(0,0,0,.30);
  padding: 64px 96px;
}
.cta-center .cta-card h2 { margin: 0 0 24px; }
.cta-center .cta-card .line {
  width: 120px; height: 2px; background: #1a2b6d; margin: 0 auto 24px;
}
.cta-center .cta-card p {
  margin: 0 auto 32px;
  font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 300; line-height: 1.7; color: #000;
  max-width: 680px;
}
.cta-center .cta-card .cta-btn {
  margin: 0 auto; justify-content: center; display: inline-flex;
}
@media (max-width: 980px) { .cta-center .cta-card { padding: 48px 32px; } }
@media (max-width: 680px) { .cta-center .cta-card { padding: 28px 20px; } }

/* =========================================
   Contact (dark band)
   ========================================= */
.contact {
  background: #1a2b6d; color: #fff;
}
.contact-head { text-align: center; margin-bottom: 56px; }
.contact-head h2 { color: #fff; margin: 0; }

.contact-form {
  max-width: 900px; margin: 0 auto;
  font-family: 'Roboto', sans-serif; font-weight: 300;
}
.contact-form .row {
  display: flex; flex-direction: column; gap: 36px;
}
.contact-form .field label {
  display: block; margin: 0 0 8px; color: #fff;
  font-size: 16px; font-weight: 300;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0; border-bottom: 2px solid rgba(255,255,255,.6);
  padding: 12px 0; background: transparent; color: #fff;
  outline: none; font: inherit; font-size: 16px; border-radius: 0;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.7); }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: #fff; box-shadow: none; }

.contact-form .actions {
  margin-top: 40px; display: flex; justify-content: center;
}
.contact-submit {
  background: none; border: 1px solid transparent; color: #fff;
  font-family: 'Spinnaker', sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .2px;
  cursor: pointer; padding: 12px 28px; border-radius: 0; transition: all .2s ease;
}
.contact-submit:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-1px); }

/* =========================================
   Footer
   ========================================= */
.footer {
  background: #1a2b6d; color: #fff; padding: 40px 0;
  font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 15px;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px;
}
.footer-left p { margin: 0 0 8px; line-height: 1.6em; }
.footer-right { text-align: right; }
.footer-right p { margin: 0 0 8px; }

.footer a { color: #fff; transition: color .2s ease; }
.footer a:hover { color: #dcdcdc; }

/* Back-to-top */
.back-to-top {
  display: inline-block; margin-top: 10px;
  font-size: 24px; line-height: 1; text-decoration: none;
}
.back-to-top:hover { color: #d62828; }

/* =========================================
   Why Choose Us
   ========================================= */
.why-container {
  max-width: 720px; margin: 0 auto; text-align: left;
}
.why-points { padding: 80px 0; }
.point { margin-bottom: 40px; }
.point:last-child { margin-bottom: 0; }
.point h3 {
  font-size: 24px; font-weight: 600; margin-bottom: 12px;
}
.point .num { font-weight: 700; color: #d62828; }
.point p {
  font-size: 16px; line-height: 1.7; color: var(--muted, #555); margin: 0;
}

/* =========================================
   Industries
   ========================================= */
.industries-container {
  max-width: 720px; margin: 0 auto; padding: 0 20px;
}

/* =========================================
   Careers (archive cards)
   ========================================= */
.career-card .thumb img {
  display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 12px;
}
.career-card .apply-link { margin-top: auto; padding-top: 16px; color: #d62828; text-decoration: none; }
.career-card .apply-link:hover { color: #a61c1c; }

/* =========================================
   Single Career
   ========================================= */
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.career-cover { margin: 0 0 20px; }
.career-cover img { display: block; width: 100%; height: auto; border-radius: 12px; }

.career-title { margin: 0 0 8px; }
.career-meta {
  list-style: none; padding: 0; margin: 0 0 20px;
  color: #475569; font-size: 15px;
}
.career-meta li { margin: 4px 0; }

.career-content { margin-bottom: 24px; }
.career-content p { margin: 0 0 16px; }

.career-apply { display: flex; justify-content: flex-start; margin-top: 8px; }
.cta-btn.cta-compact {
  display: inline-flex; align-items: center;
  padding: 0 12px 0 0; box-shadow: none;
}
.cta-btn.cta-compact .icon { width: 42px; }

.career-back { margin-top: 24px; }

@media (max-width: 680px) {
  .career-cover img { border-radius: 10px; }
  .cta-btn.cta-compact { padding: 10px 16px; }
  .cta-btn.cta-compact .icon { width: 34px; }
}

/* =========================================
   Service Page
   ========================================= */
.service-head {
  position: relative;
  padding-top: 240px;  /* space for the card overlap */
  height: 320px;
  margin-bottom: 120px;
}
.service-band {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 400px; background: #1a2b6d; z-index: 0;
}
.service-title-card {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; padding: 32px 48px;
  border-radius: 18px;
  background: linear-gradient(to bottom, #f0f0f0 0%, #f9f9f9 100%);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.service-title-card::after {
  content: ""; position: absolute; right: -10px; bottom: -10px; left: 10px; top: 10px;
  border: 3px solid #f2f2f2; border-radius: 0; z-index: -1;
}
.service-title-card h1 {
  margin: 0;
  font-family: 'Spinnaker', sans-serif; font-weight: 400;
  font-size: clamp(36px, 6vw, 56px); line-height: 1.1; color: #1a2b6d;
  text-align: left;
}

/* Content stripe */
.service-intro .intro-lead {
  position: relative;
  font-family: 'Roboto', sans-serif;
  font-weight: 300; font-size: 16px; line-height: 1.7em; color: #000;
  padding-left: 160px;
}
.service-intro .intro-lead::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 120px; height: 2px; background: #1a2b6d; border-radius: 1px;
}

/* Service page responsiveness */
@media (max-width: 860px) {
	.menu {margin-left: 0px; margin-top: 18px;}
  .service-band { height: 180px; }
  .service-title-card { transform: translateY(40%); padding: 22px; margin: 0 12px; }
  .service-intro .intro-lead { padding-left: 120px; }
}
@media (max-width: 560px) {
	.menu {margin-left: 0px; margin-top: 18px;}
  .service-intro .intro-lead { padding-left: 0; }
  .service-intro .intro-lead::before { display: none; }
}
