/* ============================================================
   ObligoCC — Contract, Commercial & Claims Advisory
   Minimal B2B consulting design — dark blue/green theme
   ============================================================ */

:root{
  --bg:         #0a1a1c;   /* page background — deep blue-green, not black */
  --bg-alt:     #0d2124;   /* alternating section background */
  --surface:    #12292c;   /* card / elevated surface */
  --surface-2:  #16363a;   /* input / pill background */
  --border:     rgba(216, 232, 230, 0.12);

  --text-100:   #eef4f3;   /* headings, high-contrast text */
  --text-300:   #c3d3d1;   /* body text */
  --text-500:   #86a19e;   /* muted / secondary text */

  --accent:        #2dd4bf; /* teal accent */
  --accent-hover:  #5eead4;
  --accent-ink:    #072220; /* dark text used on top of accent-colored elements */

  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --radius: 4px;
}

*,*::before,*::after{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text-300);
  font-family:var(--font);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

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

h1,h2,h3{
  font-family:var(--font);
  font-weight:700;
  color:var(--text-100);
  margin:0;
  letter-spacing:-0.01em;
}

.section-tag{
  font-size:0.78rem;
  font-weight:600;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent);
  margin:0 0 14px;
}

.section-title{
  font-size:clamp(1.6rem, 2.6vw, 2.2rem);
  line-height:1.25;
  margin-bottom:18px;
}

