/* =========================================
   OPEN CANVAS — INTERIOR DESIGN STUDIO
   Custom Stylesheet v1.0
   ========================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --sage: #7A9E7E;
  --sage-dark: #5C7A60;
  --sage-light: #A8C5AB;
  --blush: #E8C4BF;
  --blush-dark: #D4A49E;
  --taupe: #5C4A3A;
  --taupe-dark: #3D2E23;
  --cream: #F5F2EE;
  --cream-dark: #EDE8E1;
  --light-gray: #E8E4DF;
  --white: #FFFFFF;
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.35s ease;
  --shadow: 0 8px 32px rgba(60, 46, 35, 0.10);
  --shadow-lg: 0 16px 48px rgba(60, 46, 35, 0.16);
  --radius: 4px;
  --radius-lg: 12px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--taupe);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage-dark); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--taupe-dark);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

p { color: var(--taupe); line-height: 1.8; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--taupe-dark);
  line-height: 1.15;
}

.section-title span { color: var(--sage); font-style: italic; }

/* ---------- UTILITY CLASSES ---------- */
.bg-cream { background-color: var(--cream); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-taupe-dark { background-color: var(--taupe-dark); }
.bg-sage { background-color: var(--sage); }
.text-sage { color: var(--sage); }
.text-taupe { color: var(--taupe); }
.text-taupe-dark { color: var(--taupe-dark); }
.text-blush { color: var(--blush-dark); }

/* Decorative line */
.deco-line {
  width: 50px;
  height: 2px;
  background: var(--sage);
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- BUTTONS ---------- */
.btn-sage {
  background-color: #8fa286;
  color: #ffffff;
  border: 2px solid #8fa286;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-sage:hover {
  background-color: #7a8e72;
  border-color: #7a8e72;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-sage {
  background-color: transparent;
  color: var(--sage) !important;
  border: 2px solid #8fa286;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-sage:hover {
  background-color: #8fa286;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-light-custom {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-light-custom:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: #ffffff;
}

/* Global button text color override — filled buttons get white */
.btn, .btn-sage, .btn-outline-light-custom,
.nav-cta-btn {
  color: #ffffff !important;
}

/* Outline buttons get theme sage color */
.btn-outline-sage {
  color: var(--sage) !important;
}

/* Global button hover override */
.btn:hover, .btn-sage:hover, .btn-outline-sage:hover, .btn-outline-light-custom:hover,
.nav-cta-btn:hover {
  background-color: transparent !important;
  background: transparent !important;
  border: 1px solid #8fa387 !important;
  color: #8fa387 !important;
}

/* ---------- NAVBAR ---------- */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 0.5rem 0;
  transition: var(--transition);
  background: var(--white);
  box-shadow: 0 2px 24px rgba(60,46,35,0.08);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

#mainNav.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 2px 24px rgba(60,46,35,0.1);
}

#mainNav .navbar-brand img {
  height: 52px;
  transition: var(--transition);
}

#mainNav .nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 1rem; right: 1rem;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
}

#mainNav .nav-link:hover {
  color: var(--sage) !important;
}

#mainNav .navbar-toggler {
  border: none;
  outline: none;
  box-shadow: none;
}
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235C4A3A' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}
/* When menu is open, show close (X) icon */
#mainNav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235C4A3A' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e");
}

#mainNav .nav-cta-btn {
  background: #8fa286 !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius) !important;
  margin-left: 0.5rem;
}
#mainNav .nav-cta-btn:hover {
  background: #7a8e72 !important;
  color: #ffffff !important;
}
.nav-cta-btn::after { display: none !important; }

/* ---------- HERO SECTION ---------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

#hero .swiper-pagination:not(.hero-pagination) {
  display: none !important;
}
#hero .swiper-scrollbar {
  display: none !important;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 6s ease;
}

.hero-swiper .swiper-slide-active img {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 22, 15, 0.65) 0%,
    rgba(30, 22, 15, 0.35) 50%,
    rgba(30, 22, 15, 0.55) 100%
  );
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.hero-text {
  max-width: 780px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.swiper-slide-active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.hero-label::before {
  display: none;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title em {
  color: var(--white);
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-btns .btn,
.hero-btns [class*="btn-"] {
  color: #ffffff !important;
}

/* --- Hero bottom bar (pagination left, nav right) --- */
.hero-bottom-bar {
  position: absolute;
  bottom: 2.5rem;
  left: 5%;
  right: 5%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero pagination — circle dots */
.hero-pagination {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  display: flex;
  gap: 10px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  opacity: 1;
  position: relative;
  transition: all 0.3s ease;
}

/* Inner white dot */
.hero-pagination .swiper-pagination-bullet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

/* Active bullet — sage ring */
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--sage);
}

.hero-pagination .swiper-pagination-bullet-active::after {
  background: var(--white);
}

/* Hero nav arrows */
.hero-nav {
  display: flex;
  gap: 20px;
}

.hero-nav button {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-nav button:hover {
  background: var(--sage);
  border-color: var(--sage);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.hero-scroll:hover {
  color: rgba(255,255,255,0.9);
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--blush);
  animation: scrollLine 1.8s ease infinite;
}
@keyframes scrollLine {
  to { top: 100%; }
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--taupe-dark);
  padding: 1.5rem 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blush);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- ABOUT SECTION ---------- */
#about {
  padding: 7rem 0;
  background: var(--cream);
}

.about-image-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  background: var(--sage);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}
.about-badge-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge-text {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-content { padding: 2rem 0 2rem 3rem; }

.about-features { margin-top: 2rem; }

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.about-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.about-feature-text h6 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--taupe-dark);
  margin-bottom: 0.15rem;
}
.about-feature-text p {
  font-size: 0.85rem;
  color: var(--taupe);
  margin: 0;
}

