@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic");

/*
  Kayyem Therapy – Cleaned + Organized main.css
  Based on HTML5UP Strata, refactored for a TOP hero header layout (not a left sidebar).
  - Removes conflicting/duplicated #header rules
  - Removes redundant nav/hamburger duplicates
  - Fixes rotate(45eg) typo -> rotate(45deg)
  - Removes left-sidebar #main offsets (margin-left / width calc)
*/

/* =========================================================
   0) RESET
   ========================================================= */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body { line-height: 1; }

ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ""; content: none; }

table {
  border-collapse: collapse;
  border-spacing: 0;
}

mark { background-color: transparent; color: inherit; }

input::-moz-focus-inner { border: 0; padding: 0; }

input, select, textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
}

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

body {
  -webkit-text-size-adjust: none;
  background: #fff;
}

/* Disable animations/transitions during preload (template behavior) */
body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
  -moz-animation: none !important;
  -webkit-animation: none !important;
  -ms-animation: none !important;
  animation: none !important;

  -moz-transition: none !important;
  -webkit-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

/* =========================================================
   1) DESIGN TOKENS
   ========================================================= */

:root {
  --text: #a2a2a2;
  --text-strong: #787878;
  --muted: #b2b2b2;

  --accent: #49bf9d;

  --border: #efefef;
  --surface: #ffffff;
  --surface-alt: #f7f7f7;

  --content-max: 72rem; /* ~1152px */
  --content-pad: clamp(1.25rem, 3vw, 3rem);
  --section-gap: clamp(1.5rem, 3vw, 2.5rem);

  --radius: 0.5rem;
  --radius-sm: 0.35em;

  --header-min: clamp(18rem, 45vh, 28rem);
}

/* =========================================================
   2) TYPOGRAPHY + GLOBAL ELEMENTS
   ========================================================= */

body, input, select, textarea {
  color: var(--text);
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-size: 16pt;
  font-weight: 400;
  line-height: 1.75em;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom:transparent;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

a:hover {
  color: var(--accent) !important;
  border-bottom: dotted 1px rgba(73, 191, 157, 0.6);
}

strong, b {
  color: var(--text-strong);
  font-weight: 400;
}

em, i { font-style: italic; }

p { margin: 0 0 2em 0; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-strong);
  font-weight: 400;
  line-height: 1em;
  margin: 0 0 1em 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  text-decoration: none;
}

h1 { font-size: 2em; line-height: 1.5em; }
h2 { font-size: 1.5em; line-height: 1.5em; }
h3 { font-size: 1.25em; line-height: 1.5em; }
h4 { font-size: 1.1em; line-height: 1.5em; }
h5 { font-size: 0.9em; line-height: 1.5em; }
h6 { font-size: 0.7em; line-height: 1.5em; }

sub { font-size: 0.8em; position: relative; top: 0.5em; }
sup { font-size: 0.8em; position: relative; top: -0.5em; }

hr {
  border: 0;
  border-bottom: solid 1px var(--border);
  margin: 1em 0;
}
hr.major { margin: 3em 0; }

blockquote {
  border-left: solid 6px var(--border);
  font-style: italic;
  margin: 0 0 2em 0;
  padding: 0.5em 0 0.5em 1.5em;
}

code {
  background: var(--surface-alt);
  border: solid 2px var(--border);
  border-radius: var(--radius-sm);
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}

pre {
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0 2em 0;
  -webkit-overflow-scrolling: touch;
}
pre code {
  display: block;
  line-height: 1.75em;
  padding: 1em 1.5em;
  overflow-x: auto;
}

/* Utilities */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

/* =========================================================
   3) LAYOUT HELPERS (container / grid)
   ========================================================= */

.container {
  margin: 0 auto;
  max-width: calc(100% - 4em);
  width: 100%;
}

@media screen and (max-width: 980px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media screen and (max-width: 480px) {
  .container { max-width: calc(100% - 3em); }
}

/* Flex grid base (keeps template col-* classes working) */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 0;
  margin-left: -2.5em;
}
.row > * { padding: 0 0 0 2.5em; }
.row.gtr-uniform { margin-top: -2.5em; }
.row.gtr-uniform > * { padding-top: 2.5em; }

