/* =============================================
   SITEHAVEN INNER PAGES - UNIFIED STYLES
   Matches homepage quality and feel
   Version: 1.0.4
   ============================================= */

/* Prevent horizontal scrollbar from animations and overflow */
html {
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

/* Clip all sections to prevent animation overflow */
section {
    overflow-x: clip;
    overflow-y: visible;
    max-width: 100vw;
}

/* Ensure containers don't overflow */
.container {
    max-width: 100%;
    overflow-x: clip;
}

/* Clip the main content area */
.site-main {
    overflow-x: clip;
    max-width: 100vw;
}

/* Prevent pseudo-elements from causing overflow */
section::before,
section::after {
    overflow: hidden;
}

/* =============================================
   ENHANCED PAGE HERO - Matches Homepage Style
   ============================================= */

.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    background: linear-gradient(180deg, var(--color-sand-white) 0%, #EDE9E0 100%);
    position: relative;
    overflow: hidden;
}

.page-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.page-hero-content {
    max-width: 560px;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.page-hero-title .title-accent {
    color: var(--color-moss-green);
    font-style: italic;
    display: block;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-stone-taupe);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.page-hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Hero Visual Element */
.page-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.page-hero .hero-icon-box {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    background: #1C2321 !important;
    border-radius: 24px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-hero .hero-icon-box:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.page-hero .hero-icon-box > svg {
    width: 100px !important;
    height: 100px !important;
    stroke: #708D57 !important;
    stroke-width: 1.5 !important;
    fill: none !important;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.page-hero .hero-icon-box .icon-label {
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.page-hero .hero-icon-box .icon-sublabel {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Floating elements around hero visual */
.hero-float-elements {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.float-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-moss-green);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-pulse 3s ease-in-out infinite;
}

.float-dot:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-dot:nth-child(2) { top: 20%; right: 5%; animation-delay: 0.5s; }
.float-dot:nth-child(3) { bottom: 30%; left: 5%; animation-delay: 1s; }
.float-dot:nth-child(4) { bottom: 10%; right: 15%; animation-delay: 1.5s; }

@keyframes float-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* =============================================
   SCROLL ANIMATIONS
   Only applied to elements with data-animate attribute
   to prevent hiding content unintentionally
   ============================================= */

/* Fade-in animation - only for elements that explicitly opt-in */
.section-header.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   ENHANCED CARD STYLING - Premium Design
   ============================================= */

/* Base card styling - gradient background with decorative element */
.card {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.5) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(167, 155, 139, 0.15);
    box-shadow:
        0 4px 20px rgba(28, 35, 33, 0.06),
        0 1px 3px rgba(28, 35, 33, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient orb */
.card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(112, 141, 87, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle bottom accent line */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #708D57, transparent);
    border-radius: 3px 3px 0 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(112, 141, 87, 0.15),
        0 8px 16px rgba(28, 35, 33, 0.08);
    border-color: rgba(112, 141, 87, 0.2);
}

.card:hover::before {
    transform: scale(1.5);
    opacity: 1;
}

.card:hover::after {
    width: 60%;
}

/* Cards in dark sections */
.section-dark .card,
.values-section .card,
.pricing-section .card,
.client-testimonials .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 238, 0.95) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-dark .card:hover,
.values-section .card:hover,
.pricing-section .card:hover {
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Card headings */
.card h3, .card h4 {
    color: #1C2321;
    font-family: 'Playfair Display', Georgia, serif;
    position: relative;
}

/* Card text */
.card p {
    color: #5a6359;
    line-height: 1.8;
}

/* =============================================
   ICON STYLING - Refined
   ============================================= */

.service-icon-large,
.value-icon,
.additional-service-item .service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(112, 141, 87, 0.1) 0%, rgba(112, 141, 87, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-icon-large svg,
.value-icon svg,
.additional-service-item .service-icon svg {
    stroke: #708D57;
    transition: all 0.3s ease;
}

.card:hover .service-icon-large,
.card:hover .value-icon,
.additional-service-item:hover .service-icon {
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    transform: scale(1.05);
}

.card:hover .service-icon-large svg,
.card:hover .value-icon svg,
.additional-service-item:hover .service-icon svg {
    stroke: white;
}

/* =============================================
   PRICING CARDS - Premium Styling
   ============================================= */

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 238, 0.95) 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    padding: 2.5rem;
    text-align: center;
}

.pricing-card h3 {
    color: #1C2321 !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .pricing-amount {
    margin-bottom: 1.5rem;
}

.pricing-card .pricing-amount .price {
    color: #1C2321;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
}

.pricing-card .pricing-amount .period {
    color: #708D57;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-card .pricing-amount.secondary .price {
    font-size: 1.25rem;
    color: #5a6359;
}

.pricing-card .pricing-features {
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-card .pricing-features li {
    color: #5a6359;
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    border-bottom: 1px solid rgba(28, 35, 33, 0.05);
}

.pricing-card .pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #708D57;
    font-weight: bold;
}

/* Featured pricing card - special treatment */
.featured-pricing {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.8) 100%) !important;
    border: 2px solid #708D57 !important;
    box-shadow:
        0 24px 48px rgba(112, 141, 87, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.08) !important;
    transform: scale(1.02);
    z-index: 2;
    position: relative;
}

.featured-pricing:hover {
    transform: scale(1.02) translateY(-8px);
}

.featured-pricing .pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(112, 141, 87, 0.3);
}

/* =============================================
   TESTIMONIAL CARDS
   ============================================= */

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 238, 0.95) 100%) !important;
    padding: 2.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: rgba(112, 141, 87, 0.15);
    line-height: 1;
}

