/* rgb72 public site — shared dark theme, ported from the former Vue/Vuetify SPA pages */

body {
  background: #111;
  color: #fff;
}

/* overwrite from materialize.css */
nav {
  line-height: initial;
}

/* 👉 Logo */
.rgb72-logo__badge {
  fill: #fff;
}

.rgb72-logo__ink {
  fill: #000;
}

.rgb72-logo__outline {
  fill: none;
}

.rgb72-logo__tagline {
  fill: #fff;
}

.rgb72-logo--dark .rgb72-logo__badge {
  fill: #231f20;
}

.rgb72-logo--dark .rgb72-logo__ink {
  fill: #67c9da;
}

.rgb72-logo--dark .rgb72-logo__outline {
  fill: #fff;
}

.rgb72-logo--dark .rgb72-logo__tagline {
  fill: #111;
}

/* 👉 Home — fixed header */

/* Materialize styles every <nav> with its primary color and a fixed height
   by default — override both since .home-nav floats transparently over the
   full-bleed photos rather than being a conventional site navbar. */
.home-nav {
  position: fixed;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  block-size: auto;
  box-shadow: none;
  inset-block-start: 0;
  inset-inline: 0;
  padding-block: 24px;
  padding-inline: 24px;
}

.home-nav .home-logo {
  block-size: 80px;
}