.row.aln-left { justify-content: flex-start; }
.row.aln-center { justify-content: center; }
.row.aln-right { justify-content: flex-end; }
.row.aln-top { align-items: flex-start; }
.row.aln-middle { align-items: center; }
.row.aln-bottom { align-items: flex-end; }

.row > .imp { order: -1; }

.row > .col-1 { width: 8.33333%; }
.row > .col-2 { width: 16.66667%; }
.row > .col-3 { width: 25%; }
.row > .col-4 { width: 33.33333%; }
.row > .col-5 { width: 41.66667%; }
.row > .col-6 { width: 50%; }
.row > .col-7 { width: 58.33333%; }
.row > .col-8 { width: 66.66667%; }
.row > .col-9 { width: 75%; }
.row > .col-10 { width: 83.33333%; }
.row > .col-11 { width: 91.66667%; }
.row > .col-12 { width: 100%; }

.row > .off-1 { margin-left: 8.33333%; }
.row > .off-2 { margin-left: 16.66667%; }
.row > .off-3 { margin-left: 25%; }
.row > .off-4 { margin-left: 33.33333%; }
.row > .off-5 { margin-left: 41.66667%; }
.row > .off-6 { margin-left: 50%; }
.row > .off-7 { margin-left: 58.33333%; }
.row > .off-8 { margin-left: 66.66667%; }
.row > .off-9 { margin-left: 75%; }
.row > .off-10 { margin-left: 83.33333%; }
.row > .off-11 { margin-left: 91.66667%; }
.row > .off-12 { margin-left: 100%; }

/* Responsive gutter adjustments (keeps “Strata” spacing feel) */
@media screen and (max-width: 1280px) {
  .row { margin-left: -2em; }
  .row > * { padding-left: 2em; }
  .row.gtr-uniform { margin-top: -2em; }
  .row.gtr-uniform > * { padding-top: 2em; }
}

@media screen and (max-width: 980px) {
  .row { margin-left: -2em; }
  .row > * { padding-left: 2em; }
}

@media screen and (max-width: 736px) {
  .row { margin-left: -1.5em; }
  .row > * { padding-left: 1.5em; }
  .row.gtr-uniform { margin-top: -1.5em; }
  .row.gtr-uniform > * { padding-top: 1.5em; }
}

@media screen and (max-width: 480px) {
  .row { margin-left: -1.5em; }
  .row > * { padding-left: 1.5em; }
}

/* =========================================================
   4) SECTIONS / HEADERS
   ========================================================= */

section.special,
article.special { text-align: center; }

header p {
  color: var(--muted);
  position: relative;
  margin: 0 0 1.5em 0;
}

header h2 + p {
  font-size: 1.25em;
  margin-top: -1em;
  line-height: 1.5em;
}

header.major h2 { font-size: 2em; }

/* =========================================================
   5) FORMS
   ========================================================= */

form { margin: 0 0 2em 0; }

label {
  color: var(--text-strong);
  display: block;
  font-size: 0.9em;
  font-weight: 400;
  margin: 0 0 1em 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: solid 2px transparent;
  color: inherit;
  display: block;
  outline: 0;
  padding: 0 0.75em;
  width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='%23dfdfdf' /%3E%3C/svg%3E");
  background-size: 1.25rem;
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  height: 2.75em;
  padding-right: 2.75em;
  text-overflow: ellipsis;
}

select option { color: var(--text-strong); background: var(--surface); }
select::-ms-expand { display: none; }

input[type="text"],
input[type="password"],
input[type="email"],
select { height: 2.75em; }

textarea { padding: 0.75em; }

/* Checkboxes / radios */
input[type="checkbox"],
input[type="radio"] {
  opacity: 0;
  width: 1em;
  float: left;
  margin-right: -2em;
  z-index: -1;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  color: var(--text);
  cursor: pointer;
  display: inline-block;
  font-size: 1em;
  font-weight: 400;
  padding-left: 2.4em;
  padding-right: 0.75em;
  position: relative;
  text-decoration: none;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: solid 2px transparent;
  content: "";
  display: inline-block;
  font-size: 0.8em;
  height: 2.0625em;
  left: 0;
  line-height: 1.85625em;
  position: absolute;
  text-align: center;
  top: 0;
  width: 2.0625em;
}

