* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #0f1c2e;
  color: #ffffff;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 28, 46, 0.96);
  border-bottom: 1px solid #22324a;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 230px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 200px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: #d4af37;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: #f0cf6a;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #ffffff;
}

/* HERO */

.hero {
  padding: 7rem 0 5rem;
  background: linear-gradient(to bottom, #0f1c2e, #13243a);
}

.hero-small {
  padding: 5rem 0 4rem;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #d4af37;
}

h1,
h2,
h3 {
  color: #ffffff;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin: 0.7rem 0 1rem;
}

.thank-you-eyebrow {
  display: block !important;
  font-size: 5.1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  line-height: 1 !important;
  margin-bottom: 1rem !important;
  color: #d4af37 !important;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

p,
.hero-text,
.contact-wrap p,
.card p,
.project p {
  color: #d8dee8;
}

.hero-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #d4af37;
}

.btn-primary {
  background: #d4af37;
  color: #0f1c2e;
}

.btn-secondary {
  background: transparent;
  color: #d4af37;
}

/* SECTIONS */

.section {
  padding: 5rem 0;
}

.section-alt {
  background: #13243a;
}

.section .container {
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

/* GENERAL CARDS */

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.card,
.project {
  background: #16283f;
  border: 1px solid #2a3e5c;
  border-radius: 18px;
  text-align: left;
  padding: 1.4rem;
}

/* PROJECT IMAGE CARDS */

.project-image {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  margin-bottom: 1rem;
  background-size: cover !important;
  background-position: var(--bg-position, center center);
  background-repeat: no-repeat;
  overflow: hidden;
}

.placeholder {
  display: grid;
  place-items: center;
  background: #22324a;
  color: #d4af37;
  font-weight: 600;
}

/* CONTACT */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-wrap h2 {
  color: #d4af37;
  letter-spacing: 0.04em;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #2a3e5c;
  border-radius: 14px;
  font: inherit;
  background: #16283f;
  color: #ffffff;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* FOOTER */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid #22324a;
  background: #0f1c2e;
}

.footer-inner {
  text-align: center;
  color: #d8dee8;
  font-size: 0.9rem;
}

.footer-license {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #d4af37;
  letter-spacing: 0.5px;
}

/* HOME GALLERY PREVIEW */

.home-gallery-preview .container {
  text-align: center;
}

.home-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.home-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  cursor: pointer;
}

/* GALLERY CATEGORY CARDS */

.gallery-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-category {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  background-color: #16283f;
  background-size: cover !important;
  background-position: var(--bg-position, center center);
  background-repeat: no-repeat;
  border: 1px solid #2a3e5c;
  border-radius: 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-category::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 28, 46, 0.18),
    rgba(15, 28, 46, 0.72)
  );
  z-index: 0;
}

.gallery-category span,
.gallery-category h2,
.gallery-category h3 {
  position: relative;
  z-index: 1;
}

.gallery-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.gallery-category-wide {
  grid-column: 1 / -1;
}

.homepage-category-grid {
  margin-top: 2rem;
}

/* PROJECT PHOTO CARDS */

.gallery-photo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  overflow: hidden;
  background-color: #16283f;
  background-size: cover !important;
  background-position: var(--bg-position, center center);
  background-repeat: no-repeat;
  border: 1px solid #2a3e5c;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 28, 46, 0.16),
    rgba(15, 28, 46, 0.76)
  );
  z-index: 0;
}

.gallery-photo-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

.gallery-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* CATEGORY BACKGROUNDS */

.category-fullhome {
  background-image: url("home1.webp");
}

.category-kitchens {
  background-image: url("baywind1.webp");
}

.category-bathrooms {
  background-image: url("scarlet1.webp");
  --bg-position: center 22%;
}

.category-decks {
  background-image: url("constance1.webp");
}

.category-exterior {
  background-image: url("pavers1.webp");
}

/* FULL HOME PROJECT BACKGROUNDS */

.project-dalia {
  background-image: url("dalia1.webp");
}

.project-arabiancrest {
  background-image: url("arabiancrest1.webp");
}

.project-brava {
  background-image: url("brava1.webp");
}

.project-opal {
  background-image: url("opal1.webp");
}

/* KITCHEN PROJECT BACKGROUNDS */

.project-baywind {
  background-image: url("baywind1.webp");
}

.project-caminito {
  background-image: url("caminito1.webp");
}

.project-pipilo {
  background-image: url("pipilo1.webp");
}

.project-unicornio {
  background-image: url("unicornio1.webp");
}

.project-everts {
  background-image: url("everts1.webp");
}

.project-luciernaga {
  background-image: url("luciernaga1.webp");
}

.project-northstar {
  background-image: url("northstar1.webp");
}

/* BATHROOM PROJECT BACKGROUNDS */

.project-scarlet {
  background-image: url("scarlet1.webp");
  --bg-position: center 25%;
}

.project-avalon {
  background-image: url("avalon1.webp");
}

.project-sunsetridge {
  background-image: url("sunsetridge1.webp");
}

.project-bayleaf {
  background-image: url("bayleaf1.webp");
}

.project-ssierra {
  background-image: url("ssierra1.webp");
}

.project-tynebourne {
  background-image: url("tynebourne1.webp");
}

.project-archer {
  background-image: url("archer1.webp");
}

.project-tara {
  background-image: url("tara1.webp");
}

.project-willowhaven {
  background-image: url("willowhaven1.webp");
}

.project-honors {
  background-image: url("honors1.webp");
}

/* DECK PROJECT BACKGROUNDS */

.project-constance {
  background-image: url("constance1.webp");
}

.project-hill {
  background-image: url("hill1.webp");
}

.project-playa {
  background-image: url("playa1.webp");
}

.project-seaforest {
  background-image: url("seaforest1.webp");
}

.project-torrey {
  background-image: url("torrey1.webp");
}

.project-dora {
  background-image: url("dora1.webp");
}

.project-lemon {
  background-image: url("lemon1.webp");
}

.project-bavarian {
  background-image: url("bavarian1.webp");
}

/* INDIVIDUAL GALLERY PAGES */

.gallery-section {
  padding-top: 4rem;
}

.gallery-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gallery-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  cursor: pointer;
}

.gallery-back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #d4af37;
  text-decoration: none;
}

/* LIGHTBOX */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 28, 46, 0.96);
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 10001;
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
  color: #ffffff;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.lightbox-close:hover {
  opacity: 0.8;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-arrow:hover {
  opacity: 0.75;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* TABLET */

@media (max-width: 900px) {
  .home-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE NAV */

@media (max-width: 800px) {
  .two-column,
  .card-grid,
  .project-grid,
  .contact-wrap,
  .gallery-category-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: relative;
    justify-content: center;
    min-height: 200px;
  }

  .logo {
    margin: 0 auto;
  }

  .logo-image {
    height: 180px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    background: #0f1c2e;
    border-bottom: 1px solid #22324a;
    padding: 1rem 4%;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .site-nav.open {
    display: flex;
  }

  .project-image,
  .gallery-photo-card,
  .gallery-category {
    min-height: 300px;
  }
}

/* SMALL MOBILE */

@media (max-width: 600px) {
  .gallery-image-grid,
  .home-photo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .project-image,
  .gallery-photo-card,
  .gallery-category {
    min-height: 260px;
  }

  .lightbox-arrow {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