.testimonial-card .testimonial-text {
    color: #1C2321;
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card .author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-card .author-name {
    color: #1C2321;
    font-weight: 600;
}

.testimonial-card .author-title {
    color: #708D57;
    font-size: 0.9rem;
}

/* =============================================
   VALUE CARDS - About Page
   ============================================= */

.value-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 244, 238, 0.95) 100%) !important;
    border: none !important;
    padding: 2.5rem 2rem;
    text-align: center;
}

.value-card .value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(112, 141, 87, 0.15) 0%, rgba(112, 141, 87, 0.05) 100%);
    border-radius: 20px;
    margin: 0 auto 1.5rem;
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    box-shadow: 0 8px 24px rgba(112, 141, 87, 0.3);
}

.value-card h3 {
    color: #1C2321 !important;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: #5a6359 !important;
    line-height: 1.8;
}

/* =============================================
   PORTFOLIO CARDS
   ============================================= */

.portfolio-item-large {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.5) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(167, 155, 139, 0.15);
}

.portfolio-item-large .portfolio-image-large {
    overflow: hidden;
    position: relative;
}

.portfolio-item-large .portfolio-image-large::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(28, 35, 33, 0.03) 100%);
    pointer-events: none;
}

.portfolio-item-large .portfolio-image-large img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item-large:hover .portfolio-image-large img {
    transform: scale(1.05);
}

.portfolio-content-large {
    padding: 2rem;
}

.portfolio-title-large {
    color: #1C2321 !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.portfolio-description-large {
    color: #5a6359 !important;
    line-height: 1.7;
}

.portfolio-category {
    display: inline-block;
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.portfolio-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(28, 35, 33, 0.08);
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.portfolio-tags .tag {
    background: rgba(112, 141, 87, 0.08);
    color: #708D57;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-tags .tag:hover {
    background: rgba(112, 141, 87, 0.15);
}

.portfolio-results {
    color: #5a6359;
    font-size: 0.95rem;
}

.portfolio-results strong {
    color: #708D57;
}

/* Portfolio link hover state */
.portfolio-link {
    text-decoration: none;
    cursor: pointer;
}

.portfolio-link:hover {
    border-color: rgba(112, 141, 87, 0.3);
}

.portfolio-link:hover .portfolio-title-large {
    color: #708D57 !important;
}

/* =============================================
   CONTACT PAGE CARDS
   ============================================= */

.contact-form-wrapper {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.5) 100%);
    border: 1px solid rgba(167, 155, 139, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(28, 35, 33, 0.06);
}