input[type="radio"] + label:before { border-radius: 100%; }

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: #fff;
  content: "\f00c";
}

input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
  border-color: var(--accent);
}

::-webkit-input-placeholder { color: var(--muted) !important; opacity: 1; }
:-moz-placeholder { color: var(--muted) !important; opacity: 1; }
::-moz-placeholder { color: var(--muted) !important; opacity: 1; }
:-ms-input-placeholder { color: var(--muted) !important; opacity: 1; }

/* =========================================================
   6) BUTTONS
   ========================================================= */

input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
  background-color: transparent;
  border-radius: var(--radius-sm);
  border: solid 3px var(--border);
  color: var(--text-strong) !important;
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  height: calc(2.75em + 6px);
  line-height: 2.75em;
  min-width: 10em;
  padding: 0 1.5em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
.button:active {
  background-color: rgba(73, 191, 157, 0.1);
  border-color: var(--accent);
  color: var(--accent) !important;
}

.button.primary,
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

.button.primary:hover,
input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover {
  background-color: #5cc6a7;
  border-color: #5cc6a7;
}

.button.primary:active,
input[type="submit"].primary:active,
input[type="reset"].primary:active,
input[type="button"].primary:active {
  background-color: #3eb08f;
  border-color: #3eb08f;
}

.button.fit,
input[type="submit"].fit,
input[type="reset"].fit,
input[type="button"].fit {
  min-width: 0;
  width: 100%;
}

/* =========================================================
   7) IMAGES / LISTS / TABLES
   ========================================================= */

.image {
  display: inline-block;
  position: relative;
  border-radius: var(--radius-sm);
  border: 0;
}

.image:before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: url("images/overlay.png");
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease-in-out;
}

.image img {
  display: block;
  border-radius: var(--radius-sm);
}

.image.fit { display: block; margin: 0 0 2em 0; width: 100%; }
.image.fit img { width: 100%; }

.image.left { float: left; margin: 0 1.5em 1em 0; top: 0.25em; max-width: 40%; }
.image.right { float: right; margin: 0 0 1em 1.5em; top: 0.25em; max-width: 40%; }

.image.avatar { border-radius: 0; width: 10em; }
.image.avatar:before { display: none; }
.image.avatar img { border-radius: 0; width: 100%; }

ol { list-style: decimal; margin: 0 0 2em 0; padding-left: 1.25em; }
ol li { padding-left: 0.25em; }

ul { list-style: disc; margin: 0 0 2em 0; padding-left: 1em; }
ul li { padding-left: 0.5em; }

ul.alt { list-style: none; padding-left: 0; }
ul.alt li { border-top: solid 2px var(--border); padding: 0.5em 0; }
ul.alt li:first-child { border-top: 0; padding-top: 0; }

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { margin: 0 0 2em 0; width: 100%; }
table tbody tr { border: solid 1px var(--border); border-left: 0; border-right: 0; }
table tbody tr:nth-child(2n + 1) { background-color: var(--surface-alt); }
table td { padding: 0.75em; }
table th { color: var(--text-strong); font-size: 0.9em; font-weight: 400; padding: 0 0.75em 0.75em 0.75em; text-align: left; }
table thead { border-bottom: solid 2px var(--border); }
table tfoot { border-top: solid 2px var(--border); }

/* 1) Remove bullets globally for these contact lists */
#main ul,
#main ul.alt,
#main ul.labeled-icons {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* 2) Make the contact info list align icons and text */
#main ul.labeled-icons {
  margin: 0;
  padding: 0;
}

#main ul.labeled-icons li {
  display: grid;
  grid-template-columns: 1.75rem 1fr; /* icon column + text */
  gap: 0.9rem;
  align-items: start;
  margin: 0 0 1rem 0;
  padding: 0;
  line-height: 1.6;
}

