/* ========================================
   Page Sections
   ======================================== */

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.94) 0%,
        rgba(var(--primary-rgb), 0.8) 40%,
        rgba(var(--primary-rgb), 0.88) 100%
    );
}

/* Animated gradient overlay */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 70% 50%,
        rgba(var(--gold-rgb), 0.08) 0%,
        transparent 60%
    );
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(var(--gold-rgb), 0.12);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: badgeFadeIn 1s 0.3s var(--ease) both;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: var(--fs-4xl);
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
    animation: heroTitleIn 1s 0.5s var(--ease) both;
}

.hero h1 .text-gold {
    color: var(--gold);
    position: relative;
}

@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero p {
    font-size: var(--fs-md);
    color: rgba(var(--white-rgb), 0.75);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
    animation: heroSubIn 1s 0.7s var(--ease) both;
}

@keyframes heroSubIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroBtnsIn 1s 0.9s var(--ease) both;
}

@keyframes heroBtnsIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(var(--white-rgb), 0.3);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 4px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* --- Section Header Banner --- */
.section-header-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-header-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/scales.png') center/cover no-repeat;
    opacity: 0.06;
}

.section-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--gold-rgb), 0.05) 50%,
        transparent 100%
    );
    animation: bannerShimmer 4s linear infinite;
}

@keyframes bannerShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section-header-banner h2 {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--white);
    position: relative;
    margin-bottom: var(--space-sm);
}

.section-header-banner p {
    color: var(--gold);
    font-size: var(--fs-md);
    position: relative;
    font-weight: 500;
}

/* --- Services Section --- */
.services-section {
    padding-bottom: 80px;
    background: var(--bg);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Animated border gradient on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--gold-gradient);
    transition: height var(--duration-slow) var(--ease);
    border-radius: 0 0 0 4px;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--gold-rgb), 0.15);
}

.service-number {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: rgba(var(--gold-rgb), 0.15);
    min-width: 60px;
    text-align: center;
    line-height: 1;
    transition: color var(--duration) var(--ease);
}

.service-card:hover .service-number {
    color: rgba(var(--gold-rgb), 0.35);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.service-content p {
    color: var(--text-light);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.service-tags {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.service-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.04));
    transition: all var(--duration) var(--ease);
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(3deg);
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.2), rgba(var(--gold-rgb), 0.08));
}

.service-icon svg {
    width: 44px;
    height: 44px;
}

.gold-icon {
    color: var(--gold);
}

/* --- About Section --- */
.about-section {
    padding: var(--space-4xl) 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Decorative corner */
.about-image::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 80px;
    height: 80px;
    border-top: 4px solid var(--gold);
    border-right: 4px solid var(--gold);
    border-radius: 0 var(--radius) 0 0;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease);
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform var(--duration-slower) var(--ease);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 2;
}

.experience-badge {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    padding: 20px 28px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: 0 8px 32px rgba(var(--gold-rgb), 0.3);
    transition: transform var(--duration) var(--ease-spring);
}

.experience-badge:hover {
    transform: scale(1.05);
}

.exp-number {
    display: block;
    font-size: var(--fs-3xl);
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.about-content h2 {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
    font-size: var(--fs-base);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.about-feature:hover {
    background: rgba(var(--gold-rgb), 0.06);
    transform: translateX(-4px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: var(--gold);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.about-feature span {
    font-weight: 700;
    font-size: var(--fs-sm);
}

/* --- Values Section --- */
.values-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.value-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--duration) var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-card:hover::after {
    transform: scaleX(1);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--gold-rgb), 0.1);
    border-radius: 50%;
    color: var(--gold);
    transition: all var(--duration) var(--ease);
}

.value-card:hover .value-icon {
    background: var(--gold);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.value-icon svg {
    width: 26px;
    height: 26px;
}

.value-card h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.value-card p {
    font-size: var(--fs-sm);
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Cases Section --- */
.cases-section {
    padding-bottom: 80px;
    background: var(--bg);
}

.cases-header {
    background: var(--primary);
    padding: 40px 0;
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.cases-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.05), transparent);
    animation: bannerShimmer 5s linear infinite;
}

.cases-header h2 {
    color: var(--white);
    font-size: var(--fs-2xl);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.case-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    transition: all var(--duration) var(--ease);
    border-right: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.05) 0%, transparent 70%);
    transition: all var(--duration) var(--ease);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-right-color: var(--gold);
}

.case-card:hover::before {
    width: 200px;
    height: 200px;
    opacity: 0.8;
}

.case-icon {
    width: 56px;
    height: 56px;
    color: var(--gold);
    margin-bottom: 20px;
    transition: transform var(--duration) var(--ease);
}

.case-card:hover .case-icon {
    transform: scale(1.1);
}

.case-icon svg {
    width: 100%;
    height: 100%;
}

.case-card h3 {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.case-card p {
    color: var(--text-light);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

/* Case percentage badge */
.case-percent {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 800;
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(var(--gold-rgb), 0.03) 100px,
        rgba(var(--gold-rgb), 0.03) 101px
    );
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}

.stat-item:hover {
    background: rgba(var(--white-rgb), 0.04);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-number::after {
    content: '+';
}

.stat-label {
    color: rgba(var(--white-rgb), 0.8);
    font-size: var(--fs-base);
    font-weight: 500;
}

/* --- Blog Section --- */
.blog-section {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--duration) var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slower) var(--ease);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold-gradient);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.blog-content {
    padding: var(--space-lg);
}

.blog-content h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.5;
}

.blog-content p {
    color: var(--text-light);
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-link {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: var(--fs-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-link:hover {
    color: var(--primary);
    gap: 8px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: var(--space-4xl) 0;
    background: var(--bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--duration) var(--ease);
}

.faq-item.active {
    border-color: rgba(var(--gold-rgb), 0.25);
    box-shadow: 0 4px 24px rgba(var(--gold-rgb), 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--text);
    text-align: right;
    transition: all var(--duration) var(--ease);
}

.faq-question:hover {
    color: var(--gold-dark);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--gold);
    transition: transform var(--duration) var(--ease);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--fs-sm);
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.1) 0%, transparent 60%);
    animation: ctaOrb 8s ease-in-out infinite alternate;
}

@keyframes ctaOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 30px); }
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.08) 0%, transparent 60%);
    animation: ctaOrb 10s ease-in-out infinite alternate-reverse;
}

.cta-box h2 {
    font-size: var(--fs-2xl);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
}

.cta-box p {
    color: rgba(var(--white-rgb), 0.75);
    font-size: var(--fs-base);
    margin-bottom: var(--space-xl);
    position: relative;
}

.cta-box .btn {
    position: relative;
}

/* --- Contact Section --- */
.contact-section {
    padding: var(--space-4xl) 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info h2 {
    font-size: var(--fs-2xl);
    font-weight: 900;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.contact-item:hover {
    background: rgba(var(--gold-rgb), 0.04);
    transform: translateX(-4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.04));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all var(--duration) var(--ease);
}

.contact-item:hover .contact-icon {
    background: var(--gold);
    color: var(--primary-dark);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item div strong {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-item div span {
    color: var(--text-light);
    font-size: var(--fs-sm);
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.contact-form h3 {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: var(--fs-sm);
    color: var(--text);
    background: var(--bg);
    transition: all var(--duration) var(--ease);
    outline: none;
    direction: rtl;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.1);
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
}