/* ---------- SERVICES SECTION ---------- */
#services {
  padding: 7rem 0 5rem;
  background: var(--cream-dark);
}

/* --- Services Swiper --- */
.services-swiper {
  overflow: hidden;
  width: 100%;
}

.services-swiper .swiper-slide {
  transition: opacity 0.5s ease;
  opacity: 0.4;
  height: auto;
}

.services-swiper .swiper-slide-active {
  opacity: 1;
}

.services-swiper .swiper-slide-prev,
.services-swiper .swiper-slide-next {
  opacity: 0.6;
}

/* Slide image */
.service-slide-img {
  border-radius: 16px;
  overflow: hidden;
  height: 480px;
  position: relative;
}

.service-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Service hover overlay */
.service-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 16px;
  padding: 1.5rem;
  z-index: 2;
}

.service-slide-img:hover .service-slide-overlay {
  opacity: 1;
}

.service-slide-overlay h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-slide-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  max-width: 320px;
}

/* Caption below each slide (hidden, shown via JS for active) */
.service-slide-caption {
  display: none;
}

/* Active caption area below swiper */
.services-caption-active {
  flex: 1;
  min-height: 1.5em;
}

.services-caption-active p {
  font-size: 0.95rem;
  color: var(--taupe);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

/* --- Services Controls --- */
.services-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1.5rem;
}

.services-nav {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.services-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--taupe-dark);
  background: transparent;
  color: var(--taupe-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-nav button:hover {
  background: var(--taupe-dark);
  color: var(--white);
}

/* Mobile pagination */
.services-pagination {
  display: none;
}

@media (max-width: 767.98px) {
  .services-nav {
    display: none;
  }
  .services-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem;
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
  }
  .services-controls {
    justify-content: center;
  }
  .service-slide-img {
    height: 384px;
    border-radius: 12px;
  }
}

/* --- Service Grid Card (homepage) --- */
.service-grid-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.service-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.service-grid-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.service-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-grid-card:hover .service-grid-img img {
  transform: scale(1.06);
}
.service-grid-body {
  padding: 1.5rem;
}
.service-grid-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.service-grid-body h4 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--taupe-dark);
  margin-bottom: 0.4rem;
}
.service-grid-body p {
  font-size: 0.85rem;
  color: var(--taupe);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-grid-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.service-grid-card:hover .service-grid-link {
  color: var(--sage-dark);
  gap: 10px;
}

/* --- Service Card (services.php grid) --- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img {
  transform: scale(1.05);
}
.service-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--sage);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}
.service-card-body {
  padding: 1.5rem;
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--cream-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.service-card-body h4 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--taupe-dark);
  margin-bottom: 0.5rem;
}
.service-card-body p {
  font-size: 0.88rem;
  color: var(--taupe);
  line-height: 1.7;
}

.service-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.service-link:hover { color: var(--sage-dark); gap: 10px; }

/* Swiper custom pagination — keep in normal flow */
.swiper-pagination-custom {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
}
.swiper-pagination-custom .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--light-gray);
  opacity: 1;
  border-radius: 50%;
  transition: var(--transition);
}
.swiper-pagination-custom .swiper-pagination-bullet-active {
  background: var(--sage);
  width: 24px;
  border-radius: 4px;
}

/* Hide Swiper auto-generated pagination inside containers */
.services-swiper > .swiper-pagination,
.portfolio-swiper > .swiper-pagination,
.testimonials-swiper > .swiper-pagination {
  display: none !important;
}

/* ---------- PORTFOLIO SECTION ---------- */
#portfolio {
  padding: 7rem 0;
  background: var(--cream);
}

.portfolio-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--light-gray);
  color: var(--taupe) !important;
  padding: 0.45rem 1.25rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--sage) !important;
  border-color: var(--sage) !important;
  color: var(--white) !important;
}

.portfolio-swiper {
  padding: 2.5rem 0 3rem !important;
  overflow: visible !important;
}

/* Portfolio navigation arrows */
.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.6rem;
}

.portfolio-nav {
  display: flex;
  gap: 0.6rem;
}

.portfolio-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--taupe-dark);
  background: transparent;
  color: var(--taupe-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-nav button:hover {
  background: var(--taupe-dark);
  color: var(--white);
}

/* non-active slides */
.portfolio-swiper .swiper-slide {
  transform: scale(0.75);
  opacity: 0.45;
  z-index: 1;
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94),
              opacity  0.55s ease,
              z-index  0s    0.55s;
}

/* center (active) slide */
.portfolio-swiper .swiper-slide-active {
  transform: scale(1.08) !important;
  opacity: 1 !important;
  z-index: 10 !important;
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94),
              opacity  0.55s ease,
              z-index  0s;
}