/* Icon column */
#main ul.labeled-icons li .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-bottom: none; /* remove dotted underline behavior */
  color: #49bf9d;
  font-size: 1.15rem;
  margin: 0.15rem 0 0 0;
}

/* Text column */
#main ul.labeled-icons li .label,
#main ul.labeled-icons li span,
#main ul.labeled-icons li p,
#main ul.labeled-icons li a {
  color: #787878;
}

/* Make link color match site theme */
#main ul.labeled-icons li a {
  border-bottom: transparent; /* remove dotted underline behavior */
  color: #49bf9d;
  text-decoration-line: none;
  text-decoration: none;
}

/* 3) Ensure the form layout keeps the button under the form */
#main form {
  margin-bottom: 0; /* avoid odd extra gaps above the contact list */
}

#main form .actions {
  margin-top: 1rem;
  justify-content: flex-start;
}

/* Keep the send button under the textarea and not floating weirdly */
#main form .actions li {
  padding-left: 0;
}

/* Optional: make the button more “primary” and consistent */
#main form input[type="submit"],
#main form button[type="submit"] {
  background: #49bf9d;
  border-color: #49bf9d;
  color: #fff !important;
  min-width: 12rem;
}

#main form input[type="submit"]:hover,
#main form button[type="submit"]:hover {
  background: #5cc6a7;
  border-color: #5cc6a7;
}

/* Optional: make button full-width on smaller screens */
@media screen and (max-width: 736px) {
  #main form input[type="submit"],
  #main form button[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   8) ICONS
   ========================================================= */

.icon {
  text-decoration: none;
  border-bottom: none;
  position: relative;
}

.icon:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
}

.icon.solid:before { font-weight: 900; }
.icon.brands:before { font-family: "Font Awesome 5 Brands"; }
.icon > .label { display: none; }

/* Social icons list */
ul.icons {
  cursor: default;
  list-style: none;
  padding-left: 0;
}
ul.icons li { display: inline-block; padding: 0 1em 0 0; }
ul.icons li:last-child { padding-right: 0; }
ul.icons li .icon:before { font-size: 1.5em; }

/* =========================================================
   9) SITE LAYOUT (Header / Nav / Main / Footer)
   ========================================================= */

/* Header (top hero) */
#header {
  background-color: #1f1815;
  background-attachment: scroll, scroll;
  background-image: url("images/overlay.png"), url("../../images/bg.jpg");
  background-position: top left, top left;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  color: rgba(255, 255, 255, 0.5);
  position: relative;       /* IMPORTANT: not fixed */
  width: 100%;
  height: auto;
  min-height: var(--header-min);
  display: block;
  text-align: left;
  padding: clamp(1rem, 1.5rem, 1rem) var(--content-pad);
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

#header > * { width: 100%; }

#header .inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

#header .header-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

#header .header-copy {
  min-width: 0;
  max-width: 40rem;
}

#header .header-headshot {
  margin: 0;
  flex: 0 0 auto;
    width: clamp(160px, 42vw, 220px);
    height: clamp(160px, 42vw, 220px);
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

#header .header-headshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 1100px) {
  #header .header-headshot {
    margin-left: -0.75rem;
  }
}

@media screen and (max-width: 980px) {
  #header .header-hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  #header .header-headshot {
    width: clamp(160px, 42vw, 220px);
    height: clamp(160px, 42vw, 220px);
  }
}

#header h1 {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  line-height: 1.15;
  margin: 0;
  max-width: none;
}

#header strong,
#header b { color: #fff; }

#header h2, #header h3, #header h4, #header h5, #header h6 {
  color: #fff;
}

#header h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* Header subtitle (default: stacked) */
#header .header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* =========================================================
   Header icon meta list (like PsychologyToday-style rows)
   ========================================================= */

#header .header-meta-list {
  margin: 0.85rem 0 0 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-wrap: wrap;
  align-items: center;

  /* spacing between items */
  gap: 0.75rem 1.25rem;
}

#header .header-meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  /* text treatment like your screenshot */
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  line-height: 1.2;

  color: rgba(255, 255, 255, 0.78);
}

