/* MTN-SEA Agency — brand stylesheet for all lean Bootstrap pages
   (index.html is the exception: it keeps the legacy theme's main.css/vendor.css
   for the WebGL hero slider and is not affected by this file). */

/* ==========================================================================
   MTN-SEA BRAND PALETTE
   Mountain + sea concept: deep night-sky navy, sea teal, warm sand,
   and a soft rain-grey (approximating Sherwin-Williams "Rain" SW 6219 —
   one of my favorite paint colors).
   ========================================================================== */
:root {
  color-scheme: light;
  --mtnsea-navy: #0f2438;
  --mtnsea-navy-dark: #0a1826;
  --mtnsea-teal: #248681;
  --mtnsea-teal-light: #2fb0aa;
  --mtnsea-sand: #e8dcc8;
  --mtnsea-sand-tint: #f6f1e7;
  --mtnsea-rain: #c7d1d3;
  --mtnsea-rain-dark: #8fa0a3;
  --mtnsea-rain-tint: #eef3f3;
  --mtnsea-white: #f7f8f6;
  --mtnsea-body-bg: #dee2e6a1;
  --mtnsea-text: #23303a;
  --font-display: "Cinzel", serif;
  --font-body: "Raleway", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--mtnsea-text);
  background-color: var(--mtnsea-body-bg);
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

a {
  color: var(--mtnsea-teal);
}
a:hover {
  color: var(--mtnsea-teal-light);
}
.text-mtnsea {
  color: var(--mtnsea-teal);
}

