/* ============================================
   GLENDEVEN RESEARCH — CUSTOM STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600;700;800&family=ABeeZee&display=swap');

/* --- Brand Colors --- */
:root {
  --purple:   #462a6f;
  --green:    #214823;
  --burgundy: #6b0b3d;
  --beige:    #ecd5bd;
  --dark:     #101519;
  --white:    #ffffff;
}

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

body {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 0 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'ABeeZee', sans-serif;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* ============================================
   QUARTO OVERRIDES
   ============================================ */

.page-layout-custom #quarto-content,
.page-layout-custom main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Inner pages */
.page-layout-article main,
#quarto-document-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

#quarto-footer {
  display: none;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  background-color: var(--purple) !important;
  box-shadow: none !important;
  padding: 1.25rem 0 !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
}

.navbar-brand {
  font-family: 'Hanken Grotesk', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.25rem !important;
  color: var(--white) !important;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.navbar-brush-icon {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}

.navbar-brush-icon img {
  height: 38px;
  width: auto;
}

/* Nav items stretch full height of navbar */
.navbar-nav {
  align-items: stretch !important;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: stretch;
}

.nav-link {
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0 1.25rem !important;
  display: flex;
  align-items: center;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}

/* Scalloped hover: white tab with curved left edge, flush right */
.nav-link:hover {
  background: var(--white) !important;
  color: var(--purple) !important;
  border-radius: 999px 0 0 999px !important;
}

/* ============================================
   HERO + ABOUT WRAPPER
   ============================================ */

.hero-about-wrapper {
  position: relative;
  overflow-x: clip;
  background-color: var(--white); /* white behind bottom curve, hero section provides purple behind top curve */
}

.hero-brush {
  position: absolute;
  right: -360px;
  top: 280px;        /* straddles: upper portion in purple, lower in beige */
  width: 750px;
  z-index: 5;
  pointer-events: none;
  transform: rotate(-30deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background-color: var(--purple);
  color: var(--white);
  padding: 5rem 4rem 8rem;
  position: relative;
  min-height: 420px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -175px;
  left: 0;
  right: 0;
  height: 175px;
  background-color: var(--purple);
  z-index: 1;
}

.hero-text {
  max-width: 620px;
  position: relative;
  z-index: 1;
  margin-left: max(2rem, calc(33vw - 310px));
  margin-top: -2rem;
}

.hero-logo {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 0 2rem 4rem;
}

.hero h1 {
  font-family: 'ABeeZee', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero p {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 1.75rem;
  max-width: 456px;
}


/* ============================================
   ABOUT BAND
   ============================================ */

.about-band {
  background-color: var(--beige);
  border-radius: 250px 0 0 250px;
  margin-top: -120px;
  padding: 8rem 2rem 5rem;
  position: relative;
  z-index: 2;
}

.about-inner {
  max-width: 620px;
  margin-left: max(2rem, calc(33vw - 310px));
}

.about-band h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.values-columns {
  display: flex;
  gap: 3rem;
}

.value-item {
  flex: 1;
}

.about-band h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--burgundy);
}

.about-band p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background: var(--white);
  padding: 5rem 4rem 5rem;
  text-align: center;
}

.services h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--dark);
}

