/* ============================================================
   365 Consultants — AgencyGrove Dark (Orange) theme port
   Palette + type scale from agencygrove-dark 1.4, orange variation
   ============================================================ */

:root {
  --primary: #e66a17;          /* theme Primary */
  --primary-hover: #b54b04;    /* theme Button Hover Color */
  --secondary: #242F65;        /* theme Secondary */
  --base: #222222;             /* theme Base */
  --bg: #040200;               /* theme Base/Two — page background */
  --contrast: #ffffff;         /* theme Contrast */
  --muted: #A4A4A4;            /* theme Contrast/Three */
  --muted-2: #636363;          /* theme Contrast/Two */
  --panel: #2A2C32;            /* theme Accent/Three */
  --panel-2: #2F2F2F;          /* theme Accent/Two */
  --border: #323232;           /* theme card border */
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--contrast);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Old decorative cubes — not part of this theme */
.decor-cubes { display: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

a { color: var(--contrast); }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; color: var(--contrast); }

/* ---------------- Navigation ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 20px 40px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em;
  color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo::before {
  content: "365";
  font-size: 0.8rem; font-weight: 700;
  color: #fff; background: var(--primary);
  padding: 4px 8px; border-radius: 4px; letter-spacing: 0.02em;
}
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.8rem; margin: 0 auto; }
.nav-links a {
  color: var(--contrast); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  padding: 11px 24px; border-radius: var(--radius-sm);
  transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-hover); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  background: var(--base); border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky; top: 76px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--contrast); text-decoration: none; font-weight: 500;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-cta { color: var(--primary) !important; }

/* ---------------- Buttons ---------------- */
.btn-primary, .btn-secondary {
  display: inline-block; text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--primary); color: #fff;
  padding: 13px 34px; border: 2px solid var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary {
  background: transparent; color: var(--contrast);
  padding: 13px 34px; border: 2px solid var(--contrast);
}
.btn-secondary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- Kicker / section headers ---------------- */
.kicker {
  color: var(--primary); font-size: 0.95rem; font-weight: 500;
  margin-bottom: 0.9rem;
}
.kicker--center { text-align: center; }

.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--base); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-header .kicker { margin-bottom: 0.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 500; margin-bottom: 0.9rem; }
.section-header p { color: var(--muted); font-size: 1rem; }

/* ---------------- Hero (home) ---------------- */
.hero {
  position: relative;
  min-height: 650px;
  display: flex; align-items: center;
  background: url("assets/banner-two.jpg") center / cover no-repeat;
  margin-bottom: 80px;
  padding: 80px 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(4, 2, 0, 0.5);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 53fr 47fr;
  gap: 3rem; align-items: center;
}
.hero .kicker { font-size: 1rem; }
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 0;
}
.accent { color: var(--primary); }
.hero-sub {
  color: #e8e8e8; font-size: 1.02rem; line-height: 1.7;
  padding: 30px 0; max-width: 560px;
}
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--contrast); line-height: 1.1; }
.stat-num em { font-style: normal; color: var(--primary); font-size: 1.2rem; }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* Terminal readout card (hero right column) */
.term {
  background: rgba(4, 2, 0, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.8rem 1.15rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); }
