:root {
  --charcoal: #0f2e2e; /* CHANGED to a dark green/teal */
  --brand-beige: #a9957b;
  --white: #FFFFFF;
  --off-white: #f8f7f5;
  --gray: #6E6E6E;
  --gold: #d4af37; /* ADDED - was missing */
  --cream: #f8f7f5; /* ADDED - was missing */
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Replace the existing body and heading styles with these */
body {
  font-family: 'Montserrat', sans-serif; /* New body font */
  background-color: var(--off-white);
  color: var(--charcoal);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Playfair Display', serif; /* New heading font */
}

/* Navigation link underline animation */
.nav-link {
  position: relative;
  transition: color 0.3s;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
  outline: 3px dashed var(--gold);
  outline-offset: 2px;
}

/* Hero background image - UPDATED to use your actual photo */
.hero-bg {
  background-color: var(--charcoal);
  /* UPDATED: Now using your actual exterior photo */
  background-image: url('assets/images/exterior1.jpg');
  background-size: cover;
  background-position: center;
}

/* Portfolio card hover effect */
.portfolio-card:hover img {
  transform: scale(1.05);
  opacity: 0.5;
}
.portfolio-info {
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-card:hover .portfolio-info {
  transform: translateY(0);
}

/* Scroll-reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(3rem);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu slide-in */
#mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--charcoal);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
#mobile-menu.open {
  transform: translateX(0);
}

/* Scroll-to-top button */
#to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--gold);
  color: var(--white);
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}
#to-top.visible {
  opacity: 1;
}

/* Modal transitions */
.modal-content {
  transition: all 0.3s;
  transform: scale(0.95);
  opacity: 0;
}
.modal.is-open .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Alternating split sections */
.section-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.section-split:nth-child(even) .content {
  order: 2;
}
.section-split:nth-child(even) .image {
  order: 1;
}
.image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.content {
  max-width: 500px;
}

/* Call-to-action arrow links */
.arrow-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}
.arrow-link svg {
  margin-left: .5rem;
  transition: transform .3s;
}
.arrow-link:hover svg {
  transform: translateX(.25rem);
}

/* Patterned background for key sections */
.pattern-bg {
  background-image: url('../images/pattern-diamond.svg');
  background-size: 200px;
  background-repeat: repeat;
}

/* Overlay card style for highlights */
.card-overlay {
  background-color: rgba(255,255,255,0.85);
  padding: 2rem;
  border-radius: .5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: absolute;
}
.card-overlay.top-left {
  top: 1rem;
  left: 1rem;
}
.card-overlay.bottom-right {
  bottom: 1rem;
  right: 1rem;
}

/* Styling for the new icon links in the About section */
/* Icon link styles (with enhanced animation) */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  color: var(--off-white);
  text-decoration: none;
}

/* NEW: Target the text itself to prepare it for animation */
.icon-link span {
  transition: transform 0.3s ease-in-out;
}

.icon-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gray);
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
}

.icon-link-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease-in-out;
}

/* --- HOVER EFFECTS --- */

.icon-link:hover {
  color: var(--brand-beige);
}

/* NEW: Make the text slide right on hover */
.icon-link:hover span {
  transform: translateX(5px);
}

.icon-link:hover .icon-link-icon {
  border-color: var(--brand-beige);
  background-color: var(--brand-beige);
  color: var(--charcoal);
}

/* Make the arrow slide right on hover */
.icon-link:hover .icon-link-icon svg {
  transform: translateX(5px);
}

/* =================================== */
/* About Section Styles (Updated)      */
/* =================================== */

#about * {
  color: var(--charcoal) !important;
}

.about-section {
  background-color: var(--charcoal);
  color: var(--charcoal);
  padding: 7rem 0;
  scroll-margin-top: 5rem;
  position: relative; /* Required for the background pattern */
  overflow: hidden;   /* Required for the background pattern */
}

/* This pseudo-element creates the faint 'B' in the background */
.about-section {
  background-color: var(--charcoal); /* This color can be changed in :root */
  color: var(--charcoal);
  padding: 7rem 1.5rem; /* Padding on the section itself */
  scroll-margin-top: 5rem;
  position: relative;
  overflow: hidden;
  
  /* Use flexbox for robust centering */
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  /* This content needs to sit on top of the background pattern */
  position: relative; 
  z-index: 1;
  width: 100%;
  max-width: 42rem; /* The max width of your content */
  text-align: left;
}

.about-section h1 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1.125rem;
  color: var(--off-white) !important; /* FIXED: Ensure white text on dark background */
  line-height: 1.75;
  margin-bottom: 4rem;
}

.about-links {
  display: grid;
  grid-template-columns: 1fr; /* This is the fix for the single-column layout */
  gap: 1.5rem;
  max-width: 24rem; /* Narrower to suit the single-column list */
}

/* Icon link styles remain the same */
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  color: var(--off-white);
  text-decoration: none;
}

