/* ============================================
   Crystal View Inc — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.nav-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

#navbar.nav-scrolled .font-serif {
    color: #102a43 !important;
}

#navbar.nav-scrolled .mobile-menu-btn {
    color: #102a43;
}

#navbar.nav-scrolled .mobile-menu {
    background: rgba(255, 255, 255, 0.97);
    border-top-color: #d9e2ec;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 26, 46, 0.92) 0%,
        rgba(16, 42, 67, 0.85) 40%,
        rgba(16, 42, 67, 0.70) 100%
    );
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 26, 46, 0.3) 0%,
        transparent 40%,
        transparent 60%,
        rgba(10, 26, 46, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 820px;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde047;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eab308;
    color: #102a43;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid #eab308;
}

.btn-primary:hover {
    background: #facc15;
    border-color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.btn-outline-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #eab308;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* --- Section Shared --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #eab308;
    margin-bottom: 0.75rem;
    background: rgba(234, 179, 8, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #102a43;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.0625rem;
    color: #627d98;
    line-height: 1.7;
}

/* --- Services Section --- */
.services {
    background: #ffffff;
}

.service-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 12px 40px rgba(16, 42, 67, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #102a43;
}

.service-card:hover .service-icon svg {
    stroke: #eab308;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 0.625rem;
}

.service-desc {
    font-size: 0.9375rem;
    color: #627d98;
    line-height: 1.7;
}

/* --- About Section --- */
.about {
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(16, 42, 67, 0.12);
    display: block;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.about-text {
    font-size: 1.0625rem;
    color: #486581;
    line-height: 1.8;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.about-feature-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #102a43;
}

/* --- Gallery Section --- */
.gallery {
    background: #ffffff;
}

.gallery-item {
    cursor: pointer;
}

.gallery-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 26, 46, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #102a43;
    text-align: center;
}

/* --- Testimonials Section --- */
.testimonials {
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(16, 42, 67, 0.08);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: #486581;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #102a43;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 26, 46, 0.93) 0%,
        rgba(16, 42, 67, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --- Contact Section --- */
.contact {
    background: #ffffff;
}

.contact-text {
    font-size: 1.0625rem;
    color: #627d98;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #627d98;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: #102a43;
    font-weight: 500;
    line-height: 1.6;
}

/* --- Contact Form --- */
.contact-form {
    background: #f0f4f8;
    border-radius: 20px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #102a43;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d9e2ec;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #102a43;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.form-input::placeholder {
    color: #9fb3c8;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    background: #102a43;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-submit:hover {
    background: #243b53;
    box-shadow: 0 8px 25px rgba(16, 42, 67, 0.25);
    transform: translateY(-2px);
}

/* --- Form Success --- */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 0.5rem;
}

.success-text {
    font-size: 1rem;
    color: #627d98;
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: #102a43;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-desc {
    font-size: 0.9375rem;
    color: #9fb3c8;
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #eab308;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    font-size: 0.9375rem;
    color: #9fb3c8;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-link:hover {
    color: #fde047;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    transition: background 0.2s ease;
}

.mobile-menu {
    transition: background 0.3s ease;
}

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #d9e2ec;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 1.25rem;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .about-accent {
        display: none;
    }
    
    .cta-content {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary, .btn-outline-light {
        width: 100%;
        justify-content: center;
    }
}
