/* ============================================
   E&H Properties — Premium Styles
   ============================================ */

/* Smooth scrolling & text rendering */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Safari 100vh fix — use dvh where supported */
@supports (min-height: 100dvh) {
    .min-h-screen { min-height: 100dvh !important; }
    .h-screen { height: 100dvh !important; }
}

/* Safe area padding for notched devices (iPhone X+) */
.safe-area-top { padding-top: env(safe-area-inset-top, 0px); }
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
.safe-area-inset {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* Prevent iOS tap highlight & callout */
* {
    -webkit-tap-highlight-color: transparent;
}
img, a {
    -webkit-touch-callout: none;
}

/* Custom scrollbar (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1F1F1F; }
::-webkit-scrollbar-thumb { background: #C9A864; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9E7C3C; }

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #C9A864 #1F1F1F;
}

/* ── Focus styles ── */
*:focus-visible {
    outline: 2px solid #C9A864;
    outline-offset: 2px;
}

/* ── Gold gradient text ── */
.text-gradient-gold {
    background: linear-gradient(135deg, #C9A864 0%, #E0CC8A 40%, #9E7C3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ── Gold shimmer animation ── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.gold-shimmer {
    background: linear-gradient(90deg, #C9A864 0%, #E0CC8A 25%, #C9A864 50%, #9E7C3C 75%, #C9A864 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

/* ── Line clamp ── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Premium button hover glow ── */
.btn-gold {
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: width 0.6s ease, height 0.6s ease;
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-gold:hover::before {
    width: 300px;
    height: 300px;
}
.btn-gold:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 100, 0.3);
}

/* Disable hover transforms on touch — prevents sticky :hover on iOS */
@media (hover: none) {
    .btn-gold:hover { -webkit-transform: none; transform: none; }
    .btn-gold:hover::before { width: 0; height: 0; }
    .card-lift:hover { -webkit-transform: none; transform: none; }
    .img-zoom:hover img { -webkit-transform: none; transform: none; }
}

/* ── Card hover lift ── */
.card-lift {
    -webkit-transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.card-lift:hover {
    -webkit-transform: translateY(-6px);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ── Image zoom on hover ── */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    -webkit-transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

/* ── Section divider gold line ── */
.divider-gold {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C9A864, #9E7C3C);
    border-radius: 2px;
}

/* ── Floating animation ── */
@-webkit-keyframes float {
    0%, 100% { -webkit-transform: translateY(0px); transform: translateY(0px); }
    50% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}
@keyframes float {
    0%, 100% { -webkit-transform: translateY(0px); transform: translateY(0px); }
    50% { -webkit-transform: translateY(-8px); transform: translateY(-8px); }
}
.animate-float {
    -webkit-animation: float 3s ease-in-out infinite;
    animation: float 3s ease-in-out infinite;
}

/* ── Pulse glow ── */
@-webkit-keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 100, 0.4); }
    50% { box-shadow: 0 0 20px 8px rgba(201, 168, 100, 0.15); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 100, 0.4); }
    50% { box-shadow: 0 0 20px 8px rgba(201, 168, 100, 0.15); }
}
.pulse-glow {
    -webkit-animation: pulseGlow 2.5s ease-in-out infinite;
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ── Prose for article content ── */
.prose {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
    overflow-wrap: break-word;
    word-break: break-word;
}
.prose h2 {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: #1F1F1F;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.prose h3 {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F1F1F;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: #C9A864; text-decoration: underline; -webkit-transition: color 0.2s; transition: color 0.2s; }
.prose a:hover { color: #9E7C3C; }
.prose blockquote {
    border-left: 4px solid #C9A864;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6B7280;
}
.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

/* ── Lazy load image fade ── */
img[loading="lazy"] {
    opacity: 1;
}

/* ── Accreditation logos ── */
.accreditation-logo {
    -webkit-filter: grayscale(100%) brightness(1.8);
    filter: grayscale(100%) brightness(1.8);
    opacity: 0.5;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.accreditation-logo:hover {
    -webkit-filter: grayscale(0%) brightness(1);
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ── Step connector line ── */
.step-connector {
    position: relative;
}
.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(201,168,100,0.3), transparent);
}
.step-connector:last-child::after {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   FEATURED IN — Infinite horizontal scroll carousel
   ═══════════════════════════════════════════════════════════════════ */

.featuredin-carousel-mask {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.featuredin-track {
    display: -webkit-flex;
    display: flex;
    width: -webkit-max-content;
    width: max-content;
    -webkit-animation: featuredinScroll 28s linear infinite;
    animation: featuredinScroll 28s linear infinite;
    will-change: transform;
}

.featuredin-carousel-mask:hover .featuredin-track {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.featuredin-slide {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 0 2rem;
}

@media (max-width: 639px) {
    .featuredin-slide { padding: 0 1.5rem; }
}

.featuredin-img {
    height: 2rem;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    -webkit-filter: grayscale(100%) brightness(2);
    filter: grayscale(100%) brightness(2);
    opacity: 0.45;
    -webkit-transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 640px) {
    .featuredin-img {
        height: 2.5rem;
        max-width: 140px;
    }
}

@media (min-width: 1024px) {
    .featuredin-img {
        height: 3rem;
        max-width: 160px;
    }
}

.featuredin-carousel-mask:hover .featuredin-img {
    -webkit-filter: grayscale(40%) brightness(1.5);
    filter: grayscale(40%) brightness(1.5);
    opacity: 0.65;
}

.featuredin-slide:hover .featuredin-img {
    -webkit-filter: grayscale(0%) brightness(1);
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

@-webkit-keyframes featuredinScroll {
    0%   { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-33.3333%); transform: translateX(-33.3333%); }
}
@keyframes featuredinScroll {
    0%   { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(-33.3333%); transform: translateX(-33.3333%); }
}

@media (prefers-reduced-motion: reduce) {
    .featuredin-track {
        -webkit-animation: none;
        animation: none;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 2rem;
    }
    .featuredin-slide { padding: 0.75rem 1.5rem; }
    .featuredin-img {
        -webkit-filter: grayscale(0%) brightness(1);
        filter: grayscale(0%) brightness(1);
        opacity: 0.7;
    }
    .animate-float { -webkit-animation: none; animation: none; }
    .gold-shimmer { -webkit-animation: none; animation: none; }
    .pulse-glow { -webkit-animation: none; animation: none; }
}

/* ── Minimum touch targets for iOS/Android (44px) ── */
@media (pointer: coarse) {
    a, button, [role="button"], input[type="submit"], select {
        min-height: 44px;
        min-width: 44px;
    }
    input[type="checkbox"], input[type="radio"] {
        min-height: 20px;
        min-width: 20px;
    }
}

/* ── Print styles ── */
@media print {
    header, footer, .mobile-cta, .whatsapp-bubble { display: none !important; }
    main { padding: 0 !important; }
}