/* immediate neighbours */
.portfolio-swiper .swiper-slide-prev,
.portfolio-swiper .swiper-slide-next {
  transform: scale(0.88) !important;
  opacity: 0.6 !important;
  z-index: 5 !important;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Home page gallery — fixed responsive height, ~4:3 visual at typical slide widths */
#portfolio .portfolio-swiper .swiper-slide { height: auto; }
#portfolio .portfolio-item {
  aspect-ratio: auto !important;
  width: 100%;
  height: 360px;
  display: block;
  overflow: hidden;
}
#portfolio .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 1199.98px) { #portfolio .portfolio-item { height: 320px; } }
@media (max-width: 991.98px)  { #portfolio .portfolio-item { height: 280px; } }
@media (max-width: 767.98px)  { #portfolio .portfolio-item { height: 260px; } }
@media (max-width: 575.98px)  { #portfolio .portfolio-item { height: 230px; } }

.portfolio-swiper .swiper-slide-active .portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,22,15,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-info h5 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.portfolio-info span {
  font-size: 0.72rem;
  color: var(--blush);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.portfolio-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-zoom { opacity: 1; }

/* --- Portfolio Masonry Grid (portfolio.php) --- */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
}
.masonry-item .portfolio-item {
  height: 100%;
  aspect-ratio: unset;
}
.masonry-item .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.masonry-wide {
  grid-column: span 2;
}
.masonry-tall {
  grid-row: span 2;
}
@media (max-width: 991px) {
  .portfolio-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .masonry-wide { grid-column: span 2; }
  .masonry-tall { grid-row: span 2; }
}
@media (max-width: 575px) {
  .portfolio-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .masonry-wide { grid-column: span 1; }
  .masonry-tall { grid-row: span 1; }
}

/* ---------- PROCESS SECTION ---------- */
#process {
  padding: 7rem 0;
  background: var(--taupe-dark);
}

.process-step {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.process-step-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: -1rem;
}

.process-step-icon {
  width: 72px;
  height: 72px;
  background: rgba(122, 158, 126, 0.15);
  border: 1px solid var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.process-step:hover .process-step-icon {
  background: var(--sage);
  color: var(--white);
  transform: scale(1.1);
}

.process-step-connector {
  position: absolute;
  top: calc(3.5rem + 36px);
  right: -50%;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-top: 1px dashed rgba(122,158,126,0.4);
  z-index: 0;
}

.process-step:last-child .process-step-connector { display: none; }

.process-step h5 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ---------- TESTIMONIALS SECTION ---------- */
#testimonials {
  padding: 7rem 0;
  background: var(--cream-dark);
}

.testimonials-swiper {
  padding: 1rem 0.5rem 4rem !important;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 3.5rem;
  color: var(--cream-dark);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: #C9A84C;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--taupe-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream-dark);
}

.testimonial-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--taupe-dark);
  margin-bottom: 0.1rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- CTA SECTION ---------- */
#cta {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,22,15,0.8) 0%, rgba(92,74,58,0.75) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ---------- FOOTER ---------- */
#footer {
  background: var(--taupe-dark);
  padding: 5rem 0 2rem;
}

.footer-brand img,
.footer-brand-logo img {
  height: 52px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
}
.footer-brand-logo { display: inline-block; text-decoration: none; }

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--sage);
  color: var(--white);
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--sage);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--sage); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-contact-item i {
  color: var(--sage);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--sage); }

/* ---------- BACK TO TOP ---------- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 9998;
  box-shadow: var(--shadow);
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  background: var(--sage-dark);
  transform: translateY(-3px);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* =============================================
   SERVICE DETAIL PAGE
   ============================================= */

/* --- Service Hero Banner --- */
.service-hero {
  position: relative;
  height: 65vh;
  min-height: 400px;
  overflow: hidden;
}

.service-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,22,15,0.8) 0%, rgba(30,22,15,0.4) 100%);
}

.service-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb-custom a,
.breadcrumb-custom span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.breadcrumb-custom a:hover { color: var(--blush); }
.breadcrumb-custom i { color: rgba(255,255,255,0.3); font-size: 0.6rem; }
.breadcrumb-custom .current { color: var(--blush); }

/* --- Service Overview --- */
.service-overview {
  padding: 7rem 0;
  background: var(--cream);
}

.overview-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream-dark);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--sage);
}

.highlight-item i {
  color: var(--sage);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.highlight-item h6 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: var(--taupe-dark);
}

.highlight-item p {
  font-size: 0.8rem;
  color: var(--taupe);
  margin: 0;
}

/* --- What's Included --- */
.whats-included {
  padding: 7rem 0;
  background: var(--cream-dark);
}

.include-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.include-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.include-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: -0.5rem;
}

.include-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin: 0 auto 1.25rem;
}

.include-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.include-card p {
  font-size: 0.83rem;
  color: var(--taupe);
  margin: 0;
}

/* --- Service Gallery --- */
.service-gallery {
  padding: 7rem 0;
  background: var(--cream);
}

.gallery-swiper {
  padding: 0.5rem 0.5rem 3.5rem !important;
}

.gallery-slide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-slide:hover img {
  transform: scale(1.05);
}

/* --- Process Timeline --- */
.process-timeline {
  padding: 7rem 0;
  background: var(--taupe-dark);
}

.timeline-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -2.5rem;
  width: 1px;
  background: rgba(122,158,126,0.25);
}
.timeline-step:last-child::before { display: none; }

.timeline-dot {
  width: 48px;
  height: 48px;
  background: rgba(122,158,126,0.15);
  border: 1px solid var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.timeline-step:hover .timeline-dot {
  background: var(--sage);
  color: var(--white);
}

.timeline-content h5 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.35rem;
  padding-top: 0.6rem;
}
.timeline-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* --- Pricing Section --- */
.service-pricing {
  padding: 7rem 0;
  background: var(--cream-dark);
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  height: 100%;
  border: 2px solid transparent;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}
.pricing-card.featured {
  background: var(--taupe-dark);
  border-color: var(--sage);
  transform: scale(1.04);
}
.pricing-card.featured h3,
.pricing-card.featured h5,
.pricing-card.featured .pricing-price { color: var(--white); }
.pricing-card.featured p,
.pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.6); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
}

.pricing-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}
.pricing-card.featured .pricing-icon {
  background: rgba(122,158,126,0.15);
}

.pricing-card h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--taupe-dark);
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--taupe-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.5rem; }
.pricing-price span { font-size: 0.85rem; font-family: var(--font-body); }

.pricing-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 1.5rem 0;
}
.pricing-card.featured .pricing-divider {
  background: rgba(255,255,255,0.1);
}

.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; text-align: left; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--taupe);
  border-bottom: 1px dashed var(--light-gray);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature i { color: var(--sage); font-size: 0.95rem; }
