/* Components CSS */
/* ═══════════════════════════════════════════════════════════════════════════
   PIXELHAFEN DIGITAL — COMPONENTS CSS
   Reusable UI patterns: cards, buttons, icons, grids, blockquote, typewrite.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.ph-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: clamp(28px, 4vw, 44px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}
.ph-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ph-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(191,149,63,0.3);
    background: rgba(255,255,255,0.05);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.5),
        0 0 50px rgba(191,149,63,0.08),
        0 0 100px rgba(191,149,63,0.04),
        inset 0 1px 0 rgba(191,149,63,0.15);
}
.ph-card:hover::before { opacity: 1; }

.ph-card-icon {
    width: 48px; height: 48px;
    margin-bottom: 32px;
}
.ph-card-icon svg {
    width: 100%; height: 100%;
    stroke: #BF953F; stroke-width: 1.2; fill: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.ph-card:hover .ph-card-icon svg { opacity: 1; }

.ph-card h4 {
    font-size: var(--ph-text-2xl);
    margin-bottom: 12px;
    font-weight: 600;
    color: #f2f2f2;
    white-space: nowrap;
}
.ph-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.75;
    margin: 0;
}

.ph-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #BF953F;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.ph-card:hover .ph-card-link {
    opacity: 0.8;
    transform: translateY(0);
}
.ph-card-link svg {
    width: 14px; height: 14px;
    stroke: currentColor; stroke-width: 2; fill: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    background: transparent;
    border: 1.5px solid #BF953F;
    border-radius: 9999px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.7rem 2rem;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.19, 1, 0.22, 1);
    text-decoration: none;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: 0 0 20px rgba(191,149,63,0.06);
    position: relative;
    /* Gold gradient text matching headline */
    color: #BF953F;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.ph-btn:hover, .ph-btn:focus {
    /* Fill with gold gradient on hover */
    background: linear-gradient(110deg, #BF953F 0%, #FCF6BA 20%, #B38728 40%, #FBF5B7 60%, #AA771C 80%, #BF953F 100%);
    background-size: 200% 100%;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #0d0d0d;
    color: #0d0d0d;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(191,149,63,0.35), 0 0 60px rgba(191,149,63,0.12);
    animation: ph-gold-flow 4s ease-in-out infinite;
    outline: none;
}
.ph-btn:active { transform: translateY(-1px); }

.ph-btn-ghost {
    background: transparent;
    background-image: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}
.ph-btn-ghost:hover {
    border-color: #BF953F;
    box-shadow: 0 0 15px rgba(191,149,63,0.25), 0 0 40px rgba(191,149,63,0.08);
    transform: translateY(-2px);
    animation: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   SERVICE GRID
   ══════════════════════════════════════════════════════════════════════════ */

.ph-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) { .ph-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ph-services-grid { grid-template-columns: 1fr; } }


/* ══════════════════════════════════════════════════════════════════════════
   SUPREME BUTTONS
   Premium button variant with shimmer sweep, gold gradient text,
   enhanced lift, and luminous resting state.
   ══════════════════════════════════════════════════════════════════════════ */

.ph-btn-supreme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    background: linear-gradient(110deg, #BF953F 0%, #FCF6BA 20%, #B38728 40%, #FBF5B7 60%, #AA771C 80%, #BF953F 100%);
    background-size: 200% 100%;
    animation: ph-gold-flow 4s ease-in-out infinite;
    border: none;
    border-radius: 9999px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.75rem 2.2rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    -webkit-appearance: none;
    outline: none;
    color: #0d0d0d;
    -webkit-text-fill-color: #0d0d0d;
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(191,149,63,0.25), 0 0 40px rgba(191,149,63,0.08);
    transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.45s cubic-bezier(0.19, 1, 0.22, 1), filter 0.3s ease;
    position: relative;
}

.ph-btn-supreme:hover,
.ph-btn-supreme:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(191,149,63,0.4), 0 0 60px rgba(191,149,63,0.15);
    filter: brightness(1.08);
    outline: none;
}

.ph-btn-supreme:active {
    transform: translateY(-1px);
}

