/*
Theme Name: consultancy-theme
Theme URI: https://sims64.com
Author: sims64
Author URI: https://sims64.com
Description: AI Consultancy theme for the Pharma, Wireless & Electronics Industries.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sims64
*/

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --slate-900: rgb(42, 44, 51);
  --slate-800: rgb(42, 44, 51);
  --slate-600: rgba(242, 242, 242, 0.08);
  --slate-200: #c4c6d4;
  --slate-100: #eeeef4;
  --slate-50:  #f5f5f8;
  --gold-300:  #f0d96e;
  --gold-400:  #d4a843;
  --gold-500:  #b8892a;
  --gold-600:  #8b6914;
  --white:     #ffffff;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif:'DM Serif Display', Georgia, serif;
  --max-w:     1140px;
  --section-pad: 80px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-sans); font-size: 16px; line-height: 1.7; color: var(--slate-800); background: var(--white); -webkit-font-smoothing: antialiased; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }

/* ─── Layout ─────────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ─── Logo sizes ─────────────────────────────────────────── */
.nav-logo-img    { height: 44px; width: auto; display: block; }
.hero-logo-img   { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.footer-logo-img { height: 80px; width: auto; display: block; margin-bottom: 16px; opacity: 0.85; }

/* WordPress custom logo constraints */
.nav-logo .custom-logo-link img,
.nav-logo .custom-logo { height: 44px !important; width: auto !important; display: block; }
.site-footer .custom-logo-link img,
.site-footer .custom-logo { height: 60px !important; width: auto !important; display: block; opacity: 0.85; }

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #5b5b5b;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91,91,91,0.6);
  transition: background 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-w);
  margin: 0 auto; padding: 0 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-text { font-size: 22px; font-weight: 300; color: var(--white); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--gold-400); }

/* WordPress nav menu overrides */
.nav-inner .menu { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-inner .menu a { font-size: 14px; font-weight: 400; color: var(--slate-200); transition: color 0.2s; }
.nav-inner .menu a:hover,
.nav-inner .menu .current-menu-item > a { color: var(--gold-400); }

.nav-cta {
  font-size: 14px; font-weight: 500;
  color: var(--slate-900); background: var(--gold-500);
  padding: 10px 24px; border-radius: 4px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-400); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh; background: rgb(42,44,51);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(184,137,42,0.06) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.hero-glow {
  position: absolute; top: 10%; right: 5%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(184,137,42,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; padding: 80px 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-400); border: 1px solid rgba(184,137,42,0.3);
  padding: 6px 14px; border-radius: 2px; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px,5vw,58px); font-weight: 400;
  color: var(--white); line-height: 1.15; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero-sub { font-size: 17px; color: var(--slate-200); line-height: 1.75; margin-bottom: 40px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--slate-900); background: var(--gold-500);
  padding: 14px 32px; border-radius: 4px; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s; border: none; cursor: pointer; font-family: var(--font-sans);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block; font-size: 14px; font-weight: 500;
  color: var(--white); background: transparent;
  border: 1px solid rgba(242,242,242,0.25);
  padding: 14px 32px; border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--gold-400); background: rgba(184,137,42,0.06); }

.hero-mark { display: flex; justify-content: center; align-items: center; }

.hero-photo-wrap { position: relative; width: 100%; }
.hero-photo {
  width: 100%; border-radius: 4px;
  object-fit: cover; aspect-ratio: 4/3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.hero-photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(42,44,51,0.92));
  color: var(--slate-200); font-size: 13px; font-style: italic;
  padding: 2rem 1.25rem 1rem;
  border-radius: 0 0 4px 4px;
}

/* ─── Stats ──────────────────────────────────────────────── */
.stats {
  background: rgb(42,44,51);
  border-top: 1px solid var(--slate-600);
  border-bottom: 1px solid var(--slate-600);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  text-align: center; padding: 12px 24px;
  border-right: 1px solid var(--slate-600);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-serif); font-size: 36px; color: var(--gold-400); line-height: 1; margin-bottom: 6px; }
.stat-label  { font-size: 13px; color: var(--slate-200); letter-spacing: 0.3px; }