.pricing-feature.disabled { opacity: 0.4; text-decoration: line-through; }
.pricing-feature.disabled i { color: var(--light-gray); }
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.1); }
.pricing-card.featured .pricing-feature { border-bottom-color: rgba(255,255,255,0.08); }

/* --- FAQ Section --- */
.service-faq {
  padding: 6rem 0;
  background: var(--cream);
}

.faq-item {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--sage-light); }

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--taupe-dark);
  text-align: left;
  transition: var(--transition);
  gap: 1rem;
}
.faq-question:hover { background: var(--cream-dark); }
.faq-question.open { background: var(--cream-dark); color: var(--sage-dark); }

.faq-question i {
  font-size: 1.2rem;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.faq-question.open i { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--white);
  padding: 0 1.5rem;
}
.faq-answer.open {
  max-height: 300px;
  padding: 1rem 1.5rem 1.5rem;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--taupe);
  margin: 0;
}

/* ---------- INLINE STYLE EXTRACTIONS ---------- */

/* Reusable section padding/background classes */
.section-cream {
  padding: 7rem 0;
  background: var(--cream);
}

.section-cream-dark {
  padding: 7rem 0;
  background: var(--cream-dark);
}

.section-pad-7 {
  padding: 7rem 0;
}

/* Section label color variant for dark backgrounds */
.section-label-blush {
  color: var(--blush);
}

/* Section title color variant for dark backgrounds */
.section-title-white {
  color: white;
}

/* Page hero title (about, gallery, etc.) */
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  color: white;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  max-width: 640px;
  margin-top: 0.5rem;
}

/* Blush-colored emphasis within hero titles */
.page-hero-title em,
em.text-blush-em {
  color: var(--blush);
}

/* Hero subtitle paragraph */
.page-hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* Process section description (light text on dark bg) */
.process-section-desc {
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  margin: 1rem auto 0;
}

/* Values section description */
.values-section-desc {
  max-width: 520px;
  margin: 1rem auto 0;
  color: var(--taupe);
}

/* Why Choose Us section */
.section-why-choose {
  padding: 7rem 0;
  background: var(--cream);
}

/* FAQ section on homepage */
.section-faq {
  padding: 7rem 0;
  background: var(--cream);
}

/* Portfolio item description in gallery overlay */
.portfolio-desc-clamp {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- SERVICES PAGE ---------- */

/* Service card flex column layout */
.service-card-flex {
  display: flex;
  flex-direction: column;
}

/* Service card body flex layout */
.service-card-body-flex {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Service card category label */
.service-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
  display: block;
}

/* Service card description flex grow */
.service-card-desc {
  flex: 1;
}

/* Empty state icon */
.empty-state-icon {
  font-size: 3rem;
  color: var(--sage);
  opacity: 0.5;
}

/* Empty state heading */
.empty-state-heading {
  color: var(--taupe);
}

/* ---------- SERVICE DETAIL PAGE ---------- */

/* Page hero title wider variant */
.page-hero-title-wide {
  font-family: 'Cormorant Garamond', serif;
  color: white;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  max-width: 700px;
  margin-top: 0.5rem;
}

/* Inline service tag badge in hero */
.service-hero-tag {
  display: inline-block;
  background: var(--sage);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Hero subtitle wider variant */
.page-hero-subtitle-wide {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* What's included section description */
.included-section-desc {
  max-width: 520px;
  margin: 1rem auto 0;
  color: var(--taupe);
}

/* Gallery navigation button base */
.gallery-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery prev button */
.gallery-nav-prev {
  border: 1px solid var(--light-gray);
  background: white;
  color: var(--taupe);
}

/* Gallery next button */
.gallery-nav-next {
  border: 1px solid var(--sage);
  background: var(--sage);
  color: white;
}

/* Process timeline description */
.timeline-section-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  max-width: 380px;
}

/* Service detail CTA section */
.service-cta-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

/* Testimonials section */
.section-testimonials {
  padding: 7rem 0;
  background: var(--cream);
}

/* Other services section */
.section-other-services {
  padding: 6rem 0;
  background: var(--cream-dark);
}

/* Other service link card */
.other-service-card {
  display: block;
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 16px rgba(60, 46, 35, 0.08);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

/* Other service icon circle */
.other-service-icon {
  width: 52px;
  height: 52px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--sage);
  font-size: 1.3rem;
}

/* Other service title */
.other-service-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
  color: var(--taupe-dark);
}

/* Book consult CTA card (sage background) */
.other-service-cta-card {
  display: block;
  background: var(--sage);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 16px rgba(122, 158, 126, 0.3);
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}

/* Book consult icon circle */
.other-service-cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: white;
  font-size: 1.3rem;
}

/* Book consult title */
.other-service-cta-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

/* ---------- PORTFOLIO PAGE ---------- */

/* Portfolio item height variants */
.portfolio-item-tall {
  height: 400px;
}

.portfolio-item-short {
  height: 320px;
}

.portfolio-item-static {
  height: 280px;
}

/* Portfolio item cover image */
.portfolio-item-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portfolio results info text */
.portfolio-results-text {
  color: var(--taupe);
  font-size: 0.9rem;
}

/* Portfolio results "View All" link */
.portfolio-results-link {
  color: var(--sage);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* ---------- FOOTER ---------- */

/* Footer brand name */
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* Footer link color inherit */
.footer-link-inherit {
  color: inherit;
}

/* Footer bottom developer link */
.footer-dev-link {
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

/* Blush emphasis text */
.text-blush-em {
  color: var(--blush);
}

/* ===== TEAM PAGE ===== */

/* Team intro section */
.team-intro-section {
  padding: 5rem 0;
  background: var(--cream);
}

.team-intro-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.team-intro-text {
  color: var(--taupe);
}

/* Team grid section */
.team-grid-section {
  padding: 2rem 0 7rem;
  background: var(--cream);
}

/* Team card */
.team-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card:hover .team-social-overlay {
  opacity: 1 !important;
}

/* Team card image wrapper */
.team-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 360px;
}

.team-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Team social overlay */
.team-social-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 46, 35, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}

