/*
Theme Name: exocon
Theme URI: https://exocon.dk
Author: exocon ApS
Description: Custom light + deep-blue single-page theme for exocon ApS — cloud & infrastructure consulting.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: exocon
*/

/* ------------------------------------------------------------------ *
 * Design tokens
 * ------------------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --navy: #0b1f3a;
  --navy-2: #0e2545;
  --text: #334155;
  --muted: #64748b;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #60a5fa;
  --blue-soft: #eaf1fe;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 10px 30px rgba(11, 31, 58, .07);
  --shadow-lg: 0 20px 50px rgba(29, 78, 216, .18);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--blue-light); }

.section-head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(226, 232, 240, .8); }

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(29, 78, 216, .28); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(11, 31, 58, .04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: inline-flex; align-items: center; }
.brand img { height: 50px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--navy); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav .btn { padding: 9px 18px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: .2s; }

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(55% 60% at 90% 0%, rgba(29, 78, 216, .09), transparent 60%),
    radial-gradient(45% 50% at 0% 100%, rgba(29, 78, 216, .05), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 20%, #000, transparent 75%);
  mask-image: radial-gradient(80% 70% at 30% 20%, #000, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 600px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: .85rem; font-weight: 600; margin-bottom: 26px;
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 44px; color: var(--muted); font-size: .92rem; }
.hero-meta strong { color: var(--navy); font-weight: 800; display: block; font-size: 1.7rem; letter-spacing: -.02em; }

/* Hero image + floating badge */
.hero-visual { position: relative; }
.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .6);
  aspect-ratio: 4 / 3;
}
.hero-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(29, 78, 216, .18), transparent 55%);
}
.hero-image img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero-float {
  position: absolute; left: -22px; bottom: -22px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border);
  padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow);
}
.hero-float-icon { width: 40px; height: 40px; border-radius: 10px; background: #dcfce7; color: #16a34a; display: grid; place-items: center; }
.hero-float-icon svg { width: 22px; height: 22px; }
.hero-float strong { display: block; color: var(--navy); font-size: .95rem; }
.hero-float span { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * Technologies (below services)
 * ------------------------------------------------------------------ */
.tech-block { margin-top: 64px; text-align: center; }
.tech-title { font-size: 1.4rem; margin-bottom: 6px; }
.tech-sub { color: var(--muted); margin: 0 0 26px; }
.tech-tags { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-tags li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--navy);
  box-shadow: 0 1px 2px rgba(11, 31, 58, .04);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.tech-tags li:hover { transform: translateY(-2px); border-color: rgba(29, 78, 216, .45); color: var(--blue); box-shadow: 0 8px 20px rgba(29, 78, 216, .12); }
.tech-tags .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
.tech-tags li:hover .dot { background: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }

/* ------------------------------------------------------------------ *
 * Services
 * ------------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(29, 78, 216, .35); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  margin-bottom: 18px;
}
.card .icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.13rem; margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ------------------------------------------------------------------ *
 * Approach (dark band with photo)
 * ------------------------------------------------------------------ */
.approach {
  position: relative;
  padding: 104px 0;
  background-color: var(--navy);
  color: #cbd5e1;
  overflow: hidden;
}
.approach::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--bg-image);
  background-size: cover; background-position: center;
  opacity: .22;
}
.approach-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 58, .82), rgba(11, 31, 58, .92));
}
.approach .container { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.process-step:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, .5); background: rgba(255, 255, 255, .06); }
.process-no { font-size: 1.6rem; font-weight: 800; color: var(--blue-light); letter-spacing: -.02em; }
.process-step h3 { color: #fff; font-size: 1.12rem; margin: 10px 0 8px; }
.process-step p { color: rgba(203, 213, 225, .8); font-size: .92rem; margin: 0; line-height: 1.6; }

/* ------------------------------------------------------------------ *
 * About
 * ------------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }

.about-media { position: relative; }
.about-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .6);
}
.about-stat {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--blue); color: #fff;
  padding: 16px 22px; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.about-stat strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.about-stat span { font-size: .85rem; opacity: .85; }

.about-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 20px; letter-spacing: -.02em; }
.about-text p { font-size: 1.05rem; }

.certs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.certs li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--navy); font-weight: 500; }
.certs svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }

.about-text .sig { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); font-weight: 700; color: var(--navy); }
.about-text .sig span { display: block; font-weight: 500; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ *
 * Contact (dark panel)
 * ------------------------------------------------------------------ */
.contact { background: var(--bg); }
.contact-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(37, 99, 235, .5), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  border-radius: 28px;
  padding: 72px 40px;
  box-shadow: var(--shadow-lg);
}
.contact-panel .section-head { margin-bottom: 44px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.contact-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.contact-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .09); border-color: rgba(96, 165, 250, .5); text-decoration: none; }
.contact-card .icon { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 12px; background: rgba(96, 165, 250, .16); color: var(--blue-light); display: grid; place-items: center; }
.contact-card .icon svg { width: 23px; height: 23px; }
.contact-card .label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(203, 213, 225, .7); margin-bottom: 4px; }
.contact-card .val { font-weight: 600; color: #fff; word-break: break-word; }

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
.site-footer { background: var(--navy); color: #94a3b8; padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 46px; width: auto; opacity: .95; }
.footer-brand p { margin: 18px 0 0; font-size: .92rem; max-width: 340px; line-height: 1.6; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.footer-nav a { color: #cbd5e1; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; font-size: .86rem;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: none; }
  .hero-visual { max-width: 560px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 560px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .approach { padding: 72px 0; }
  .nav { position: fixed; inset: 84px 0 auto; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0 16px; transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 24px; }
  .nav .btn { margin: 8px 24px 0; justify-content: center; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 64px; }
  .hero-meta { gap: 24px; }
  .contact-panel { padding: 56px 22px; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; max-width: 340px; }
  .hero-float { left: 0; }
}
