/* Project Abode theme overlay for Catherine O Design */
/* Brown #785641, cream #E4D5C9 text, Cormorant Garamond + Montserrat */

.theme-abode {
  background-color: #785641;
  color: #E4D5C9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.theme-abode .lines-wrap { display: none !important; }

/* Custom scrollbar */
.theme-abode ::-webkit-scrollbar { width: 8px; }
.theme-abode ::-webkit-scrollbar-track { background: #785641; }
.theme-abode ::-webkit-scrollbar-thumb {
  background: rgba(228, 213, 201, 0.4);
  border-radius: 4px;
}
.theme-abode ::-webkit-scrollbar-thumb:hover { background: rgba(228, 213, 201, 0.6); }

/* Typography */
.theme-abode .font-serif { font-family: "Cormorant Garamond", serif; }
.theme-abode .font-sans { font-family: "Montserrat", sans-serif; }
.theme-abode h1, .theme-abode h2, .theme-abode .hero-title, .theme-abode .main-statement {
  font-family: "Cormorant Garamond", serif;
  color: #E4D5C9;
  font-weight: 300;
}
.theme-abode .hero-subtitle, .theme-abode .nav-links a, .theme-abode .abode-label {
  font-family: "Montserrat", sans-serif;
}

/* Main container */
.theme-abode .abode-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .theme-abode .abode-container { padding: 2rem 3rem 4rem; }
}
@media (min-width: 992px) {
  .theme-abode .abode-container { padding: 2rem 5rem 4rem; }
}

/* Initial state for reveal (GSAP animates to visible) */
.theme-abode .abode-header { opacity: 0; }
.theme-abode .abode-header .logo { 
  opacity: 1 !important; 
  position: relative;
  z-index: 1;
}
.theme-abode .hero-title { opacity: 0; transform: translateY(20px); }
.theme-abode .hero-subtitle { opacity: 0; transform: translateY(12px); }
.theme-abode .main-statement { opacity: 0; transform: translateY(24px); }
.theme-abode .abode-showcase .image-wrapper { opacity: 0; transform: scale(0.96); }
.theme-abode .abode-icons { opacity: 0; }
.theme-abode .abode-contact { opacity: 0; transform: translateY(16px); }

/* Header */
.theme-abode .abode-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  z-index: 50;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .theme-abode .abode-header { margin-bottom: 2rem; }
}
.theme-abode .abode-header .logo {
  background: #785641;
  padding: 0;
  display: inline-block;
  position: relative;
}
.theme-abode .abode-header .logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #785641;
  z-index: 0;
}
.theme-abode .abode-header .logo img {
  height: 60px;
  width: auto;
  display: block;
  opacity: 1;
  position: relative;
  z-index: 1;
  mix-blend-mode: normal;
}
@media (min-width: 768px) {
  .theme-abode .abode-header .logo img { height: 85px; }
}
.theme-abode .abode-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}
.theme-abode .abode-nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: #E4D5C9;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: opacity 0.3s;
}
.theme-abode .abode-nav a:hover { opacity: 0.85; color: #E4D5C9; }
.theme-abode .abode-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #E4D5C9;
  transition: width 0.3s;
}
.theme-abode .abode-nav a:hover::after { width: 100%; }

/* Hero */
.theme-abode .abode-hero {
  text-align: center;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .theme-abode .abode-hero { margin-bottom: 8rem; }
}
.theme-abode .hero-title {
  font-size: clamp(2rem, 7vw, 2.6rem);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .theme-abode .hero-title { font-size: clamp(2.5rem, 8vw, 2.5rem); }
}
.theme-abode .hero-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.95;
}
@media (min-width: 768px) {
  .theme-abode .hero-subtitle { font-size: 0.75rem; }
}

/* Showcase split section */
.theme-abode .abode-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}
@media (min-width: 992px) {
  .theme-abode .abode-showcase {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    margin-bottom: 8rem;
  }
}
.theme-abode .main-statement {
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.2;
  color: #E4D5C9;
  text-align: center;
}
@media (min-width: 768px) {
  .theme-abode .main-statement { font-size: clamp(1.5rem, 3vw, 2rem); }
}
@media (min-width: 992px) {
  .theme-abode .main-statement { text-align: left; }
}
.theme-abode .abode-showcase .image-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .theme-abode .abode-showcase .image-wrapper { margin: 0 0 0 auto; }
}
.theme-abode .image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.theme-abode .image-wrapper:hover img { transform: scale(1.00); }
@media (min-width: 768px) {
  .theme-abode .image-wrapper img { height: 700px; }
}

/* Icons section */
.theme-abode .abode-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .theme-abode .abode-icons { gap: 4rem; margin-bottom: 6rem; }
}
.theme-abode .abode-icons .icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transition: transform 0.3s;
}
.theme-abode .abode-icons .icon-wrap:hover { transform: translateY(-4px); }
.theme-abode .abode-icons svg {
  width: 40px;
  height: 40px;
  opacity: 0.9;
  stroke: currentColor;
}
.theme-abode .abode-icons .icon-wrap:hover svg { opacity: 1; }