.contact-info-card,
.response-time-card,
.free-consultation-card {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.5) 100%);
    border: 1px solid rgba(167, 155, 139, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover,
.response-time-card:hover,
.free-consultation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(112, 141, 87, 0.1);
    border-color: rgba(112, 141, 87, 0.2);
}

.faq-quick-item {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.3) 100%);
    border: 1px solid rgba(167, 155, 139, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.faq-quick-item:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(28, 35, 33, 0.06);
}

/* =============================================
   STATS BOX - About Page
   ============================================= */

.stats-box {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.5) 100%) !important;
    border: 1px solid rgba(167, 155, 139, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(28, 35, 33, 0.08);
}

.stat-box-item {
    text-align: center;
    padding: 1.25rem 0;
    position: relative;
}

.stat-box-item:not(:last-child) {
    border-bottom: 1px solid rgba(167, 155, 139, 0.15);
}

.stat-box-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #708D57, transparent);
}

.stat-box-number {
    color: #708D57;
    font-size: 2.75rem;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.1;
}

.stat-box-label {
    color: #5a6359;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* =============================================
   SERVICES PAGE SPECIFIC STYLES
   ============================================= */

/* Main service cards grid */
.main-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 100%;
    overflow: visible;
}

.main-service-card {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.5) 100%) !important;
    border: 1px solid rgba(167, 155, 139, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-service-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(112, 141, 87, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.main-service-card:hover::before {
    transform: scale(1.3);
}

.main-service-card .service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(112, 141, 87, 0.12) 0%, rgba(112, 141, 87, 0.04) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-service-card:hover .service-icon-large {
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 12px 28px rgba(112, 141, 87, 0.35);
}

.main-service-card:hover .service-icon-large svg {
    stroke: white;
}

.main-service-card h3 {
    color: #1C2321 !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.main-service-card > p {
    color: #5a6359 !important;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.main-service-card .service-features {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(167, 155, 139, 0.1);
    border-bottom: 1px solid rgba(167, 155, 139, 0.1);
}

.main-service-card .service-features li {
    color: #1C2321;
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.main-service-card .service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #708D57;
    font-weight: bold;
}

/* Additional services items */
.additional-service-item {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.4) 100%);
    border-radius: 16px;
    border: 1px solid rgba(167, 155, 139, 0.12);
    box-shadow: 0 4px 16px rgba(28, 35, 33, 0.04);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.additional-service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #708D57, transparent);
    transition: width 0.4s ease;
}

.additional-service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(112, 141, 87, 0.12);
    border-color: rgba(112, 141, 87, 0.2);
}

.additional-service-item:hover::after {
    width: 50%;
}

.additional-service-item .service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(112, 141, 87, 0.1) 0%, rgba(112, 141, 87, 0.04) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all 0.3s ease;
}

.additional-service-item:hover .service-icon {
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(112, 141, 87, 0.3);
}

.additional-service-item:hover .service-icon svg {
    stroke: white;
}

.additional-service-item h4 {
    color: #1C2321;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.additional-service-item p {
    color: #5a6359;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Process steps styling */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-step {
    background: linear-gradient(135deg, white 0%, rgba(247, 244, 238, 0.4) 100%);
    border-radius: 20px;
    border: 1px solid rgba(167, 155, 139, 0.12);
    box-shadow: 0 4px 16px rgba(28, 35, 33, 0.04);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(112, 141, 87, 0.12);
    border-color: rgba(112, 141, 87, 0.2);
}