.service-cards {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.service-card {
  flex: 1 1 240px;
  max-width: 300px;
  text-align: left;
  padding: 1.5rem;
}

.service-card-icon {
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: 'ABeeZee', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.service-card p {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Per-card brand colors */
.service-card:nth-child(1) h3,
.service-card:nth-child(1) p { color: var(--purple); }

.service-card:nth-child(2) h3,
.service-card:nth-child(2) p { color: var(--green); }

.service-card:nth-child(3) h3,
.service-card:nth-child(3) p { color: var(--burgundy); }

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  background-color: var(--purple);
  padding: 5rem 4rem 0;
  position: relative;
}

.about-hero-headline {
  max-width: 1100px;
  margin: 0 auto;
  color: var(--white);
}

.about-hero-headline h1 {
  font-family: 'ABeeZee', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: var(--white);
}

/* Seamless second purple section holding the profile cards */
.about-profiles {
  background-color: var(--purple);
  padding: 5rem 4rem 6rem;
}

.about-hero-inner {
  display: flex;
  gap: 4rem;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-card {
  flex: 1;
  max-width: 420px;
  color: var(--white);
}

.profile-photo-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: 'ABeeZee', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.profile-credentials {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 1rem;
  font-style: italic;
}

.profile-blurb {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.profile-blurb a,
.profile-credentials a {
  color: var(--beige);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-blurb a:hover,
.profile-credentials a:hover {
  opacity: 0.75;
}

.about-business-band {
  background-color: var(--beige);
  padding: 6rem 4rem 5rem;
}

.about-business-inner {
  max-width: 720px;
  margin-left: max(2rem, calc(33vw - 310px));
}

.about-business-band h2 {
  font-family: 'ABeeZee', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.about-business-band p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

/* Mobile */
@media (max-width: 700px) {
  .about-hero {
    padding: 5rem 1.5rem 1.5rem;
  }

  .about-profiles {
    padding: 2rem 1.5rem 4rem;
  }

  .about-hero-inner {
    flex-direction: column;
    gap: 3rem;
  }

  .profile-card {
    max-width: 100%;
  }

  .profile-photo-wrapper {
    width: 150px;
    height: 150px;
  }

  .about-business-band {
    border-radius: 0;
    padding: 3rem 1.5rem;
  }

  .about-business-inner {
    margin-left: 0;
  }

  /* Hide navbar brush icon on mobile */
  .navbar-brush-icon {
    display: none;
  }

  /* Slim down navbar on mobile */
  .navbar {
    padding: 0.5rem 0 !important;
  }

  /* Style the hamburger button */
  .navbar-toggler {
    border: none !important;
    padding: 0.25rem 1rem !important;
    color: var(--white) !important;
  }

  .navbar-toggler-icon {
    filter: invert(1);
  }
}

/* ============================================
   FLOATING CONTACT BUTTON
   ============================================ */

.floating-contact {
  position: fixed;
  top: 5rem;
  right: 2rem;
  z-index: 999;
  background: var(--green);
  color: var(--white) !important;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s, transform 0.2s;
}

.floating-contact:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--burgundy);
  color: var(--white);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.88;
  margin: 0;
}

.site-footer a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.site-footer a:hover {
  opacity: 0.75;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--white);
  border-radius: 6px;
  background: transparent;
  color: var(--white) !important;
  text-decoration: none;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.btn-solid {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-solid.burgundy {
  background: var(--burgundy);
  color: var(--white) !important;
}

.btn-solid.green {
  background: var(--green);
  color: var(--white) !important;
}

.btn-solid:hover {
  opacity: 0.85;
  text-decoration: none;
}

button.btn-solid {
  font-family: 'Hanken Grotesk', sans-serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 700px) {

  /* --- Hero --- */
  .hero {
    padding: 2rem 1.5rem 5rem;
  }

  .hero-logo {
    width: 160px;
    margin: 0 0 1.5rem 0;
  }

  .hero-text {
    margin-left: 0;
    margin-top: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Hide brush stroke on mobile — it covers text */
  .hero-brush {
    display: none;
  }

  /* --- Floating button --- */
  .floating-contact {
    top: auto;
    bottom: 5rem;
    right: 1.5rem;
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
  }

  /* --- About / Values --- */
  .about-band {
    border-radius: 0;
    margin-top: 0;
    padding: 3rem 1.5rem 3rem;
  }

  .about-inner {
    margin-left: 0;
  }

  .values-columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* --- Services --- */
  .services {
    padding: 3rem 1.5rem;
  }

  .service-cards {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .service-card {
    max-width: 100%;
  }

  .card-icon {
    width: 100px;
  }

  /* --- Footer --- */
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 5rem 1.5rem 2rem;
    gap: 0.75rem;
  }

  .about-business-band {
    margin-top: 0;
  }
}
