/* ivanon.io stylesheet - retro table layout on a dark tiled background. */

@font-face {
  font-family: "Tiny5";
  src: url("assets/Tiny5.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Michroma";
  src: url("assets/Michroma-Regular.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  padding: 20px 8px 40px;
  background: #242629 url("assets/bg.png?v=13") repeat;
  color: #1F1F1F;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 12px;
  line-height: 1.65;
}

a {
  color: #1F1F1F;
  text-decoration: underline;
}

a:visited {
  color: #333333;
}

a:hover,
a:focus-visible {
  color: #000000;
  background: #DADAD8;
}

/* ---- the 900px frame ---- */

.frame {
  width: 900px;
  border: 1px solid #3A3A3A;
}

td {
  font: inherit;
  color: inherit;
}

/* ---- thin header: icon + wordmark ---- */

.masthead {
  background: #E8E8E6;
  padding: 8px 14px;
  border-bottom: 1px solid #3A3A3A;
}

.masthead table {
  border-collapse: collapse;
}

.masthead img.icon {
  width: 40px;
  height: 40px;
  border: 1px solid #3A3A3A;
  vertical-align: middle;
}

.masthead .wordmark {
  padding-left: 12px;
  font-family: "Tiny5", "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 26px;
  font-weight: normal;
  letter-spacing: 2px;
  color: #141414;
  vertical-align: middle;
}

.masthead .wordmark a {
  color: #141414;
  text-decoration: none;
}

.masthead .wordmark a:hover,
.masthead .wordmark a:focus-visible {
  color: #000000;
  background: transparent;
}

.masthead .tagline {
  padding-left: 14px;
  font-size: 11px;
  color: #333333;
  vertical-align: middle;
}

/* ---- nav buttons ---- */

.navbar {
  display: flex;
  background: #D6D6D4;
  border-bottom: 1px solid #3A3A3A;
}

.navbtn {
  flex: 1;
  padding: 8px 0;
  border-right: 1px solid #3A3A3A;
  color: #141414;
  font-family: "Michroma", "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

.navbtn:last-child {
  border-right: none;
}

.navbtn:visited {
  color: #141414;
}

.navbtn:hover,
.navbtn:focus-visible {
  color: #000000;
  background: #C2C2C0;
}

.navbtn[aria-current="page"] {
  background: #AFAFAD;
  color: #000000;
}

/* ---- divider bars ---- */

.r-dark  { height: 2px; background: #3A3A3A; }
.r-light { height: 1px; background: #6E6E6E; }
.r-gap   { height: 24px; background: #C0C0C0; }

/* ---- content column ---- */

.content {
  padding: 0 18px;
  vertical-align: top;
}

h1 {
  margin: 0 0 12px;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #141414;
}

h2 {
  margin: 18px 0 8px;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #141414;
  border-bottom: 1px solid #6E6E6E;
  padding-bottom: 2px;
  scroll-margin-top: 12px;
}

h2:first-child {
  margin-top: 4px;
}

p {
  margin: 0 0 12px;
}

strong {
  color: #000000;
}

/* framed photo, floated right */
.intro::after {
  content: "";
  display: block;
  clear: both;
}

.intro img {
  float: right;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid #3A3A3A;
  margin: 4px 0 12px 16px;
}

/* ---- services ---- */

.services {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 14px;
  font-size: 12px;
}

.services th {
  padding: 4px 6px;
  background: #AFAFAD;
  border: 1px solid #3A3A3A;
  color: #000000;
  text-align: left;
  font-weight: bold;
}

.services td {
  padding: 4px 6px;
  border: 1px solid #6E6E6E;
  vertical-align: top;
  color: #1F1F1F;
}

/* ---- sidebar ---- */

.sidebar {
  width: 250px;
  padding: 14px 12px;
  border-left: 1px solid #3A3A3A;
  background: #E8E8E6;
  vertical-align: top;
}

.box {
  margin-bottom: 12px;
  border: 1px solid #3A3A3A;
  background: #E8E8E6;
}

.boxtitle {
  padding: 3px 8px;
  background: #AFAFAD;
  border-bottom: 1px solid #3A3A3A;
  color: #000000;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.boxbody {
  padding: 8px 9px;
  color: #1F1F1F;
  font-size: 11px;
  line-height: 1.8;
}

/* ---- footer bar ---- */

.pagefoot {
  padding: 8px 12px;
  background: #E8E8E6;
  border-top: 1px solid #3A3A3A;
  color: #333333;
  font-size: 11px;
  text-align: center;
}

.pagefoot a {
  color: #1F1F1F;
}

@media (max-width: 940px) {
  .frame {
    width: 100%;
  }
  .navbtn {
    flex: 1 1 0;
    padding: 7px 0;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #3A3A3A;
  }
  .intro img {
    float: none;
    margin: 0 0 12px 0;
  }
  .masthead .tagline {
    display: block;
    padding-left: 0;
  }
  .navbtn {
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 6px 0;
  }
  .content {
    padding: 0 10px;
  }
  /* sidebar flips above the content so contact info is seen first */
  table.frame tr.mainrow {
    display: flex;
    flex-direction: column-reverse;
  }
  td.content,
  td.sidebar {
    display: block;
    width: auto !important;
  }
  td.sidebar {
    border-left: none;
    border-top: none;
    border-bottom: 1px solid #3A3A3A;
  }
}

/* ---- mobile: tables become stacked cards ---- */

@media (max-width: 640px) {
  table.services {
    display: block;
    border: none;
  }
  table.services thead {
    display: none;
  }
  table.services tr {
    display: block;
    margin: 0 0 10px;
    border: 1px solid #3A3A3A;
    background: #E8E8E6;
  }
  table.services td {
    display: block;
    border: none;
    border-bottom: 1px solid #6E6E6E;
    padding: 4px 8px;
  }
  table.services td:last-child {
    border-bottom: none;
  }
  table.services td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333333;
    margin-bottom: 1px;
  }
  td[data-label=""]::before {
    content: none;
  }
}

/* ---- client portal forms ---- */

/* hidden bot-trap fields (class, not inline style — CSP blocks style="") */
.offscreen {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  overflow: hidden;
}

.content form label {
  display: block;
  margin: 0 0 10px;
}

.namefields {
  display: flex;
  gap: 10px;
}

.namefields label {
  flex: 1;
  margin: 0 0 10px;
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  font: inherit;
  color: #1F1F1F;
  background: #FFFFFF;
  border: 1px solid #3A3A3A;
  padding: 4px 6px;
  width: 100%;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input[type="submit"] {
  font: inherit;
  background: #AFAFAD;
  color: #000000;
  border: 1px solid #3A3A3A;
  padding: 4px 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  background: #C2C2C0;
}

/* inline text-style buttons (accept/decline/delete) */
button.linkbtn {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: #1F1F1F;
  text-decoration: underline;
  cursor: pointer;
}

button.linkbtn:hover,
button.linkbtn:focus-visible {
  color: #000000;
  background: #DADAD8;
}

@media (max-width: 640px) {
  .namefields {
    flex-direction: column;
    gap: 0;
  }
}
