/* ============================================
   Condevex — SAP Consulting Website
   ============================================ */

:root{
  --navy-950:#0e1e30;
  --navy-900:#132a42;
  --navy-800:#1a3958;
  --blue-700:#245a8c;
  --blue-600:#2f6ba3;
  --orange-700:#a83a24;
  --orange-600:#c1442b;
  --orange-500:#d9552f;
  --sand-100:#f6efe3;
  --sand-50:#faf6ee;
  --ink-900:#161d27;
  --ink-700:#374252;
  --ink-500:#5c6675;
  --line:#e4ded0;
  --white:#ffffff;

  --radius:10px;
  --radius-lg:16px;
  --shadow-sm:0 1px 2px rgba(14,30,48,0.06), 0 1px 1px rgba(14,30,48,0.04);
  --shadow-md:0 12px 28px -12px rgba(14,30,48,0.28);
  --shadow-lg:0 24px 60px -20px rgba(14,30,48,0.35);

  --font-head:'Sora', 'Segoe UI', Arial, sans-serif;
  --font-body:'Inter', 'Segoe UI', Arial, sans-serif;

  --maxw:1180px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--navy-950);
  line-height:1.15;
  margin:0 0 .6em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--ink-700); }
ul{ margin:0; padding:0; list-style:none; }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding:14px 26px;
  border-radius:999px;
  font-family:var(--font-head);
  font-weight:600;
  font-size:.95rem;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); }
.btn-accent{
  background:var(--orange-600);
  color:var(--white);
  box-shadow:var(--shadow-sm);
}
.btn-accent:hover{ background:var(--orange-700); box-shadow:var(--shadow-md); }
.btn-primary{
  background:var(--navy-900);
  color:var(--white);
}
.btn-primary:hover{ background:var(--navy-950); }
.btn-ghost{
  background:transparent;
  color:var(--navy-900);
  border-color:var(--line);
}
.btn-ghost:hover{ border-color:var(--navy-900); }
.btn-ghost-light{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,0.5);
}
.btn-ghost-light:hover{ border-color:var(--white); background:rgba(255,255,255,0.08); }
.full-width{ width:100%; }

/* ---------- Topbar ---------- */
.topbar{
  background:var(--navy-950);
  color:#cfe0ef;
  font-size:.82rem;
}
.topbar-inner{
  padding:8px 28px;
  text-align:center;
  letter-spacing:.01em;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  gap:28px;
  padding:14px 28px;
}
.brand{ display:flex; align-items:center; margin-inline-end:auto; }
.brand-logo{ height:34px; width:auto; }

.lang-switch{
  display:flex;
  gap:4px;
  background:var(--sand-100);
  border:1px solid var(--line);
  border-radius:999px;
  padding:3px;
}
.lang-btn{
  border:0;
  background:transparent;
  color:var(--ink-500);
  font-family:var(--font-head);
  font-weight:700;
  font-size:.76rem;
  letter-spacing:.03em;
  padding:6px 11px;
  border-radius:999px;
  cursor:pointer;
  transition:background-color .15s ease, color .15s ease;
}
.lang-btn:hover{ color:var(--navy-900); }
.lang-btn.active{
  background:var(--navy-950);
  color:var(--white);
}
.main-nav{
  display:flex;
  gap:28px;
  font-weight:600;
  font-size:.94rem;
}
.main-nav a{ color:var(--ink-700); transition:color .15s ease; }
.main-nav a:hover{ color:var(--orange-600); }
.header-cta{ padding:10px 20px; font-size:.88rem; }
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:0;
  cursor:pointer;
  padding:6px;
}
.nav-toggle span{
  width:22px; height:2px; background:var(--navy-950); border-radius:2px;
}

/* ---------- Eyebrow / section headers ---------- */
.eyebrow{
  font-family:var(--font-head);
  font-weight:700;
  font-size:.8rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--orange-600);
  margin:0 0 .8em;
}
.eyebrow-light{ color:#f2b79f; }
.section-head{
  max-width:760px;
  margin:0 0 48px;
}
.section-lead{ font-size:1.08rem; color:var(--ink-500); }

.section{ padding:96px 0; }
.section-alt{ background:var(--sand-50); }
.section-dark{
  background:var(--navy-950);
  color:var(--white);
}
.section-dark h2, .section-dark p{ color:var(--white); }
.section-dark .contact-copy p{ color:#c9d6e3; }

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--blue-700) 130%);
  color:var(--white);
  padding:76px 0 90px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.1rem, 3.6vw, 3rem);
  margin-bottom:.5em;
}
.hero-lead{
  color:#d7e2ee;
  font-size:1.08rem;
  max-width:56ch;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin:28px 0 32px;
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.15);
}
.hero-badges li{
  font-size:.85rem;
  color:#e7edf3;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18);
  padding:8px 14px;
  border-radius:999px;
}
.hero-media img{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  width:100%;
  height:100%;
  object-fit:cover;
  max-height:520px;
  border:1px solid rgba(255,255,255,0.12);
}

