/* =========================================================
   Beaty Corporate Intelligence — Website V2
   Shared Site Styles
   ========================================================= */

:root {
  --brand: #16324a;
  --brand-dark: #0e2335;
  --brand-light: #e9f0f5;

  --accent: #8b6738;
  --accent-dark: #6f502b;

  --text: #20262c;
  --text-muted: #5d6872;

  --background: #ffffff;
  --background-soft: #f5f7f8;
  --border: #d8dee3;

  --success: #27623a;
  --warning: #805b19;
  --danger: #8a2e2e;

  --max-width: 1180px;
  --content-width: 860px;

  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   Reset / Base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}


/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--brand-dark);
  line-height: 1.2;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.3rem;
  font-weight: 650;
}

h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.lead {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}


/* =========================================================
   General Layout
   ========================================================= */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.content-narrow {
  width: min(100%, var(--content-width));
}

section {
  padding: 4.5rem 0;
}

.section-soft {
  background: var(--background-soft);
}

.section-border {
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
  color: var(--brand-dark);
  text-decoration: none;
}

.site-brand-name {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.2;
}

.site-brand-tagline {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-primary {
  padding: 0.65rem 1rem;
  color: #ffffff !important;
  background: var(--brand);
  border-radius: var(--radius);
}

.nav-primary:hover {
  background: var(--brand-dark);
}

.mobile-menu-button {
  display: none;
  padding: 0.55rem 0.7rem;
  color: var(--brand-dark);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 6rem 0 5rem;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f4f7f9 70%,
      #edf2f5 100%
    );
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 900px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}


/* =========================================================
   Buttons
   ========================================================= */

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: var(--brand);
}

.button-primary:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

.button-secondary {
  color: var(--brand);
  background: #ffffff;
  border-color: var(--brand);
}

.button-secondary:hover {
  color: var(--brand-dark);
  background: var(--brand-light);
}

.button-muted {
  color: var(--text);
  background: var(--background-soft);
  border-color: var(--border);
}


/* =========================================================
   Cards
   ========================================================= */

.card {
  height: 100%;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover .card {
  border-color: var(--brand);
}

.price {
  margin: 0.7rem 0;
  color: var(--brand-dark);
  font-size: 1.55rem;
  font-weight: 750;
}

.meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}


/* =========================================================
   Lists
   ========================================================= */

.check-list {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.check-list li {
  margin-bottom: 0.55rem;
}


/* =========================================================
   Tables
   ========================================================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--brand-dark);
  background: var(--background-soft);
  font-weight: 700;
}


/* =========================================================
   Callout / Notice Areas
   ========================================================= */

.callout {
  padding: 1.25rem 1.4rem;
  background: var(--background-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout-warning {
  border-left-color: var(--warning);
}

.callout-success {
  border-left-color: var(--success);
}


/* =========================================================
   FAQ / Details
   ========================================================= */

details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

summary {
  color: var(--brand-dark);
  font-weight: 650;
  cursor: pointer;
}

details > div,
details > p {
  margin-top: 1rem;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 3rem 0 2rem;
  color: #dce5eb;
  background: var(--brand-dark);
}

.site-footer a {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-heading {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  color: #b8c6cf;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}


/* =========================================================
   Utility
   ========================================================= */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    gap: 0.8rem;
  }

  .site-nav a {
    font-size: 0.85rem;
  }
}

@media (max-width: 760px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4.5rem 0 4rem;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .nav-primary {
    margin-top: 0.35rem;
    text-align: center;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .site-brand-tagline {
    display: none;
  }

  h1 {
    font-size: 2.15rem;
  }
}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}