.process-step .process-number {
    background: linear-gradient(135deg, #708D57 0%, #5a7245 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 16px rgba(112, 141, 87, 0.25);
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 24px rgba(112, 141, 87, 0.35);
}

.process-step h4 {
    color: #1C2321;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: #5a6359;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =============================================
   PORTFOLIO PAGE SPECIFIC STYLES
   ============================================= */

.portfolio-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.portfolio-item-large {
    background: white !important;
    border: 1px solid rgba(28, 35, 33, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-item-large:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-content-large {
    padding: 2rem;
}

.portfolio-title-large {
    color: #1C2321 !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.portfolio-description-large {
    color: #5a6359 !important;
    line-height: 1.7;
}

.portfolio-category {
    display: inline-block;
    background: #708D57;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.portfolio-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(28, 35, 33, 0.08);
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.portfolio-tags .tag {
    background: rgba(112, 141, 87, 0.1);
    color: #708D57;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.portfolio-results {
    color: #5a6359;
    font-size: 0.9375rem;
}

.portfolio-results strong {
    color: #1C2321;
}

/* Portfolio link hover state */
.portfolio-link {
    text-decoration: none;
    cursor: pointer;
}

.portfolio-link:hover .portfolio-title-large {
    color: #708D57 !important;
}

/* =============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================= */

.about-text {
    color: #5a6359;
    line-height: 1.8;
}

.about-text h2, .about-text h3 {
    color: #1C2321;
    font-family: 'Playfair Display', Georgia, serif;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Values grid - dark section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.value-card .value-icon {
    width: 64px;
    height: 64px;
    background: rgba(112, 141, 87, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-card .value-icon svg {
    stroke: #708D57;
}

.value-card h3 {
    color: #1C2321 !important;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: #5a6359 !important;
    line-height: 1.7;
}

/* Why choose us section */
.why-choose-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-choose-content h2 {
    color: #1C2321;
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1rem;
}

.why-choose-content .lead-text {
    color: #5a6359;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.feature-list-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list-item svg {
    flex-shrink: 0;
    stroke: #708D57;
    margin-top: 0.25rem;
}

.feature-list-item strong {
    color: #1C2321;
    display: block;
    margin-bottom: 0.25rem;
}

.feature-list-item p {
    color: #5a6359;
    margin: 0;
    line-height: 1.6;
}

/* Stats box */
.stats-box {
    background: white !important;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-box-item {
    text-align: center;
    padding: 1rem 0;
}

.stat-box-item:not(:last-child) {
    border-bottom: 1px solid rgba(28, 35, 33, 0.08);
}

.stat-box-number {
    color: #708D57;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
}

.stat-box-label {
    color: #5a6359;
    font-size: 0.9375rem;
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(28, 35, 33, 0.08);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    color: #1C2321;
    font-family: 'Playfair Display', Georgia, serif;
}

.team-member .team-role {
    color: #708D57;
    font-weight: 500;
}

.team-member p {
    color: #5a6359;
}

/* =============================================
   GRID OVERFLOW FIXES
   ============================================= */

.main-services-grid,
.additional-services-grid,
.process-timeline,
.pricing-grid,
.portfolio-grid,
.portfolio-grid-large,
.team-grid,
.values-grid,
.why-choose-grid {
    max-width: 100%;
    overflow: visible;
}

/* =============================================
   SECTION ENHANCEMENTS
   ============================================= */

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-stone-taupe);
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* =============================================
   SCROLL TO TOP INDICATOR
   ============================================= */

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-stone-taupe);
    font-size: 0.875rem;
    animation: bounce-down 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   RESPONSIVE - INNER PAGES
   ============================================= */

@media (max-width: 968px) {
    .page-hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
    }

    .page-hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .page-hero-content {
        max-width: 100%;
        order: 1;
    }

    .page-hero-visual {
        order: 2;
    }

    .page-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero-cta {
        justify-content: center;
    }

    .hero-icon-box {
        max-width: 300px;
        transform: none;
    }

    .hero-icon-box:hover {
        transform: none;
    }

    .hero-icon-box svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid-large {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-image {
        order: -1;
    }

    .stats-box {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .hero-icon-box {
        max-width: 240px;
        padding: var(--spacing-md);
    }

    .hero-icon-box svg {
        width: 60px;
        height: 60px;
    }

    .hero-icon-box .icon-label {
        font-size: 1.25rem;
    }

    .main-services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}
