/*
Theme Name: Kadence D2Emerge
Template: kadence
Description: D2Emerge corporate site child theme
Version: 1.0.0
Author: D2Emerge
*/

:root{
  --red:#ED1B35; --gold:#FDBA19; --skyblue:#1CAFE5; --navy:#0750A4;
  --ink:#1A2129; --muted:#5B6470; --line:#E6E9ED; --surface:#F7F8FA;
  --warm: linear-gradient(90deg, var(--red), var(--gold));
  --cool: linear-gradient(90deg, var(--skyblue), var(--navy));
}

body{ font-family:'Inter',ui-sans-serif,system-ui,sans-serif; color:var(--ink); }
.d2-h1,.d2-h2,.d2-h3{ font-family:'Fraunces',Georgia,serif; font-weight:700; line-height:1.15; }

.d2-wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }
.d2-btn{ display:inline-block; padding:14px 28px; border-radius:7px; font-weight:600; font-size:15px; text-decoration:none; }
.d2-btn-primary{ background:var(--warm); color:#fff !important; }
.d2-btn-secondary{ border:1.5px solid var(--line); color:var(--ink) !important; }

.d2-hero{ padding:88px 0 64px; text-align:center; position:relative; overflow:hidden; }
.d2-hero::before{ content:''; position:absolute; top:-120px; right:-160px; width:480px; height:480px; border-radius:50%; background:var(--warm); opacity:.10; filter:blur(10px); }
.d2-hero::after{ content:''; position:absolute; bottom:-160px; left:-160px; width:480px; height:480px; border-radius:50%; background:var(--cool); opacity:.10; filter:blur(10px); }
.d2-hero-inner{ position:relative; max-width:760px; margin:0 auto; }
.d2-eyebrow{ display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--navy); background:rgba(28,175,229,0.10); padding:6px 16px; border-radius:20px; margin-bottom:22px; }
.d2-hero h1{ font-size:clamp(32px,5vw,54px); margin-bottom:20px; }
.d2-hero h1 .d2-grad{ background:var(--warm); -webkit-background-clip:text; background-clip:text; color:transparent; }
.d2-hero p{ font-size:18px; color:var(--muted); max-width:600px; margin:0 auto 32px; }
.d2-hero-ctas{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.d2-stats{ display:flex; justify-content:center; gap:56px; flex-wrap:wrap; padding:36px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.d2-stat{ text-align:center; }
.d2-stat .n{ font-family:'Fraunces',Georgia,serif; font-size:30px; font-weight:700; }
.d2-stat .l{ font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-top:2px; }

.d2-section{ padding:72px 0; }
.d2-section-head{ text-align:center; max-width:600px; margin:0 auto 44px; }
.d2-section-head .tag{ font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--navy); }
.d2-section-head h2{ font-size:32px; margin-top:8px; }
.d2-section-head p{ color:var(--muted); margin-top:10px; font-size:15.5px; }

.d2-brand-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.d2-blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.d2-blog-card{ display:block; text-decoration:none; color:inherit; }
.d2-blog-date{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:10px; }
.d2-blog-card h3{ font-size:17px; margin-bottom:8px; color:var(--ink); }
.d2-blog-card p{ color:var(--muted); font-size:14px; }
@media (max-width:800px){ .d2-blog-grid{ grid-template-columns:1fr; } }
.d2-brand-card{ border:1px solid var(--line); border-radius:14px; padding:32px 26px; transition:.15s; }
.d2-brand-card:hover{ box-shadow:0 8px 28px rgba(20,30,50,.08); transform:translateY(-2px); }
.d2-brand-mark{ width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-weight:700; color:#fff; font-size:18px; margin-bottom:18px; }
.d2-mark-sdt{ background:var(--warm); }
.d2-mark-ito{ background:linear-gradient(90deg,var(--navy),var(--skyblue)); }
.d2-mark-land{ background:linear-gradient(90deg,#7c3aed,var(--navy)); }
.d2-brand-card h3{ font-size:19px; margin-bottom:8px; }
.d2-brand-card p{ color:var(--muted); font-size:14px; margin-bottom:18px; }
.d2-brand-link{ font-size:13.5px; font-weight:600; color:var(--navy); text-decoration:none; }

.d2-promo{ background:var(--ink); border-radius:18px; padding:48px; display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; color:#fff; }
.d2-promo-badge{ display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); margin-bottom:12px; }
.d2-promo h3{ color:#fff; font-size:24px; margin-bottom:8px; }
.d2-promo p{ color:#c7ccd6; font-size:14.5px; max-width:420px; }

.d2-advertise{ text-align:center; background:var(--surface); border-radius:18px; padding:56px 32px; }
.d2-advertise h2{ font-size:28px; margin-bottom:12px; }
.d2-advertise p{ color:var(--muted); max-width:480px; margin:0 auto 26px; }

.d2-form{ max-width:520px; margin:0 auto; text-align:left; }
.d2-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.d2-form-row.full{ grid-template-columns:1fr; }
.d2-form label{ display:block; font-size:12.5px; font-weight:600; color:var(--ink); margin-bottom:5px; }
.d2-form-field{ display:flex; align-items:center; gap:10px; }
.d2-form-field label{ flex:0 0 92px; margin-bottom:0; }
.d2-form-field input{ flex:1; }
.d2-form input, .d2-form textarea{ width:100%; border:1px solid var(--line); border-radius:7px; padding:11px 13px; font-size:14.5px; font-family:inherit; color:var(--ink); background:#fff; }
.d2-form input:focus, .d2-form textarea:focus{ outline:none; border-color:var(--navy); }
.d2-form textarea{ min-height:90px; resize:vertical; }
.d2-form button{ width:100%; border:none; cursor:pointer; margin-top:6px; }
.d2-form-msg{ margin-top:14px; font-size:14px; text-align:center; }
.d2-form-msg.ok{ color:#0a7a3d; }
.d2-form-msg.err{ color:var(--red); }

.d2-page-hero{ padding:56px 0 40px; text-align:center; }
.d2-page-hero h1{ font-size:clamp(28px,4vw,44px); margin-bottom:14px; }
.d2-page-hero p{ color:var(--muted); font-size:16.5px; max-width:640px; margin:0 auto; }

.d2-prose{ max-width:720px; margin:0 auto; padding:0 24px 64px; font-size:16px; line-height:1.75; }
.d2-prose h2{ font-size:24px; margin:36px 0 14px; }
.d2-prose p{ margin-bottom:16px; color:#333; }

.d2-content-plain .content-area,
.d2-content-plain .entry-header{ display:none; }

@media (max-width:800px){
  .d2-brand-grid{ grid-template-columns:1fr; }
}
