:root {
  --red: #8f1d14;
  --red-dark: #64120d;
  --gold: #d8a500;
  --gold-soft: #f5e7ad;
  --ink: #1e2329;
  --muted: #626a73;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #e5e0d6;
  --blue: #0755a5;
  --green: #18864b;
  --shadow: 0 24px 60px rgba(48, 33, 16, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 104px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(143,29,20,.08);
}
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 274px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 31px; }
.primary-nav a { text-decoration: none; font-weight: 700; font-size: .93rem; letter-spacing: .01em; }
.primary-nav a:hover { color: var(--red); }
.nav-cta { padding: 10px 18px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 22%, rgba(216,165,0,.35), transparent 25%),
    linear-gradient(125deg, #68130e 0%, #8f1d14 52%, #a9351f 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -140px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.025);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.9), transparent 78%);
}
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.18fr .82fr; gap: 72px; align-items: center; padding: 100px 0; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 900; color: var(--red); }
.hero .eyebrow { color: #ffe18c; }
.hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.55rem); line-height: .98; letter-spacing: -.05em; max-width: 800px; }
.hero h1 span { color: #ffd54b; }
.hero-text { font-size: 1.15rem; max-width: 700px; color: rgba(255,255,255,.84); margin: 28px 0 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #251d00; box-shadow: 0 14px 30px rgba(92,64,0,.25); }
.button-primary:hover { background: #e7b515; }
.button-secondary { border: 1px solid rgba(255,255,255,.5); color: white; background: rgba(255,255,255,.06); }
.full { width: 100%; }
.hero-panel { background: rgba(255,255,255,.98); border-radius: 26px; padding: 28px; color: var(--ink); box-shadow: 0 28px 70px rgba(44,0,0,.28); }
.hero-logo-card { min-height: 170px; display: grid; place-items: center; padding: 20px; border-radius: 18px; background: white; border: 1px solid #eee7da; }
.hero-logo-card img { width: 100%; max-width: 410px; }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.focus-grid div { padding: 17px; border-radius: 14px; background: #f6f3ed; min-height: 112px; }
.focus-grid strong { display: block; color: var(--red); margin-bottom: 5px; }
.focus-grid span { font-size: .88rem; color: var(--muted); line-height: 1.45; }

.two-column { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.section-heading h2 { margin: 0; font-size: clamp(2.35rem, 4vw, 4.25rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading.centered { max-width: 800px; margin: 0 auto 48px; text-align: center; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin: 18px auto 0; }
.about-copy > p { margin-top: 0; font-size: 1.08rem; color: #444b52; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.mission-grid article { padding: 27px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(47,34,16,.06); }
.number { font-size: .76rem; font-weight: 900; letter-spacing: .13em; color: var(--gold); }
.mission-grid h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.mission-grid p { margin: 0; font-size: .96rem; color: var(--muted); }

.business { background: white; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { padding: 30px 25px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; transition: .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; background: var(--gold-soft); margin-bottom: 24px; }
.icon svg { width: 27px; height: 27px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.3; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.group { background: #f3efe6; }
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.group-card { display: grid; grid-template-columns: 210px 1fr; background: white; border-radius: 22px; border: 1px solid rgba(87,58,18,.10); overflow: hidden; min-height: 275px; box-shadow: 0 16px 38px rgba(59,42,16,.07); }
.parent-card { grid-column: 1 / -1; grid-template-columns: 340px 1fr; }
.logo-box { min-height: 100%; display: grid; place-items: center; padding: 30px; background: #fdfbf7; border-right: 1px solid var(--line); }
.logo-box img { max-height: 150px; object-fit: contain; }
.logo-box.wide img { max-height: 125px; }
.logo-box.kuryentech { background: #f4f8fd; }
.logo-box.greenc { background: #f1f8f2; }
.group-card-copy { padding: 34px 32px; align-self: center; }
.tag { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #f3dfdd; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tag.blue { background: #e1eefc; color: var(--blue); }
.tag.green { background: #def3e5; color: var(--green); }
.group-card h3 { margin: 13px 0 9px; font-size: 1.55rem; line-height: 1.2; }
.group-card p { margin: 0; color: var(--muted); }

.advantage { padding: 86px 0; background: #1f2429; color: white; }
.eyebrow.light { color: #ffd54b; }
.advantage-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.advantage h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.advantage-list { display: grid; gap: 18px; }
.advantage-list div { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.advantage-list span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #241c00; font-weight: 900; }
.advantage-list p { margin: 3px 0 0; color: rgba(255,255,255,.78); }

.contact { background: white; }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 76px; align-items: start; }
.contact-copy h2 { margin: 0; font-size: clamp(2.5rem, 4vw, 4.2rem); line-height: 1.05; letter-spacing: -.045em; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.contact-details { display: grid; gap: 16px; margin-top: 34px; }
.contact-details a, .contact-details div { display: block; padding: 18px 0; text-decoration: none; border-top: 1px solid var(--line); color: var(--ink); }
.contact-details span { display: block; color: var(--red); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 3px; }
.contact-form { padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(49,34,14,.07); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 7px; font-weight: 800; font-size: .9rem; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid #d7d0c4; border-radius: 12px; background: white; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(143,29,20,.1); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

footer { background: #15191d; color: white; padding: 30px 0; }
.footer-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.footer-wrap img { width: 220px; height: auto; }
.footer-wrap p { text-align: center; margin: 0; color: rgba(255,255,255,.62); font-size: .86rem; }
.footer-wrap a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 700; font-size: .86rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-content, .two-column, .advantage-wrap, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .group-card, .parent-card { grid-template-columns: 220px 1fr; }
  .group-grid { grid-template-columns: 1fr; }
  .parent-card { grid-column: auto; }
  .footer-wrap { grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 76px 0; }
  .nav-wrap { min-height: 72px; }
  .brand img { width: 224px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    padding: 10px 20px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(35,25,10,.09);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px 8px; }
  .nav-cta { border: 0; border-radius: 0; }
  .hero-content { padding: 78px 0; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.3rem); }
  .hero-text { font-size: 1.02rem; }
  .focus-grid, .mission-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 20px; }
  .group-card, .parent-card { grid-template-columns: 1fr; }
  .logo-box { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .group-card-copy { padding: 28px 24px; }
  .advantage-list div { grid-template-columns: 40px 1fr; }
  .contact-form { padding: 25px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .service-card { transition: none; }
}

/* Detailed pages */
.primary-nav a.current { color: var(--red); }
.explore-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.explore-links a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: white; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.explore-links a:hover { transform: translateY(-3px); border-color: rgba(143,29,20,.25); box-shadow: 0 14px 32px rgba(48,33,16,.08); }
.explore-links span { color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.explore-links strong { font-size: 1rem; }

.inner-page { background: #f7f4ed; }
.page-hero { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 82% 15%, rgba(216,165,0,.34), transparent 27%), linear-gradient(125deg, #68130e 0%, #8f1d14 55%, #a9351f 100%); }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -110px; bottom: -220px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 50px rgba(255,255,255,.035), 0 0 0 100px rgba(255,255,255,.025); }
.page-hero-content { position: relative; z-index: 1; padding: 84px 0 86px; max-width: 900px; margin-left: max(20px, calc((100vw - 1160px)/2)); margin-right: 20px; }
.page-hero .eyebrow { color: #ffe18c; }
.page-hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.05em; }
.page-hero p:last-child { max-width: 760px; margin: 24px 0 0; color: rgba(255,255,255,.84); font-size: 1.12rem; }
.page-content { background: #f7f4ed; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 38px rgba(59,42,16,.06); }
.product-card > img { width: 100%; height: 250px; object-fit: cover; }
.product-card > div { padding: 28px; }
.product-card h2 { margin: 13px 0 9px; font-size: 1.65rem; line-height: 1.15; }
.product-card p { margin: 0; color: var(--muted); }
.product-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; }
.product-wide > img { height: 100%; min-height: 320px; }
.product-wide > div { align-self: center; }
.page-cta { margin-top: 56px; padding: 38px 42px; display: flex; justify-content: space-between; gap: 35px; align-items: center; border-radius: 22px; background: #1f2429; color: white; }
.page-cta h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.05; letter-spacing: -.03em; }
.page-cta p:not(.eyebrow) { margin: 14px 0 0; color: rgba(255,255,255,.72); }
.page-cta .button { flex: 0 0 auto; }

.project-list { display: grid; gap: 86px; }
.project-feature { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: center; }
.project-feature.reverse { grid-template-columns: 1.18fr .82fr; }
.project-feature.reverse .project-copy { order: 2; }
.project-feature.reverse .project-gallery { order: 1; }
.project-number { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--gold); color: #2b2100; font-weight: 900; }
.project-copy h2 { margin: 0 0 20px; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.project-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.project-gallery { display: grid; gap: 14px; }
.project-gallery img { width: 100%; border-radius: 18px; object-fit: cover; box-shadow: 0 18px 45px rgba(48,33,16,.12); }
.apostille-gallery { grid-template-columns: 1fr 1fr; }
.apostille-gallery .gallery-wide { grid-column: 1 / -1; height: 240px; }
.apostille-gallery img:not(.gallery-wide) { grid-column: 1 / -1; height: 390px; }
.two-up-gallery { grid-template-columns: 1fr; }
.two-up-gallery img { height: 350px; }
.capabilities-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; padding: 46px; border-radius: 24px; color: white; background: #1f2429; }
.capabilities-panel h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.08; }
.capability-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.capability-chips span { padding: 11px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.84); font-size: .9rem; }

.document-note { margin-bottom: 34px; padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 10px; background: white; color: var(--muted); box-shadow: 0 10px 28px rgba(48,33,16,.05); }
.document-note strong { color: var(--ink); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.cert-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 15px 38px rgba(48,33,16,.06); }
.cert-image { display: block; height: 430px; overflow: hidden; background: #eeeae1; }
.cert-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .25s; }
.cert-image:hover img { transform: scale(1.02); }
.cert-copy { padding: 24px; }
.cert-copy h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.25; }
.cert-copy p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.cert-copy a { color: var(--red); text-decoration: none; font-weight: 800; font-size: .9rem; }

.footer-logo { width: 235px; height: auto; filter: none !important; opacity: 1 !important; }

@media (max-width: 1080px) {
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: .85rem; }
  .brand img { width: 235px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .explore-links, .product-grid, .project-feature, .project-feature.reverse, .capabilities-panel { grid-template-columns: 1fr; }
  .product-wide { grid-column: auto; display: block; }
  .product-wide > img { min-height: 0; height: 280px; }
  .project-feature.reverse .project-copy, .project-feature.reverse .project-gallery { order: initial; }
  .page-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .page-hero-content { padding: 68px 0 72px; margin-left: 14px; margin-right: 14px; }
  .page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .product-grid, .cert-grid { grid-template-columns: 1fr; }
  .product-card > img { height: 225px; }
  .page-cta, .capabilities-panel { padding: 30px 24px; }
  .apostille-gallery { grid-template-columns: 1fr; }
  .apostille-gallery .gallery-wide, .apostille-gallery img:not(.gallery-wide) { grid-column: auto; height: auto; }
  .two-up-gallery img { height: auto; }
  .cert-image { height: 470px; }
  .footer-logo { width: 250px; }
}

@media (max-width: 900px) {
  .nav-wrap { min-height: 76px; }
  .brand img { width: 225px; }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    padding: 10px 20px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(35,25,10,.09);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 13px 8px; font-size: .93rem; }
  .nav-cta { border: 0; border-radius: 0; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: static; }
}

/* Keep profile illustrations intact and align the added project/news rows. */
.project-feature:has(.project-gallery img[src*="project-profile-"]) { align-items: start; }
.project-gallery img[src*="project-profile-"] { display: block; height: auto; object-fit: contain; }
@media (min-width: 901px) {
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: .85rem; }
  .brand img { width: 235px; }
}
