:root {
  --primary-teal: #00b6ba;
  --primary-teal-tint: #00b6ba40;
  --dark-teal: #006669;
  --accent: #f28c28;

  --txt-light: #f5f5f5;
  --txt-dark: #2b3333;

  --color-bg: var(--txt-light);
  --color-text: var(--txt-dark);
  --color-border: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-heading: 'DIN Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --font-family-base: var(--font-body);

  --h1: 3rem;
  --h2: 2.5rem;
  --h3: 2rem;
  --h4: 1.75rem;
  --h5: 1.5rem;
  --h6: 1.2rem;
  --p: 1rem;
  --small: 0.825rem;

  --max-width: 1200px;
  --border-radius: 12px;
  /* this isn't being used much - need to go add consistency */
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
}

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

html:focus-within {
  scroll-behavior: smooth;
}

body {
  font-size: clamp(16px, 2vw, 20px);
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family-base);
  background-color: var(--txt-light);
  color: var(--color-text);
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

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

h1 {
  font-size: var(--h1);
  color: var(--txt-light);
  font-weight: 700;
}
h2 {
  font-size: var(--h2);
  font-weight: 600;
}
h3 {
  font-size: var(--h3);
}
h4 {
  font-size: var(--h4);
}
h5 {
  font-size: var(--h5);
}
h6 {
  font-size: var(--h6);
}

p {
  font-family: var(--font-body);
  padding: var(--space-sm) 0;
  color: var(--txt-dark);
}

small {
  font-size: var(--small);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
}

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

.container {
  width: 95%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  height: clamp(70px, 6vw, 100px);
  background: white;
  box-shadow: var(--box-shadow);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  > a {
    display: flex; /* or display: block */
    align-items: center;
  }
}

.logo {
  height: 64px;
  width: auto;
}

.nav {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  font-family: var(--font-heading);
}

.nav-menu {
  display: flex;
  gap: var(--space-xs);
  list-style: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: var(--space-xs);
  letter-spacing: 0.5px;
  color: var(--txt-dark);
  line-height: 1;
}

.nav-menu a:hover {
  color: var(--primary-teal);
}

.nav-menu li {
  display: flex;
  align-items: center;
}

/* check the hover accessiblity here */
.nav-menu .btn {
  background-color: var(--accent);
  border-radius: var(--border-radius);
  padding: var(--space-xs) var(--space-sm);
  padding-top: calc(var(--space-xs) + 2px);
  padding-bottom: calc(var(--space-xs) - 2px);
  color: var(--txt-dark);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.nav-menu .btn:hover {
  color: var(--txt-light);
  transform: translateY(-1px);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  transition: transform 0.5s ease;
}

.nav-toggle.active {
  transform: rotate(45deg);
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: var(--space-md) auto;
  padding: 0 var(--space-md);
  border-radius: var(--border-radius);
  height: clamp(500px, 50vh, 750px);
}

.hero-background {
  background-color: var(--txt-dark);
  background-image: url('/assets/dsm-bg-1200.webp');
  background-image: image-set(
    url('/assets/dsm-bg-1200.webp') 1x,
    url('/assets/dsm-bg-1800.webp') 2x
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 32%,
    rgba(0, 0, 0, 0.62) 41%,
    rgba(0, 0, 0, 0.42) 57%,
    rgba(0, 0, 0, 0.2) 68%,
    rgba(0, 0, 0, 0.06) 82%,
    rgba(0, 0, 0, 0) 95%
  );
  border-radius: var(--border-radius);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
}

.hero-content p {
  color: var(--txt-light);
}

.hero-background > * {
  position: relative;
  z-index: 1;
}

.hero-button-row {
  position: relative;
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  min-width: 260px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--space-md);
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

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

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus-visible {
  outline: 3px solid var(--primary-teal);
  outline-offset: 3px;
}

.cta-button-primary {
  background-color: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

.cta-button-primary:hover {
  background-color: #c96d37;
  border-color: #c96d37;
  color: var(--txt-dark);
}

/* Services */

.services {
  scroll-margin-top: 80px;
  padding: var(--space-md) 0;
  background: var(--color-bg);
  position: relative;
  overflow: clip;
}

.grid-container {
  position: relative;
  z-index: 1;
}

.grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.services h2 {
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--txt-dark);
}

.accordion {
  min-width: 100%;
  margin: 0 auto;
}

.accordion-item {
  color: var(--txt-dark);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: white;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.accordion-header {
  width: 100%;
  background: white;
  padding: var(--space-sm) var(--space-md);
  border: none;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: var(--h5);
  font-weight: 600;
  position: relative; /* for underline */
}

.accordion-header h3 {
  color: var(--txt-dark);
  margin: 0;
  font-weight: 400;
  position: relative;
}

.accordion-header h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary-teal);
  transition: width 0.3s ease;
}

.accordion-item.active .accordion-header h3::after {
  width: 100%;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--dark-teal);
  font-weight: 700;
  transition: transform 0.5s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  background: #fafafa;
  transform: translateY(-2px);
}

