/* ============================================================
   site-polish.css — final-touch UI improvements
   Loaded LAST so it can subtly tighten the existing design.
   ============================================================ */

/* ---- Smoother section rhythm ---- */
.section { padding: 4.5rem 0; }
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
}

/* ---- Section title — slightly less aggressive shadows ---- */
.section-title {
    letter-spacing: -0.5px;
}
.section-title::after {
    width: 60px;     /* slimmer underline for a more modern look */
    height: 3px;
    bottom: -10px;
}

.section-subtitle {
    margin-bottom: 2.5rem;
    color: #64748b;
}

/* ---- Hero ---- */
.hero-overlay {
    background: linear-gradient(135deg,
        rgba(2, 84, 105, 0.78) 0%,
        rgba(8, 120, 139, 0.55) 50%,
        rgba(2, 84, 105, 0.78) 100%) !important;
}

.hero-title {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.btn-hero {
    padding: .9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    backdrop-filter: blur(4px);
}
.btn-hero-primary {
    background: linear-gradient(135deg, #DFA340 0%, #f59e0b 100%);
    color: #fff;
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #DFA340 100%);
    color: #fff;
    box-shadow: 0 14px 36px rgba(223, 163, 64, .45);
}
.btn-hero-secondary {
    background: rgba(255, 255, 255, .15);
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, .25);
    border-color: #fff;
    color: #fff;
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: .75rem; width: 100%; }
    .hero-buttons .btn-hero { width: 100%; text-align: center; }
}

/* ---- Service cards — calmer hover, no rotateX (caused glitches) ---- */
.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 22px 50px rgba(8, 120, 139, .22) !important;
}

.service-image-wrapper { height: 220px; }
.service-body { padding: 1.5rem 1.5rem 1.75rem; gap: .25rem; }
.service-title { font-size: 1.25rem; line-height: 1.4; margin-bottom: .65rem; }
.service-description {
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    /* Clamp to 3 lines so cards stay equal height visually */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-price {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #025469;
    background: linear-gradient(135deg, rgba(8,120,139,.08) 0%, rgba(60,166,180,.12) 100%);
    padding: .4rem .9rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    width: fit-content;
}

.btn-service {
    padding: .75rem;
    border-radius: 10px;
    font-size: .95rem;
}

/* ---- Feature cards — subtler hover ---- */
.feature-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 48px rgba(8, 120, 139, .2) !important;
}
.feature-icon {
    width: 76px;
    height: 76px;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

/* ---- About section — image polish ---- */
.about-image img {
    border-radius: 24px !important;
    box-shadow: 0 22px 60px rgba(2, 84, 105, .25) !important;
    transition: transform .5s ease;
}
.about-image:hover img {
    transform: translateY(-6px) scale(1.02);
}

@media (min-width: 992px) {
    .about-content { gap: 3.5rem; }
}

/* ---- Contact section — softer, less jet-black ---- */
.contact-section {
    background: linear-gradient(135deg, #04455a 0%, #08788B 50%, #025469 100%) !important;
}
.contact-container {
    padding: 2rem !important;
    border-radius: 22px !important;
}
.contact-info { margin-bottom: 1.25rem; }
.contact-icon {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Make the contact form inputs more readable */
.contact-form input,
.contact-form textarea {
    border: 1.5px solid rgba(255, 255, 255, .25) !important;
    background: rgba(255, 255, 255, .96) !important;
    padding: .85rem 1rem !important;
    font-size: .95rem;
}

.btn-submit {
    padding: .9rem !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
}

/* ---- Floating WhatsApp button — better stacking, no overlap with footer ---- */
.whatsapp-btn { z-index: 999; }
.whatsapp-btn a {
    width: 56px !important;
    height: 56px !important;
}

/* ---- Header: cleaner shadow on scroll ---- */
.wasila-header.scrolled {
    box-shadow: 0 4px 22px rgba(2, 84, 105, .12) !important;
    backdrop-filter: blur(12px);
}

/* ---- Lang switcher contrast ---- */
.wasila-lang-btn {
    font-weight: 700;
    letter-spacing: .3px;
}
.wasila-lang-active {
    background: linear-gradient(135deg, #08788B, #025469) !important;
    color: #fff !important;
}

/* ---- Smooth fade between section backgrounds ---- */
.services-section,
.about-section,
.features-section,
.wowar-section,
.wowen-section {
    position: relative;
}

/* ---- Better empty state for portfolio ---- */
.wowar-section .text-muted,
.wowen-section .text-muted {
    color: #64748b !important;
    font-size: 1.05rem;
}

/* ---- Reduce overly aggressive AOS transforms on mobile ---- */
@media (max-width: 576px) {
    [data-aos] { transform: none !important; }
}

/* ---- Form alignment for English ---- */
html[lang="en"] .contact-form input,
html[lang="en"] .contact-form textarea,
html[dir="ltr"] .contact-form input,
html[dir="ltr"] .contact-form textarea {
    direction: ltr;
    text-align: left;
}

/* ---- Service card price symbol ---- */
.service-price::after {
    content: '';
    display: inline-block;
}

/* ---- Subtle grain on hero overlay for depth ---- */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(223, 163, 64, .08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}