.home-nav-link {
  position: relative;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 2;

  /* padding-block-end: 2px; */
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.home-nav-link.is-dark {
  color: #111;
}

.home-nav-link::after {
  position: absolute;
  background: currentcolor;
  block-size: 1px;
  content: '';
  inline-size: 100%;
  inset-block-end: -1px;
  inset-inline-start: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-nav-link:hover {
  color: #fff;
}

.home-nav-link.is-dark:hover {
  color: #111;
}

.home-nav-link:hover::after {
  transform: scaleX(1);
}

/* 👉 Home — fullscreen scroll-snap sections */
.rgb72-home {
  background: #111;
  color: #fff;
}

.project-scroll {
  display: flex;
  flex-direction: column;
  block-size: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.project-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-shrink: 0;
  align-items: flex-end;
  background: #222;
  block-size: 100vh;
  padding-block: 48px;
  padding-inline: 24px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .project-panel {
    padding-inline: 96px;
  }
}

.project-panel .project-photo {
  position: absolute;
  block-size: 100%;
  inline-size: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15);
  transition:
    opacity 1.4s ease,
    transform 6s ease;
}

.project-panel.in-view .project-photo.project-photo-active {
  opacity: 1;
  transform: scale(1);
}

.project-panel:hover .project-photo.project-photo-active {
  transform: scale(1.06);
  transition: transform 0.8s ease;
}

.project-panel::after {
  position: absolute;
  background: linear-gradient(to top, rgb(0 0 0 / 70%), rgb(0 0 0 / 0%) 55%);
  content: '';
  inset: 0;
}

.project-caption {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease 0.15s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.project-panel.in-view .project-caption {
  opacity: 1;
  transform: translateY(0);
}

.project-category {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.85;
  text-transform: uppercase;
}

.project-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  margin-block-start: 6px;
  max-inline-size: 600px;
}

.project-description {
  font-size: 14px;
  line-height: 1.6;
  margin-block-start: 12px;
  max-inline-size: 460px;
  opacity: 0.85;
}

.project-divider {
  background: #fff;
  block-size: 2px;
  inline-size: 64px;
  margin-block-start: 24px;
}

@media (min-width: 768px) {
  .project-divider {
    inline-size: 160px;
  }
}

.project-index {
  margin-block-end: 8px;
  font-size: 13px;
  opacity: 0.8;
}

.progress-nav {
  position: fixed;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  inset-block-start: 50%;
  inset-inline-end: 16px;
  transform: translateY(-50%);
}

.progress-dot {
  border-radius: 50%;
  background: #fff;
  block-size: 6px;
  inline-size: 6px;
  opacity: 0.35;
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.progress-dot.is-active {
  opacity: 1;
  transform: scale(1.6);
}

.progress-dot:hover {
  opacity: 0.7;
  transform: scale(1.3);
}

.progress-dot.is-active:hover {
  opacity: 1;
  transform: scale(1.6);
}

/* 👉 Home — footer */
.home-footer {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #000;
  gap: 16px 40px;
  padding-block: 32px;
  padding-inline: 40px;
  scroll-snap-align: end;
}

.home-footer-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.7;
}

.home-footer-contact {
  display: flex;
  font-size: 12px;
  gap: 16px;
  opacity: 0.7;
}

.home-footer-social {
  display: flex;
  gap: 16px;
}

.home-footer-social a {
  position: relative;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.home-footer-social a::after {
  position: absolute;
  background: currentcolor;
  block-size: 1px;
  content: '';
  inline-size: 100%;
  inset-block-end: -3px;
  inset-inline-start: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.home-footer-social a:hover {
  opacity: 1;
}

.home-footer-social a:hover::after {
  transform: scaleX(1);
}

/* 👉 Contact page */
.rgb72-contact {
  background: #111;
  color: #fff;
  min-block-size: 100vh;
}

.contact-nav {
  padding: 24px;
  background: transparent;
  block-size: auto;
  box-shadow: none;
}

.contact-logo {
  display: inline-block;
  text-decoration: none;
}

.contact-logo svg {
  display: block;
  block-size: 80px;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-block: 0;
  margin-inline: auto;
  max-inline-size: 1100px;
  padding-block: 24px 80px;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .contact-layout {
    flex-direction: row;
    column-gap: 60px;
    padding-block-start: 24px;
  }

  .contact-sidebar {
    flex: 0 0 280px;
    padding-block-start: 16px;
  }

  .contact-form-column {
    flex: 1;
  }
}

@media (min-width: 992px) {
  .contact-layout {
    column-gap: 120px;
    padding-block-start: 64px;
  }
  .contact-sidebar {
    flex: 0 0 280px;
    padding-block-start: 16px;
  }
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-section-heading {
  border-block-end: 1px solid rgb(255 255 255 / 30%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4em;
  margin-block-end: 16px;
  padding-block-end: 12px;
  text-transform: uppercase;
}

.contact-address {
  color: rgb(255 255 255 / 85%);
  font-size: 15px;
  line-height: 1.7;
  margin-block-end: 20px;
}

.contact-link-list {
  display: flex;
  flex-direction: column;
  align-items: start;
  font-size: 14px;
  gap: 8px;
  margin-block-end: 20px;
}

.contact-link-list:last-child {
  margin-block-end: 0;
}

.contact-link-list a {
  position: relative;
  display: inline-block;
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-link-list a::after {
  position: absolute;
  background: currentcolor;
  block-size: 1px;
  content: '';
  inline-size: 100%;
  inset-block-end: -3px;
  inset-inline-start: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-link-list a:hover {
  opacity: 1;
}

.contact-link-list a:hover::after {
  transform: scaleX(1);
}

.contact-form-column h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin-block-end: 32px;
  max-inline-size: 640px;
}

/* Materialize's default input skin assumes a light background — override
   the underline/label/text colors to work on the dark rgb72 background. */
.contact-form-column .input-field {
  margin-block: 2rem;
}
.contact-form-column .input-field label {
  color: rgb(255 255 255 / 70%);
}

.contact-form-column .input-field input[type='text'],
.contact-form-column .input-field input[type='email'],
.contact-form-column .input-field textarea,
.contact-form-column .select-wrapper input.select-dropdown {
  border-block-end: 1px solid rgb(255 255 255 / 40%);
  color: #fff;
}

.contact-form-column .input-field input[type='text']:focus,
.contact-form-column .input-field input[type='email']:focus,
.contact-form-column .input-field textarea:focus {
  border-block-end: 1px solid #fff !important;
  box-shadow: 0 1px 0 0 #fff !important;
}

.contact-form-column .input-field input[type='text']:focus + label,
.contact-form-column .input-field input[type='email']:focus + label,
.contact-form-column .input-field textarea:focus + label {
  color: #fff;
}

.contact-submit-btn {
  border: 1px solid #fff;
  background-color: transparent !important;
  box-shadow: none;
  letter-spacing: 0.1em;
  margin-block-start: 8px;
  text-transform: uppercase;
}

.contact-submit-btn:hover {
  background-color: rgb(255 255 255 / 10%) !important;
}

.graphic-map-overlay {
  position: fixed;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(0 0 0 / 70%);
  inset: 0;
}

.graphic-map-modal {
  position: relative;
  background: #111;
  inline-size: 100%;
  max-inline-size: 720px;
}

.graphic-map-modal img {
  display: block;
  inline-size: 100%;
}

.graphic-map-close-btn {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 50%);
  block-size: 32px;
  color: #fff;
  font-size: 22px;
  inline-size: 32px;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  line-height: 1;
  text-decoration: none;
}

.graphic-map-close-btn:hover {
  background: rgb(0 0 0 / 70%);
}