/* Active header background (kept subtle) */
.accordion-item.active .accordion-header {
  background: white;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: white;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  padding-top: 0;
  padding-bottom: 0;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-md);
}

.accordion-body p {
  color: var(--txt-dark);
  padding: var(--space-xs);
  font-weight: 400;
  font-size: var(--p);
  line-height: 1.6;
}

.left-col {
  width: 100%;
  padding-right: var(--space-md);
}

.right-col {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.callout {
  padding: var(--space-md);
  position: relative;
  width: 100%;
}

.callout::before {
  content: '';
  position: absolute;
  inset: 0;
  right: -100vw; /* bleeds way past the right edge */
  background-color: var(--primary-teal-tint);
  border-left: solid var(--primary-teal) 4px;
  z-index: -1;
}

.right-col p {
  padding: var(--space-xs) 0;
  color: var(--txt-dark);
  font-size: var(--p);
}

.right-col li {
  font-size: var(--p);
}

/* ABOUT */

.about {
  scroll-margin-top: 100px;
  background-color: var(--dark-teal);
  margin: var(--space-md) 0;
}

.about-content {
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-around;
}

.bio {
  width: 40vw;
}

.bio h2 {
  color: var(--txt-light);
}

.bio p {
  line-height: 1.5;
  color: var(--txt-light);
}

.bio-pic {
  width: clamp(280px, 30vw, 500px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* CONTACT */

.contact-content {
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  align-items: flex-start;
}

.left-half,
.right-half {
  flex: 1;
  min-width: 0;
}

.left-half > *,
.right-half > * {
  color: var(--txt-dark);
}

.contact-info,
.social-links,
.contact-form {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius);
}

.contact-info,
.social-links {
  margin-top: var(--space-sm);
}

.contact-info p {
  color: var(--txt-dark);
  padding: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  padding: var(--space-md);

  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.contact-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-family: var(--font-heading);
  font-size: var(--p);
  letter-spacing: 0.6px;
  color: var(--dark-teal);
  opacity: 0.85;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;

  border-radius: calc(var(--border-radius) - 4px);
  border: 1px solid var(--color-border);

  background: #f6f8f8;
  color: var(--txt-dark);

  font-size: 0.95rem;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.05s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(0, 182, 186, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: white;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 2px rgba(0, 182, 186, 0.18);
}

.contact-form input:active,
.contact-form textarea:active {
  transform: scale(0.995);
}

.contact-form button {
  margin: auto;
  font-size: clamp(16px, 2vw, 20px);
  background-color: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
  display: inline-flex;
  min-width: 260px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--space-xs);
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.contact-form button:hover {
  background-color: #c96d37;
  border-color: #c96d37;
  color: var(--txt-dark);
}

.contact-form button:active {
  transform: translateY(0);
  box-shadow: none;
}

.contact-form button:focus-visible {
  outline: 3px solid var(--primary-teal);
  outline-offset: 3px;
}

.site-footer {
  background-color: white;
  padding: var(--space-sm);
}

.footer-contents {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  color: var(--txt-dark);
}

@media (max-width: 1200px) {
  .hero {
    max-width: 90vw;
    margin: var(--space-sm) auto;
    height: clamp(400px, 45vh, 600px);
  }
}

@media (max-width: 768px) {
  :root {
    --h1: 2rem;
    --h2: 1.67rem;
    --h3: 1.33rem;
    --h4: 1.17rem;
    --h5: 1rem;
    --h6: 1rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    transition: transform 0.4s ease;
    line-height: 1;
  }

  .nav-toggle.active {
    transform: rotate(45deg);
  }

  .nav > .nav-menu {
    display: none;
  }

  .nav-menu-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    box-shadow: var(--box-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-menu-wrapper.open {
    max-height: 300px;
  }

  .logo {
    padding: 4px;
  }

  .nav-menu-wrapper .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0.5rem 0 1rem;
    gap: 0;
  }

  .nav-menu-wrapper .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu-wrapper .nav-menu a {
    display: block;
    padding: 0.6rem 1rem;
  }

  .nav-menu-wrapper .nav-menu .btn {
    display: inline-block;
    margin-top: 0.5rem;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    height: clamp(70px, 6vw, 100px);
  }

  .hero {
    max-width: 90vw;
  }

  .hero-background {
    background-image: url('/assets/dsm-bg-800.webp');
  }

  .grid-container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .left-col {
    padding-right: 0;
  }
  /* 
  .right-col {
    margin-left: 3rem;
  } */

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .bio,
  .bio-pic {
    width: 90vw;
  }

  .bio {
    text-align: center;
  }

  .contact-content {
    flex-direction: column;
    align-items: stretch; /* ← change this from center */
  }

  .left-half,
  .right-half {
    width: 100%;
  }

  .callout {
    background-color: var(--primary-teal-tint);
    border-left: solid var(--primary-teal) 4px;
    border-right: solid var(--primary-teal) 4px;
  }

  .callout::before {
    display: none;
  }
}

@media (max-width: 480px) {
  /* small phones */
}