/* Navbar */
.navbar-mtnsea {
  background-color: var(--mtnsea-navy);
}
.navbar-mtnsea .navbar-brand {
  font-family: var(--font-display);
  color: var(--mtnsea-white);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
}
.navbar-mtnsea .navbar-brand span {
  color: var(--mtnsea-teal-light);
}
.navbar-mtnsea .nav-link {
  color: rgba(247, 248, 246, 0.85);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.navbar-mtnsea .nav-link:hover,
.navbar-mtnsea .nav-link.active {
  color: var(--mtnsea-teal-light);
}

/* Homepage-only variant: blends into the hero image instead of a hard-edged bar */
.navbar-mtnsea-hero {
  background: linear-gradient(to bottom, rgba(10, 24, 38, 0.75) 0%, rgba(10, 24, 38, 0.35) 60%, rgba(10, 24, 38, 0) 100%);
  transition: background-color 0.3s ease;
}
.navbar-mtnsea-hero.navbar-scrolled {
  background: var(--mtnsea-navy);
}

/* Buttons */
.btn-mtnsea {
  background-color: var(--mtnsea-teal);
  border-color: var(--mtnsea-teal);
  color: var(--mtnsea-white);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.65rem 1.75rem;
  border-radius: 35px;
}
.btn-mtnsea:hover,
.btn-mtnsea:active,
.btn-mtnsea:focus {
  background-color: var(--mtnsea-teal-light);
  border-color: var(--mtnsea-teal-light);
  color: var(--mtnsea-white);
  box-shadow: 0 0 0 0.2rem rgba(27, 122, 140, 0.35);
}
.btn-mtnsea-outline {
  background-color: transparent;
  border: 1px solid var(--mtnsea-white);
  color: var(--mtnsea-white);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.65rem 1.75rem;
  border-radius: 35px;
}
.btn-mtnsea-outline:hover,
.btn-mtnsea-outline:active,
.btn-mtnsea-outline:focus {
  background-color: var(--mtnsea-white);
  color: var(--mtnsea-navy);
  box-shadow: 0 0 0 0.2rem rgba(247, 248, 246, 0.35);
}

/* Homepage WebGL hero heading — text-shadow for legibility over bright/busy photos */
.slider__heading {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* Scroll cue between About Me and Selected Work -- matches the thin
   circle/arrow style of the hero slider's own nav arrows, purely
   decorative (no click behavior). The circle stays static/always visible;
   only the line and arrowhead grow and fade, animated via SMIL directly
   on the SVG (see index.html). */
.section-scroll-cue {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.section-scroll-cue svg {
  display: block;
  margin: 0 auto;
}
@media (prefers-reduced-motion: reduce) {
  .section-scroll-cue svg line,
  .section-scroll-cue svg g {
    opacity: 1 !important;
  }
}

/* Discover / Experience / Optimize strip -- each word slides in from the
   left, staggered (transition-delay set inline per word), once the strip
   scrolls into view. JS toggles .in-view on .approach-strip; see index.html. */
.approach-word {
  display: inline-block;
  color: var(--mtnsea-white);
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.approach-strip.in-view .approach-word {
  opacity: 1;
  transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
  .approach-word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Light variant — same glass effect, navy-tinted, for use on light backgrounds
   like the Selected Work section (white-tinted glass wouldn't show up there) */
.liquid-card-light {
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem;
  background-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 36, 56, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.liquid-card-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}
.liquid-card-light:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 36px rgba(15, 36, 56, 0.16), 0 0 0 1px rgba(27, 122, 140, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.liquid-card-light > * {
  position: relative;
  z-index: 1;
}

/* Soft gradient-blob backdrop for sections holding liquid glass cards --
   a flat solid background gives backdrop-filter blur nothing to actually
   blur, so the glass cards on top of it read as flat tint instead of glass.
   This adds gentle color depth (teal/navy/sand) for real contrast. */
.liquid-bg-section {
  position: relative;
  background-color: var(--mtnsea-rain-tint);
  /* Fixed px anchors/sizes (not height-relative %) so the blobs look the
     same on a short section (homepage, one row of cards) and a tall one
     (portfolio, several rows) instead of stretching/diluting on the latter. */
  background-image:
    radial-gradient(circle 320px at 12% 200px, rgba(36, 134, 129, 0.16) 0%, transparent 100%),
    radial-gradient(circle 340px at 88% 120px, rgba(15, 36, 56, 0.12) 0%, transparent 100%),
    radial-gradient(circle 360px at 50% bottom, rgba(232, 220, 200, 0.35) 0%, transparent 100%),
    radial-gradient(circle, rgba(15, 36, 56, 0.07) 1px, transparent 1.4px);
  background-size: auto, auto, auto, 22px 22px;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}
/* Photo variant -- the first hero-slider image (lake-louise-2.jpg), heavily
   muted under a near-opaque rain-tint overlay so it reads as a soft,
   on-brand mountain + sea backdrop rather than a competing photo. */
.liquid-bg-section.liquid-bg-section--photo {
  background-image:
    linear-gradient(rgba(238, 243, 243, 0.85), rgba(238, 243, 243, 0.85)),
    url("../img/general/lake-louise-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Darker top-fade version of the photo backdrop -- one continuous background
   wrapping BOTH the About Me and Selected Work sections (see index.html),
   so there's a single photo/gradient render instead of two independently
   "background-size: cover"-cropped layers that would visibly not line up
   at the seam. Opens on #111111 -- the exact black the hero's own section
   uses (.bg-dark-1 in main.css) -- so the top of this section matches the
   hero, then eases into the navy blue by ~450px (about half of About Me's
   content), then fades out the rest of the way through Selected Work's
   card row. Fixed px stops (not %) so this holds regardless of exact
   content height. */
.liquid-bg-section.liquid-bg-section--photo-dark {
  background-image:
    linear-gradient(to bottom, #000000 0px, #000000 200px, rgb(10 24 38 / 97%) 450px, rgb(10 24 38 / 65%) 700px, rgb(10 24 38 / 45%) 900px, rgba(10, 24, 38, 0.2) 1100px, rgba(10, 24, 38, 0.05) 1300px, transparent 1450px),
    linear-gradient(rgba(238, 243, 243, 0.85), rgba(238, 243, 243, 0.75)),
    url("../img/general/lake-louise-2.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
/* Glass tiles, scoped to .liquid-bg-section only so blog.html's plain
   .project-card cards (same class, different page) are unaffected. */
.liquid-bg-section .project-card {
  border-radius: 1.5rem;
  background-color: rgba(15, 36, 56, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 24px rgba(15, 36, 56, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(15, 36, 56, 0.08),
    inset -1px 0 0 rgba(15, 36, 56, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.liquid-bg-section .project-card:hover {
  background-color: rgba(15, 36, 56, 0.08);
  box-shadow:
    0 14px 32px rgba(15, 36, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 1px 0 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(15, 36, 56, 0.08),
    inset -1px 0 0 rgba(15, 36, 56, 0.05);
}
/* The text/badge area needs its own contrast layer -- the card-wide tint
   above is tuned to match the homepage's edge/frame look, which is too
   faint for a dense block of title + paragraph + badges to read against. */
.liquid-bg-section .project-card .card-body {
  background-color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.2s ease;
}
.liquid-bg-section .project-card:hover .card-body {
  background-color: rgba(255, 255, 255, 0.72);
}

/* Video hero (About page) — plain iframe + CSS, no jQuery plugin needed */
.video-hero {
  position: relative;
  height: 65vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mtnsea-white);
}
.video-hero__bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* Oversize the iframe to a fixed 16:9 ratio bigger than the viewport in both
   dimensions, so YouTube's own letterboxing never shows — only the "cover"
   crop from overflow:hidden above is visible. */
.video-hero__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;   /* 16:9 -> height = width * 9/16 */
  min-height: 100vh;
  min-width: 177.78vh; /* 16:9 -> width = height * 16/9 */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 38, 0.68);
}
.video-hero__content {
  position: relative;
  z-index: 2;
}

/* Page banner (used on inner pages instead of the WebGL hero) */
.page-banner {
  background: linear-gradient(135deg, var(--mtnsea-navy) 0%, var(--mtnsea-navy-dark) 100%);
  color: var(--mtnsea-white);
  padding: 6rem 0 4rem;
}
.eyebrow {
  color: var(--mtnsea-teal-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Project / portfolio cards */
.project-card {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 18px rgba(15, 36, 56, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15, 36, 56, 0.14);
}
.project-card__cover {
  position: relative;
  background-color: rgba(36, 134, 129, 0.02);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  color: var(--mtnsea-teal);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  overflow: hidden;
  transition: color 0.35s ease, background-color 0.35s ease;
}
/* Gradients (background-image) don't reliably animate in browsers, so the
   hover swap crossfades a second gradient layer via opacity instead, which
   transitions smoothly everywhere. Kept translucent (not solid) so the
   glass look holds on hover too. */
.project-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 36, 56, 0.55) 0%, rgba(36, 134, 129, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.project-card__cover > * {
  position: relative;
  z-index: 1;
}
.project-card:hover .project-card__cover {
  color: var(--mtnsea-white);
}
.project-card:hover .project-card__cover::before {
  opacity: 1;
}
.badge-stack {
  background-color: rgba(27, 122, 140, 0.12);
  color: var(--mtnsea-teal);
  font-weight: 600;
  margin: 0.15rem 0.25rem 0.15rem 0;
  padding: 0.35em 0.65em;
}

/* Lighthouse score badges */
.lighthouse-score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 5px solid;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 0.5rem;
}
.lighthouse-score.score-good {
  border-color: #0cce6b;
  color: #0cce6b;
  background-color: rgba(12, 206, 107, 0.08);
}
.lighthouse-score.score-average {
  border-color: #ffa400;
  color: #ffa400;
  background-color: rgba(255, 164, 0, 0.08);
}
.lighthouse-score.score-poor {
  border-color: #ff4e42;
  color: #ff4e42;
  background-color: rgba(255, 78, 66, 0.08);
}
.lighthouse-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.lighthouse-pill.score-good {
  background-color: rgba(12, 206, 107, 0.12);
  color: #0cce6b;
}
.lighthouse-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  display: inline-block;
}
.lighthouse-label {
  font-size: 0.8rem;
  color: var(--mtnsea-text);
}

/* Stat counters */
.stat-block .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--mtnsea-teal);
  font-weight: 700;
}
.stat-block .stat-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--mtnsea-text);
}

/* AEO "Quick Answers" blocks — soft blue, calm and legible for scannable Q&A content */
.answer-block {
  background-color: #1b7a8c1f;
  border-left: 4px solid var(--mtnsea-navy);
  padding: 1.25rem 1.5rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}
.answer-block dt {
  font-weight: 700;
  color: var(--mtnsea-navy);
}
.answer-block dd {
  margin-bottom: 0;
  color: var(--mtnsea-text);
}

/* Illustrative "glass contrast" demo -- used once, in
   blog/liquid-glass-ui-accessibility.html. Two identical frames (same photo
   crop, same glass card style); the only difference is whether the text has
   its own solid backing layer, to show the fix rather than just describe it. */
.glass-demo__frame {
  position: relative;
  height: 220px;
  background-image: url("../img/general/lake-louise-2.jpg");
  background-position: 50% 15%;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.glass-demo__card {
  width: 100%;
  max-width: 280px;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.glass-demo__tag {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.glass-demo__text {
  color: #fff;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
/* The fix: a darker, more opaque glass tint on the card itself -- still
   translucent glass (same blur/border/shadow treatment), just enough
   contrast behind the text to actually read regardless of the photo. */
.glass-demo__card--fixed {
  background-color: rgba(8, 15, 24, 0.62);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Illustrative type-contrast demo -- used once, in
   blog/color-contrast-war.html. Same headline/body copy, same font family
   and layout, styled two ways: the thin/pale treatment that's become a
   design trend, versus the same content with real weight and contrast. */
.contrast-demo__panel {
  height: 100%;
  padding: 2rem 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 36, 56, 0.08);
  background-color: #fff;
}
.contrast-demo__tag {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--mtnsea-teal);
  margin-bottom: 0.75rem;
}
.contrast-demo__heading {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.contrast-demo__body {
  margin: 0;
}
.contrast-demo__panel--bad .contrast-demo__heading {
  font-weight: 300;
  color: #949494;
}
.contrast-demo__panel--bad .contrast-demo__body {
  font-weight: 300;
  color: #9e9e9e;
}
.contrast-demo__panel--good .contrast-demo__heading {
  font-weight: 700;
  color: var(--mtnsea-navy);
}
.contrast-demo__panel--good .contrast-demo__body {
  font-weight: 400;
  color: var(--mtnsea-text);
}

/* Blog sidebar */
.blog-sidebar .widget {
  background-color: #fff;
  border-radius: 0.5rem;
  border-top: 3px solid var(--mtnsea-teal);
  box-shadow: 0 8px 24px rgba(15, 36, 56, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-sidebar .widget h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mtnsea-navy);
  margin-bottom: 1rem;
}
.category-filter button {
  background: none;
  border: 1px solid var(--mtnsea-teal);
  color: var(--mtnsea-teal);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  margin: 0 0.4rem 0.5rem 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.category-filter button.active,
.category-filter button:hover {
  background: var(--mtnsea-teal);
  color: #fff;
}
.recent-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-posts-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(15, 36, 56, 0.08);
}
.recent-posts-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recent-posts-list li:first-child {
  padding-top: 0;
}
.recent-posts-list .post-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1b6560;
  display: block;
  margin-bottom: 0.15rem;
}
.recent-posts-list a {
  color: var(--mtnsea-navy-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.recent-posts-list a:hover {
  color: var(--mtnsea-teal);
}

/* Footer */
.footer-mtnsea {
  background-color: var(--mtnsea-navy-dark);
  color: var(--mtnsea-rain);
  padding: 3.5rem 0 1.5rem;
}
.footer-mtnsea p {
  color: var(--mtnsea-rain);
}
.footer-mtnsea a {
  color: var(--mtnsea-white);
  text-decoration: none;
}
.footer-mtnsea a:hover {
  color: var(--mtnsea-teal-light);
}
.footer-mtnsea h5 {
  font-family: var(--font-display);
  color: var(--mtnsea-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-mtnsea .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(247, 248, 246, 0.3);
  border-radius: 50%;
  margin-right: 0.5rem;
}
.footer-mtnsea .copyright {
  border-top: 1px solid rgba(247, 248, 246, 0.15);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}
