/* ============================================================
   ABISHO SERVICES — Global Stylesheet
   Apple Liquid Glass · Scroll Animations · Mobile-First
   ============================================================ */

/* ── Custom properties ────────────────────────────────────── */
:root {
  --gold:        #C8A24A;
  --gold-light:  #e8c97a;
  --primary:     #000616;
  --primary-c:   #0b1f3b;
  --surface:     #f9f9f9;
  --transition:  cubic-bezier(0.25, 0.8, 0.25, 1);
  --spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Smooth scroll & base ─────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Page entry fade ──────────────────────────────────────── */
body { animation: pageEntry .55s var(--transition) both; }
@keyframes pageEntry {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Scroll-progress bar ──────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  transition: width .1s linear;
}

/* ============================================================
   APPLE LIQUID GLASS
   ============================================================ */

/* Nav glass — light mode */
.nav-glass {
  background: rgba(249,249,249,.78);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav-glass.scrolled {
  background: rgba(249,249,249,.92);
  box-shadow: 0 1px 20px rgba(0,6,22,.08);
}

/* Card glass — light */
.glass-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px) saturate(180%) brightness(108%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(108%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow:
    0 4px 24px rgba(0,6,22,.06),
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 0 rgba(0,0,0,.04);
}
.glass-card:hover {
  box-shadow:
    0 12px 40px rgba(0,6,22,.1),
    inset 0 1px 0 rgba(255,255,255,.9);
  transform: translateY(-4px);
  transition: all .35s var(--transition);
}

/* Dark glass — hero overlays, dark bg elements */
.glass-dark {
  background: rgba(0,6,22,.65);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* Gold glass — accent panels */
.glass-gold {
  background: rgba(200,162,74,.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(200,162,74,.3);
  box-shadow: 0 4px 20px rgba(200,162,74,.1);
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  will-change: opacity, transform;
}
/* :not(.revealed) raises specificity to (0,2,0) — beats any single-class
   component rule (.service-card, .testimonial-card, Tailwind utilities etc.)
   so the opacity + transform transition is never silently dropped.
   Stagger transition-delay rules at equal (0,2,0) specificity still work
   because they appear later in this file and only override transition-delay. */
[data-reveal]:not(.revealed) {
  opacity: 0;
  transition:
    opacity .7s var(--transition),
    transform .7s var(--transition);
}
[data-reveal="up"]:not(.revealed)          { transform: translateY(40px); }
[data-reveal="down"]:not(.revealed)        { transform: translateY(-30px); }
[data-reveal="left"]:not(.revealed)        { transform: translateX(-40px); }
[data-reveal="right"]:not(.revealed)       { transform: translateX(40px); }
[data-reveal="zoom"]:not(.revealed)        { transform: scale(.93); }
[data-reveal="zoom-down"]:not(.revealed)   { transform: scale(.96) translateY(20px); }
[data-reveal="flip"]:not(.revealed)        { transform: perspective(600px) rotateX(12deg); }
/* "fade" uses opacity only — no transform needed */

[data-reveal].revealed {
  opacity: 1;
  transform: none !important;
}

/* Stagger delays for sibling groups */
[data-stagger] > *:nth-child(1)  { transition-delay: .05s; }
[data-stagger] > *:nth-child(2)  { transition-delay: .15s; }
[data-stagger] > *:nth-child(3)  { transition-delay: .25s; }
[data-stagger] > *:nth-child(4)  { transition-delay: .35s; }
[data-stagger] > *:nth-child(5)  { transition-delay: .45s; }
[data-stagger] > *:nth-child(6)  { transition-delay: .55s; }
[data-stagger] > *:nth-child(7)  { transition-delay: .65s; }

/* ── Counter animation ────────────────────────────────────── */
.stat-counter {
  font-feature-settings: "tnum";
  transition: color .3s ease;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(0,6,22,.92) 0%,
    rgba(11,31,59,.75) 50%,
    rgba(0,6,22,.55) 100%
  );
}

/* Animated grain texture on hero */
.hero-grain::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}

/* Floating gold accent line */
.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

/* Animated gradient border on cards */
@keyframes goldBorderSpin {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
.card-gold-border {
  position: relative;
}
.card-gold-border::before {
  content: '';
  position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity .4s ease;
}
.card-gold-border:hover::before {
  opacity: 1;
  animation: goldBorderSpin 3s linear infinite;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-link {
  position: relative;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width .3s var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--gold) !important;
  font-weight: 700;
}

/* ── Mobile overlay backdrop (pure CSS, no Tailwind) ─────────── */
#mobile-overlay {
  /* display controlled by JS via style attribute */
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
#mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile nav panel (pure CSS, no Tailwind) ────────────────── */
#mobile-nav {
  /* display controlled by JS via style attribute */
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform .32s var(--transition);
}
#mobile-nav.open {
  transform: translateX(0);
}

/* Hide both on desktop regardless of JS state */
@media (min-width: 768px) {
  #mobile-nav,
  #mobile-overlay { display: none !important; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d4b05a);
  color: var(--primary);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--spring), box-shadow .25s ease;
}
.btn-gold::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,162,74,.4);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .25s var(--spring);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.9);
  transform: translateY(-2px);
}

