/* texsite agency theme overrides
 * Color palette: purple #522b72, green #589531, gray #707070
 * Fonts: Kaushan Script (hero), Montserrat (headings/nav), Roboto Slab (body)
 *
 * Portions ported from the Start Bootstrap "Agency" theme
 * (https://startbootstrap.com/theme/agency), licensed under MIT.
 */

:root {
  /* Color: structure and text */
  --color-bg: #ffffff;
  --color-body: #212529;            /* body text */
  --color-on-dark: #ffffff;         /* text on dark nav/footer */
  --color-dark-surface: #1d1d1d;    /* nav + footer background */

  /* Color: brand (purple) */
  --color-primary: #522b72;         /* headings, buttons, accents */
  --color-primary-hover: #3e2057;   /* button hover */
  --color-hero-overlay: rgba(82, 43, 114, 0.4); /* scrim over masthead image for legible white text */

  /* Color: links and accents (green) */
  --color-link: #3e6a22;            /* links on white (WCAG AA) */
  --color-accent: #589531;          /* bright green: hovers on dark surfaces */

  /* Typography */
  --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-script: "Kaushan Script", cursive;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Type scale */
  --fs-body: 1.1rem;
  --fs-h2: 3.75rem;
  --fs-h3: 2.5rem;
  --fs-h4: 1.75rem;
  --fs-h5: 1.25rem;
  --fs-icon: 3rem;
  --fs-masthead-heading: 75px;
  --fs-masthead-subheading: 40px;

  --lh-body: 1.6;
  --lh-heading: 1.2;

  /* Spacing scale */
  --space-1: 0.75rem;
  --space-2: 1rem;
  --space-3: 1.25rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 2.5rem;
  --space-7: 3rem;

  /* Layout */
  --content-readable: 800px;
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-body);
}

/* Base */
p {
  line-height: 1.75;
}

/* Headings – inherit Roboto Slab from body; decorative fonts are scoped to
   masthead (.masthead-heading → Kaushan Script, .masthead-subheading → Montserrat) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
}

/* Content heading sizes – match the Quasar/Material Design scale of the
   original SPA: large, light-weight headings with generous spacing */
.page-section h2 { font-size: var(--fs-h2); font-weight: var(--fw-normal); margin: var(--space-7) 0 var(--space-5); }
.page-section h3 { font-size: var(--fs-h3); font-weight: var(--fw-normal); margin: var(--space-6) 0 var(--space-4); }
.page-section h4 { font-size: var(--fs-h4); font-weight: var(--fw-normal); margin: var(--space-5) 0 var(--space-3); }
.page-section h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); margin: var(--space-4) 0 var(--space-1); }

/* Navigation overrides */
#mainNav {
  background-color: var(--color-dark-surface);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
#mainNav .navbar-brand {
  font-family: var(--font-script);
  text-transform: none;
  font-weight: var(--fw-medium);
  color: var(--color-on-dark);
  letter-spacing: 0.0625em;
}
#mainNav .navbar-brand:hover {
  color: var(--color-accent);
}
#mainNav .navbar-toggler {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
}
#mainNav .navbar-nav .nav-item .nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-on-dark);
  letter-spacing: 0.0625em;
}
#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--color-accent);
}
@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  #mainNav .navbar-brand {
    font-size: 1.5em;
  }
  #mainNav .navbar-nav .nav-item {
    margin-right: 1rem;
  }
  #mainNav .navbar-nav .nav-item:last-child {
    margin-right: 0;
  }
}

/* Hero / masthead – reduce Start Bootstrap's oversized padding to match
   the original SPA's ~500px hero; the keyvisual covers the band, centered */
header.masthead {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 4rem;
  background-image: none;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--color-on-dark);
}
@media (min-width: 768px) {
  header.masthead {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}
header.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}
header.masthead .container {
  position: relative;
  z-index: 1;
}
header.masthead .masthead-heading {
  font-family: var(--font-script);
  font-size: var(--fs-masthead-heading);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  margin-bottom: 2rem;
}
header.masthead .masthead-subheading {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: var(--fs-masthead-subheading);
  line-height: var(--lh-heading);
  text-transform: uppercase;
  margin-bottom: 25px;
}
@media (min-width: 768px) {
  header.masthead .masthead-heading {
    margin-bottom: 4rem;
  }
  header.masthead .masthead-subheading {
    margin-bottom: 2rem;
  }
}

/* Purple accent color overrides */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Green accent */
a {
  color: var(--color-link);
}
a:hover {
  color: var(--color-link);
}

/* Section spacing (ported from Start Bootstrap) */
.page-section {
  padding: 6rem 0;
}
@media (min-width: 768px) {
  .page-section {
    padding: 9rem 0;
  }
}

/* Section styling */
.page-section h2.section-heading,
.page-section .section-heading.h2 {
  color: var(--color-primary);
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Team member cards (people block; ported from Start Bootstrap) */
.team-member {
  margin-bottom: 3rem;
  text-align: center;
}
.team-member img {
  width: 14rem;
  height: 14rem;
  border: 0.5rem solid rgba(0, 0, 0, 0.1);
}
.team-member h4,
.team-member .h4 {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Footer */
.footer {
  background-color: var(--color-dark-surface);
  color: var(--color-on-dark);
  padding: var(--space-4) 0;
  font-size: 0.9rem;
  font-family: var(--font-heading);
}
.footer a {
  color: var(--color-on-dark);
  text-decoration: none;
}
.footer a:hover {
  color: var(--color-accent);
}

/* Quote accent */
.border-agency-accent {
  border-color: var(--color-primary) !important;
}

/* Rich text content styling */
.agency-content {
  max-width: var(--content-readable);
  margin: 0 auto;
}
.agency-content h2,
.agency-content h3,
.agency-content h4 {
  color: var(--color-primary);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

/* Icon accent */
.agency-icon-primary {
  font-size: var(--fs-icon);
  color: var(--color-primary);
}

/* Raw HTML block full-width sections */
.agency-raw-html {
  width: 100%;
}
.agency-raw-html iframe {
  border: none;
  width: 100%;
}

/* Mobile: shrink oversized content headings (new) and the masthead display type */
@media (max-width: 767px) {
  :root {
    --fs-h2: 2.25rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --fs-masthead-heading: 48px;
    --fs-masthead-subheading: 24px;
  }
}