/* ---------- Problem ---------- */
.problem-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
}
.problem-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:26px 22px;
  box-shadow:var(--shadow-sm);
}
.problem-card h3{
  font-size:1.02rem;
  margin-bottom:.5em;
}
.problem-card p{ font-size:.94rem; margin:0; }

/* ---------- Solution ---------- */
.solution-grid{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:56px;
  align-items:center;
}
.solution-media img{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
}
.solution-steps{
  margin-top:32px;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.step{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.step-num{
  flex:none;
  width:32px; height:32px;
  border-radius:50%;
  background:var(--orange-600);
  color:var(--white);
  font-family:var(--font-head);
  font-weight:700;
  font-size:.9rem;
  display:flex; align-items:center; justify-content:center;
}
.step h4{ font-size:1rem; margin-bottom:.25em; }
.step p{ font-size:.92rem; margin:0; }

/* ---------- Services ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.service-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:30px 26px;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease, transform .2s ease;
}
.service-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }
.service-card[role="button"]{ cursor:pointer; }
.service-card[role="button"]:focus-visible{
  outline:2px solid var(--blue-600);
  outline-offset:2px;
}
.service-hint{
  display:inline-block;
  margin-top:4px;
  font-family:var(--font-head);
  font-weight:700;
  font-size:.82rem;
  color:var(--orange-600);
}
.service-index{
  font-family:var(--font-head);
  font-weight:800;
  font-size:.85rem;
  color:var(--orange-600);
  letter-spacing:.05em;
}
.service-card h3{
  font-size:1.08rem;
  margin:.5em 0 .5em;
}
.service-card p{ font-size:.93rem; margin:0; }
.service-card-cta{
  background:var(--navy-950);
  color:var(--white);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.service-card-cta h3{ color:var(--white); }
.service-card-cta p{ color:#cfd9e4; }
.service-card-cta .btn{ margin-top:14px; align-self:flex-start; }

/* ---------- Team ---------- */
.team-media{
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-md);
  margin-bottom:56px;
}
.impressions{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-bottom:56px;
}
.impressions img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}

.experience-block{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:36px;
}
.experience-block h3{ font-size:1.15rem; }
.company-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:18px 0 20px;
}
.company-pills li{
  font-family:var(--font-head);
  font-weight:600;
  font-size:.88rem;
  color:var(--navy-900);
  background:var(--sand-100);
  border:1px solid var(--line);
  padding:9px 16px;
  border-radius:999px;
}
.disclaimer{
  font-size:.82rem;
  color:var(--ink-500);
  border-top:1px dashed var(--line);
  padding-top:16px;
  margin:0;
}

