/*
 * theBleedingEdge — Shared Stylesheet
 * Version: 2.0  |  2026-05-15
 * Typeface: Raleway (local)
 * Primary accent: #cb2c39
 */

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --red:        #cb2c39;
  --red-light:  #d8949a;
  --red-grad:   linear-gradient(to bottom, #cb2c39, #d8949a);
  --dark:       #1a1a1a;
  --off-white:  #f8f8f8;
  --white:      #ffffff;
  --shadow:     0 4px 16px rgba(0, 0, 0, 0.55);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.40);
  --radius:     8px;
  --radius-sm:  4px;
  --gap:        32px;
}

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/Raleway-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/Raleway-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway/Raleway-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'digital';
  src: url('../fonts/digital/digital.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  background-color: var(--dark);
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover { text-decoration: none; }
a:focus { outline: 2px solid var(--red); outline-offset: 2px; }

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe { border: none; }

button {
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
}
button:focus { outline: none; }

/* ============================================================
   BACKGROUND SLIDESHOW
   ============================================================ */
.slide-bg {
  display: block;
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide-bg-item {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide-bg-item.active {
  opacity: 1;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px 20px;
  flex-wrap: nowrap;
}

/* Wordmark */
.wordmark {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -1px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--red);
}

#messenger {
  display: inline-block;
  color: var(--white);
  min-width: 120px;
  text-align: left;
}

/* Hamburger button */
.ham-btn {
  width: 33px;
  height: 33px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.ham-btn img {
  width: 33px;
  height: 33px;
  display: block;
}

/* Nav overlay */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: 0;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.97);
  overflow: hidden;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.site-nav.is-open {
  width: 280px;
}

.site-nav a {
  display: block;
  padding: 12px 32px;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  text-align: right;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav a.active {
  border-bottom: 2px solid var(--red);
  color: var(--red);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
  font-size: 11px;
  color: var(--red);
}

.site-footer a {
  color: var(--red);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--red-light);
}

/* ============================================================
   CONTENT PANELS (white cards on dark bg)
   ============================================================ */
.panel {
  background-color: var(--white);
  color: var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--gap);
}

.panel p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dark);
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.btn-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--red-grad);
  color: var(--white);
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--red);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-cta:hover {
  opacity: 0.88;
  box-shadow: 0 4px 20px rgba(203, 44, 57, 0.5);
  color: var(--white);
}

.btn-cta--ghost {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}

.btn-cta--ghost:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: none;
  opacity: 1;
}

/* ============================================================
   SECTION / PAGE CONTENT AREA
   ============================================================ */
.content-area {
  flex: 1;
  padding: 0 clamp(16px, 4vw, 60px) var(--gap);
}

.section-heading {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 32px;
  text-align: center;
}

.section-heading--dark {
  color: var(--dark);
}

.section-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  margin-top: -20px;
  margin-bottom: 32px;
}

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  text-align: center;
  padding: 40px 24px;
}

.hero__tagline {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(22px, 4vw, 44px);
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero__sub {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 2vw, 20px);
  color: rgba(255,255,255,0.70);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   FEATURED PROJECTS TEASER (Home page)
   ============================================================ */
.teaser-section {
  padding: 60px clamp(16px, 4vw, 60px);
}

.teaser-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.teaser-section__title {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--white);
  margin-bottom: 8px;
}

.teaser-section__see-all {
  display: inline-block;
  margin-top: 32px;
  font-size: 15px;
  color: var(--red);
  text-decoration: underline;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.teaser-section__see-all:hover {
  color: var(--red-light);
}

/* ============================================================
   PROJECT CARDS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.project-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__img-wrap img {
  transform: scale(1.04);
}

.project-card__body {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.project-card__name {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.3;
}

.badge-live {
  display: inline-block;
  background: var(--red-grad);
  color: var(--white);
  font-family: 'digital', monospace;
  font-size: 21px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(203,44,57,0.5);
  flex-shrink: 0;
  margin-left: 12px;
  letter-spacing: 1px;
}

.badge-countdown {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-family: 'digital', monospace;
  font-size: 16px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(203,44,57,0.3);
  flex-shrink: 0;
  margin-left: 12px;
  letter-spacing: 1px;
  width: 185px;
  text-align: center;
}

/* ============================================================
   ABOUT PAGE — alternating blocks
   ============================================================ */
.about-section {
  padding: 40px clamp(16px, 4vw, 60px) 60px;
}

.about-heading {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  text-align: center;
  margin-bottom: 48px;
}

.about-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gap);
  margin-bottom: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-block--reverse {
  flex-direction: row-reverse;
}

.about-block__img {
  flex: 0 0 35%;
  max-width: 35%;
  align-self: stretch;
}

.about-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-block__text {
  flex: 1;
  padding: 36px 40px 36px 36px;
}

