/* =========================================================
   site.css — Ted Erler Design
   Light, readable, high-contrast theme (v5)
   Fixes dark dropdown + light box text + adds readability wrapper
   ========================================================= */

/* ---------------------------
   GLOBAL BASE
----------------------------*/

html,
body {
  background-color: #fafafa;
  color: #0d0d0d; /* full dark gray for max contrast */
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.75;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* limit line width on large screens for readability */
.readable {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* text content */
.content p,
.box p,
.card p {
  color: #0d0d0d;
  margin-bottom: 1.2em;
}
.content ul,
.box ul,
.card ul {
  color: #0d0d0d;
  margin-top: 0.5em;
  margin-bottom: 1.2em;
}

/* Headings */
.title,
.subtitle {
  color: #000;
  letter-spacing: -0.015em;
  line-height: 1.25;
  font-weight: 700;
}

.title.is-1 { font-size: 2.8rem; }
.title.is-2 { font-size: 2.4rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.6rem; }
.title.is-5 { font-size: 1.3rem; }
.title.is-6 { font-size: 1.1rem; }

.subtitle.is-5 { font-size: 1.25rem; color: #111; }

/* smaller utility text */
.is-size-7 {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #111;
}

/* Links (global) */
a {
  color: #005b87;
  text-decoration: none;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:hover {
  color: #008dc3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------
   NAVIGATION BAR
----------------------------*/

.navbar.is-light {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eaeaea;
}

/* top-level nav items */
.navbar-item,
.navbar-link {
  color: #111 !important;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 0.85rem 1.25rem;
}

.navbar-item:hover,
.navbar-link:hover {
  background-color: #f3f3f3 !important;
  color: #000 !important;
}

.navbar-item.is-active,
.navbar-link.is-active {
  color: #0074a8 !important;
  font-weight: 600;
}

/* dropdown — FIXED */
.navbar-dropdown {
  background-color: #ffffff !important;
  border-top: 1px solid #eee;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
}
.navbar-dropdown .navbar-item {
  color: #0d0d0d !important;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  background-color: #ffffff !important;
}
.navbar-dropdown .navbar-item:hover {
  background-color: #f3f3f3 !important;
  color: #000 !important;
}
.navbar-dropdown .navbar-item.is-active {
  color: #0074a8 !important;
  font-weight: 600;
}
/* extra insurance: override Bulma mobile black menu */
.navbar-menu.is-active {
  background-color: #fff !important;
}

/* burger icon */
.navbar-burger span {
  background-color: #111;
}

/* ---------------------------
   BUTTONS
----------------------------*/

.button {
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.button.is-primary {
  background-color: #0074a8;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.button.is-primary:hover {
  background-color: #0096d0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.button.is-light {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #0d0d0d;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.button.is-light:hover {
  background-color: #fdfdfd;
  border-color: #bbb;
  color: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ---------------------------
   CARDS / BOXES
----------------------------*/

.box,
.card {
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #0d0d0d; /* ensures all box text dark */
}

.box:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.09);
}

.card-header-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #000;
}

.card-footer-item {
  color: #005b87;
  font-weight: 600;
}
.card-footer-item:hover {
  color: #008dc3;
  background-color: #f9f9f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------
   SECTIONS / LAYOUT
----------------------------*/

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section.has-background-light {
  background-color: #f5f8fa;
  border-top: 1px solid #e9eef2;
  border-bottom: 1px solid #e9eef2;
}

.subtitle {
  line-height: 1.5;
  font-weight: 500;
  color: #0d0d0d;
}

/* ---------------------------
   FOOTER
----------------------------*/

.footer {
  background-color: #f9f9f9;
  color: #0d0d0d;
  border-top: 1px solid #eaeaea;
  padding: 3rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.footer p {
  color: #0d0d0d;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #005b87;
  font-weight: 600;
}
.footer a:hover {
  color: #008dc3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------
   ICON ALIGNMENT
----------------------------*/

.fa-circle-check {
  min-width: 1.1em;
  text-align: center;
  line-height: 1.1;
  vertical-align: text-top;
  position: relative;
  top: 0.1em;
}

/* ---------------------------
   RESPONSIVE TWEAKS
----------------------------*/

@media (max-width: 768px) {
  .title.is-2 { font-size: 2rem; }
  .subtitle.is-5 { font-size: 1.15rem; }
  .navbar-item,
  .navbar-link {
    font-size: 1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  body {
    font-size: 17px;
  }
}
/* --- ACCENT COLOR FOR SECTION LABELS (DEEPER TEAL) --- */
.box strong,
.card strong,
.content strong {
  color: #00685e; /* slightly darker warm teal */
  font-weight: 700;
}

.box h3,
.card h3 {
  color: #00685e;
  font-weight: 700;
}

.box .is-size-6,
.card .is-size-6 {
  color: #0d0d0d;
  line-height: 1.55;
}
/* =========================================================
   TED ERLER DESIGN ACCENT SYSTEM — DEEP TEAL PALETTE
   Harmonizes links, buttons, and highlights
   ========================================================= */

/* Core accent tones */
:root {
  --ted-teal: #00685e;
  --ted-teal-hover: #008376;
  --ted-teal-light: #e9f7f5;
}

/* Links */
a {
  color: var(--ted-teal);
  text-decoration: none;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:hover {
  color: var(--ted-teal-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons */
.button.is-primary {
  background-color: var(--ted-teal);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.button.is-primary:hover {
  background-color: var(--ted-teal-hover);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.button.is-light {
  background-color: #fff;
  border: 1px solid #ccc;
  color: var(--ted-teal);
}
.button.is-light:hover {
  background-color: var(--ted-teal-light);
  border-color: var(--ted-teal-hover);
  color: var(--ted-teal-hover);
}

/* Navbar active link */
.navbar-item.is-active,
.navbar-link.is-active {
  color: var(--ted-teal) !important;
  font-weight: 600;
}

/* Section labels & box headers */
.box strong,
.card strong,
.content strong,
.box h3,
.card h3 {
  color: var(--ted-teal);
  font-weight: 700;
}

/* Footer links */
.footer a {
  color: var(--ted-teal);
}
.footer a:hover {
  color: var(--ted-teal-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-header img {
  max-height: 90px;
  margin-right: 1.5rem;
}

.site-header .title {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-header .subtitle {
  color: #555;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}

.site-header {
  border-bottom: 1px solid #e5e5e5;
}

.site-header .title {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.site-header .subtitle {
  font-weight: 400;
  color: #666;
}

.navbar {
  border-bottom: 1px solid #e5e5e5;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.navbar-item,
.navbar-link {
  font-weight: 500;
  color: #444;
}

.navbar-item:hover,
.navbar-link:hover {
  color: #000;
  background-color: transparent;
}

.navbar-item.is-active,
.navbar-link.is-active {
  border-bottom: 2px solid #333;
  color: #000 !important;
}
/* --- NAV BAR TIGHTER STYLE --- */

.navbar {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e0e0e0;
  min-height: auto; /* overrides Bulma's default tall nav */
}

.navbar-item,
.navbar-link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.95rem; /* slightly smaller font */
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  margin-right: 0.25rem;
  color: #333;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.navbar-item:last-child {
  margin-right: 0;
}

.navbar-item:hover,
.navbar-link:hover {
  color: #000;
  background-color: transparent;
}

.navbar-item.is-active,
.navbar-link.is-active {
  border-bottom: 2px solid #000;
  color: #000 !important;
}

.navbar-dropdown {
  border-radius: 0;
  border-top: none;
}

.navbar .navbar-dropdown a.navbar-item {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
}
.navbar {
  margin-top: -0.25rem;
}
/* Consistent top hero spacing across all pages */
.hero-top {
  padding-top: 5rem !important;
  padding-bottom: 4rem !important;
}
/* ========== Mini Hero (safe) ========== */
/* === 200px-tall slider, images centered and contained === */
.ted-hero-wrap {
  width: 100%;
  background: transparent;
}

.ted-hero-slider {
  position: relative;
  width: 100%;
  height: 200px;                 /* total height of slider strip */
  overflow: hidden;
  background: transparent;       /* no background color */
  display: flex;
  align-items: center;           /* vertically center image */
  justify-content: center;       /* horizontally center image */
}

.ted-hero-stage {
  max-height: 175px;             /* never taller than 175px */
  width: auto;                   /* keep aspect ratio */
  object-fit: contain;           /* no distortion */
  background: transparent;
  transition: opacity .2s ease;
}

/* arrows */
.ted-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.ted-hero-prev { left: 8px; }
.ted-hero-next { right: 8px; }
.ted-hero-nav:focus-visible { outline: 2px solid #fff; }

/* no caption overlay */
.ted-hero-caption { display: none; }
/* === Multi-item thumbnail row slider (200px tall, imgs <=175px) === */
.ted-row-slider {
  position: relative;
  width: 100%;
  height: 200px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* prev | viewport | next */
  align-items: center;
  gap: .5rem;
  background: transparent;
}

.ted-row-viewport {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;      /* Firefox hide */
}
.ted-row-viewport::-webkit-scrollbar { display: none; } /* Chrome/Safari hide */

.ted-row-track {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 100%;
  padding: .25rem 0;
}

.ted-row-item {
  flex: 0 0 auto;
  height: 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
}

.ted-row-item img {
  max-height: 175px;    /* <= 175px as requested */
  width: auto;          /* keep aspect ratio */
  object-fit: contain;  /* no distortion */
  display: block;
  border-radius: 8px;
  background: transparent;
}

.ted-row-nav {
  border: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: #fff;
  cursor: pointer;
  line-height: 34px;
}
.ted-row-prev { justify-self: start; }
.ted-row-next { justify-self: end; }
.ted-row-nav:focus-visible { outline: 2px solid #000; }

#printRowTrack [data-slide-index]:hover {
  outline: 2px solid rgba(0,0,0,.1);
  cursor: pointer;
}
/* Wider modal so two columns breathe */
#workDetailsModal .modal-content {
  width: calc(100% - 2rem);
  max-width: 1000px; /* adjust 900–1200px to taste */
}

/* Keep content readable if descriptions get long */
#workDetailsModal .box {
  max-height: 80vh;
  overflow: auto;
}

/* Image sizing */
#workModalImg {
  display: block;
  width: 100%;
  height: auto;
}

/* Spacing on small screens when columns stack */
@media (max-width: 768px) {
  #workDetailsModal .modal-grid .column:first-child {
    margin-bottom: 1rem;
  }
}
#workModalImg { border: 1px solid rgba(0,0,0,.06); border-radius: 6px; }
/* --- Modal image styling --- */
#workDetailsModal .image {
  padding: 1.5rem;              /* space around the image */
  display: flex;
  justify-content: center;
  align-items: center;
}

#workModalImg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: rotate(-3deg);     /* slight tilt, try +3deg or -5deg to taste */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* subtle “straighten” hover animation */
#workModalImg:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* keep the modal content from touching edges */
#workDetailsModal .box {
  padding: 2rem;
}
/* --- Modal text column padding --- */
#workDetailsModal .modal-grid .column:last-child {
  padding: 3rem 3rem;      /* top/bottom, left/right */
}

/* keep title–description spacing tight and consistent */
#workDetailsModal #workModalTitle {
  margin-bottom: 0.75rem;    /* smaller gap than Bulma’s default */
}

/* optional: slightly more readable line spacing */
#workDetailsModal #workModalDesc {
  line-height: 1.5;
}
#workDetailsModal img {
  max-height: 80vh;   /* never taller than 80% of the viewport */
  max-width: 100%;    /* fits within modal width */
  width: auto;        /* preserve natural aspect ratio */
  height: auto;
  object-fit: contain; /* never distort */
}
/* Modal background fade-in */
.modal.is-active .modal-background {
  animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal content subtle scale-up */
.modal.is-active .modal-content {
  animation: modalContentIn 0.35s ease forwards;
  transform-origin: center center;
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Optional: a little fade-out if you close the modal via JS class removal */
.modal {
  transition: opacity 0.3s ease;
}
.modal:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}
.modal.is-active .modal-content {
  animation: modalFadeIn 0.6s ease-out forwards,
             modalContentIn 0.5s ease-out forwards;
}
/* Subtle spotlight + blur behind modal */
.modal-background {
  /* soft radial gradient fade + dark vignette */
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.4s ease;
}

/* When modal is active, make the effect slightly stronger */
.modal.is-active .modal-background {
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#workDetailsModal .buttons .is-hidden {
  display: none !important;
}

#workDetailsModal .buttons .is-hidden { display: none !important; }