/* ---------- Cost table ---------- */
.cost-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:56px;
  align-items:center;
}
.cost-table{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:8px;
  box-shadow:var(--shadow-sm);
  overflow-x:auto;
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:.9rem;
  min-width:520px;
}
thead th{
  text-align:left;
  font-family:var(--font-head);
  font-size:.82rem;
  color:var(--ink-500);
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
tbody td{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  color:var(--ink-700);
}
tbody tr:last-child td{ border-bottom:none; }
td:first-child{ font-weight:600; color:var(--navy-900); }
.highlight{
  color:var(--orange-700);
  font-weight:700;
  background:rgba(193,68,43,0.06);
}
th.highlight{ color:var(--orange-600); background:transparent; }
.table-note{
  font-size:.78rem;
  color:var(--ink-500);
  padding:14px 16px 8px;
  margin:0;
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:56px;
  align-items:start;
}
.contact-details{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:24px;
  font-weight:600;
}
.contact-details a{ color:var(--white); }
.contact-details a:hover{ color:var(--orange-500); }
.contact-details span{ color:#aebdcd; font-weight:400; }

.contact-form{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow:var(--shadow-lg);
}
.form-row{
  margin-bottom:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.form-row label{
  font-size:.85rem;
  font-weight:600;
  color:var(--ink-700);
}
.form-row input, .form-row select, .form-row textarea{
  font-family:var(--font-body);
  font-size:.95rem;
  padding:11px 14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--sand-50);
  color:var(--ink-900);
  resize:vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline:2px solid var(--blue-600);
  outline-offset:1px;
  background:var(--white);
}
.form-note{
  font-size:.78rem;
  color:var(--ink-500);
  margin-top:12px;
  text-align:center;
}
.form-status{
  font-size:.85rem;
  font-weight:600;
  text-align:center;
  margin:10px 0 0;
  min-height:1.2em;
}
.form-status-success{ color:#1a7f4b; }
.form-status-error{ color:var(--orange-700); }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-950);
  color:#c9d6e3;
  padding-top:56px;
}
.footer-inner{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:32px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-word{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.3rem;
  color:var(--white);
}
.footer-word .accent{ color:var(--orange-500); }
.footer-brand p{ color:#aebdcd; margin-top:10px; font-size:.9rem; }
.footer-nav{ display:flex; flex-direction:column; gap:10px; font-size:.92rem; }
.footer-nav a:hover{ color:var(--orange-500); }
.footer-contact{ display:flex; flex-direction:column; gap:10px; font-size:.92rem; }
.footer-contact a:hover{ color:var(--orange-500); }
.footer-bottom{
  padding:20px 28px 26px;
  font-size:.78rem;
  color:#8ea0b3;
  text-align:center;
}

/* ---------- Service detail modal ---------- */
body.modal-open{ overflow:hidden; }

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(14,30,48,0.62);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:1000;
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease, visibility .18s ease;
}
.modal-overlay.open{
  opacity:1;
  visibility:visible;
}
.modal{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:38px;
  max-width:560px;
  width:100%;
  max-height:85vh;
  overflow-y:auto;
  box-shadow:var(--shadow-lg);
  position:relative;
  transform:translateY(12px) scale(.98);
  transition:transform .18s ease;
}
.modal-overlay.open .modal{ transform:translateY(0) scale(1); }
.modal:focus{ outline:none; }
.modal-close{
  position:absolute;
  top:16px; right:16px;
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--sand-50);
  color:var(--ink-700);
  font-size:1.3rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background-color .15s ease;
}
.modal-close:hover{ background:var(--sand-100); }
.modal-index{
  font-family:var(--font-head);
  font-weight:800;
  font-size:.85rem;
  color:var(--orange-600);
  letter-spacing:.05em;
}
.modal h3{
  font-size:1.35rem;
  margin:.4em 0 .5em;
  padding-right:30px;
}
.modal > p{ color:var(--ink-700); }
.modal-bullets{
  margin:18px 0 26px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.modal-bullets li{
  position:relative;
  padding-left:26px;
  font-size:.95rem;
  color:var(--ink-700);
}
.modal-bullets li::before{
  content:"";
  position:absolute;
  left:0; top:7px;
  width:8px; height:8px;
  border-radius:50%;
  background:var(--orange-600);
}

/* ---------- Careers page ---------- */
.job-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow:var(--shadow-sm);
  margin-bottom:24px;
}
.job-card h3{ font-size:1.25rem; margin:0 0 .6em; }
.job-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.job-tag{
  font-family:var(--font-head);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.02em;
  color:var(--orange-700);
  background:rgba(193,68,43,0.08);
  border:1px solid rgba(193,68,43,0.2);
  padding:5px 12px;
  border-radius:999px;
}
.job-note{
  font-size:.85rem;
  color:var(--ink-500);
  margin-top:-6px;
}
.job-card .btn{ margin-top:10px; }
.careers-other{
  background:var(--navy-950);
  color:var(--white);
  border-radius:var(--radius-lg);
  padding:32px;
  text-align:center;
}
.careers-other h3{ color:var(--white); margin-bottom:.4em; }
.careers-other p{ color:#cfd9e4; }
.careers-other .btn{ margin-top:14px; }

/* ---------- 404 page ---------- */
.not-found-box{
  text-align:center;
  max-width:560px;
  margin:0 auto;
  padding:80px 0;
}
.not-found-box h1{ font-size:clamp(1.8rem, 4vw, 2.6rem); }
.not-found-box .eyebrow{ justify-content:center; }
.not-found-box .btn{ margin-top:12px; }

/* ---------- Legal / privacy page ---------- */
.legal-section{ margin-bottom:32px; }
.legal-section h3{ font-size:1.05rem; margin-bottom:.5em; }
.legal-section p{ font-size:.95rem; }
.legal-section .modal-bullets{ margin-top:12px; }

/* ============ Responsive ============ */
@media (max-width:960px){
  .hero-grid, .solution-grid, .cost-grid, .contact-grid{
    grid-template-columns:1fr;
  }
  .hero-media{ order:-1; }
  .solution-media{ order:-1; }
  .problem-grid{ grid-template-columns:repeat(2,1fr); }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:720px){
  .main-nav{
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--white);
    flex-direction:column;
    padding:18px 28px;
    gap:16px;
    border-bottom:1px solid var(--line);
    display:none;
  }
  .main-nav.open{ display:flex; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .problem-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:1fr; }
  .impressions{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }
  .footer-inner{ grid-template-columns:1fr; }
  .topbar-inner{ font-size:.74rem; }
  .header-inner{ gap:12px; }
  .lang-btn{ padding:6px 9px; font-size:.72rem; }
  .modal{ padding:28px 22px; }
}
