@import url("https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --primary-color: #63786c;
  --secondary-background: #efefef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif !important;
  background-color: var(--secondary-background) !important;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100vw;
}

/* Mobile-only curtain overlay (full viewport, slides away after 1s) */
.curtain-overlay {
  display: none;
}

/* Curtain only on mobile (phones); hidden on iPad and larger (768px+) */
@media screen and (max-width: 767px) {
  .curtain-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    pointer-events: auto;
  }

  .curtain-overlay.revealed {
    pointer-events: none;
  }

  .curtain-overlay.revealed.curtain-done .curtain-panel {
    visibility: hidden;
  }

  .curtain-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .curtain-panel-left {
    left: 0;
    z-index: 1;
    background-image: url(../images/ui/curtain-left.png);
  }

  .curtain-panel-right {
    right: 0;
    left: auto;
    z-index: 2;
    background-image: url(../images/ui/curtain-right.png);
  }

  .curtain-overlay.revealed .curtain-panel-left {
    transform: translateX(-100%);
  }

  .curtain-overlay.revealed .curtain-panel-right {
    transform: translateX(100%);
  }
}

::selection {
  background-color: #e1e0d2;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 0.625rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-track {
  background-color: #e0e0e0;
}

/* Header - full width */
header {
  position: fixed !important;
  z-index: 10 !important;
  transition: top 0.2s ease;
  width: 100%;
  max-width: 100%;
  left: 0;
  right: 0;
}

.nav-link {
  color: #777 !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-item .nav-link.active {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
  text-underline-offset: 10px !important;
  text-decoration-thickness: 2px !important;
  font-weight: 600 !important;
}

.navbar-toggler:hover {
  background-color: #eee !important;
}

/* Scroll targets: prevent fixed header from covering section headings */
#hero,
#gallery,
#projects,
#aboutus,
#contactus {
  scroll-margin-top: 90px;
}

/* Utilities */
.mt-10 {
  margin-top: 100px !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color) !important;
  color: #f5f5f5 !important;
  border: none !important;
}

.btn-primary:hover {
  background-color: #7d9386 !important;
}

.btn-primary:focus {
  background-color: #506559 !important;
}

/* Section headings */
h2 {
  font-family: "Baskervville", serif;
  color: #111;
}

/* Main content full width */
main {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* Section containers - full width, consistent padding */
section.container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  section.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  section.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  section.container-fluid {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Hero Section */
.hero-container {
  width: 100%;
  max-width: 100%;
  height: 80vh;
  min-height: 400px;
  border-top-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
  overflow: hidden;
}

.hero-container-sm {
  width: 100%;
  height: auto;
  display: none;
}

.card-img-mask {
  background-image: url(../images/hero/curtain-hero-luxury-living-room.JPG);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  width: 100%;
  height: 100%;
  border-radius: 2rem !important;
}

.hero-heading {
  font-family: "Baskervville", serif;
  top: 0;
  left: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  background-color: var(--secondary-background);
  padding: 0 1.5rem 0.5rem 0;
  border-bottom-right-radius: 1rem !important;
}

.hero-heading::after,
.hero-heading::before {
  width: 2rem;
  height: 2rem;
  position: absolute;
  content: "";
}

.hero-heading::after {
  background-color: transparent;
  top: 0;
  right: -2rem;
  border-top-left-radius: 1rem;
  box-shadow: -0.375rem -0.375rem var(--secondary-background) !important;
}

.hero-heading::before {
  background-color: transparent !important;
  bottom: -2rem;
  left: 0;
  border-top-left-radius: 1rem;
  box-shadow: -0.375rem -0.375rem var(--secondary-background) !important;
}

.ff-baskervville {
  font-family: "Baskervville", serif;
}

.hero-content {
  bottom: 0;
  right: 0;
  width: min(clamp(32rem, 48vw, 48rem), 100%);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 0.5rem;
  background-color: var(--secondary-background);
  border-top-left-radius: 1rem;
  padding: 1rem 1rem 0 1rem;
}

.hero-content::after,
.hero-content::before {
  width: 2rem;
  height: 2rem;
  content: "";
  position: absolute;
}

.hero-content::after {
  background: transparent;
  top: -2rem;
  right: 0;
  border-bottom-right-radius: 1rem;
  box-shadow: 0.375rem 0.375rem var(--secondary-background) !important;
}

.hero-content::before {
  background-color: transparent;
  bottom: 0;
  left: -2rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0.375rem 0.375rem var(--secondary-background) !important;
}

/* Hero & footer: icon + email aligned on all screens */
.hero-email-icon {
  flex-shrink: 0;
}

.hero-email-wrap {
  align-items: center;
}

.hero-email-wrap .lh-1 {
  line-height: 1.25;
}

.hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  border-radius: 1rem;
}

@media screen and (max-width: 1150px) {
  .hero-content {
    width: min(clamp(30rem, 52vw, 52rem), 100%) !important;
  }
}

@media screen and (max-width: 1024px) {
  .hero-container {
    display: none;
  }
  .hero-container-sm {
    display: block;
  }
}

/* ---------- Gallery Section (Premium Luxury) ---------- */
.gallery-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gallery-section .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.gallery-title {
  font-family: "Baskervville", serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 0;
}

.gallery-swiper-wrap {
  padding-bottom: 3rem;
}

.gallery-swiper {
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
}

.gallery-swiper .swiper-wrapper {
  align-items: stretch;
}

.gallery-swiper .swiper-slide {
  height: auto;
  opacity: 1;
  transform: scale(1);
  border-radius: 14px;
  overflow: hidden;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.gallery-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
}

.gallery-slide-inner {
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #e8e4de;
}

.gallery-slide-image-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  border-radius: 14px;
  overflow: hidden;
  background: #e8e4de;
}

