/* =============  New Pages Styles  ============= */

/* Page Content Container */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 5% 80px;
}

@media (max-width: 767px) {
    .page-content {
        padding: 120px 5% 60px;
    }
}

/* Page Hero Section */
.page-hero {
    margin-bottom: 80px;
}

/* Services Hero - Two Column Layout */
.services-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: visible;
}

/* Flowing Line in Hero */
.services-hero .hero-flowing-line {
    position: absolute;
    top: -120px;
    left: -10%;
    width: 120%;
    height: 200px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.services-hero .hero-flowing-line path {
    animation: flowingLine 15s ease-in-out infinite;
    transform-origin: center;
}

@keyframes flowingLine {
    0%, 100% {
        d: path("M 0 150 C 150 100, 300 180, 500 120 S 800 60, 1000 100 S 1150 160, 1200 130");
    }
    50% {
        d: path("M 0 130 C 150 160, 300 100, 500 140 S 800 100, 1000 80 S 1150 120, 1200 150");
    }
}

.services-hero .hero-content {
    max-width: 600px;
}

.services-hero .hero-image {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.services-hero .hero-image img {
    max-width: 100%;
    height: auto;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 60%, transparent 85%),
                linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 60%, transparent 85%),
                        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-composite: source-in;
}

@media (max-width: 900px) {
    .services-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-hero .hero-image {
        justify-content: center;
        order: -1;
    }
    
    .services-hero .hero-image img {
        max-width: 400px;
    }
}

/* About page hero with custom background */
.about-hero {
    position: relative;
    padding: 80px 5% 80px;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
}

.about-hero .page-title {
    color: #1a1a1a;
}

.mission-title {
    font-size: clamp(24px, 4vw, 40px);
    font-family: 'Hedvig Letters Serif', serif;
    font-weight: 400;
    line-height: 1.3;
    color: #1a1a1a;
}

.mission-statement {
    margin-top: -40px;
}

.page-title {
    font-size: clamp(32px, 6vw, 56px);
    font-family: 'Hedvig Letters Serif', serif;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--black);
}

.page-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray);
    max-width: 700px;
}

/* Back Link */
.back-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--ocean-blue);
    text-decoration: none;
    margin-bottom: 24px;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.7;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

.section-heading {
    font-size: clamp(24px, 4vw, 36px);
    font-family: 'Hedvig Letters Serif', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--black);
}

.subsection-heading {
    font-size: clamp(18px, 2.5vw, 22px);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--black);
}

.section-text {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--black);
    max-width: 800px;
}

/* What We Build Section - Enhanced */
.what-we-build-section {
    position: relative;
    overflow: visible;
}

/* Gradient Orb Background */
.gradient-orb {
    position: absolute;
    top: -100px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(101, 199, 194, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Flowing Line SVG */
.flowing-line {
    position: absolute;
    top: 80px;
    left: -5%;
    width: 110%;
    height: 400px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.flow-path {
    stroke-linecap: round;
}

/* Services Grid Cards */
.services-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-link-card {
    display: block;
    padding: 32px;
    background: var(--pearl-gray);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.service-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(101, 199, 194, 0.2);
    border-color: #65C7C2;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #65C7C2, #CFDF6A) border-box;
    border: 2px solid transparent;
}

.service-link-card h3 {
    font-size: clamp(20px, 3vw, 24px);
    font-family: 'Hedvig Letters Serif', serif;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 12px;
}

.service-link-card p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.learn-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--ocean-blue);
    font-family: 'Inter', sans-serif;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-item h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-family: 'Hedvig Letters Serif', serif;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.5;
}

/* Included List */
.included-list,
.factors-list,
.benefits-list,
.content-types-list,
.audience-list,
.industries-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li,
.factors-list li,
.benefits-list li,
.content-types-list li,
.audience-list li,
.industries-list li {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding: 12px 0;
    border-bottom: 1px solid var(--pearl-gray);
    color: var(--black);
}

.included-list li:last-child,
.factors-list li:last-child,
.benefits-list li:last-child,
.content-types-list li:last-child,
.audience-list li:last-child,
.industries-list li:last-child {
    border-bottom: none;
}

/* Process List */
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: process-counter;
}

.process-list li {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding: 16px 0 16px 48px;
    border-bottom: 1px solid var(--pearl-gray);
    color: var(--black);
    position: relative;
    counter-increment: process-counter;
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 16px;
    width: 32px;
    height: 32px;
    background: var(--iridescent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.process-list li:last-child {
    border-bottom: none;
}

/* Pricing Options Grid */
.pricing-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pricing-option-card {
    padding: 40px;
    background: var(--black);
    border-radius: 20px;
    color: white;
}

.pricing-option-card h3 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-family: 'Hedvig Letters Serif', serif;
    font-weight: 400;
    margin-bottom: 16px;
}

.pricing-best-for {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pricing-features li {
    font-size: 16px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-features li::before {
    content: '✓';
    margin-right: 12px;
    color: var(--aero-green);
}

.pricing-starting {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.work-card {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.work-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.work-card-content {
    padding: 24px;
}

.work-card-content h3 {
    font-size: 20px;
    font-family: 'Hedvig Letters Serif', serif;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--black);
}

.work-card-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 48px;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--pearl-gray);
}

.faq-question {
    font-size: clamp(18px, 2.5vw, 20px);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray);
}

/* Phases Grid */
.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.phase-item {
    padding: 24px;
    background: var(--pearl-gray);
    border-radius: 12px;
}

.phase-item h3 {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.phase-item p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}

/* Comparison Block */
.comparison-block {
    margin-top: 24px;
    padding: 24px;
    background: var(--pearl-gray);
    border-radius: 12px;
}

.comparison-block p {
    font-size: 16px;
    margin-bottom: 8px;
}

.comparison-block p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    margin-top: 80px;
    text-align: center;
}

.cta-text {
    font-size: clamp(20px, 3vw, 24px);
    font-family: 'Hedvig Letters Serif', serif;
    color: var(--black);
    margin-bottom: 24px;
}

/* Footer */
footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid var(--pearl-gray);
}

.footer-content p {
    font-size: 14px;
    color: var(--gray);
}