.about-block--reverse .about-block__text {
  padding: 36px 36px 36px 40px;
}

.about-block__text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark);
  text-align: justify;
  margin-bottom: 16px;
}

.about-block__text p:last-child {
  margin-bottom: 0;
}

.about-block__text strong {
  color: var(--red);
  font-weight: 700;
}

.about-closing {
  text-align: center;
  margin-top: 48px;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--white);
  letter-spacing: 0.5px;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-section {
  padding: 40px clamp(16px, 4vw, 60px) 60px;
}

.products-heading {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--white);
  text-align: center;
  margin-bottom: 48px;
}

.product-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--gap);
  margin-bottom: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-block--reverse {
  flex-direction: row-reverse;
}

.product-block__img {
  flex: 0 0 40%;
  max-width: 40%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
}

.product-block__img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.product-block__text {
  flex: 1;
  padding: 36px 40px 36px 36px;
}

.product-block--reverse .product-block__text {
  padding: 36px 36px 36px 40px;
}

.product-block__name {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--red);
  margin-bottom: 20px;
}

.product-block__text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark);
  text-align: justify;
  margin-bottom: 16px;
}

.product-block__text p:last-of-type {
  margin-bottom: 20px;
}

.product-block__img-hint {
  font-size: 11px;
  color: var(--red);
  text-decoration: underline;
  text-align: center;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 40px clamp(16px, 4vw, 60px) 60px;
}

.contact-heading {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--white);
  text-align: center;
  margin-bottom: 48px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 380px;
}

.contact-card--reverse {
  flex-direction: row-reverse;
}

.contact-card__map {
  flex: 0 0 66.666%;
  max-width: 66.666%;
  overflow: hidden;
}

.contact-card__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-card__body {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card__city {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--red);
  margin-bottom: 16px;
}

.contact-card__address {
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--red);
  text-decoration: underline;
}

.contact-link img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #888;
  flex-shrink: 0;
}

.contact-link:hover {
  color: var(--dark);
}

/* ============================================================
   PROJECTS PORTFOLIO PAGE
   ============================================================ */
.portfolio-section {
  padding: 40px clamp(16px, 4vw, 60px) 60px;
}

.portfolio-heading {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--white);
  text-align: center;
  margin-bottom: 48px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 768px */
@media (max-width: 768px) {
  .wordmark { font-size: 42px; }

  .about-block,
  .about-block--reverse,
  .product-block,
  .product-block--reverse {
    flex-direction: column;
  }

  .about-block__img,
  .product-block__img {
    flex: none;
    max-width: 100%;
    width: 100%;
    align-self: auto;
  }

  .about-block__img {
    max-height: 260px;
    overflow: hidden;
  }

  .about-block__text,
  .about-block--reverse .about-block__text,
  .product-block__text,
  .product-block--reverse .product-block__text {
    padding: 24px;
  }

  .contact-card,
  .contact-card--reverse {
    flex-direction: column;
    height: auto;
  }

  .contact-card__map {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    height: 260px;
  }

  .contact-card__body {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .wordmark { font-size: 32px; }
  #messenger { min-width: 80px; }

  .site-header {
    padding: 24px 16px 16px;
  }

  .ham-btn,
  .ham-btn img {
    width: 27px;
    height: 27px;
  }

  .site-nav a {
    font-size: 22px;
    padding: 10px 24px;
  }

  .hero__tagline { font-size: 22px; }
  .hero__sub     { font-size: 12px; letter-spacing: 2px; }

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

  .teaser-section { padding: 40px 16px; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-section,
  .products-section,
  .contact-section,
  .portfolio-section {
    padding: 24px 16px 40px;
  }

  .about-block__text p,
  .product-block__text p {
    font-size: 14px;
  }

  .product-block__img {
    padding: 16px;
  }

  .contact-card__body {
    padding: 16px 20px;
  }
}

/* Large / wide — minimum layout cap */
@media (min-width: 1280px) {
  .content-area,
  .teaser-section,
  .about-section,
  .products-section,
  .contact-section,
  .portfolio-section {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   FES OPEN BUTTON (replaces the old <a> wrapper)
   ============================================================ */
.fes-open-btn {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.fes-open-btn:focus {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ============================================================
   FES DETAIL MODAL
   ============================================================ */
.fes-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fes-modal[hidden] {
  display: none;
}

.fes-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.fes-modal__panel {
  position: relative;
  z-index: 1;
  background: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.fes-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #cb2c39;
  cursor: pointer;
  line-height: 1;
}

.fes-modal__close:hover {
  color: #ffffff;
}

.fes-modal__title {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 26px);
  color: #cb2c39;
  margin-bottom: 20px;
  text-align: center;
}

.fes-modal__title span {
  color: #ffffff;
}

.fes-modal__img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  display: block;
}
