/* ================================================================
   SAS Main Stylesheet — V700 (Shared Styles)
   Extracted from inline <style> blocks for better caching
================================================================ */

/* ═══ Common Hero ═══ */
.titan-hero, .archive-app-hero, .error-hero-glass {
    background: linear-gradient(135deg, var(--sas-main, #0f766e) 0%, var(--sas-sec, #14b8a6) 100%);
    padding: clamp(60px, 10vw, 100px) 20px;
    text-align: center;
    color: #fff;
    position: relative;
}
.titan-hero h1, .archive-app-hero h1, .error-hero-glass h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff !important;
    margin: 0 0 12px;
    text-wrap: balance;
}
.titan-hero p, .archive-app-hero p, .error-hero-glass p {
    font-size: clamp(14px, 2vw, 17px);
    opacity: 0.9;
    color: #fff !important;
    margin: 0 0 20px;
    max-width: 600px;
    margin-inline: auto;
}

/* ═══ Common Card Grid ═══ */
.titan-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(16px, 3vw, 28px);
    padding: clamp(24px, 4vw, 48px);
}

/* ═══ Titan Card ═══ */
.titan-service-card, .titan-card, .area-card {
    background: var(--glass-bg, #fff);
    border-radius: var(--sas-radius, 18px);
    padding: clamp(24px, 4vw, 36px) clamp(18px, 3vw, 28px);
    text-align: center;
    border: var(--glass-border, 1px solid rgba(0,0,0,0.05));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-soft, 0 8px 20px rgba(0,0,0,0.04));
}
.titan-service-card:hover, .titan-card:hover, .area-card:hover {
    transform: translateY(-8px);
    border-color: var(--sas-main, #0f766e);
    box-shadow: 0 20px 45px rgba(var(--sas-main-rgb, 15,118,110), 0.1);
}

/* ═══ Card Elements ═══ */
.titan-service-card h3 a, .titan-card h3 a {
    text-decoration: none;
    color: var(--sas-text, #1e293b);
    font-weight: 900;
    font-size: clamp(17px, 2.5vw, 20px);
    transition: color 0.2s;
}
.titan-service-card h3 a:hover { color: var(--sas-main, #0f766e); }

.titan-rating { color: var(--sas-gold, #FFCC00); margin: 12px 0; font-size: 16px; letter-spacing: 2px; }

.premium-shield, .titan-badge {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto 16px;
    border: 1px solid rgba(52, 199, 89, 0.15);
}

.titan-card-btn {
    margin-top: auto;
    display: block;
    padding: 13px;
    background: var(--sas-main, #0f766e);
    color: #fff !important;
    border-radius: var(--sas-radius-sm, 12px);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 6px 15px rgba(var(--sas-main-rgb, 15,118,110), 0.15);
}
.titan-card-btn:hover {
    background: var(--sas-hover, #0d6356);
    transform: translateY(-2px);
}

/* ═══ Window Chrome (Archive) ═══ */
.titan-archive-window {
    max-width: 1200px;
    width: 95%;
    margin: 40px auto 60px;
    background: var(--glass-bg, rgba(255,255,255,0.9));
    backdrop-filter: blur(var(--sas-blur, 20px));
    -webkit-backdrop-filter: blur(var(--sas-blur, 20px));
    border-radius: var(--sas-radius, 20px);
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    overflow: hidden;
    animation: winEntrance 0.5s ease;
}
.titan-win-bar {
    height: 46px;
    background: rgba(240, 240, 240, 0.9);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
}
.win-controls { display: flex; gap: 7px; }
.win-dot { width: 11px; height: 11px; border-radius: 50%; }
.d-red { background: #FF5F57; }
.d-yel { background: #FEBC2E; }
.d-grn { background: #28C840; }

/* ═══ Scroll Loader ═══ */
#sas-scroll-trigger { height: 80px; display: flex; align-items: center; justify-content: center; }
.titan-dots span {
    width: 10px; height: 10px;
    background: var(--sas-main, #0f766e);
    border-radius: 50%;
    display: inline-block;
    animation: t-bounce 1.4s infinite ease-in-out;
    margin: 0 4px;
}
.titan-dots span:nth-child(2) { animation-delay: 0.2s; }
.titan-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ═══ Animations ═══ */
@keyframes t-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
@keyframes winEntrance { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ═══ Homepage Cards ═══ */
.titan-card {
    background: var(--card-bg, #fff);
    border: var(--glass-border, 1px solid rgba(0,0,0,0.05));
    border-radius: var(--sas-radius, 16px);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft, 0 10px 25px rgba(0,0,0,0.04));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    text-decoration: none !important;
    color: var(--sas-text, #1e293b) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.titan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: var(--sas-main, #0f766e);
}
.titan-card .card-icon {
    font-size: 36px;
    margin-bottom: 4px;
}
.titan-card h3 {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: var(--sas-text, #1e293b);
}
.titan-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ═══ 404 Page ═══ */
.error-hero-glass {
    border-radius: 0 0 50px 50px;
    padding: 120px 20px 140px;
}
.error-404-number {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    color: rgba(255,255,255,0.15);
    line-height: 1;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .titan-archive-window { width: 96%; margin-top: 20px; }
    .titan-services-grid { padding: 16px 12px; grid-template-columns: 1fr; }
    .archive-app-hero h1 { font-size: 1.5rem; }
    .error-hero-glass { padding: 80px 20px 100px; border-radius: 0 0 30px 30px; }
}
