/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2a2a2a;
  line-height: 1.5;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}


/* =========================
   NAVIGATION
========================= */
.nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  font-weight: bold;
  color: #222;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.nav-links a.active {
  font-weight: bold;
}


/* =========================
   HERO (PARALLAX)
========================= */
.hero {
  height: 100vh;
  background-image: url('/img/home-residential.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0,0,0,0.35);
  padding: 40px;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
}


/* =========================
   PREMIUM SPLIT SECTION
========================= */
.split {
  display: flex;
  height: 100vh;
}

.split-block {
  flex: 1;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;
}

/* IMAGE */
.split-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease;
}

/* DARK OVERLAY (KEY) */
.split-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.15)
  );
  z-index: 1;
}

/* CONTENT POSITION */
.split-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  right: 40px;
  z-index: 2;
}

/* SMALL LABEL */
.label {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 15px;
}

/* MAIN HEADLINE */
.split-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 15px;
}

/* DESCRIPTION */
.split-content p {
  font-size: 16px;
  max-width: 420px;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* LINK */
.link {
  font-size: 14px;
  letter-spacing: 1px;
}

/* HOVER EFFECT */
.split-block:hover .split-img {
  transform: scale(1.08);
}

/* MOBILE */
@media (max-width: 768px) {
  .split {
    flex-direction: column;
    height: auto;
  }

  .split-block {
    height: 70vh;
  }

  .split-content {
    left: 30px;
    bottom: 30px;
  }

  .split-content h2 {
    font-size: 36px;
  }
}

/* =========================
   TAGLINE
========================= */
.tagline {
  padding: 80px 20px;
  text-align: center;
  font-size: 20px;
  max-width: 700px;
  margin: auto;
}


/* =========================
   PARALLAX SECTION
========================= */
.parallax {
  height: 60vh;
  background-image: url('/img/craftsmanship.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax .overlay {
  background: rgba(0,0,0,0.4);
  color: white;
  padding: 30px;
}


/* =========================
   CTA
========================= */
.cta {
  text-align: center;
  padding: 80px 20px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: black;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.8;
}


/* =========================
   PAGE HERO (Projects etc.)
========================= */
.page-hero {
  height: 50vh;
  background: #f5f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  font-size: 40px;
}


/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 40px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}


/* =========================
   LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}


/* =========================
   FADE-IN ANIMATION
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .split {
    flex-direction: column;
    height: auto;
  }

  .split-block {
    height: 75vh; /* 👈 ensures it actually shows */
    min-height: 500px;
  }

  .split-img {
    position: absolute;
    inset: 0;
  }

  .split-content {
    left: 25px;
    right: 25px;
    bottom: 25px;
  }

  .split-content h2 {
    font-size: 34px;
  }

  .split-content p {
    font-size: 14px;
  }
}
/* =========================
   CONTACT PAGE
========================= */
.contact-container {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-text {
  font-size: 16px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}