.gallery-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  transition: transform 0.6s ease;
}

.gallery-slide-image-wrap:hover .gallery-slide-img {
  transform: scale(1.06);
}

.gallery-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: 0 0 14px 14px;
}

/* Custom navigation arrows */
.gallery-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gallery-swiper-btn:hover {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.gallery-swiper-btn-prev {
  left: -12px;
}

.gallery-swiper-btn-next {
  right: -12px;
}

@media (max-width: 767.98px) {
  .gallery-swiper-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .gallery-swiper-btn-prev {
    left: 4px;
  }
  .gallery-swiper-btn-next {
    right: 4px;
  }
}

/* Progress bar pagination – centered on all screens */
.gallery-pagination {
  bottom: 0 !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 120px !important;
  height: 3px !important;
  background-color: rgba(0, 0, 0, 0.1) !important;
  border-radius: 2px;
  overflow: hidden;
}

.gallery-pagination .swiper-pagination-progressbar-fill {
  background-color: var(--primary-color) !important;
  border-radius: 2px;
}

/* Responsive gallery slide height */
@media (max-width: 767.98px) {
  .gallery-slide-inner,
  .gallery-slide-image-wrap {
    min-height: 0;
  }
}

/* About Us Section */
.about-us-img {
  height: 400px !important;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  .about-us-img {
    height: 280px !important;
  }
}

/* Our Work / Projects Section */
.recent-projects-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.recent-project-item {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #333;
  text-decoration: none;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(99, 120, 108, 0.2);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
  cursor: default;
}

.recent-project-item:hover {
  color: #000;
  background-color: #e1e0d2;
  border-color: rgba(99, 120, 108, 0.35);
}

@media (max-width: 767.98px) {
  .recent-projects-grid .recent-project-item {
    text-align: center;
  }
}

.recent-projects-grid li.recent-project-li-hidden {
  display: none !important;
}

.recent-projects-see-more-wrap {
  display: block;
}

.recent-projects-see-more-wrap.recent-projects-see-more-hidden {
  display: none !important;
}

.recent-projects-see-more {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition:
    color 0.35s ease,
    opacity 0.35s ease;
}

.recent-projects-see-more:hover {
  color: #506559;
}

.recent-projects-see-less-wrap {
  display: block;
}

.recent-projects-see-less-wrap.recent-projects-see-less-hidden {
  display: none !important;
}

.recent-projects-see-less {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition:
    color 0.35s ease,
    opacity 0.35s ease;
}

.recent-projects-see-less:hover {
  color: #506559;
}

@media (min-width: 768px) {
  .recent-project-item {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

/* Footer - full width */
footer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.footer-bg {
  background-color: #e1e0d2;
  width: 100%;
  color: #212529;
}

.footer-bg h4 {
  color: #212529;
}

.footer-bg p {
  color: #212529;
}

.footer-bg a:not(:hover) {
  color: #212529;
}

.footer-bg .text-muted,
.footer-bg .bi {
  color: #6c757d !important;
}

.footer-bg .footer-icon-fixed,
.footer-bg .bi {
  flex-shrink: 0;
  min-width: 1.25rem;
  font-size: 1.25rem;
}

.footer-bg .text-center.text-muted,
.footer-bg .text-center a.text-muted {
  color: #6c757d !important;
}

.curtain-wave {
  background-image: url(../images/ui/wave.png);
  background-repeat: repeat-x;
  height: 2rem;
  width: 100%;
  background-size: contain;
  background-position: top;
  flex-shrink: 0;
}

/* Footer content padding - match section padding */
footer .footer-bg.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  footer .footer-bg.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  footer .footer-bg.px-4 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  footer .footer-bg.px-4 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

footer a {
  text-decoration: none !important;
}

footer a:hover {
  text-decoration: underline !important;
  text-decoration-style: dashed;
  text-decoration-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  text-underline-offset: 8px;
}

.footer-bg .footer-logo {
  flex-shrink: 0;
  width: 80px;
  height: 130px;
  min-width: 80px;
  min-height: 80px;
  object-fit: contain;
}

/* Footer – iPad only: left = logo, right = Address above Contact Us, gap in middle */
@media (min-width: 768px) and (max-width: 991.98px) {
  footer .footer-bg .row.footer-bg.pt-5 {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    row-gap: 1.5rem;
    column-gap: 2rem;
    align-items: start;
    justify-content: space-between;
  }

  footer .footer-bg .row.footer-bg.pt-5 > .col-12.col-md-2 {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
  }

  footer .footer-bg .row.footer-bg.pt-5 > .col-12.col-lg-3:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  footer .footer-bg .row.footer-bg.pt-5 > .col-12.col-lg-3:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}