/* ─── Section headers ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px; }
.section-header h2 { font-family: var(--font-serif); font-size: clamp(28px,4vw,40px); font-weight: 400; color: var(--slate-900); line-height: 1.2; margin-bottom: 14px; }
.section-header p  { font-size: 16px; color: #555; max-width: 560px; margin: 0 auto; }

/* ─── Services ───────────────────────────────────────────── */
.services { background: var(--slate-50); padding: var(--section-pad) 0; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
.service-card {
  background: var(--white); border: 1px solid #e0e2ea; border-radius: 8px;
  padding: 40px 32px; transition: box-shadow 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; background: rgba(184,137,42,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 22px; }
.service-card h3 { font-size: 18px; font-weight: 600; color: var(--slate-900); margin-bottom: 12px; line-height: 1.3; }
.service-card p  { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 20px; }
.service-sub { list-style: none; margin-bottom: 28px; }
.service-sub li { font-size: 13px; color: #777; padding: 4px 0 4px 16px; position: relative; }
.service-sub li::before { content: '—'; position: absolute; left: 0; color: var(--gold-500); font-size: 11px; }
.service-link { font-size: 13px; font-weight: 600; color: var(--gold-600); letter-spacing: 0.3px; }
.service-link:hover { color: var(--gold-400); }

/* ─── Approach ───────────────────────────────────────────── */
.approach { background: rgb(42,44,51); padding: var(--section-pad) 0; }
.approach .section-header h2 { color: var(--white); }
.approach .section-header p  { color: var(--slate-200); }
.approach-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; margin-top: 56px; }
.approach-step { background: rgb(42,44,51); padding: 32px 24px; border: 1px solid var(--slate-600); transition: background 0.2s; }
.approach-step:hover { background: rgba(242,242,242,0.03); }
.step-num { font-family: var(--font-serif); font-size: 42px; color: rgba(184,137,42,0.25); line-height: 1; margin-bottom: 16px; }
.approach-step h4 { font-size: 14px; font-weight: 600; color: var(--gold-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.approach-step h3 { font-size: 16px; font-weight: 500; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.approach-step p  { font-size: 13px; color: var(--slate-200); line-height: 1.6; }
.approach-sub { list-style: none; margin-top: 10px; }
.approach-sub li { font-size: 12px; color: var(--slate-200); padding: 3px 0 3px 14px; position: relative; opacity: 0.8; }
.approach-sub li::before { content: '›'; position: absolute; left: 0; color: var(--gold-500); }

/* ─── Why ────────────────────────────────────────────────── */
.why { background: var(--white); padding: var(--section-pad) 0; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.why-item { border-top: 2px solid var(--gold-500); padding-top: 28px; }
.why-item h3 { font-size: 20px; font-weight: 600; color: var(--slate-900); margin-bottom: 14px; }
.why-item p  { font-size: 15px; color: #555; line-height: 1.75; }

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: rgb(42,44,51);
  border-top: 1px solid var(--slate-600);
  border-bottom: 1px solid var(--slate-600);
  padding: 70px 0; text-align: center;
}
.cta-banner h2 { font-family: var(--font-serif); font-size: clamp(28px,4vw,42px); color: var(--white); margin-bottom: 16px; }
.cta-banner p  { font-size: 16px; color: var(--slate-200); margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-questions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.cta-pill { font-size: 13px; color: var(--slate-200); background: rgba(242,242,242,0.04); border: 1px solid var(--slate-600); padding: 8px 16px; border-radius: 100px; }

/* ─── Sectors ────────────────────────────────────────────── */
.sectors { background: var(--slate-50); padding: var(--section-pad) 0; }
.sectors-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 1000px) { .sectors-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .sectors-grid { grid-template-columns: 1fr; } }
.sector-card { background: var(--white); border: 1px solid #e0e2ea; border-radius: 8px; padding: 32px 28px; transition: box-shadow 0.2s; }
.sector-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.sector-label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }
.sector-card h3 { font-size: 18px; font-weight: 600; color: var(--slate-900); margin-bottom: 12px; }
.sector-card p  { font-size: 14px; color: #666; line-height: 1.65; }

/* ─── Frameworks ─────────────────────────────────────────── */
.frameworks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.framework-item { display: flex; flex-direction: column; gap: 20px; }
.framework-item svg { border-radius: 8px; display: block; }
.framework-caption { font-size: 14px; color: #555; line-height: 1.7; text-align: center; max-width: 480px; margin: 0 auto; }

@media (max-width: 900px) {
  .frameworks-grid { grid-template-columns: 1fr; }
}

/* ─── Team Page ──────────────────────────────────────────── */
.page-hero {
  background: rgb(42,44,51); padding: 120px 0 80px;
  border-bottom: 1px solid var(--slate-600);
}
.page-hero .section-tag { color: var(--gold-400); }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(36px,5vw,52px); color: var(--white); font-weight: 400; margin: 16px 0; }
.page-hero p  { font-size: 17px; color: var(--slate-200); max-width: 52ch; }

.team-section { background: var(--slate-50); padding: var(--section-pad) 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.team-card { background: var(--white); border: 1px solid #e0e2ea; border-radius: 8px; overflow: hidden; transition: box-shadow 0.25s, transform 0.2s; }
.team-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); }
.team-card__image-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, rgb(42,44,51) 0%, rgb(60,62,72) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(184,137,42,0.3);
}
.team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.team-card__body { padding: 28px; }
.team-card__name { font-size: 1.1rem; font-weight: 600; color: var(--slate-900); margin-bottom: 4px; }
.team-card__role { font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px; }
.team-card__bio  { font-size: 14px; color: #555; line-height: 1.75; }

.team-cta { background: rgb(42,44,51); padding: var(--section-pad) 0; text-align: center; }
.team-cta h2 { font-family: var(--font-serif); font-size: clamp(26px,4vw,38px); color: var(--white); margin-bottom: 16px; }
.team-cta p  { color: var(--slate-200); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ─── Contact Page ───────────────────────────────────────── */
.contact-section { background: var(--slate-50); padding: var(--section-pad) 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-detail { margin-bottom: 2rem; }
.contact-detail__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }
.contact-detail__value { font-size: 1rem; color: var(--slate-900); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group   { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8125rem; font-weight: 500; color: var(--slate-900); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.875rem 1rem;
  border: 1.5px solid #e0e2ea; border-radius: 4px;
  font-family: var(--font-sans); font-size: 0.9375rem;
  color: var(--slate-900); background: var(--white);
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold-500); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.alert { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: 14px; }
.alert--success { background: rgba(184,137,42,0.08); border: 1px solid rgba(184,137,42,0.3); color: var(--gold-600); }
.alert--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: #5b5b5b; border-top: 1px solid rgba(91,91,91,0.6); padding: 60px 0 0; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--slate-600);
}
.footer-brand p { font-size: 14px; color: var(--slate-200); line-height: 1.7; margin-top: 14px; max-width: 300px; }
.footer-col h4  { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-400); margin-bottom: 18px; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 10px; }
.footer-col a   { font-size: 14px; color: var(--slate-200); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom  { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.footer-bottom p { font-size: 13px; color: rgba(242,242,242,0.3); }
.footer-bottom a { font-size: 13px; color: rgba(242,242,242,0.3); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold-400); }
.footer-legal { display: flex; gap: 24px; }

/* ─── Hamburger Button ───────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner       { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark        { display: flex; justify-content: center; }
  .hero-photo       { max-width: 480px; margin: 0 auto; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .services-grid    { grid-template-columns: 1fr; }
  .approach-grid    { grid-template-columns: repeat(2,1fr); }
  .why-grid         { grid-template-columns: 1fr; gap: 32px; }
  .sectors-grid     { grid-template-columns: 1fr; }
  .footer-top       { grid-template-columns: 1fr 1fr; }
  .contact-layout   { grid-template-columns: 1fr; gap: 3rem; }
  .form-row         { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container        { padding: 0 20px; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .approach-grid    { grid-template-columns: 1fr; }
  .footer-top       { grid-template-columns: 1fr; }

  /* Hamburger visible, menu hidden by default */
  .nav-hamburger    { display: flex; }
  .nav-inner .menu  {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #5b5b5b;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(91,91,91,0.6);
    z-index: 99;
  }
  .nav-inner .menu.is-open { display: flex; }
  .nav-cta          { display: none; }
}
