:root {
  --color-light: #f4f7f8;
  --color-dark: #041315;
  --color-hover: #73F3E1;
}

/* ── Skip link ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--color-dark);
  color: var(--color-light);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

html {
  background-color: var(--color-dark);
}

body {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--color-dark);
  background-color: var(--color-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Rosario", sans-serif;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  background-color: #000000;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand img {
  height: 56px;
  width: auto;
}

@media (min-width: 576px) {
  .navbar-nav {
    gap: 60px;
  }
}

@media (min-width: 768px) {
  .navbar-nav {
    gap: 85px;
  }
}

.navbar-nav .nav-link {
  font-family: "Zen Maru Gothic", sans-serif;
  color: var(--color-light) !important;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding-left: 0;
  padding-right: 0;
  transition: opacity 0.2s ease;
}

.navbar-nav .nav-link:hover {
  opacity: 1;
  color: var(--color-hover) !important;
  text-decoration: underline;
  text-decoration-color: var(--color-hover);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.navbar-nav .nav-link.active {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: rgba(244, 247, 248, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.btn-reach-out {
  display: inline-block;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  background-color: var(--color-light);
  border: 1.5px solid var(--color-light);
  border-radius: 8px;
  padding: 0.4rem 1.4rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.btn-reach-out:hover {
  background-color: var(--color-hover);
  color: var(--color-dark);
  border-color: var(--color-hover);
}

/* Hamburger icon colour for dark bg */
.navbar-toggler {
  border-color: rgba(244, 247, 248, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28244,247,248,0.85%29' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ── Hero ───────────────────────────────────────────── */
#hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}

@media (min-width: 576px) {
  #hero {
    height: 480px;
  }
}

@media (min-width: 768px) {
  #hero {
    height: 560px;
  }
}

@media (min-width: 992px) {
  #hero {
    height: 650px;
  }
}

/* Carousel fills the full hero height */
#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100%;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Stationary text overlay — sits above the carousel */
#hero-text {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  pointer-events: none;
  text-align: center;
}

@media (min-width: 992px) {
  #hero-text {
    padding-bottom: 80px;
  }
}

#hero-text h1 {
  font-family: "Rosario", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

#hero-text p {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--color-light);
  letter-spacing: 0.06em;
  margin: 0;
}

/* Triangle prev/next controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  opacity: 1;
  z-index: 20;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: none;
}

.carousel-control-prev::after,
.carousel-control-next::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Left-pointing triangle */
.carousel-control-prev::after {
  border-width: 18px 14px 18px 0;
  border-color: transparent rgba(244, 247, 248, 0.75) transparent transparent;
}

/* Right-pointing triangle */
.carousel-control-next::after {
  border-width: 18px 0 18px 14px;
  border-color: transparent transparent transparent rgba(244, 247, 248, 0.75);
}

.carousel-control-prev:hover::after {
  border-color: transparent var(--color-light) transparent transparent;
}

.carousel-control-next:hover::after {
  border-color: transparent transparent transparent var(--color-light);
}

/* ── Hero accent bar ────────────────────────────────── */
#hero-bar {
  height: 20px;
  background-color: var(--color-dark);
}

/* ── Intro Section ──────────────────────────────────── */
#intro {
  background-image: url("../images/site/flower-background.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  text-align: center;
  padding: 90px 1.5rem;
}

#intro h2 {
  font-family: "Rosario", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 0.4rem;
}

#intro p {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--color-light);
  max-width: 360px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

#intro .btn-dark-fill {
  color: var(--color-dark);
  background-color: var(--color-light);
  border-color: var(--color-light);
}

#intro .btn-dark-fill:hover {
  background-color: var(--color-hover);
  color: var(--color-dark);
  border-color: var(--color-hover);
}

.btn-dark-fill {
  display: inline-block;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--color-light);
  background-color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
  border-radius: 8px;
  padding: 0.5rem 1.75rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-dark-fill:hover {
  background-color: var(--color-hover);
  color: var(--color-dark);
  border-color: var(--color-hover);
}

/* ── Portfolio Section ──────────────────────────────── */
#portfolio {
  background-color: var(--color-dark);
  padding: 90px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(275px, 32vw, 495px);
  gap: 12px;
}

.portfolio-tile {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.portfolio-tile.tile-2x {
  grid-column: span 2;
}

.portfolio-tile.tile-1x {
  grid-column: span 1;
}

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

.portfolio-tile:hover img {
  transform: scale(1.04);
}

/* Click effect — light flash overlay */
.portfolio-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 248, 0);
  transition: background 0.15s ease;
  pointer-events: none;
  z-index: 5;
}

.portfolio-tile:active::after {
  background: rgba(244, 247, 248, 0.25);
}

.portfolio-tile:active img {
  transform: scale(0.98);
}

/* Label overlay */
.tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.tile-label p {
  margin: 0;
  color: var(--color-light);
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.3;
}

.tile-label .tile-title {
  font-size: 0.85rem;
  font-weight: 500;
}

.tile-label .tile-type {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* Mobile: 2-column, 2x full width, 1x side by side */
@media (max-width: 575.98px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(180px, 45vw, 320px);
  }
  .portfolio-tile.tile-2x {
    grid-column: span 2;
  }
  .portfolio-tile.tile-1x {
    grid-column: span 1;
  }
}

/* Tablet: 2-column, 2x spans both */
@media (min-width: 576px) and (max-width: 767.98px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(220px, 38vw, 380px);
  }
  .portfolio-tile.tile-2x {
    grid-column: span 2;
  }
  .portfolio-tile.tile-1x {
    grid-column: span 1;
  }
}

/* ── CTA Section ────────────────────────────────────── */
#cta {
  background-color: var(--color-dark);
  text-align: center;
  padding: 0 1.5rem 90px 1.5rem;
}

#cta h2 {
  font-family: "Rosario", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 0.4rem;
}

#cta p {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1rem;
  color: var(--color-light);
  max-width: 360px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

/* ── Footer bar ─────────────────────────────────────── */
#footer-bar {
  height: 20px;
  background-image: url("../images/site/flower-background.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* ── Footer ─────────────────────────────────────────── */
#footer {
  background-color: #3F857B;
  padding: 50px 0 30px;
}

#footer .footer-logo img {
  height: 56px;
  width: auto;
}

.footer-rule {
  border: none;
  height: 2px;
  background-color: var(--color-light);
  opacity: 1;
  margin: 1.25rem 0 1.25rem;
  width: 100%;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.footer-nav a {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.875rem;
  color: var(--color-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-hover);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  align-items: flex-end;
}

.footer-social a {
  color: var(--color-light);
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.75;
  filter: brightness(0) saturate(100%) invert(88%) sepia(47%) saturate(500%) hue-rotate(115deg);
}

.footer-social img {
  width: 22px;
  height: 22px;
}

.footer-copyright {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.75rem;
  color: rgba(244, 247, 248, 0.5);
  text-align: center;
  margin-top: 2.5rem;
  letter-spacing: 0.04em;
}

/* Mobile footer stacking */
@media (max-width: 575.98px) {
  .footer-social {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
}

/* ── Mobile collapsed nav spacing */
@media (max-width: 575.98px) {
  .navbar-nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: center;
  }
  .navbar-nav .nav-link {
    padding-left: 0;
    padding-right: 0;
  }
  .btn-reach-out {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    box-sizing: border-box;
  }
}
