/* ------------------------------------------------- 
SHARE BUTTON
-------------------------------------------------- */
.share-row {
  margin-top: 1.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center; 
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.share-btn:hover {
  background:#33555a
}

/* ------------------------------------------------- 
READY SECTION BUTTONS
-------------------------------------------------- */

#ready .btn-blue {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top:20px;
}

#ready .btn-blue:hover {
  background: #103c58;
}

/* ------------------------------------------------- 
BUTTONS
-------------------------------------------------- */

.btn-blue {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-blue:hover {
  background: rgb(22, 100, 151);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  background: #111827;
  color: #f9fafb;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn span {
  font-size: 1.1rem;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}


/* ============================
   PROJECT CARD – IMAGE ONLY
============================ */


.project-card.image-only {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3; /* keeps cards from getting too tall */
}

.project-card.image-only img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}


/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.15)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem; /* was 1.5rem */
}

/* BIG title */
.project-overlay-title {
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
  padding: 0 0.75rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
  letter-spacing: -5px; 
  opacity: 0.95;
  max-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}



/* Hover polish */
.project-card.image-only:hover img {
  transform: scale(1.05);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-card-body {
  padding: 1rem 1.1rem 1.3rem;
}
.project-card-title {
  font-weight: 600;
  margin-bottom: .2rem;
}
.project-card-location {
  font-size: .9rem;
  color: #777;
}

.project-card {
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(0, 0, 0, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 213, 219, 0.8);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.project-card:hover::after {
  opacity: 1;
}

/* Image */
.project-card.image-only {
  position: relative;
  aspect-ratio: 5 / 4; /* was 4 / 3 */
  overflow: hidden;
  border-radius: 5px;
}

.project-card.image-only:hover img {
  transform: scale(1.06);
}

/* ============================
   FORMS
============================ */

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #f9fafb;
  outline: none;
  transition:
    border-color 160ms ease-out,
    box-shadow 160ms ease-out,
    background 160ms ease-out;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #9ca3af;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(211, 156, 31, 0.35);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  background: #111827;
  color: #f9fafb;
  border: 1px solid rgba(211, 156, 31, 0.85);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  z-index: 80;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e3e3e3
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.8rem;
  font-size: .95rem;
  border-radius: 6px;
  color: #333;
}

.form-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2.2rem;
  padding-inline: 1.5rem;
}

/* =========================================================
   TESTIMONIALS 
========================================================= */

.testimonials {
  margin-top: 1.5rem;
  position: relative;
  min-height: 350px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle, #ccc);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.testimonial-dot.active {
  background: var(--accent, #d39c1f);
}
/* Center testimonial dots */
.testimonial-nav {
  justify-content: center;
}

.testimonial-slide .section-lead{
  font-size:.8rem;
}

.testimonial-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonial-wrapper {
  transition: height 300ms ease;
}
.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms ease;
  transform: translateY(8px);
}

.testimonial.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.contact-testimonials .section-lead {
  max-width: 100%;
}

/* =========================================================
   FOOTER (Two Column)
   ========================================================= */


.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.8);
  padding: 1.1rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}


.site-footer {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  padding: 2rem 0;
  margin-top: 1rem;
}

.footer-left h3 {
  margin: 0 0 .5rem;
}

.footer-right {
  flex-direction: row;
  gap: 1.5rem;
  justify-content: end;  
  display:block;
  text-align:center;
}

.footer-right a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.footer-right a:hover {
  color: var(--accent);
}

.footer-left{
  text-align:center;
}

.footer-left p{
  margin-top:-5px;
}



/* -------------------------------------------------
   MASONRY GALLERY
-------------------------------------------------- */

.masonry-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  transition: transform .4s ease;
  border-radius: var(--radius);
}

.masonry-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}


.gallery-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.masonry-item {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.masonry-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 1.2rem;
  opacity: 0;
  display: flex;
  align-items: flex-end;
  transition: opacity .3s ease;
}

.masonry-item:hover .masonry-hover {
  opacity: 1;
}



/* -------------------------------------------------
   DARK MODE
-------------------------------------------------- */

/* Desktop dark mode toggle */
.dark-toggle-desktop {
  position: fixed;
  top: 15px;
  right: 20px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  font-weight: 600;
  font-size: .8rem;
}

/* Mobile dark mode toggle inside nav */
.dark-toggle-mobile {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  text-align: center;
  margin-top: .5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  width:20%;
}
/* -------------------------------------------------
LIGHT BOX
-------------------------------------------------- */

*
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.lightbox-arrow.left { left: 20px; }
.lightbox-arrow.right { right: 20px; }

/* LIGHTBOX CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  z-index: 999999;
  transition: opacity .2s ease;
  background:transparent;
  border-radius:10px;
  color:white;
}

.lightbox-close:hover {
  opacity: 0.7;
}

/* -------------------------------------------------
   SCROLL TO TOP
-------------------------------------------------- */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}


/* -------------------------------------------------
   FORGE PANEL
-------------------------------------------------- */
.forge-panel {
  text-decoration: none;
  color: inherit;
}


/* -------------------------------------------------
   SECTION HEADERS
-------------------------------------------------- */

.section-heading {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);

}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  color: #111827;
}

.section-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 680px;
}

/* -------------------------------------------------
   PROJECT CARDS
-------------------------------------------------- */
.project-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease-out, filter 220ms ease-out;
  filter: saturate(0.85) contrast(1.02);
}

.project-tag {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(17, 24, 39, 0.86);
  color: #fefce8;
}

.project-body {
  padding: 0.95rem 1.2rem 1.15rem;
}

.project-title {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: #111827;
}

.project-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* -------------------------------------------------
   FORM
-------------------------------------------------- */

.form-row {
  margin-bottom: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* -------------------------------------------------
   SOCIAL 
-------------------------------------------------- */

.social-links {
  display: flex;
  flex-direction:column;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.social-links-footer {
  display: flex;
  flex-direction:column;
  gap: 1rem;
  margin-top: 0rem;
  justify-content: center;
}

/* SOCIAL */
.social-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  transition: color .2s ease;
    text-transform: uppercase;
}

.social-item:hover {
  color: var(--accent);
}

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-links-footer{
  text-align:center;
  flex-direction:row;
  margin-top:15px;
}

/* =====================
   POPUP STYLES
===================== */

#popupOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
}

#popupOverlay.active {
  display: flex !important;
}

#popupOverlay .popup-modal {
  background: #ffffff;
  width: min(900px, 90vw);
  max-height: 85vh;
  overflow-y: auto;

  border-radius: 14px;
  padding: 32px;
  position: relative;
}

#popupOverlay .popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

body.popup-open {
  overflow: hidden;
}