.team-social-links {
  display: flex;
  gap: 0.75rem;
}

.team-social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

/* Team card body */
.team-card-body {
  padding: 1.5rem;
}

.team-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: var(--taupe-dark);
}

.team-card-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.team-card-bio {
  font-size: 0.88rem;
  color: var(--taupe);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Team values section */
.team-values-section {
  padding: 7rem 0;
  background: var(--cream-dark);
}

/* Team join section */
.team-join-section {
  padding: 7rem 0;
  background: var(--cream);
}

/* Team stat boxes */
.team-stat-box {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.team-stat-box-accent {
  background: var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.team-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage);
}

.team-stat-box-accent .team-stat-num {
  color: white;
}

.team-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--taupe);
  margin: 0;
}

.team-stat-box-accent .team-stat-label {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== CONTACT PAGE ===== */

/* Contact section wrapper */
.contact-section {
  padding: 7rem 0;
  background: var(--cream);
}

/* Sticky sidebar */
.contact-info-sticky {
  position: sticky;
  top: 120px;
}

/* Contact info text */
.contact-info-text {
  color: var(--taupe);
}

/* Contact page — override footer-contact-item colors for light bg */
.contact-section .footer-contact-item {
  align-items: center;
}
.contact-section .footer-contact-item i {
  color: var(--sage);
  font-size: 1.1rem;
  min-width: 1.5rem;
  margin-top: 0;
  flex-shrink: 0;
}
.contact-section .footer-contact-item span,
.contact-item-text {
  color: var(--taupe);
  font-size: 0.9rem;
}
.contact-link {
  color: var(--taupe);
  text-decoration: none;
}

/* Contact item with extra bottom margin */
.contact-item-mb-2 {
  margin-bottom: 2rem;
}

/* Follow Us / Quick Links label */
.contact-sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.75rem;
}

/* Footer social override — left-aligned on contact page */
.footer-social-left {
  justify-content: flex-start;
}
.footer-social-left a {
  background: var(--cream-dark);
  color: var(--taupe);
}
.footer-social-left a:hover {
  background: var(--sage);
  color: var(--white);
}

/* Quick links separator block */
.contact-quick-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

/* Quick links list */
.contact-quick-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Quick link item */
.contact-quick-link {
  color: var(--taupe);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Quick link icon */
.contact-quick-link-icon {
  color: var(--sage);
}

/* Form card */
.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

/* Success card */
.contact-success-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
  text-align: center;
}

/* Success icon circle */
.contact-success-icon {
  width: 80px;
  height: 80px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-success-icon i {
  font-size: 2rem;
  color: white;
}

/* Success heading */
.contact-success-heading {
  font-family: var(--font-head);
  color: var(--taupe-dark);
  margin-bottom: 0.75rem;
}

/* Success body text */
.contact-success-text {
  color: var(--taupe);
  max-width: 460px;
  margin: 0 auto 1.5rem;
}

/* Success explore text */
.contact-success-explore {
  color: var(--taupe);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

/* Success inline link */
.contact-success-link {
  color: var(--sage);
  font-weight: 600;
}

/* Form heading */
.contact-form-heading {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--taupe-dark);
  margin-bottom: 0.4rem;
}

/* Form subheading */
.contact-form-subheading {
  color: var(--taupe);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Form error alert */
.contact-form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-form-error-icon {
  color: #dc2626;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form-error-text {
  margin: 0;
  color: #dc2626;
  font-size: 0.88rem;
}

/* Form label */
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  display: block;
  margin-bottom: 0.4rem;
}

/* Required asterisk */
.contact-required {
  color: var(--sage);
}

/* Form input / textarea / select base */
.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--taupe-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.25s;
}

.contact-input:focus {
  border-color: var(--sage);
}

/* Error state for inputs */
.contact-input.is-invalid {
  border-color: #dc2626;
}

.contact-input.is-invalid:focus {
  border-color: #dc2626;
}

/* Select dropdown with custom arrow */
.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%235C4A3A' d='m12 15-4.5-4.5 1.06-1.06L12 12.88l3.44-3.44 1.06 1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Textarea specific */
.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Field error message */
.contact-field-error {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: #dc2626;
}

/* Privacy notice */
.contact-privacy {
  font-size: 0.78rem;
  color: var(--taupe);
  opacity: 0.75;
  margin: 0;
}

.contact-privacy-icon {
  color: var(--sage);
  margin-right: 0.25rem;
}

/* Submit button */
.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--sage);
  color: white;
  border: none;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
}

.contact-submit:hover {
  background: var(--sage-dark);
}

/* Why Us strip section */
.why-strip-section {
  padding: 5rem 0;
  background: var(--cream-dark);
}

/* Why Us strip card */
.why-strip-card {
  padding: 1.5rem 1rem;
}

/* Why Us strip icon */
.why-strip-icon {
  width: 56px;
  height: 56px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--sage);
  font-size: 1.4rem;
}

/* Why Us strip title */
.why-strip-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--taupe-dark);
  margin-bottom: 0.3rem;
}

/* Why Us strip text */
.why-strip-text {
  font-size: 0.85rem;
  color: var(--taupe);
}

/* Process section on contact page (dark bg) */
.contact-process-section {
  padding: 7rem 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1199px) {
  .about-img-accent { right: 0; }
  .about-badge { left: 0; }
}

