/* -- proprietaires.html - Page-specific styles -- */

/* Global Editorial Font Shift: Swap Inter for Hanken Grotesk */
body,
body input,
body textarea,
body select,
body label,
body .field-label,
body .field-input,
body .field-textarea,
body .dropdown-item,
body .btn-submit,
body .premium-service-card-meta,
body .premium-service-card p {
  font-family: 'Hanken Grotesk', 'Hanken Grotesk', 'Inter', sans-serif !important;
}

body {
  font-size: 1.08rem; /* Gently scale Hanken Grotesk baseline up */
}

/* -- CUSTOM PROPERTIES -- */
:root {
  --gold: #F2B54A;
  --gold-dim: rgba(242, 181, 74, 0.12);
  --ink: #1D0D06;
  --cream: #FAFAF9;
}

/* WARDEN -- ADVANCED FORM SYSTEM (LIGHT) */
.field-wrap {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-wrap:focus-within {
  transform: translateX(3px);
}

.field-label {
  display: block;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(50, 22, 10, 0.35);
  margin-bottom: 0.55rem;
  transition: color 0.35s;
}

.field-wrap:focus-within .field-label {
  color: #D49620;
}

.field-input,
.field-textarea,
.dropdown-toggle {
  width: 100%;
  background: transparent !important;
  border: none;
  border-bottom: 1px solid rgba(50, 22, 10, 0.12);
  padding: 0.7rem 0 0.9rem 0;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #1D0D06;
  outline: none;
  transition: border-color 0.4s;
  caret-color: #F2B54A;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.field-textarea {
  resize: none;
  line-height: 1.75;
}

.field-input::placeholder,
.field-textarea::placeholder,
.dropdown-toggle.placeholder-state {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(50, 22, 10, 0.4);
}

.dropdown-toggle {
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.field-input:focus,
.field-textarea:focus,
.dropdown-toggle:focus {
  border-color: transparent;
  outline: none;
  box-shadow: none;
  background-color: transparent !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: #1D0D06 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.field-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(to right, #F2B54A, #D49620);
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  pointer-events: none;
}

.field-input:focus~.field-underline,
.field-textarea:focus~.field-underline,
.field-wrap:focus-within .field-underline {
  width: 100%;
}

.dropdown-arrow {
  color: rgba(50, 22, 10, 0.3);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
  flex-shrink: 0;
}

[data-dropdown]:focus-within .dropdown-arrow,
[data-dropdown].open .dropdown-arrow {
  color: #D49620;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(50, 22, 10, 0.07);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu-inner {
  padding: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 181, 74, 0.35) transparent;
}

.dropdown-menu-inner::-webkit-scrollbar {
  width: 3px;
}

.dropdown-menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu-inner::-webkit-scrollbar-thumb {
  background: rgba(242, 181, 74, 0.4);
  border-radius: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 0.83rem;
  font-weight: 400;
  color: rgba(50, 22, 10, 0.6);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.dropdown-item:hover {
  background: rgba(242, 181, 74, 0.07);
  color: #1D0D06;
}

.dropdown-item.selected {
  color: #D49620;
  font-weight: 600;
  background: rgba(242, 181, 74, 0.06);
}

.dropdown-item .item-check {
  margin-left: auto;
  opacity: 0;
  color: #F2B54A;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.dropdown-item.selected .item-check {
  opacity: 1;
}

.btn-submit {
  width: 100%;
  padding: 1.15rem 2rem;
  background: #1D0D06;
  color: #F2B54A;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s, color 0.3s;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F2B54A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:hover::before {
  transform: scaleX(1);
}

.btn-submit:hover {
  color: #1D0D06;
}

.btn-submit span,
.btn-submit svg {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  transition: transform 0.3s;
  transform-origin: center;
}

.btn-submit:hover .btn-arrow {
  transform: rotate(90deg);
}

[dir="rtl"] .btn-submit:hover .btn-arrow {
  transform: rotate(180deg) rotate(90deg);
}

.btn-submit.btn-form:hover .btn-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .btn-submit.btn-form:hover .btn-arrow {
  transform: rotate(180deg) translateX(4px);
}

.field-input.error,
.field-textarea.error,
.dropdown-toggle.error {
  border: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

.field-input.error~.field-underline,
.field-textarea.error~.field-underline,
.dropdown-toggle.error~.field-underline {
  width: 100%;
  background: #C45C3A;
  height: 1.5px !important;
  animation: shake 0.4s ease;
  z-index: 10;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

.success-overlay {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4rem;
  z-index: 50;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.checkmark-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid rgba(242, 181, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 181, 74, 0.15);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(242, 181, 74, 0);
  }
}

/* -- NOISE OVERLAY -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

/* -- HERO -- */
.hero-bg {
  background: var(--ink);
}

.hero-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  animation: slowPan 50s ease-in-out infinite alternate;
  filter: brightness(0.55) contrast(1.1);
}

.hero-overlay {
  background: linear-gradient(170deg,
      rgba(29, 13, 6, 0.0) 0%,
      rgba(29, 13, 6, 0.3) 40%,
      rgba(29, 13, 6, 0.82) 75%,
      rgba(29, 13, 6, 1) 100%);
}

.hero-side-gradient {
  background: linear-gradient(to right, rgba(29, 13, 6, 0.7), transparent 40%, transparent 60%, rgba(29, 13, 6, 0.7));
}

@keyframes slowPan {
  from {
    transform: scale(1.06) translate(0, 0);
  }

  to {
    transform: scale(1.14) translate(-2%, 1%);
  }
}

/* -- ANIMATED LINE -- */
.line-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.8s ease-out 0.5s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* -- HERO TEXT ENTRANCE -- */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(20deg);
  animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* -- FLOATING BADGE -- */
.floating-badge {
  animation: floatBadge 6s ease-in-out infinite;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* -- FADE IN UP -- */
@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

/* -- HERO SCROLL INDICATOR -- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 1s 1.8s forwards;
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(242, 181, 74, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 1;
  }
}

/* -- TESTIMONIAL CAROUSEL -- */
.testimonial-carousel-container {
  position: relative;
  overflow: hidden;
  perspective: 2000px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

.testimonial-card-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 1px;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.1;
  transition: all 0.4s;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--gold);
  opacity: 1;
}

.tilt-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.tilt-card>* {
  transform: translateZ(50px);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* ==========================================================================
   WARDEN - PREMIUM SERVICES CARDS (HIGH-END EDITORIAL REDESIGN)
   ========================================================================== */

.premium-services-grid {
  counter-reset: card-counter;
}

.premium-service-card {
  position: relative;
  background: #FAF8F5; /* Luxurious warm-toned editorial parchment */
  border: 1px solid rgba(50, 22, 10, 0.07); /* Razor-thin hairline border */
  border-radius: 2.25rem;
  padding: 3.25rem 2.5rem;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 30px rgba(50, 22, 10, 0.005);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  counter-increment: card-counter;
  z-index: 10;
}

/* Large Serif Background Counter */
.premium-service-card::after {
  content: "0" counter(card-counter);
  position: absolute;
  bottom: -0.75rem;
  right: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 7.5rem;
  font-weight: 200;
  font-style: italic;
  line-height: 1;
  color: rgba(50, 22, 10, 0.02);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}

/* Hover States */
.premium-service-card:hover {
  background: #FFFFFF;
  border-color: rgba(242, 181, 74, 0.6); /* Elegant flat gold hairline border */
  transform: translateY(-4px); /* Extremely subtle editorial drift */
  box-shadow: 0 12px 30px rgba(50, 22, 10, 0.03); /* Flat, low-contrast clean shadow */
}

.premium-service-card:hover::after {
  color: rgba(242, 181, 74, 0.09);
  transform: translateY(-4px) scale(1.02);
}

/* Custom Icon Frame Container */
.premium-service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 1rem;
  background: rgba(242, 181, 74, 0.06);
  border: 1px solid rgba(242, 181, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F2B54A !important;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-service-card:hover .premium-service-icon-box {
  background: #F2B54A;
  border-color: #F2B54A;
  color: #1D0D06 !important;
  box-shadow: none; /* Removed luminous box shadow completely */
  transform: scale(1.02); /* Crisp scale up, zero rotation */
}

.premium-service-icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 1.1;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-service-card:hover .premium-service-icon-box svg {
  transform: none; /* No icon scaling or rotation */
  stroke-width: 1.35;
}

/* Metadata Top & Bottom */
.premium-service-card-meta {
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(50, 22, 10, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  transition: color 0.4s ease;
}

.premium-service-card:hover .premium-service-card-meta {
  color: rgba(50, 22, 10, 0.55);
}

/* Meta status pill */
.premium-service-card-meta .status-pill {
  font-size: 0.58rem;
  font-weight: 900;
  background: rgba(242, 181, 74, 0.08);
  color: #D49620;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.1em;
}

/* Hairline Dividers */
.premium-service-divider {
  width: 100%;
  height: 1px;
  background: rgba(50, 22, 10, 0.06);
  margin: 1.25rem 0;
  position: relative;
  z-index: 10;
  transition: background 0.4s ease;
}

.premium-service-card:hover .premium-service-divider {
  background: rgba(242, 181, 74, 0.2);
}

/* Typography and Content Polish */
.premium-service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  color: #1D0D06;
  margin-bottom: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
  position: relative;
  z-index: 10;
  transition: color 0.4s ease;
  letter-spacing: -0.01em;
}

.premium-service-card h3 em {
  font-style: italic;
  font-weight: 400;
  color: #D49620;
}

.premium-service-card p {
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 0.98rem; /* Gently scale card paragraph text size up */
  font-weight: 300;
  line-height: 1.75;
  color: rgba(50, 22, 10, 0.58);
  position: relative;
  z-index: 10;
  transition: color 0.4s ease;
}

.premium-service-card:hover p {
  color: rgba(50, 22, 10, 0.75);
}

/* Custom styling for the 7th centered master card */
.premium-service-card.master-card {
  padding: 4rem;
  text-align: center;
  background: #FAF8F5;
  border: 1px solid rgba(242, 181, 74, 0.15);
}

.premium-service-card.master-card::after {
  right: 50%;
  transform: translateX(50%);
  bottom: -1rem;
}

.premium-service-card.master-card:hover::after {
  transform: translateX(50%) translateY(-8px) scale(1.04);
}

.premium-service-card.master-card .premium-service-icon-box {
  margin-left: auto;
  margin-right: auto;
}

.premium-service-card.master-card .premium-service-card-meta {
  justify-content: center;
  gap: 1.5rem;
}

/* Arabic-specific typography lock overrides */
html[lang="ar"] body,
html[lang="ar"] body input,
html[lang="ar"] body textarea,
html[lang="ar"] body select,
html[lang="ar"] body label,
html[lang="ar"] body .field-label,
html[lang="ar"] body .field-input,
html[lang="ar"] body .field-textarea,
html[lang="ar"] body .dropdown-item,
html[lang="ar"] body .btn-submit,
html[lang="ar"] body .premium-service-card-meta,
html[lang="ar"] body .premium-service-card p {
  font-family: 'IBM Plex Sans Arabic', 'Scheherazade New', 'Inter', sans-serif !important;
}

html[lang="ar"] body {
  font-size: 1rem !important;
}



