/* ============================================================
   Summit Business Solutions — Global Stylesheet
   summitbusinesssolutions.com
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand colors */
  --color-navy:       #1B2A4A;
  --color-teal:       #2E7D9A;
  --color-teal-dark:  #226080;
  --color-teal-light: #3E9DBE;
  --color-gray-bg:    #F5F6F8;
  --color-white:      #FFFFFF;

  /* Text */
  --color-text-primary:   #1B2A4A;
  --color-text-secondary: #4A5568;
  --color-text-muted:     #718096;
  --color-text-inverse:   #FFFFFF;

  /* Borders */
  --color-border:     #E2E8F0;
  --color-border-mid: #CBD5E0;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Font sizes (fluid-ish) */
  --text-xs:   0.75rem;   /*  12px */
  --text-sm:   0.875rem;  /*  14px */
  --text-base: 1rem;      /*  16px */
  --text-lg:   1.125rem;  /*  18px */
  --text-xl:   1.25rem;   /*  20px */
  --text-2xl:  1.5rem;    /*  24px */
  --text-3xl:  1.875rem;  /*  30px */
  --text-4xl:  2.25rem;   /*  36px */
  --text-5xl:  3rem;      /*  48px */

  /* Font weights */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max:    1200px;
  --container-narrow: 800px;
  --container-pad:    clamp(1rem, 4vw, 2rem);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08), 0 1px 2px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.10), 0 2px 6px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 10px 40px rgba(27, 42, 74, 0.14), 0 4px 12px rgba(27, 42, 74, 0.08);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Nav */
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--color-navy);
}

p {
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Typography Utilities ─────────────────────────────────── */
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-muted { color: var(--color-text-muted); }
.text-teal  { color: var(--color-teal); }
.text-navy  { color: var(--color-navy); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }

/* ── Button Components ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn--primary:hover {
  background-color: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.btn--outline:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav__logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.site-nav__logo-primary {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.site-nav__logo-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-teal);
}

.site-nav__cta {
  margin-left: var(--space-4);
}

/* Mobile menu toggle */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.site-nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Nav open state (toggled via JS) */
.site-nav--open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav--open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}
.site-nav--open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.site-footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--color-teal-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.site-footer__brand-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.site-footer__col-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-teal-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__links a:hover {
  color: var(--color-white);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  gap: var(--space-4);
}

.site-footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-6);
}

.site-footer__legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Section Scaffolding ──────────────────────────────────── */
.section {
  padding-block: var(--space-24);
}

.section--gray {
  background-color: var(--color-gray-bg);
}

.section--navy {
  background-color: var(--color-navy);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section__heading {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.section__subheading {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 60ch;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subheading {
  margin-inline: auto;
}

/* ── Page Hero (placeholder) ──────────────────────────────── */
.page-hero {
  background-color: var(--color-navy);
  padding-block: var(--space-20) var(--space-16);
  color: var(--color-white);
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-teal-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.page-hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__subheading {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.72);
  max-width: 55ch;
  line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 64px;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--container-pad) var(--space-6);
    box-shadow: var(--shadow-md);
  }

  .site-nav--open .site-nav__links {
    display: flex;
  }

  .site-nav__link {
    padding-block: var(--space-3);
    width: 100%;
    border-bottom: none;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__link:last-of-type {
    border-bottom: none;
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: var(--space-4);
  }

  .site-nav__toggle {
    display: flex;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding-block: var(--space-16);
  }
}
