/* =============================================
   Robinson & Sons Construction LLC
   style.css — Single Stylesheet
   ============================================= */

:root {
  --primary: #000;
  --secondary: #fff;
  --light: #f5f5f5;
  --gray: #777;
  --accent: #c8a96e;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--primary);
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  background: #fff;
  padding: 0;
}

.navbar-brand img {
  display: block;
}

.nav-link {
  color: #000 !important;
  font-weight: 500;
  margin-left: 20px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  padding: 8px 0 !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: url("assets/images/hero-fallback.png") center center / cover
    no-repeat;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.42); */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 35px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 14px 34px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.hero-btn:hover {
  background: #fff;
  color: #000;
}

.hero-scroll-down {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* =============================================
   SECTION GENERAL
   ============================================= */
.section-padding {
  padding: 100px 0;
}

.bg-light-section {
  background: #f5f5f5;
}

/* =============================================
   SHARED TYPOGRAPHY
   ============================================= */
.story-label {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 18px;
  font-weight: 500;
}

.story-rule {
  width: 50px;
  height: 1px;
  background: #000;
  margin: 24px 0 28px;
}

.story-body {
  font-size: 1rem;
  line-height: 1.95;
  color: #444;
  margin-bottom: 18px;
}

/* =============================================
   HOME — DESIGN BUILD RENOVATE
   ============================================= */
.section-title-centered {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.service-block {
  overflow: hidden;
}

.service-text-col {
  background: #fff;
  display: flex;
}

.service-card {
  padding: 55px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.service-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.service-rule {
  width: 45px;
  height: 2px;
  background: #000;
  margin-bottom: 22px;
}

.service-card p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 14px;
}

.service-card p:last-of-type {
  margin-bottom: 28px;
}

.service-arrow {
  display: inline-block;
  font-size: 1.4rem;
  color: #000;
  text-decoration: none;
  transition: transform 0.3s ease;
  align-self: flex-start;
}

.service-arrow:hover {
  transform: translateX(8px);
  color: #000;
}

.service-image-col {
  min-height: 450px;
}

.service-image {
  height: 100%;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =============================================
   PARALLAX SECTION
   ============================================= */
.parallax-section {
  height: 500px;
  background: url("../images/parallax-bg.jpg") center center / cover fixed
    no-repeat;
  position: relative;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-image img {
  width: 100%;
  border-radius: 2px;
  display: block;
}

.contact-info h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.contact-info h4 {
  font-weight: 600;
  margin-bottom: 25px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info p,
.contact-info a {
  color: #444;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.9;
}

.contact-info a:hover {
  color: #000;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #000;
  color: #000;
  margin-right: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-links a:hover {
  background: #000;
  color: #fff;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top-wrap {
  padding: 50px 0;
  text-align: center;
  background: #fff;
}

.back-to-top-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.btt-line {
  display: block;
  width: 1px;
  height: 50px;
  background: #000;
  transition: height 0.3s ease;
  order: -1;
}

.back-to-top-link:hover .btt-line {
  height: 65px;
}

.back-to-top-link:hover {
  color: #000;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #000;
  color: #fff;
  padding: 25px 0;
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

/* =============================================
   ABOUT — HERO
   ============================================= */
.about-hero {
  position: relative;
  height: 75vh;
  min-height: 560px;
  background: url("../images/about-hero.jpg") center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  color: #fff;
}

.about-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  font-weight: 500;
}

.about-hero-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.about-hero-content h1 em {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.about-hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero-scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* =============================================
   ABOUT — STORY
   ============================================= */
.about-story {
  background: #fff;
}

.about-story-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-story-img {
  width: 100%;
  display: block;
  filter: brightness(0.97) contrast(1.02);
}

.about-story-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  width: 120px;
  height: 120px;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.badge-year {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.badge-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  display: block;
  margin: 2px 0;
}

.badge-label {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  display: block;
}

.story-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}

/* =============================================
   ABOUT — SEAN SECTION
   ============================================= */
.sean-section {
  background: #f7f5f2;
  overflow: hidden;
}

.sean-text-col {
  display: flex;
  align-items: center;
}

.sean-text {
  padding: 90px 70px 90px 80px;
}

.sean-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 0;
}

.sean-heading em {
  font-style: italic;
}

.sean-quote {
  border-left: 2px solid #000;
  padding: 20px 0 20px 28px;
  margin: 35px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: #222;
  line-height: 1.6;
}

.sean-quote cite {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-style: normal;
  color: #888;
  margin-top: 14px;
}

.sean-image-col {
  min-height: 580px;
}

.sean-image {
  height: 100%;
  min-height: 580px;
  background-size: cover;
  background-position: center top;
}

/* =============================================
   ABOUT — VALUES STRIP
   ============================================= */
.values-section {
  background: #000;
  padding: 0;
}

.values-row {
  min-height: 280px;
}

.value-item {
  padding: 65px 55px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.value-item:last-child {
  border-right: none;
}

.value-icon {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 22px;
}

.value-item h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.value-item p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* =============================================
   ABOUT — SERVICES
   ============================================= */
.services-section {
  background: #fff;
}

.services-header {
  margin-bottom: 90px;
}

.services-main-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.services-main-heading em {
  font-style: italic;
}

.services-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.85;
  color: #666;
}

.service-detail-block {
  padding: 70px 0;
  border-bottom: 1px solid #eee;
}

.service-detail-block:last-child {
  border-bottom: none;
}

.service-detail-image {
  position: relative;
}

.service-detail-image img {
  width: 100%;
  display: block;
}

.service-num {
  position: absolute;
  top: -20px;
  left: -20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 6rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(0, 0, 0, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.service-tag {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
  font-weight: 500;
}

.service-detail-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

.service-detail-text p {
  font-size: 0.97rem;
  line-height: 1.95;
  color: #555;
  margin-bottom: 15px;
}

.service-detail-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 4px;
  transition: letter-spacing 0.3s ease;
}

.service-detail-cta:hover {
  letter-spacing: 3px;
  color: #000;
}

/* =============================================
   ABOUT — CTA BANNER
   ============================================= */
.about-cta {
  position: relative;
  height: 500px;
  background: url("../images/about-cta-bg.webp") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.about-cta-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.about-cta-content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 18px;
}

.about-cta-content h2 em {
  font-style: italic;
}

.about-cta-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .section-title-centered,
  .contact-info h2 {
    font-size: 2.4rem;
  }
  .service-card {
    padding: 40px 35px;
  }
  .service-image-col {
    min-height: 320px;
    order: -1;
  }
  .service-image {
    min-height: 320px;
  }

  .about-hero-content h1 {
    font-size: 3.2rem;
  }
  .story-heading,
  .sean-heading {
    font-size: 2.4rem;
  }
  .sean-text {
    padding: 60px 35px;
  }
  .sean-image-col {
    min-height: 400px;
  }
  .sean-image {
    min-height: 400px;
  }
  .services-main-heading {
    font-size: 2.8rem;
  }
  .service-detail-heading {
    font-size: 2rem;
  }
  .value-item {
    padding: 45px 35px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .about-story-badge {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .section-padding {
    padding: 70px 0;
  }
  .service-card {
    padding: 35px 25px;
  }
  .section-title-centered {
    font-size: 1.9rem;
  }
  .parallax-section {
    height: 350px;
    background-attachment: scroll;
  }

  .about-hero {
    height: 60vh;
    min-height: 420px;
  }
  .about-hero-content {
    padding-bottom: 60px;
  }
  .about-hero-content h1 {
    font-size: 2.4rem;
  }
  .services-main-heading {
    font-size: 2.2rem;
  }
  .service-num {
    font-size: 4rem;
    top: -10px;
    left: -5px;
  }
  .about-cta-content h2 {
    font-size: 2.6rem;
  }
}

.story-heading,
.sean-heading,
.services-main-heading,
.service-detail-heading,
.about-cta-content h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.story-heading {
  font-size: 3.2rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.sean-heading {
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.services-main-heading {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.service-detail-heading {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.about-cta-content h2 {
  font-size: 3rem;
  line-height: 1.1;
}

/* Keep italic em tags in Cormorant for elegant contrast */
.sean-heading em,
.services-main-heading em,
.about-cta-content h2 em {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* =============================================
           PROJECTS PAGE
           ============================================= */

/* Intro Section */
.projects-intro {
  padding: 90px 0 80px;
  background: #fff;
}

.projects-intro-image img {
  width: 100%;
  display: block;
}

.projects-intro-text {
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.projects-intro-text h2 {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  line-height: 1.1;
}

.projects-intro-rule {
  width: 45px;
  height: 2px;
  background: #000;
  margin: 22px 0 26px;
}

.projects-intro-text p {
  font-size: 1rem;
  line-height: 1.9;
  color: #555;
  max-width: 480px;
}

/* Gallery Section */
.projects-gallery {
  background: #f5f5f5;
  padding: 80px 0 100px;
}

/* Masonry columns */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  display: block;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.masonry-item:hover .masonry-item-overlay {
  background: rgba(0, 0, 0, 0.32);
}

.masonry-item-label {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

.masonry-item:hover .masonry-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 12px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
  .masonry-grid {
    columns: 2;
  }

  .projects-intro-text {
    padding-left: 30px;
    padding-top: 40px;
  }

  .projects-intro-text h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 575px) {
  .masonry-grid {
    columns: 1;
  }

  .projects-intro-text {
    padding-left: 0;
  }
}