/* Icon size + color */
#header .header-meta-list li .icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  width: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Optional: make keywords pop slightly */
#header .header-meta-list li .meta-text strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* Add divider bars between items (desktop/tablet) */
@media screen and (min-width: 737px) {
  #header .header-meta-list li:not(:last-child)::after {
    content: "|";
    margin-left: 1.25rem;
    color: rgba(255, 255, 255, 0.35);
  }
}

/* Mobile: tighter + no forced dividers (wrap nicely) */
@media screen and (max-width: 736px) {
  #header .header-meta-list {
    gap: 0.6rem 1rem;
  }

  #header .header-meta-list li {
    font-size: 0.88rem;
    letter-spacing: 0.05em;
  }

  #header .header-meta-list li::after {
    content: none;
  }
}

/* Top Nav (single, non-duplicated implementation) */
.top-nav {
  max-width: var(--content-max);
  margin: 0 auto 1.25rem auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1em;
  position: relative;
}

/* Desktop list */
.top-nav ul {
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: none;
  font-size: 1.05em;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.top-nav a:hover { color: #fff; }

/* underline */
.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.top-nav a:hover::after,
.top-nav a.active::after { transform: scaleX(1); }
.top-nav a.active { color: #302f2f; }

/* Hamburger */
.nav-toggle {
  margin-left: auto;
  display: none; /* shown at <=980px */
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  left: 4px;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Mobile menu */
@media screen and (max-width: 980px) {
  .nav-toggle { display: block; }

  .top-nav {
    justify-content: flex-end;
    margin-bottom: 1.5em;
  }

  .top-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.15);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25em;
    z-index: 2000;
  }

  .top-nav ul a {
    color: #444;
  }

  .top-nav.open ul { display: flex; }

  /* Hamburger -> X when open */
	.top-nav.open .nav-toggle span {
	background: transparent; /* hide middle bar */
	}
	.top-nav.open .nav-toggle span::before {
	transform: translateY(7px) rotate(45deg);
	}

	.top-nav.open .nav-toggle span::after {
	transform: translateY(-7px) rotate(-45deg);
	}
	
}

/* Main (centered content) */
#main {
  margin: 0 auto;
  width: 100%;
  max-width: var(--content-max);
  padding: var(--content-pad);
}

#main > section {
  border-top: none;
  margin: var(--section-gap) 0 0 0;
  padding: var(--section-gap) 0 0 0;
}
#main > section:first-child {
  margin-top: 0;
  padding-top: 0;
}

/* Optional card wrapper */
.card-section {
  background: var(--surface);
  border: solid 2px var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

/* Page title block (use inside #main) */
.page-title { margin: 0 0 var(--section-gap) 0; }
.page-title h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.page-title p { margin: 0; max-width: 70ch; }

/* Footer */
#footer {
  background-color: #1f1815;
  background-attachment: scroll, scroll;
  background-image: url("images/overlay.png"), url("../../images/bg.jpg");
  background-position: top left, bottom center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;

  position: relative;
  width: 100%;
  padding: 3em var(--content-pad);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

#footer .inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

#footer .icons { margin: 0 0 1em 0; }
#footer .icons a { color: rgba(255, 255, 255, 0.4); }

#footer .copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8em;
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer .copyright li {
  border-left: solid 1px rgba(255, 255, 255, 0.25);
  display: inline-block;
  line-height: 1em;
  margin-left: 0.75em;
  padding-left: 0.75em;
}
#footer .copyright li:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}
#footer .copyright li a { color: inherit; }

/* =========================================================
   10) PAGE-SPECIFIC (About example you had)
   ========================================================= */

#about .about-content {
  max-width: 52rem;
  margin-bottom: 2rem;
}

#about .about-photo img {
  display: block;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  border-radius: 0;
  object-fit: cover;
}

/* =========================================================
   11) RESPONSIVE TYPOGRAPHY TWEAKS
   ========================================================= */

@media screen and (max-width: 1800px) {
  body, input, select, textarea { font-size: 12pt; }
}