/* ===== TABLET (max-width: 991px) ===== */
@media (max-width: 991px) {
  #about { padding: 3rem 0; }
  #services, #portfolio, #process, #testimonials { padding: 5rem 0; }
  .about-content { padding: 2rem 0 0; }
  .about-img-accent { display: none; }
  .about-badge { left: 1rem; }
  .process-step-connector { display: none; }
  .service-overview, .whats-included, .service-gallery,
  .process-timeline, .service-pricing, .service-faq { padding: 5rem 0; }
  .pricing-card.featured { transform: none; }

  /* Navbar mobile menu */
  #mainNav .navbar-collapse {
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 0.25rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  #mainNav .navbar-nav {
    gap: 0 !important;
    width: 100%;
    align-items: stretch !important;
  }
  #mainNav .nav-link {
    padding: 0.75rem 0.5rem !important;
    border-bottom: 1px solid var(--light-gray);
    display: block;
    width: 100%;
  }
  #mainNav .nav-link::after {
    display: none;
  }
  #mainNav .nav-cta-btn {
    margin-left: 0 !important;
    margin-top: 0.75rem;
    text-align: center;
    display: block !important;
    width: 100%;
    padding: 0.75rem 1rem !important;
    border-bottom: none !important;
  }
  #mainNav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Portfolio filter scroll on tablet */
  .portfolio-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .portfolio-filter::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* Team cards */
  .team-card img { max-height: 300px; }

  /* CTA section */
  .cta-content h2 { font-size: 2rem; }
}

/* ===== SMALL TABLET / LARGE PHONE (max-width: 767px) ===== */
@media (max-width: 767px) {
  /* Navbar — compact app-style */
  #mainNav .navbar-brand img { height: 38px; }
  #mainNav { padding: 0.3rem 0; }
  #mainNav .container { padding-left: 0.75rem; padding-right: 0.75rem; }

  /* Global section compression */
  #services, #portfolio, #process, #testimonials { padding: 1rem 0; }
  #about { padding: 1.5rem 0; }
  .section-cream, .section-cream-dark, .section-pad-7,
  .section-why-choose, .section-faq { padding: 1.5rem 0 !important; }
  section[style*="padding:5rem"] { padding: 1.5rem 0 !important; }
  #cta { padding: 1.5rem 0; }
  #footer { padding: 1.5rem 0; }
  .footer-bottom { margin-top: 0 !important; }

  /* Row/margin compression */
  #services .row.mb-5 { margin-bottom: 0.75rem !important; }
  #portfolio .row.mb-4 { margin-bottom: 0.5rem !important; }
  #testimonials .row.mb-5 { margin-bottom: 0 !important; }
  .portfolio-filter { margin-bottom: 0 !important; }
  .testimonials-swiper { padding: 0.75rem 0.5rem 0 !important; }
  .values-section { padding-top: 0 !important; }
  .row.g-5 { --bs-gutter-y: 1.5rem; }
  .row.g-4 { --bs-gutter-y: 0.75rem; }
  .mb-5 { margin-bottom: 1rem !important; }
  .mb-4 { margin-bottom: 0.75rem !important; }
  .mt-4 { margin-top: 0.75rem !important; }

  /* Hero — compact */
  #hero { height: 50vh; min-height: 380px; }
  .hero-title { font-size: 1.8rem; word-break: break-word; line-height: 1.15; }
  .hero-title br { display: none; }
  .hero-label { font-size: 0.58rem; letter-spacing: 0.18em; margin-bottom: 0.5rem; }
  .hero-desc { font-size: 0.78rem; max-width: 280px; margin-bottom: 1rem; }
  .hero-content { padding: 0 1.25rem; }
  .hero-text { max-width: 100%; }
  .hero-btns { flex-direction: row; gap: 0.5rem; }
  .hero-btns .btn-sage,
  .hero-btns .btn-outline-light-custom {
    width: auto; justify-content: center;
    padding: 0.45rem 0.9rem; font-size: 0.62rem;
  }
  .hero-scroll { display: none; }
  .hero-bottom-bar { bottom: 0.75rem; left: 3%; right: 3%; }
  .hero-nav button { width: 34px; height: 34px; font-size: 0.85rem; }
  .hero-nav { gap: 10px; }
  .hero-pagination .swiper-pagination-bullet { width: 12px; height: 12px; }

  /* Stats bar — tight */
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 0; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.58rem; }
  .stats-bar { padding: 0.75rem 0; }

  /* About — compressed */
  .about-img-main { height: 260px; }
  .about-feature-item { text-align: left; margin-bottom: 0; }
  .about-content { padding: 1rem 0 0; }
  .about-content p { font-size: 0.85rem; margin-bottom: 0.5rem !important; }
  .about-features { gap: 0.5rem; }

  /* Section headings — tighter */
  .section-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
  .section-label { font-size: 0.62rem; margin-bottom: 0.25rem; }

  /* Service page hero */
  /* Page hero spacing */
  .page-hero-title { margin-top: 0.2rem; font-size: 1.6rem; }
  .page-hero-subtitle { margin-top: 0.3rem; font-size: 0.8rem; }
  .service-hero-content .section-label { margin-bottom: 0.15rem; }

  .why-strip-section { padding: 0 !important; }
  .contact-section { padding: 1rem 0 !important; }

  .service-hero { height: 40vh; min-height: 260px; }
  .service-hero-content { align-items: center; padding-bottom: 0; padding-top: 60px; }
  .service-hero h1 { font-size: 1.6rem !important; }
  .service-hero p { font-size: 0.8rem !important; }

  /* Process steps — compact */
  .process-step { padding: 1rem; }
  .process-step h5 { font-size: 0.82rem; }
  .process-step p { font-size: 0.72rem; }
  .process-step-icon { width: 40px; height: 40px; font-size: 0.9rem; margin-bottom: 0.5rem; }
  .process-step-num { font-size: 0.6rem; }

  /* Testimonial cards — compact */
  .testimonial-card { padding: 1rem; }
  .testimonial-text { font-size: 0.82rem; line-height: 1.5; }
  .testimonial-quote-icon { font-size: 2rem; }
  .testimonial-avatar { width: 32px; height: 32px; }
  .testimonial-name { font-size: 0.8rem; }
  .testimonial-role { font-size: 0.65rem; }

  /* Contact form — tight */
  .contact-form-wrap { padding: 1rem !important; }

  /* Footer — compact */
  .footer-brand p { font-size: 0.78rem; }
  .footer-heading { margin-top: 0; font-size: 0.75rem; }
  .footer-links li { margin-bottom: 0.35rem; }
  .footer-links li a { font-size: 0.78rem; }
  .footer-contact-item { margin-bottom: 0.5rem; }
  .footer-contact-item span { font-size: 0.8rem; }

  /* Include/Feature cards — compact */
  .include-card { padding: 1rem; }
  .include-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 0.5rem; }
  .include-card h5 { font-size: 0.85rem; margin-bottom: 0.25rem; }
  .include-card p { font-size: 0.72rem; line-height: 1.5; }

  /* FAQ — tight */
  .faq-question { font-size: 0.85rem; padding: 0.75rem 1rem; }
  .faq-answer { padding: 0 1rem 0; }
  .faq-answer p { font-size: 0.78rem; }
  .faq-item { margin-bottom: 0.5rem; }

  /* Gallery masonry */
  .portfolio-masonry { grid-auto-rows: 180px; gap: 0.5rem; }

  /* CTA — compact */
  .cta-content { padding: 1.5rem 1rem; }
  .cta-content h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .cta-content p { font-size: 0.78rem; margin-bottom: 1rem; }

  /* Buttons — app-sized */
  .btn-sage, .btn-outline-sage, .btn-outline-light-custom {
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
  .btn-sage.btn-lg, .btn-outline-light-custom.btn-lg {
    padding: 0.55rem 1.2rem;
    font-size: 0.7rem;
  }

  /* Service cards — compact */
  .service-card-body { padding: 1rem; }
  .service-card-body h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
  .service-card-body p { font-size: 0.75rem; line-height: 1.5; }
  .service-card-icon { width: 36px; height: 36px; font-size: 0.9rem; margin-bottom: 0.5rem; }

  /* Team cards */
  .team-card img { max-height: 240px; }

  /* Portfolio items */
  .portfolio-item { border-radius: 8px; }
  .portfolio-info h5 { font-size: 0.82rem; }
  .portfolio-info span { font-size: 0.65rem; }

  /* Breadcrumb */
  .breadcrumb-custom { font-size: 0.65rem; margin-bottom: 0.5rem; }
}

