/* ═══════════════════════════════════════════════════════════════
   SARAKINOV CONSULTING INC. — Shared Stylesheet
   sarakinovconsulting.com
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --red:          #EC1E27;
  --red-dark:     #a8131a;
  --red-light:    #fce8e9;
  --red-mid:      #f7a0a4;
  --gray:         #515257;
  --gray-dark:    #2e2e31;
  --gray-light:   #f2f2f3;
  --gray-mid:     #9a9ba0;
  --gray-border:  #e0e0e1;
  --white:        #ffffff;

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --max-w:        1100px;
  --pad-x:        2rem;

  /* Transitions */
  --trans:        0.15s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── LAYOUT HELPERS ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section          { padding-block: 5rem; border-bottom: 0.5px solid var(--gray-border); }
.section--alt     { background: var(--gray-light); }
.section--dark    { background: var(--gray-dark); }
.section--no-border { border-bottom: none; }

/* ─── SECTION TYPOGRAPHY ────────────────────────────────────────── */
.section__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section--dark .section__eyebrow { color: var(--red-mid); }

.section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
}
.section--dark .section__heading { color: var(--white); }

.section__subhead {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}
.section--dark .section__subhead { color: rgba(255,255,255,0.6); }

.section__subhead--wide { max-width: 800px; }

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  border: none;
}

.btn--primary        { background: var(--red); color: var(--white); }
.btn--primary:hover  { background: var(--red-dark); }

.btn--outline        { background: transparent; color: var(--gray-dark); border: 0.5px solid var(--gray-border); }
.btn--outline:hover  { border-color: var(--gray); }

.btn--outline-red        { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn--outline-red:hover  { background: var(--red); color: var(--white); }

.btn--outline-white        { background: transparent; color: rgba(255,255,255,0.85); border: 0.5px solid rgba(255,255,255,0.3); }
.btn--outline-white:hover  { border-color: rgba(255,255,255,0.6); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ─── BADGES & TAGS ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-md);
}
.badge--red   { background: var(--red-light); color: var(--red-dark); border: 0.5px solid var(--red-mid); }
.badge--gray  { background: var(--gray-light); color: var(--gray); border: 0.5px solid var(--gray-border); }
.badge--green { background: #eaf3de; color: #27500a; }
.badge--amber { background: #faeeda; color: #633806; }

.tag { display: inline-block; font-size: 0.6875rem; color: var(--gray); padding: 0.1875rem 0.5rem; border: 0.5px solid var(--gray-border); border-radius: 999px; }
.tag-group { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }

/* ─── NAV ───────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 0.5px solid var(--gray-border);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 36px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
}

.nav__links a {
  color: var(--gray);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all var(--trans);
  white-space: nowrap;
}
.nav__links a:hover         { color: var(--gray-dark); background: var(--gray-light); }
.nav__links a.active        { color: var(--gray-dark); font-weight: 500; }

/* Services dropdown */
.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gray);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8125rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  transition: all var(--trans);
}
.nav__dropdown-toggle:hover { color: var(--gray-dark); background: var(--gray-light); }
.nav__dropdown-toggle svg   { width: 12px; height: 12px; transition: transform var(--trans); }
.nav__dropdown--open .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border: 0.5px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
}
.nav__dropdown--open .nav__dropdown-menu { display: flex; flex-direction: column; gap: 0.125rem; }

.nav__dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  transition: background var(--trans);
  color: var(--gray-dark);
}
.nav__dropdown-item:hover { background: var(--gray-light); }
.nav__dropdown-item strong { font-size: 0.8125rem; font-weight: 500; }
.nav__dropdown-item span   { font-size: 0.6875rem; color: var(--gray-mid); font-weight: 300; }

.nav__cta { flex-shrink: 0; }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--gray-dark);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 0.5px solid var(--gray-border);
  padding: 0.75rem var(--pad-x) 1.25rem;
}
.nav__mobile--open { display: flex; }

.nav__mobile a, .nav__mobile-section-label {
  font-size: 0.9375rem;
  color: var(--gray);
  padding: 0.625rem 0;
  border-bottom: 0.5px solid var(--gray-border);
  display: block;
}
.nav__mobile-section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding-top: 1rem;
  border-bottom: none;
}
.nav__mobile a.nav__mobile-sub { padding-left: 1rem; font-size: 0.875rem; }
.nav__mobile a.nav__mobile-cta { color: var(--red); font-weight: 500; border-bottom: none; margin-top: 0.25rem; }

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-dark);
  padding-block: 3rem 2rem;
}

.footer__grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer__brand {}
.footer__logo  { height: 32px; width: auto; margin-bottom: 1rem; }

.footer__tagline {
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer__contact a {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.25rem;
  transition: color var(--trans);
}
.footer__contact a:hover { color: var(--white); }

.footer__col-heading {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: color var(--trans);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--trans);
}
.footer__bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ─── HERO (shared styles for inner pages) ──────────────────────── */
.page-hero {
  background: var(--gray-light);
  padding-block: 4rem;
  border-bottom: 0.5px solid var(--gray-border);
}

.page-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.page-hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.page-hero__body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* ─── BREADCRUMB ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gray-mid); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-mid); }

/* ─── CARDS (shared) ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 0.5px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.card--accent-top  { border-top: 3px solid var(--red); }
.card--accent-left { border-left: 3px solid var(--red); }
.card--shaded      { background: var(--gray-light); }

/* ─── PROSE (article body) ──────────────────────────────────────── */
.prose {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray);
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--gray-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p { margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 0.5rem; }

.prose strong { font-weight: 500; color: var(--gray-dark); }

.prose blockquote {
  border-left: 2px solid var(--red);
  padding: 0.75rem 1.25rem;
  margin-block: 1.5rem;
  font-style: italic;
  color: var(--gray);
}

.prose a { color: var(--red); text-decoration: underline; }
.prose a:hover { color: var(--red-dark); }

/* ─── CTA BANNER (shared) ───────────────────────────────────────── */
.cta-banner {
  background: var(--gray-dark);
  padding-block: 4rem;
  text-align: center;
}

.cta-banner__eyebrow { color: var(--red-mid); }
.cta-banner__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--white);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.cta-banner__body {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-banner__buttons { justify-content: center; }

/* ─── DIFF ITEMS (about / why us) ───────────────────────────────── */
.diff-item { padding: 1rem 1.25rem; border-left: 2px solid var(--red); }
.diff-item__title { font-size: 0.8125rem; font-weight: 500; color: var(--gray-dark); margin-bottom: 0.25rem; }
.diff-item__body  { font-size: 0.75rem; font-weight: 300; color: var(--gray); line-height: 1.6; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta         { display: none; }
  .nav__hamburger                { display: block; }
  .footer__grid                  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --pad-x: 1.25rem; }
  .section { padding-block: 3rem; }
  .page-hero { padding-block: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer__bottom-links { flex-wrap: wrap; gap: 1rem; }
}