@media screen and (max-width: 980px) {
  #header h1 { text-align: left; }
  #header h1 { max-width: none; }
  #main { padding: 1.5em var(--content-pad); }
}

@media screen and (max-width: 736px) {
  #header { min-height: 35vh; }
  #main { padding: 2.25em 1.5em 0.25em 1.5em; }
}

@media screen and (max-width: 480px) {
  #footer .copyright li {
    border-left-width: 0;
    display: block;
    line-height: 2.25em;
    margin-left: 0;
    padding-left: 0;
  }
}

/* =========================================================
   Grid responsive helpers (missing in current CSS)
   Allows col-12-small / col-12-xsmall to actually work
   ========================================================= */

/* "small" breakpoint */
@media screen and (max-width: 736px) {
  .row > .col-1-small { width: 8.33333%; }
  .row > .col-2-small { width: 16.66667%; }
  .row > .col-3-small { width: 25%; }
  .row > .col-4-small { width: 33.33333%; }
  .row > .col-5-small { width: 41.66667%; }
  .row > .col-6-small { width: 50%; }
  .row > .col-7-small { width: 58.33333%; }
  .row > .col-8-small { width: 66.66667%; }
  .row > .col-9-small { width: 75%; }
  .row > .col-10-small { width: 83.33333%; }
  .row > .col-11-small { width: 91.66667%; }
  .row > .col-12-small { width: 100%; }

  .row > .off-1-small { margin-left: 8.33333%; }
  .row > .off-2-small { margin-left: 16.66667%; }
  .row > .off-3-small { margin-left: 25%; }
  .row > .off-4-small { margin-left: 33.33333%; }
  .row > .off-5-small { margin-left: 41.66667%; }
  .row > .off-6-small { margin-left: 50%; }
  .row > .off-7-small { margin-left: 58.33333%; }
  .row > .off-8-small { margin-left: 66.66667%; }
  .row > .off-9-small { margin-left: 75%; }
  .row > .off-10-small { margin-left: 83.33333%; }
  .row > .off-11-small { margin-left: 91.66667%; }
  .row > .off-12-small { margin-left: 100%; }
}

/* "xsmall" breakpoint */
@media screen and (max-width: 480px) {
  .row > .col-1-xsmall { width: 8.33333%; }
  .row > .col-2-xsmall { width: 16.66667%; }
  .row > .col-3-xsmall { width: 25%; }
  .row > .col-4-xsmall { width: 33.33333%; }
  .row > .col-5-xsmall { width: 41.66667%; }
  .row > .col-6-xsmall { width: 50%; }
  .row > .col-7-xsmall { width: 58.33333%; }
  .row > .col-8-xsmall { width: 66.66667%; }
  .row > .col-9-xsmall { width: 75%; }
  .row > .col-10-xsmall { width: 83.33333%; }
  .row > .col-11-xsmall { width: 91.66667%; }
  .row > .col-12-xsmall { width: 100%; }

  .row > .off-1-xsmall { margin-left: 8.33333%; }
  .row > .off-2-xsmall { margin-left: 16.66667%; }
  .row > .off-3-xsmall { margin-left: 25%; }
  .row > .off-4-xsmall { margin-left: 33.33333%; }
  .row > .off-5-xsmall { margin-left: 41.66667%; }
  .row > .off-6-xsmall { margin-left: 50%; }
  .row > .off-7-xsmall { margin-left: 58.33333%; }
  .row > .off-8-xsmall { margin-left: 66.66667%; }
  .row > .off-9-xsmall { margin-left: 75%; }
  .row > .off-10-xsmall { margin-left: 83.33333%; }
  .row > .off-11-xsmall { margin-left: 91.66667%; }
  .row > .off-12-xsmall { margin-left: 100%; }
}

.button {
	margin-bottom: 1rem;
}

.scheduler-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.scheduler-modal.is-open {
  display: block;
}

.scheduler-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.scheduler-sheet {
  position: absolute;
  inset: 2rem;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}

.scheduler-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.scheduler-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0.25rem 0.5rem;
}

.scheduler-sheet iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 736px) {
  .scheduler-sheet {
    inset: 0;
    border-radius: 0;
  }
}