.term-dot:first-child { background: var(--primary); }
.term-bar span {
  margin-left: auto; font-family: var(--mono); font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.term-body { padding: 1.15rem 1.25rem 1.35rem; font-family: var(--mono); font-size: 0.8rem; }
.term-cmd { color: var(--muted); margin-bottom: 0.9rem; }
.term-cmd::before { content: "$ "; color: var(--primary); }
.term-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.34rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.term-row:last-child { border-bottom: 0; }
.term-key { color: var(--muted-2); }
.term-val { color: #dcdcdc; text-align: right; }
.term-val.hl { color: var(--primary); }
.term-val.ok { color: #6fbf73; }

/* ---------------- Trust bar ---------------- */
.trust-bar { padding: 0 0 80px; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust-pills span {
  padding: 7px 16px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--base);
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
}

/* ---------------- Services (home cards) ---------------- */
.svc-rows {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.svc-row {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.svc-row:hover { border-color: var(--primary); transform: translateY(-4px); }
.svc-num {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--secondary); border-radius: 4px;
  color: #fff; font-weight: 700; font-size: 1.05rem;
  margin-bottom: 1.3rem;
}
.svc-row:nth-child(3n+2) .svc-num { background: var(--primary); }
.svc-row:nth-child(3n) .svc-num { background: #a60808; }
.svc-name { font-size: 1.3rem; font-weight: 500; color: var(--contrast); margin-bottom: 0.7rem; }
.svc-desc { color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.svc-arrow { display: none; }

/* ---------------- Two-column / Why us ---------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col-text h2 { font-size: 1.9rem; margin-bottom: 1.1rem; }
.two-col-text p { color: var(--muted); margin-bottom: 1.4rem; }
.check-list { list-style: none; }
.check-list li {
  position: relative; padding: 0.45rem 0 0.45rem 2.1rem;
  color: #d8d8d8; font-size: 0.97rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62rem;
  width: 18px; height: 18px;
  background: var(--primary) url("assets/tick.png") center / 12px no-repeat;
  border-radius: 4px;
}
.feature-stack { display: flex; flex-direction: column; gap: 18px; }
.feature-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.feature-num {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--primary); border-radius: 4px;
  color: #fff; font-weight: 700; font-size: 0.9rem;
}
.feature-item strong { display: block; color: var(--contrast); font-size: 1.02rem; font-weight: 500; margin-bottom: 0.3rem; }
.feature-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------------- Specialization cards ---------------- */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 2rem 2.2rem;
  border-top: 3px solid var(--primary);
  transition: border-color 0.2s;
}
.spec-card:hover { border-color: var(--primary); }
.spec-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.8rem; }
.spec-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ---------------- Team cards ---------------- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--primary); }
.card-role { color: var(--primary); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; }
.card h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.4rem; }
.card-tenure { color: var(--muted-2); font-size: 0.72rem; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.card p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; margin-bottom: 1.1rem; }

.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tag {
  padding: 4px 12px; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  position: relative;
  padding: 110px 0;
  background: url("assets/cta.jpg") center / cover no-repeat;
  text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(4, 2, 0, 0.72);
}
.cta-banner .container { position: relative; z-index: 1; max-width: 760px; }
.cta-banner h2 { font-size: 2.1rem; font-weight: 500; margin-bottom: 1rem; }
.cta-banner p { color: #d8d8d8; margin-bottom: 2rem; font-size: 1.02rem; }

/* ---------------- Footer ---------------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 70px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem; padding-bottom: 3rem;
}
.footer-logo { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; }
.footer-links h4 {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 1rem;
}
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; padding: 0.28rem 0;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.6rem 0 2rem;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted-2); font-size: 0.78rem; max-width: 640px; }

/* ---------------- Inner page hero ---------------- */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex; align-items: center;
  background: url("assets/banner.jpg") center / cover no-repeat;
  padding: 90px 0 70px;
  margin-bottom: 10px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(4, 2, 0, 0.62);
}
.page-hero .container { position: relative; z-index: 1; }
.hero-badge { color: var(--primary); font-size: 0.95rem; font-weight: 500; margin-bottom: 0.9rem; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1.2rem;
}
.page-hero p { color: #e0e0e0; max-width: 640px; font-size: 1.02rem; line-height: 1.7; }

/* ---------------- Services page blocks ---------------- */
.service-block { padding: 55px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.service-block:last-of-type { border-bottom: 0; }
.service-block h2 {
  font-size: 1.7rem; font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem;
}
.service-block h2::before {
  content: attr(data-num);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 48px; height: 48px;
  background: var(--primary); border-radius: 4px;
  color: #fff; font-size: 1rem; font-weight: 700;
}
.service-block > .container > p { color: var(--muted); max-width: 860px; margin-bottom: 1.4rem; }
.service-block .tool-list { margin-bottom: 1.6rem; }
.bullet-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 2.5rem;
}
.bullet-list li {
  position: relative; padding-left: 1.9rem;
  color: #d0d0d0; font-size: 0.95rem;
}
.bullet-list li::before {
  content: ""; position: absolute; left: 0; top: 0.28rem;
  width: 16px; height: 16px;
  background: var(--primary) url("assets/tick.png") center / 10px no-repeat;
  border-radius: 4px;
}

/* ---------------- About page ---------------- */
.bio-section { display: grid; grid-template-columns: 320px 1fr; gap: 3.5rem; align-items: start; }
.bio-card {
  position: sticky; top: 110px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.bio-card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.4rem; }
.bio-title { color: var(--primary); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.4rem; }
.bio-fact {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.85rem;
}
.bio-fact:last-of-type { border-bottom: 0; }
.bio-fact .label { color: var(--muted-2); }
.bio-fact .value { color: #dcdcdc; text-align: right; }
.bio-content h2 {
  font-size: 1.6rem; font-weight: 500;
  margin: 2.6rem 0 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.bio-content h2:first-child { margin-top: 0; }
.bio-content > p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.competency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.4rem 0 1rem; }
.competency-item {
  border: 1px solid var(--border); border-radius: 4px;
  border-left: 3px solid var(--primary);
  padding: 0.7rem 1rem;
  color: #d8d8d8; font-size: 0.88rem;
}
.timeline { margin-top: 1.4rem; }
.timeline-item {
  border-left: 2px solid var(--border);
  padding: 0 0 2rem 1.6rem; position: relative;
}
.timeline-item::before {
  content: ""; position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; background: var(--primary); border-radius: 2px;
}
.timeline-item .role { font-size: 1.1rem; font-weight: 500; color: var(--contrast); }
.timeline-item .company { color: var(--primary); font-size: 0.92rem; margin: 0.15rem 0; }
.timeline-item .period { color: var(--muted-2); font-size: 0.82rem; margin-bottom: 0.8rem; }
.timeline-item p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }

/* ---------------- Contact page ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: 1.8rem; font-weight: 500; margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; line-height: 1.75; }
.contact-item { display: flex; gap: 1rem; align-items: baseline; padding: 0.55rem 0; }
.contact-item .icon {
  flex: 0 0 auto; min-width: 74px;
  color: var(--primary); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-item .detail, .contact-item .detail a { color: #dcdcdc; font-size: 0.95rem; text-decoration: none; }
.contact-item .detail a:hover { color: var(--primary); }
.quote-stack { display: flex; flex-direction: column; gap: 10px; }
.quote-stack div {
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: 4px; padding: 0.7rem 1rem;
  color: var(--muted); font-size: 0.88rem; font-style: italic;
}
.contact-form {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.2rem;
}
.contact-form h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; color: #d0d0d0; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 0.45rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--contrast); font-family: inherit; font-size: 0.93rem;
  padding: 0.75rem 0.9rem;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-2); }
.form-submit {
  width: 100%;
  background: var(--primary); color: #fff;
  border: 0; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.98rem; font-weight: 500;
  padding: 0.95rem; cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--primary-hover); }
.form-note { color: var(--muted-2); font-size: 0.8rem; margin-top: 0.9rem; text-align: center; }

/* ---------------- Articles ---------------- */
.article-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.4rem; justify-content: center; }
.cat-btn {
  background: transparent; border: 1px solid var(--border);
  border-radius: 4px; color: var(--muted);
  font-family: inherit; font-size: 0.87rem; font-weight: 500;
  padding: 8px 18px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cat-btn:hover { border-color: var(--primary); color: var(--contrast); }
.cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-card {
  display: block;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
a.article-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.article-card h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.35; margin-bottom: 0.7rem; }
.article-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.1rem; }
.article-coming { opacity: 0.55; }
.article-cat-tag {
  display: inline-block;
  background: var(--primary); color: #fff;
  border-radius: 4px; padding: 3px 10px;
  font-size: 0.75rem; font-weight: 500;
  margin-bottom: 1rem;
}
.article-coming .article-cat-tag { background: var(--panel-2); color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.8rem; color: var(--muted-2); }
.article-author { color: var(--muted); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .term { max-width: 560px; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .svc-rows { grid-template-columns: 1fr 1fr; }
  .bio-section { grid-template-columns: 1fr; }
  .bio-card { position: static; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav { padding: 16px 20px; gap: 1rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .mobile-menu { top: 68px; }
  .section { padding: 60px 0; }
  .hero { min-height: 0; padding: 60px 0; margin-bottom: 50px; }
  .hero-stats { gap: 1.8rem; }
  .svc-rows { grid-template-columns: 1fr; }
  .spec-grid, .card-grid, .article-grid { grid-template-columns: 1fr; }
  .bullet-list, .competency-grid { grid-template-columns: 1fr; }
  .trust-bar { padding-bottom: 50px; }
  .cta-banner { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }
}