/* Arrow icon inside button slides right on hover */
.ph-btn-supreme .ph-btn-arrow {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.ph-btn-supreme:hover .ph-btn-arrow {
    transform: translateX(5px);
}
.ph-btn-supreme .ph-btn-arrow svg,
.ph-btn-supreme .ph-btn-arrow {
    stroke: #0d0d0d;
    color: #0d0d0d;
    -webkit-text-fill-color: #0d0d0d;
}
.ph-btn-supreme:hover .ph-btn-arrow svg,
.ph-btn-supreme:hover .ph-btn-arrow {
    stroke: #0d0d0d;
    color: #0d0d0d;
    -webkit-text-fill-color: #0d0d0d;
    opacity: 1;
}

/* Ghost/secondary variant — same outline style as ph-btn */
.ph-btn-supreme-ghost {
    background: transparent;
    background-image: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: unset;
    animation: none;
    border: 1.5px solid #BF953F;
    box-shadow: 0 0 20px rgba(191,149,63,0.06);
}
.ph-btn-supreme-ghost:hover {
    border-color: #BF953F;
    box-shadow: 0 0 15px rgba(191,149,63,0.25), 0 0 40px rgba(191,149,63,0.08);
    transform: translateY(-2px);
}

/* Shimmer sweep on gold buttons */
.ph-btn-supreme::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: ph-shimmer-sweep 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    border-radius: 9999px;
}


/* ══════════════════════════════════════════════════════════════════════════
   ICON ANIMATIONS (Component-level)
   ══════════════════════════════════════════════════════════════════════════ */

/* Floating icon — default state */
.ph-icon-animated {
    animation: ph-float 3.5s ease-in-out infinite;
}

.ph-icon-animated svg {
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
}

/* On parent hover — scale + glow (no rotation) */
.ph-card:hover .ph-icon-animated,
.ph-usp-item:hover .ph-icon-animated,
*:hover > .ph-icon-animated {
    animation: none;
    transform: scale(1.08);
}

.ph-card:hover .ph-icon-animated svg,
.ph-usp-item:hover .ph-icon-animated svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Glow ring container for circular icon frames */
.ph-icon-glow-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(191,149,63,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: rgba(191,149,63,0.03);
    animation: ph-pulse-glow 3s ease-in-out infinite;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.ph-card:hover .ph-icon-glow-ring {
    border-color: rgba(191,149,63,0.4);
    background: rgba(191,149,63,0.06);
}

.ph-icon-glow-ring svg {
    width: 28px;
    height: 28px;
    stroke: #BF953F;
    stroke-width: 1.5;
    fill: none;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(191,149,63,0.4));
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), filter 0.3s ease;
}

.ph-card:hover .ph-icon-glow-ring svg {
    opacity: 1;
    transform: scale(1.12);
    filter: drop-shadow(0 0 14px rgba(191,149,63,0.55));
}

.ph-icon-glow-ring img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(191,149,63,0.3));
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), filter 0.3s ease;
}

.ph-card:hover .ph-icon-glow-ring img {
    opacity: 1;
    transform: scale(1.12);
    filter: drop-shadow(0 0 14px rgba(191,149,63,0.55));
}

/* Full-size service card image (SaaS style) */
.ph-card-icon-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.ph-card:hover .ph-card-icon-img {
    transform: scale(1.03);
}


/* ══════════════════════════════════════════════════════════════════════════
   BLOCKQUOTE (trust section)
   ══════════════════════════════════════════════════════════════════════════ */

.ph-blockquote {
    position: relative;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-style: italic;
    font-weight: 500;
    color: rgba(252,246,186,0.82);
    border: none;
    border-left: none;
    padding: 32px 32px 32px 28px;
    margin: 36px 0;
    line-height: 1.7;
    background: linear-gradient(135deg, rgba(191,149,63,0.06) 0%, rgba(191,149,63,0.02) 100%);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(191,149,63,0.14), 0 8px 32px rgba(0,0,0,0.18);
}
.ph-blockquote::before {
    content: '\201C';
    display: inline;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.6rem;
    font-style: normal;
    font-weight: 700;
    line-height: 0;
    vertical-align: -0.15em;
    margin-right: 4px;
    background: var(--ph-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.55;
}


/* ══════════════════════════════════════════════════════════════════════════
   TYPEWRITE EFFECT
   ══════════════════════════════════════════════════════════════════════════ */

.ph-typewrite-target {
    min-height: 0 !important;
}
.ph-typewrite-cursor {
    display: inline-block !important;
    width: 2px !important;
    height: 1.1em !important;
    background: #BF953F !important;
    margin-left: 2px !important;
    vertical-align: text-bottom !important;
    animation: ph-typewrite-blink 0.7s step-end infinite !important;
}
.ph-typewrite-cursor.ph-typewrite-done {
    animation: none !important;
    opacity: 0 !important;
    transition: opacity 1s ease !important;
}
