/* ===== Step4 Custom Styles — v8 Mosaic ===== */

/* ── Force fonts directly (failsafe) ── */
body {
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-serif, .font-playfair {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* ── Editorial Design System ── */

/* Oversized editorial number background decoration */
.ed-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 8rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Tags / Chips */
.ed-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* Buttons */
.ed-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0D4F5E;
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(13,79,94,0.15);
}
.ed-btn-primary:hover {
  background: #0a3f4c;
  box-shadow: 0 6px 24px rgba(13,79,94,0.25);
}

.ed-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background 0.2s;
  border-radius: 2px;
}
.ed-btn-light:hover {
  background: rgba(255,255,255,0.22);
}

/* Testimonial quote grid */
.ed-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}
.ed-quote-cell {
  padding: 1.75rem;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  height: 320px;
}
.ed-quote-cell > div:last-child {
  margin-top: auto;
}
.ed-quote-cell:hover {
  background: #faf7f2;
}
@media (max-width: 1024px) {
  .ed-quote-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ed-quote-grid { grid-template-columns: 1fr; }
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FAF7F2; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6B7C4E, #0D4F5E); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #0D4F5E; }

/* ── Typography Enhancements ── */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Subtle text label above headings */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B7C4E;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, #6B7C4E, #0D4F5E);
  border-radius: 2px;
}

/* ── Hero ── */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(8, 58, 71, 0.88) 0%,
    rgba(13, 79, 94, 0.72) 45%,
    rgba(75, 90, 46, 0.45) 80%,
    rgba(212, 197, 170, 0.15) 100%
  );
}

/* ── Sticky Header Shrink ── */
#main-header {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#main-header.scrolled {
  box-shadow: 0 1px 20px rgba(8, 58, 71, 0.1);
  background: rgba(255, 255, 255, 0.98) !important;
}

#main-header.scrolled .header-inner {
  height: 64px !important;
}

/* ── Glass ── */
.glass-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card-dark {
  background: rgba(8, 58, 71, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #0D6A7E 0%, #4A5A2E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #B09A72 0%, #6B7C4E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gradient Border ── */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #0D4F5E, #6B7C4E, #D4C5AA);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Float ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ── Pulse Glow ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 79, 94, 0); }
  50% { box-shadow: 0 0 30px 6px rgba(13, 79, 94, 0.25); }
}
.animate-pulse-glow { animation: pulse-glow 3.5s ease-in-out infinite; }

/* ── Fade In Up ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.md\:delay-100 { animation-delay: 0.12s; }
.md\:delay-200 { animation-delay: 0.25s; }
.fade-in-up-delay-1 { animation-delay: 0.12s; }
.fade-in-up-delay-2 { animation-delay: 0.25s; }
.fade-in-up-delay-3 { animation-delay: 0.38s; }
.fade-in-up-delay-4 { animation-delay: 0.52s; }

/* ── Slide in Left / Right ── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.slide-in-left  { opacity: 0; }
.slide-in-right { opacity: 0; }

.slide-in-left.visible  { animation: slideInLeft  0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.slide-in-right.visible { animation: slideInRight 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ── Scale In ── */
.scale-in {
  opacity: 0;
  transform: scale(0.92) translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ── Service Cards ── */
.service-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 60px -12px rgba(8, 58, 71, 0.18);
}

/* ── CTA Button Shimmer ── */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}

/* ── Navigation ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6B7C4E, #0D4F5E);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open { transform: translateX(0); }

/* ── Stat Counter ── */
.stat-number { font-variant-numeric: tabular-nums; }

/* ── Testimonial Card ── */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -8px rgba(8, 58, 71, 0.14);
}

/* Quote mark decor */
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  line-height: 0.6;
  color: rgba(13, 79, 94, 0.12);
  font-style: normal;
  pointer-events: none;
  user-select: none;
}

/* ── Wave Dividers ── */
.wave-divider {
  position: relative;
}
.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90'%3E%3Cpath fill='%23F5F0E8' d='M0,30 C240,80 480,10 720,50 C960,90 1200,20 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.wave-divider-white::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90'%3E%3Cpath fill='%23ffffff' d='M0,30 C240,80 480,10 720,50 C960,90 1200,20 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.wave-divider-sand::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90'%3E%3Cpath fill='%23FDFCF9' d='M0,30 C240,80 480,10 720,50 C960,90 1200,20 1440,45 L1440,90 L0,90 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

/* ── iFrame Container ── */
.iframe-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(8, 58, 71, 0.18);
}
.iframe-container iframe { border: none !important; border-radius: 20px; }

/* ── Accordion ── */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.accordion-content.open { max-height: 500px; }

/* ── Badge Pulse ── */
.badge-pulse { animation: badgePulse 2.2s ease-in-out infinite; }
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ── Horizontal rule as decorative element ── */
.decorative-rule {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #6B7C4E, #0D4F5E);
  border-radius: 2px;
  margin: 0 auto;
}

/* ── Section spacing ── */
.section-pad { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .section-pad { padding-top: 8rem; padding-bottom: 8rem; } }

/* ── Print ── */
@media print {
  .no-print { display: none !important; }
  body { background: white !important; }
}

/* ── Responsive utilities (missing from Tailwind build) ── */
@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:inline { display: inline !important; }
}

.flex-grow { flex-grow: 1; }
