/* =============================================
   PAGES.CSS - Shared Styles for Sub Pages
   NOBLE Corporate Website - Blue Theme
   ============================================= */

/* =============================================
   PAGE HEADER / HERO
   ============================================= */
.page-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    z-index: -1;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0, 30px 30px; }
    100% { background-position: 60px 60px, 90px 90px; }
}

/* Floating decorative circle */
.page-header-bg::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(74, 158, 218, 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Hero image for sub pages */
.page-hero-image {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay for text readability */
.page-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 40, 71, 0.85), rgba(13, 59, 102, 0.75));
}

/* Large background text decoration */
.page-header-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(5rem, 20vw, 12rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    font-family: var(--font-display);
}

.page-header-content {
    text-align: center;
    color: var(--text-inverse);
    padding: 6rem 0 4rem;
    position: relative;
    z-index: 1;
}

.page-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(74, 158, 218, 0.15);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(74, 158, 218, 0.3);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.page-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* Responsive page header */
@media (max-width: 768px) {
    .page-header {
        min-height: 40vh;
    }
    
    .page-header-content {
        padding: 4rem 0 3rem;
    }
    
    .page-header-bg-text {
        font-size: clamp(3rem, 15vw, 6rem);
    }
}

/* =============================================
   CONCEPT PAGE STYLES
   ============================================= */
.concept-main-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.concept-headline {
    margin-bottom: 3rem;
}

.concept-headline h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.8;
}

.concept-body-text {
    max-width: 700px;
    margin: 0 auto;
}

.concept-body-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2.2;
    margin-bottom: 2rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-strong);
}

.value-number {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2em;
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--text-inverse);
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-lead {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.value-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Vision Block */
.vision-block {
    text-align: center;
    color: var(--text-inverse);
    padding: 2rem 0;
}

.vision-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 2;
    margin: 1.5rem 0;
}

/* =============================================
   SERVICE PAGE STYLES
   ============================================= */
.service-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-detail-card:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.service-detail-card:nth-child(even) .service-detail-image {
    order: 2;
}

.service-detail-card:nth-child(even) .service-detail-body {
    order: 1;
}

.service-detail-card:hover {
    box-shadow: 0 8px 40px var(--shadow-strong);
    transform: translateY(-4px);
}

/* Service Image */
.service-detail-image {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    overflow: hidden;
}

.service-image-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-content {
    text-align: center;
}

.service-image-content svg {
    width: 120px;
    height: 120px;
    stroke: rgba(255, 255, 255, 0.3);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

.service-detail-card:hover .service-detail-image img {
    transform: scale(1.05);
}

/* Service Body */
.service-detail-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 2.5rem;
    align-content: center;
}

.service-detail-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.service-detail-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--text-inverse);
}

.service-detail-content {
    position: relative;
}

.service-number {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-secondary);
    line-height: 1;
    font-family: var(--font-display);
}

.service-detail-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.service-lead {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-description h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.service-stats-inline {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item-inline {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-number-inline {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}

.stat-label-inline {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* =============================================
   COMPANY PAGE STYLES
   ============================================= */
.company-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 150px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.company-table td {
    color: var(--text-secondary);
}

.company-table td ul {
    margin: 0;
    padding-left: 1.25rem;
}

.company-table td ul li {
    margin-bottom: 0.25rem;
    list-style: disc;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 74px;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px var(--shadow);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* =============================================
   CONTACT PAGE STYLES
   ============================================= */
.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.contact-info-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.contact-info-item span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-form-wrapper h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.form-note .required {
    color: #e53e3e;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-inverse);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-strong);
}

.submit-btn svg {
    transition: transform var(--transition-fast);
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: var(--bg-secondary);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: clamp(2.5rem, 5vw, 4rem);
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--text-inverse);
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--text-inverse);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
    transition: transform var(--transition-fast);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.bg-light {
    background: var(--bg-secondary);
}

.bg-dark {
    background: var(--bg-dark);
}

.bg-dark .section-label {
    color: var(--accent);
}

/* Active Nav Link */
.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */
@media (max-width: 1024px) {
    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-stats-inline {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .service-detail-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .service-detail-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .service-detail-card:nth-child(even) .service-detail-image {
        order: 0;
    }
    
    .service-detail-card:nth-child(even) .service-detail-body {
        order: 0;
    }
    
    .service-detail-image {
        min-height: 200px;
    }
    
    .service-detail-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .service-detail-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-detail-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-number {
        display: none;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 14px;
    }
    
    .timeline-year {
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    .company-table th {
        display: block;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: none;
    }
    
    .company-table td {
        display: block;
        padding-top: 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-features {
        grid-template-columns: 1fr;
    }
}