.icon-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gray);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.icon-link-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.icon-link:hover {
  color: var(--brand-beige);
}

.icon-link:hover .icon-link-icon {
  border-color: var(--brand-beige);
  background-color: var(--brand-beige);
  color: var(--charcoal);
}

.icon-link:hover .icon-link-icon svg {
    transform: translateX(4px);
}

/* =================================== */
/* Process Section Styles (Updated)    */
/* =================================== */

section#process {
  background-color: var(--charcoal);
  padding: 7rem 0;
  overflow: hidden; /* Prevents horizontal scroll from reveals */
}

section#process .process-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  max-width: 72rem; /* 1152px */
  margin: 0 auto;
  padding: 0 1.5rem;
}

section#process .process-card {
  grid-column: 1 / span 8;
  grid-row: 1 / 2;
  background-color: var(--off-white);
  color: var(--charcoal);
  padding: 3rem;
  position: relative;
  z-index: 2;
}

section#process .process-card h2 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
}

section#process .process-card p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

section#process .process-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -2rem; /* 32px offset */
  left: -2rem;   /* 32px offset */
  width: 120px;
  height: 120px;
  border-bottom: 2px solid var(--brand-beige);
  border-left: 2px solid var(--brand-beige);
}

section#process .process-image {
  grid-column: 7 / span 6; /* This overlaps with the card */
  grid-row: 1 / 2;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

section#process .process-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Dark version of the icon link for light backgrounds */
section#process .icon-link-dark {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  text-decoration: none;
}

section#process .icon-link-dark .icon-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gray);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

section#process .icon-link-dark:hover .icon-link-icon {
  border-color: var(--brand-beige);
  background-color: var(--brand-beige);
}


/* Reversed Layout Styles */
section#process .process-container--reversed {
  margin-top: 5rem; /* Add some space between the sections */
}

section#process .process-container--reversed .process-card {
  grid-column: 5 / span 8;
}

section#process .process-container--reversed .process-image {
  grid-column: 1 / span 6;
}

section#process .process-container--reversed .process-card::after {
  left: auto;
  right: -2rem;
  border-left: none;
  border-right: 2px solid var(--brand-beige);
}

/* =================================== */
/* Image Feature Section (Portfolio)   */
/* =================================== */

.image-feature-section {
  position: relative;
  padding: 12rem 0;
  /* UPDATED: Using your actual interior photo */
  background-image: url('assets/images/interior6.jpg');
  background-size: cover;
  background-position: center;
}

.feature-card {
  position: absolute;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card--top {
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--off-white);
}

.feature-card--bottom {
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 48rem;
  background-color: var(--charcoal);
  color: var(--off-white);
}

.feature-card--bottom blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
  text-align: center;
}

@media (min-width: 768px) {
  .feature-card--top {
    left: 5rem;
    transform: translateX(0);
  }
  .feature-card--bottom {
    width: auto;
  }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  section#process .process-container {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
  
  section#process .process-card,
  section#process .process-container--reversed .process-card {
      grid-column: 1;
  }
  
  section#process .process-image,
  section#process .process-container--reversed .process-image {
      grid-column: 1;
  }
  
  section#process .process-card::after,
  section#process .process-container--reversed .process-card::after {
      display: none;
  }
}

/* =================================== */
/* Hero Slideshow Styles - ADD TO END OF YOUR STYLES.CSS */
/* =================================== */

.hero-slideshow {
  position: relative;
}

.slideshow-container {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slideshow-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background-color: rgba(255, 255, 255, 0.9) !important;
  transform: scale(1.2);
}

.slideshow-prev,
.slideshow-next {
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Hide arrows on mobile for cleaner look */
@media (max-width: 768px) {
  .slideshow-prev,
  .slideshow-next {
      display: none;
  }
}

/* =================================== */
/* Portfolio Modal Tabs - ADD TO YOUR STYLES.CSS */
/* =================================== */

.modal-tab {
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  outline: none;
}

.modal-tab.active {
  color: var(--charcoal) !important;
  border-color: var(--gold) !important;
}

.modal-tab:hover {
  color: var(--charcoal);
}

.tab-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Enhanced modal content */
.modal-content {
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tab-content {
  flex: 1;
  overflow-y: auto;
}

/* Modal centering and improvements - Add this to your styles.css */
.modal {
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex !important;
  pointer-events: all !important;
  opacity: 1 !important;
}

.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s ease;
  margin: auto;
  max-width: 80rem; /* 1280px */
  width: 90vw;
  max-height: 90vh;
}

.modal.is-open .modal-content {
  transform: scale(1);
}

/* Add this single CSS rule to hide the Contact button when mobile menu is open */
#mobile-menu.open + #header .btn,
body:has(#mobile-menu.open) #header .btn {
  display: none;
}

/* Alternative approach if the above doesn't work */
.overflow-hidden #header .btn {
  display: none;
}