/* Contact section */
.theme-abode .abode-contact-heading {
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-align: right;
}
@media (min-width: 768px) {
  .theme-abode .abode-contact-heading { font-size: clamp(3rem, 10vw, 3.5rem); }
}
.theme-abode .abode-contact {
  margin-top: auto;
  padding-bottom: 1rem;
}
.theme-abode .abode-contact-info {
  text-align: right;
  margin-bottom: 2rem;
}
.theme-abode .abode-contact-link,
.theme-abode .abode-inquiry-btn {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #E4D5C9;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: right;
  width: 100%;
}
.theme-abode .abode-contact-link:hover,
.theme-abode .abode-inquiry-btn:hover {
  opacity: 0.85;
  color: #E4D5C9;
}
.theme-abode .abode-inquiry-btn {
  letter-spacing: 0.15em;
  text-transform: lowercase;
  font-weight: 500;
  margin-bottom: 1rem;
}
.theme-abode .abode-contact-ig {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  width: auto;
}
.theme-abode .abode-ig-icon {
  flex-shrink: 0;
}
.theme-abode .abode-contact-form {
  display: none;
  margin-top: 2rem;
}
.theme-abode .abode-contact-form.is-visible {
  display: block;
}
.theme-abode .abode-contact .form-group label {
  color: #E4D5C9;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.theme-abode .abode-contact .form-control {
  background: rgba(228, 213, 201, 0.15);
  border: 1px solid rgba(228, 213, 201, 0.4);
  color: #E4D5C9;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.theme-abode .abode-contact .form-control::placeholder { color: rgba(228, 213, 201, 0.6); }
.theme-abode .abode-contact .form-control:focus {
  outline: none;
  border-color: rgba(228, 213, 201, 0.8);
  background: rgba(228, 213, 201, 0.2);
  color: #E4D5C9;
}
.theme-abode .abode-contact textarea.form-control { min-height: 120px; resize: vertical; }
.theme-abode .abode-contact .btn-primary {
  background: #E4D5C9;
  color: #785641;
  border: 1px solid #E4D5C9;
  padding: 0.75rem 2rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.2s;
}
.theme-abode .abode-contact .btn-primary:hover {
  background: rgba(228, 213, 201, 0.95);
  color: #785641;
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Footer minimal */
.theme-abode .abode-footer {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(228, 213, 201, 0.3);
  text-align: center;
}
.theme-abode .abode-footer p {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(228, 213, 201, 0.85);
  margin: 0;
}

/* Decorative background */
.theme-abode .abode-bg-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.0;
  mix-blend-mode: overlay;
}
.theme-abode .abode-bg-blur .blur-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: #E4D5C9;
  filter: blur(150px);
  border-radius: 50%;
}
.theme-abode .abode-bg-blur .blur-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: #9a7d5f;
  filter: blur(120px);
  border-radius: 50%;
}

/* Loader overlay - match brown */
.theme-abode #overlayer { background: #785641 !important; }
.theme-abode .spinner-border { color: rgba(228, 213, 201, 0.9); }

/* Page-Specific Override: Portfolio Only */

/* This targets the hero spacing only when .portfolio-page is present on the body */
.portfolio-page .abode-hero {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .portfolio-page .abode-hero {
    margin-bottom: 3.5rem; /* Adjusted desktop spacing */
  }
}

/* Neutralize the template's default section padding for the grid area */
#portfolio-section.site-section {
  padding-top: 0;
  margin-top: 3rem; 
}

/* Optional: Tighten space specifically for the filter list */
.portfolio-page .filters {
  margin-bottom: 2.5rem !important;
}

/* Increase white space around portfolio images */
.theme-abode .isotope-card {
  padding: 15px; /* Adjust this number higher for more white space */
}

/* Ensure the hover effect and wrapper respect the new padding */
.theme-abode .image-wrapper {
  margin-bottom: 20px;
  overflow: hidden;
}

/* Optional: If you want the images even smaller on desktop */
@media (min-width: 992px) {
  .theme-abode .isotope-card {
    padding: 40px; /* Large gutters for a high-end, editorial look */
  }
}

/* =========================
   Portfolio Masonry Layout
   ========================= */

.portfolio-page .grid {
  column-count: 3;
  column-gap: 2rem;
}

.portfolio-page .isotope-card {
  break-inside: avoid;
  margin-bottom: 2rem;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Remove Bootstrap column sizing */
.portfolio-page .isotope-card[class*="col-"] {
  padding: 0;
  flex: unset;
  max-width: 100%;
}

/* Natural image ratios */
.portfolio-page .image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: unset;
}

/* Responsive column counts */
@media (max-width: 991px) {
  .portfolio-page .grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .portfolio-page .grid {
    column-count: 1;
  }
}

/* Fix: Round all 4 corners of the image instead of just the top */
.theme-abode .isotope-card {
  border-radius: 0 !important; /* Removes the template's top-only rounding */
}

.theme-abode .image-wrapper {
  border-radius: 5px;          /* Applies the 5px radius to all 4 corners */
  overflow: hidden;            /* Ensures the image clips to those corners */
  margin-bottom: 0 !important; /* Removes any remaining gap below the image */
}