.section-lead{
  max-width:60ch;
  color:var(--text-500);
  font-size:1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{ display:flex; align-items:center; gap:9px; }
.brand-mark{
  width:32px; height:32px; display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:var(--accent-ink);
  font-weight:700; font-size:1rem;
  border-radius:var(--radius);
  flex-shrink:0;
}
.brand-name{ font-weight:700; font-size:1.15rem; color:var(--text-100); }
.brand-cc{ color:var(--accent); }

.nav-desktop{ display:flex; align-items:center; gap:32px; font-size:0.94rem; font-weight:500; }
.nav-desktop a{ color:var(--text-300); }
.nav-desktop a:not(.nav-cta):hover{ color:var(--text-100); }

.nav-cta{
  background:var(--accent); color:var(--accent-ink)!important; padding:11px 22px;
  border-radius:var(--radius); font-weight:600; font-size:0.9rem;
  min-height:44px; display:inline-flex; align-items:center;
}
.nav-cta:hover{ background:var(--accent-hover); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; background:none; border:none; cursor:pointer; padding:0;
}
.nav-toggle span{ width:22px; height:2px; background:var(--text-100); align-self:center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display:none; flex-direction:column;
  max-height:0; overflow:hidden;
  background:var(--bg); border-bottom:1px solid var(--border);
}
.nav-mobile.open{ max-height:400px; }
.nav-mobile a{
  padding:16px 24px; border-top:1px solid var(--border); font-weight:500;
  min-height:44px; display:flex; align-items:center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; overflow:hidden;
  background:var(--bg-alt);
  padding:110px 0 90px;
  border-bottom:1px solid var(--border);
}

/* full-bleed section background image + dark scrim for text contrast */
.bg-media{
  position:absolute; inset:0; margin:0;
}
.bg-media img{
  width:100%; height:100%; object-fit:cover;
}
.bg-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(
    90deg,
    rgba(10, 26, 28, 0.95) 0%,
    rgba(10, 26, 28, 0.85) 45%,
    rgba(10, 26, 28, 0.55) 100%
  );
}
.hero .wrap,
.page-intro .wrap{ position:relative; z-index:1; }

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-title{
  font-size:clamp(2rem, 4.2vw, 3.1rem);
  line-height:1.18;
  max-width:18ch;
  margin-bottom:22px;
}
.hero-sub{
  max-width:56ch;
  font-size:1.08rem;
  color:var(--text-300);
  margin-bottom:34px;
}
.hero .section-lead,
.page-intro .section-lead{ color:var(--text-300); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 28px;
  min-height:44px;
  border-radius:var(--radius);
  font-weight:600; font-size:0.95rem;
  border:1px solid transparent;
  cursor:pointer;
}
.btn-primary{ background:var(--accent); color:var(--accent-ink); }
.btn-primary:hover{ background:var(--accent-hover); }
.btn-ghost{
  border-color:rgba(238, 244, 243, 0.4); color:var(--text-100);
  background:rgba(10, 26, 28, 0.55);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-block{ width:100%; }

/* image slots hide themselves until the file exists (see script.js) */
[data-img-slot].img-missing{ display:none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about{ padding:90px 0; border-bottom:1px solid var(--border); }
.about-grid{
  display:grid; grid-template-columns:1.3fr 1fr; gap:64px; align-items:center;
}
.about-media{ margin:0; }
.about-media img{
  width:100%; aspect-ratio:4/3; object-fit:cover;
  border-radius:var(--radius); border:1px solid var(--border);
}
.stat-row{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
  margin:56px 0 0; padding:0;
}
.stat{ border-top:2px solid var(--accent); padding-top:14px; }
.stat dt{ font-size:2rem; font-weight:700; color:var(--text-100); }
.stat dd{ margin:4px 0 0; font-size:0.88rem; color:var(--text-500); }

/* ============================================================
   PAGE INTRO (services / training)
   ============================================================ */
.page-intro{
  position:relative; overflow:hidden;
  background:var(--bg-alt);
  padding:100px 0 80px;
  border-bottom:1px solid var(--border);
}
.page-intro .section-title{ max-width:20ch; }
.page-intro .section-lead{ margin-top:0; }

/* ============================================================
   SERVICES — spider chart (home page)
   ============================================================ */
.services-chart{ padding:90px 0; border-bottom:1px solid var(--border); }
.services-chart .section-lead{ margin-bottom:44px; }

.spider-link{ display:block; }

.spider-chart{
  position:relative;
  display:block;
  width:100%;
  max-width:560px;
  aspect-ratio:1;
  margin:0 auto;
}
.spider-svg-wrap{
  position:absolute; inset:10%;
}
.spider-svg-wrap svg{ width:100%; height:100%; overflow:visible; }

.spider-ring{ fill:none; stroke:var(--border); stroke-width:1.5; }
.spider-axis{ stroke:var(--border); stroke-width:1.5; }
.spider-fill{ fill:var(--accent); fill-opacity:0.12; stroke:var(--accent); stroke-width:2; }

.spider-label{
  position:absolute;
  transform:translate(-50%, -50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  text-align:center;
  width:120px;
}
.spider-label-icon{
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:50%;
  background:var(--surface); border:1px solid var(--border);
  color:var(--accent); flex-shrink:0;
}
.spider-label-icon svg{ width:22px; height:22px; }
.spider-label-text{ font-size:0.84rem; font-weight:600; color:var(--text-100); line-height:1.3; }

.spider-link:hover .spider-fill{ fill-opacity:0.2; }
.spider-link:hover .spider-label-icon{ border-color:var(--accent); }

.spider-fallback{ display:none; }

/* ============================================================
   SERVICES
   ============================================================ */
.services{ padding:90px 0; border-bottom:1px solid var(--border); }
.service-grid{
  margin-top:40px;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1px;
  background:var(--border);
  border:1px solid var(--border);
}
.service-card{
  background:var(--surface); padding:36px 32px;
}
.service-icon{
  display:flex; width:40px; height:40px; align-items:center; justify-content:center;
  color:var(--accent); margin-bottom:20px;
}
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size:1.1rem; margin-bottom:8px; }
.service-card p{ color:var(--text-500); font-size:0.94rem; margin:0; }

/* ============================================================
   COURSES (training page)
   ============================================================ */
.courses{ padding:90px 0; border-bottom:1px solid var(--border); }
.course-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:24px;
}
.course-card{
  display:flex; flex-direction:column;
  border:1px solid var(--border); border-radius:var(--radius);
  padding:28px; background:var(--surface);
}
.course-card:hover{ border-color:var(--accent); }
.course-tag{
  align-self:flex-start;
  background:var(--surface-2); color:var(--text-300);
  padding:4px 10px; border-radius:999px; font-weight:600; font-size:0.78rem;
  margin-bottom:14px;
}
.course-card h3{ font-size:1.1rem; margin-bottom:10px; }
.course-card p{ color:var(--text-500); font-size:0.94rem; margin:0 0 20px; }
.course-meta{ margin-top:auto; color:var(--text-500); font-size:0.82rem; border-top:1px solid var(--border); padding-top:14px; }

/* ============================================================
   PROJECTS / CASE STUDIES
   ============================================================ */
.projects{ padding:90px 0; border-bottom:1px solid var(--border); }
.project-grid{
  margin-top:40px;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:24px;
}
.project-card{
  border:1px solid var(--border); border-radius:var(--radius);
  padding:28px;
  display:flex; flex-direction:column;
  background:var(--bg-alt);
}
.project-media{ margin:-28px -28px 20px; }
.project-media img{
  width:100%; aspect-ratio:16/9; object-fit:cover;
  border-radius:var(--radius) var(--radius) 0 0;
  border-bottom:1px solid var(--border);
}
.project-meta{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:14px; font-size:0.8rem;
}
.project-tag{
  background:var(--surface-2); color:var(--text-300);
  padding:4px 10px; border-radius:999px; font-weight:600;
}
.project-year{ color:var(--text-500); }
.project-card h3{ font-size:1.05rem; line-height:1.4; margin-bottom:10px; }
.project-card p{ color:var(--text-500); font-size:0.92rem; margin:0 0 20px; }
.project-figures{
  margin-top:auto; display:grid; grid-template-columns:repeat(3,1fr); gap:10px;
  border-top:1px solid var(--border); padding-top:16px;
}
.project-figures dt{ font-size:0.72rem; color:var(--text-500); text-transform:uppercase; letter-spacing:0.04em; }
.project-figures dd{ margin:2px 0 0; font-weight:700; color:var(--text-100); font-size:0.94rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why{ padding:90px 0; background:var(--bg-alt); border-bottom:1px solid var(--border); }
.why-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:64px; align-items:start; }
.why-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:32px;
}
.why-list li{ display:flex; gap:20px; }
.why-num{
  font-weight:700; font-size:0.9rem; color:var(--accent);
  border-top:2px solid var(--accent); padding-top:6px;
  flex-shrink:0; line-height:1;
}
.why-list h3{ font-size:1.02rem; margin-bottom:6px; }
.why-list p{ color:var(--text-500); font-size:0.94rem; margin:0; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries{ padding:90px 0; border-bottom:1px solid var(--border); }
.industry-grid{
  margin-top:40px;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1px;
  background:var(--border); border:1px solid var(--border);
}
.industry-item{
  background:var(--surface);
  display:flex; align-items:center; gap:14px;
  padding:24px 28px;
  font-weight:600; color:var(--text-100); font-size:0.96rem;
}
.industry-icon{ display:flex; width:28px; height:28px; color:var(--accent); flex-shrink:0; }
.industry-icon svg{ width:24px; height:24px; }

/* ============================================================
   TRUST / TESTIMONIALS
   ============================================================ */
.trust{ padding:90px 0; border-bottom:1px solid var(--border); }
.testimonial-grid{
  margin-top:40px;
  display:grid; grid-template-columns:repeat(3, 1fr); gap:24px;
}
.testimonial-card{
  margin:0; padding:28px;
  background:var(--surface-2); border-radius:var(--radius);
}
.testimonial-card p{
  font-size:0.98rem; color:var(--text-300); margin:0 0 20px; line-height:1.6;
}
.testimonial-card footer{ display:flex; flex-direction:column; gap:2px; }
.testimonial-card strong{ color:var(--text-100); font-size:0.92rem; }
.testimonial-card span{ color:var(--text-500); font-size:0.84rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{ padding:90px 0; }
.contact-inner{ text-align:center; max-width:760px; }
.contact-lead{ margin:0 auto 44px; }

.contact-actions{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;
  text-align:left;
}
.contact-btn{
  display:flex; align-items:center; gap:14px;
  padding:20px; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface);
  min-height:44px;
}
.contact-btn:hover{ border-color:var(--accent); }
.contact-btn-icon{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; flex-shrink:0;
  color:var(--accent);
}
.contact-btn-icon svg{ width:24px; height:24px; }
.contact-btn-text{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.contact-btn-text strong{ color:var(--text-100); font-size:0.95rem; }
.contact-btn-text span{ color:var(--text-500); font-size:0.84rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--bg-alt); color:var(--text-500); padding:36px 0; border-top:1px solid var(--border); }
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  font-size:0.86rem;
}
.footer-links{ display:flex; gap:22px; }
.footer-links a{ color:var(--text-500); }
.footer-links a:hover{ color:var(--text-100); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px){
  .about-grid, .why-grid{ grid-template-columns:1fr; gap:36px; }
  .stat-row{ margin-top:44px; }
  .service-grid, .industry-grid{ grid-template-columns:repeat(2, 1fr); }
  .project-grid, .testimonial-grid{ grid-template-columns:1fr 1fr; }
  .contact-actions{ grid-template-columns:1fr; }
  .contact-inner{ text-align:left; }
  .stat-row{ gap:16px; }
}

@media (max-width: 720px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-mobile{ display:flex; }
  .service-grid, .industry-grid{ grid-template-columns:1fr; }
  .project-grid, .testimonial-grid{ grid-template-columns:1fr; }
  .course-grid{ grid-template-columns:1fr; }
  .stat-row{ grid-template-columns:1fr; gap:14px; }
  .wrap{ padding:0 20px; }

  .bg-media::after{ background:rgba(10, 26, 28, 0.88); }

  .spider-chart{ display:none; }
  .spider-fallback{
    display:grid; grid-template-columns:repeat(2, 1fr); gap:1px;
    background:var(--border); border:1px solid var(--border);
  }
  .spider-fallback span{
    display:flex; flex-direction:column; align-items:center; gap:10px;
    text-align:center; background:var(--surface);
    padding:24px 16px; font-size:0.86rem; font-weight:600; color:var(--text-100);
  }
  .spider-fallback svg{ width:26px; height:26px; color:var(--accent); }
}

@media (max-width: 480px){
  .header-inner{ height:64px; }
  .hero{ padding:70px 0 56px; }
  .about, .services, .services-chart, .page-intro, .courses, .projects, .why, .industries, .trust, .contact{ padding:60px 0; }
}