/* ============================================================
   SERVICE CARDS (Bento)
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.bento-lg { grid-column: span 2; }
@media (max-width: 768px) {
  .bento-lg { grid-column: span 1; }
}

.service-card {
  transition: opacity .7s var(--transition), transform .35s var(--transition), box-shadow .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,6,22,.1);
}

/* ── Service icon glow ────────────────────────────────────── */
.icon-glow {
  transition: filter .3s ease, transform .3s var(--spring);
}
.service-card:hover .icon-glow {
  filter: drop-shadow(0 0 8px rgba(200,162,74,.5));
  transform: scale(1.12);
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
  transition: opacity .7s var(--transition), transform .3s var(--transition), box-shadow .3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,6,22,.08);
}
.quote-mark {
  font-size: 5rem; line-height: 1;
  color: var(--gold);
  opacity: .15;
  font-family: Georgia, serif;
  user-select: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold);
}
.section-label::before,
.section-label::after {
  content: ''; flex: 1;
  height: 1px; width: 24px;
  background: var(--gold); opacity: .5;
}

/* ── Gold shimmer on hero headline ───────────────────────── */
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.text-gold-shimmer {
  background: linear-gradient(
    90deg,
    #C8A24A 0%, #f0d980 30%, #C8A24A 50%, #e8c97a 70%, #C8A24A 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 5s linear infinite;
}

/* ── Trust bar ────────────────────────────────────────────── */
.trust-bar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.trust-bar-item:last-child { border-right: none; }

/* ── Process steps ────────────────────────────────────────── */
.process-step-num {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1f3b 0%, #162d4a 100%);
  border: 1px solid rgba(200,162,74,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.375rem; font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
  transition: background .3s ease, box-shadow .3s ease;
}
.process-step:hover .process-step-num {
  background: linear-gradient(135deg, var(--gold) 0%, #d4b05a 100%);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(200,162,74,.25);
}
.process-connector {
  position: absolute;
  top: 32px; /* vertically centred on the step number */
  left: calc(50% + 48px);
  right: calc(-50% + 48px);
  height: 1px;
  background: linear-gradient(90deg, rgba(200,162,74,.4), rgba(200,162,74,.1));
}

/* ── Star rating ──────────────────────────────────────────── */
.star-rating {
  display: flex; gap: 3px; margin-bottom: 14px;
}
.star-rating span {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

/* CTA banner animated gradient bg */
.cta-gradient {
  background: linear-gradient(
    135deg,
    #000616 0%, #0b1f3b 40%, #0d2247 60%, #000616 100%
  );
  background-size: 300% 300%;
  animation: ctaShift 10s ease infinite;
}
@keyframes ctaShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Stats section */
.stat-card {
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================
   FORMS — refined, premium styling
   Double-class selector (.form-input.form-input) raises specificity
   to (0,2,0) so it beats Tailwind Forms plugin's element/attribute
   selectors (0,1,0) even when Tailwind CDN injects after this file.
   ============================================================ */
.form-input.form-input {
  background-color: #fafafa !important;
  border: 1px solid #e4e4e8 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1.5px 4px rgba(0,0,0,.045) !important;
  color: #1a1c1c !important;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease !important;
  /* Remove any Tailwind Forms ring */
  --tw-ring-shadow: none !important;
  --tw-ring-color: transparent !important;
}
.form-input.form-input::placeholder {
  color: #adb0b8 !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}
.form-input.form-input:hover {
  border-color: #c8c8d0 !important;
  background-color: #ffffff !important;
}
.form-input.form-input:focus {
  outline: none !important;
  border-color: #C8A24A !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3.5px rgba(200,162,74,.12), inset 0 1px 3px rgba(0,0,0,.02) !important;
  --tw-ring-shadow: none !important;
}
.form-input.form-input.error {
  border-color: #e57373 !important;
  box-shadow: 0 0 0 3px rgba(186,26,26,.08) !important;
}

/* Select cursor */
select.form-input { cursor: pointer; }

.form-label {
  font-size: .75rem;
  letter-spacing: .06em;
  font-weight: 600;
  text-transform: uppercase;
  color: #75777e;
}

/* Submit button state */
.btn-submit[data-loading="true"] {
  pointer-events: none; opacity: .75;
}
.btn-submit .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,6,22,.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn-submit[data-loading="true"] .spinner { display: block; }
.btn-submit[data-loading="true"] .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Alert messages */
.form-alert {
  border-radius: .5rem; padding: 1rem 1.25rem;
  font-size: .9375rem; font-weight: 500;
  display: none;
  animation: alertIn .3s var(--transition) both;
}
.form-alert.show { display: flex; align-items: flex-start; gap: .5rem; }
.form-alert.success {
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.25);
  color: #15803d;
}
.form-alert.error-alert {
  background: rgba(186,26,26,.07);
  border: 1px solid rgba(186,26,26,.2);
  color: #991b1b;
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-link {
  transition: color .2s ease, padding-left .2s ease;
}
.footer-link:hover {
  color: var(--gold) !important;
  padding-left: 4px;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb {
  background: var(--primary-c);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   HERO IMAGE PARALLAX wrapper
   ============================================================ */
.parallax-img {
  will-change: transform;
  transition: transform .1s linear;
}

/* ============================================================
   HERO SCROLL-DOWN INDICATOR
   ============================================================ */
.scroll-indicator {
  flex-direction: column; align-items: center;
  gap: 4px; cursor: pointer;
  animation: bobble 2.2s ease-in-out infinite;
}
.scroll-indicator span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.6));
}
@keyframes bobble {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ============================================================
   PROPERTY MANAGEMENT PAGE
   ============================================================ */
.pm-feature-card {
  border-left: 3px solid var(--gold);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pm-feature-card:hover {
  border-left-color: #e8c97a;
  box-shadow: -4px 0 20px rgba(200,162,74,.12);
}

/* ============================================================
   AUTO SALES PAGE
   ============================================================ */
.vehicle-card {
  overflow: hidden;
  transition: transform .35s var(--transition), box-shadow .35s ease;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,6,22,.15);
}
.vehicle-card img {
  transition: transform .6s var(--transition);
}
.vehicle-card:hover img { transform: scale(1.06); }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
@media (max-width: 768px) {
  .section-padding-mobile { padding-top: 64px; padding-bottom: 64px; }
  .hero-headline { font-size: clamp(2rem, 6vw, 2.5rem) !important; }
  [data-reveal] {
    /* reduce motion distance on mobile */
    --reveal-dist: 24px;
  }
  [data-reveal="up"]   { transform: translateY(24px); }
  [data-reveal="left"] { transform: translateX(-24px); }
  [data-reveal="right"]{ transform: translateX(24px); }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal]:not(.revealed) { opacity: 1 !important; transform: none !important; }
  [data-reveal].revealed       { opacity: 1 !important; transform: none !important; }
  body { animation: none; }
}

/* ── Selection colour ─────────────────────────────────────── */
::selection {
  background: rgba(200,162,74,.3);
  color: var(--primary);
}
* { -webkit-user-select: auto; user-select: auto; }

/* ── Image drag protection (copy/paste of text is allowed) ── */
img {
  -webkit-user-drag: none;
}