/* ===== MOBILE (max-width: 575px) ===== */
@media (max-width: 575px) {
  body { overflow-x: hidden; }

  /* Navbar */
  #mainNav .navbar-brand img { height: 32px; }
  #mainNav { padding: 0.25rem 0; }

  /* Hero — extra compact */
  #hero { height: 45vh; min-height: 340px; }
  .hero-content { padding: 0 1rem; }
  .hero-title { font-size: 1.5rem; line-height: 1.15; }
  .hero-label { font-size: 0.52rem; }
  .hero-desc { font-size: 0.72rem; max-width: 240px; margin-bottom: 0.75rem; }
  .hero-bottom-bar { bottom: 0.6rem; left: 3%; right: 3%; }
  .hero-btns .btn-sage,
  .hero-btns .btn-outline-light-custom { font-size: 0.58rem; padding: 0.4rem 0.8rem; }
  .hero-nav button { width: 30px; height: 30px; font-size: 0.75rem; }
  .hero-pagination .swiper-pagination-bullet { width: 10px; height: 10px; }

  /* Section headings */
  .section-title { font-size: 1.4rem; margin-bottom: 0.35rem; }
  .section-label { font-size: 0.58rem; }

  /* Stats */
  .stat-num { font-size: 1.1rem; }
  .stat-label { font-size: 0.52rem; }
  .stats-bar { padding: 0.5rem 0; }

  /* About */
  .about-img-main { height: 220px; border-radius: 10px; }
  .about-badge { width: 65px; height: 65px; }
  .about-badge-num { font-size: 0.95rem; }
  .about-badge-text { font-size: 0.5rem; }
  .about-feature-icon { width: 36px; height: 36px; font-size: 0.85rem; }

  /* Service cards */
  .service-card-body { padding: 0.75rem; }
  .service-card-body h4 { font-size: 0.88rem; }
  .service-card-body p { font-size: 0.72rem; line-height: 1.45; }
  .service-card-img-wrap { height: 160px; }
  .service-card-icon { width: 32px; height: 32px; font-size: 0.8rem; }

  /* Portfolio filter */
  .portfolio-filter { gap: 0.3rem; }
  .filter-btn { padding: 0.3rem 0.7rem; font-size: 0.62rem; }

  /* Portfolio */
  .portfolio-item { border-radius: 8px; }
  .portfolio-info h5 { font-size: 0.78rem; }
  .portfolio-info span { font-size: 0.6rem; }

  /* Process */
  .process-step { padding: 0.75rem; }
  .process-step-num { font-size: 0.55rem; }
  .process-step-icon { width: 36px; height: 36px; font-size: 0.85rem; }
  .process-step h5 { font-size: 0.75rem; }
  .process-step p { font-size: 0.65rem; }

  /* Testimonials */
  .testimonial-card { padding: 0.75rem; }
  .testimonial-quote-icon { font-size: 1.8rem; }
  .testimonial-text { font-size: 0.75rem; line-height: 1.45; }
  .testimonial-avatar { width: 28px; height: 28px; }
  .testimonial-name { font-size: 0.75rem; }
  .testimonial-role { font-size: 0.6rem; }
  .testimonial-stars i { font-size: 0.7rem; }

  /* CTA */
  .cta-content { padding: 1.25rem 1rem; }
  .cta-content h2 { font-size: 1.2rem; }
  .cta-content p { font-size: 0.72rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer-bottom-links { justify-content: center; }
  .footer-social a { width: 32px; height: 32px; font-size: 0.85rem; }
  .footer-brand p { font-size: 0.72rem; }
  .footer-links li a { font-size: 0.72rem; }
  .footer-contact-item span { font-size: 0.72rem; }

  /* Buttons — compact */
  .btn-sage, .btn-outline-sage, .btn-outline-light-custom {
    padding: 0.45rem 0.9rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  /* Team */
  .team-card img { max-height: 200px; }

  /* Contact form */
  [style*="padding:2.5rem"] { padding: 1rem !important; }

  /* Breadcrumb */
  .breadcrumb-custom { font-size: 0.6rem; }

  /* Service hero */
  /* Page hero spacing */
  .page-hero-title { margin-top: 0.15rem; font-size: 1.4rem; }
  .page-hero-subtitle { margin-top: 0.2rem; font-size: 0.72rem; }
  .service-hero-content .section-label { margin-bottom: 0.1rem; font-size: 0.55rem; }

  .service-hero { height: 35vh; min-height: 220px; }
  .service-hero-content h1 { font-size: 1.4rem !important; }
  .service-hero-content p { font-size: 0.75rem !important; }

  /* FAQ */
  .faq-question { font-size: 0.78rem; padding: 0.65rem 0.75rem; }
  .faq-answer { padding: 0 0.75rem 0; }
  .faq-answer p { font-size: 0.72rem; }
  .faq-item { margin-bottom: 0.35rem; }

  /* Include cards */
  .include-card { padding: 0.75rem; }
  .include-card h5 { font-size: 0.8rem; }
  .include-card p { font-size: 0.68rem; line-height: 1.45; }
  .include-icon { width: 36px; height: 36px; font-size: 0.85rem; }

  /* Gallery masonry */
  .portfolio-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
    gap: 0.5rem;
  }
  .masonry-wide { grid-column: span 1; }
  .masonry-tall { grid-row: span 1; }

  /* Services controls */
  .services-controls { margin-top: 0.75rem; }
  .services-caption-active p { font-size: 0.72rem; }
}

/* ===== VERY SMALL SCREENS (max-width: 380px) ===== */
@media (max-width: 380px) {
  #mainNav .navbar-brand img { height: 28px; }
  #hero { height: 40vh; min-height: 300px; }
  .hero-title { font-size: 1.3rem; }
  .hero-desc { font-size: 0.65rem; max-width: 200px; }
  .hero-label { font-size: 0.48rem; }
  .hero-btns .btn-sage,
  .hero-btns .btn-outline-light-custom { font-size: 0.52rem; padding: 0.35rem 0.65rem; }
  .hero-nav button { width: 28px; height: 28px; font-size: 0.7rem; }
  .hero-pagination .swiper-pagination-bullet { width: 8px; height: 8px; }
  .section-title { font-size: 1.2rem; }
  .section-label { font-size: 0.52rem; }
  .stat-num { font-size: 1rem; }
  .stat-label { font-size: 0.48rem; }
  .btn-sage, .btn-outline-sage, .btn-outline-light-custom {
    padding: 0.35rem 0.7rem;
    font-size: 0.58rem;
  }
  .cta-content h2 { font-size: 1.1rem; }
  .service-hero { height: 32vh; min-height: 200px; }
  .service-hero-content h1 { font-size: 1.2rem !important; }
  .filter-btn { padding: 0.25rem 0.55rem; font-size: 0.55rem; }
  .about-img-main { height: 180px; }
  .about-badge { display: none; }
  .include-card h5 { font-size: 0.72rem; }
  .include-card p { font-size: 0.6rem; }
  .process-step h5 { font-size: 0.68rem; }
  .process-step p { font-size: 0.58rem; }
}

/* ════════════════════════════════════════════════════════════════
   Rich Text (WYSIWYG output) — renders Quill HTML output cleanly.
   Wrap rich-content blocks in <div class="rich-content"> on the frontend.
   ════════════════════════════════════════════════════════════════ */
.rich-content { line-height: 1.7; }
.rich-content p { margin-bottom: 1em; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content h2,
.rich-content h3 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: #3D2E23;
  margin: 1.4em 0 .5em;
  font-weight: 600;
  line-height: 1.25;
}
.rich-content h2 { font-size: 1.6rem; }
.rich-content h3 { font-size: 1.3rem; }
.rich-content strong, .rich-content b { color: #3D2E23; font-weight: 700; }
.rich-content em, .rich-content i { font-style: italic; }
.rich-content u { text-decoration: underline; }
.rich-content s { text-decoration: line-through; opacity: .7; }
.rich-content a {
  color: #7A9E7E; text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.rich-content a:hover { color: #5d7d61; }
.rich-content ul,
.rich-content ol { padding-left: 1.4em; margin: .8em 0 1em; }
.rich-content li { margin-bottom: .35em; }
.rich-content blockquote {
  margin: 1em 0;
  padding: .8em 1.1em;
  border-left: 3px solid #C9A84C;
  background: #FAFAF6;
  color: #5C4A3A;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1em 0;
  display: block;
  box-shadow: 0 4px 14px rgba(60,46,35,.08);
}
/* Quill alignment classes — output as-is from editor */
.rich-content .ql-align-center  { text-align: center; }
.rich-content .ql-align-right   { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-align-center img,
.rich-content .ql-align-right img { margin-left: auto; margin-right: auto; display: block; }
.rich-content .ql-align-right img { margin-left: auto; margin-right: 0; }
