/* Services CSS - Styles that complement css/style.css for service pages */

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
    color: var(--navy);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    border-radius: 2px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(253, 130, 10, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--orange-light) 0%, var(--orange) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(253, 130, 10, 0.4);
}

.btn:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
    box-shadow: none;
}

.btn-outline::before {
    background: var(--orange);
}

.btn-outline:hover {
    color: white;
}

/* Hero section */
.hero {
    position: relative;
    /* Match hero spacing behavior from index/services intro */
    min-height: 100svh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    padding: 150px 20px 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(253, 130, 10, 0.1) 0%, transparent 70%);
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin:  auto;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 30px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: white;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Constrain CTA buttons inside hero */
.hero-buttons .btn {
    width: 100%;
    max-width: 420px;
}

/* Features section */
.features {
    background-color: #eef2f6; /* slightly darker white for better section separation */
    padding: 80px 0;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.feature-grid {
    display: grid;
    /* Responsive by content: fall to 2 cols naturally on tablet widths */
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background-color: white;
    border-radius: 6px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #e0e0e0;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card:hover,
.feature-card.in-view {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--orange);
}

.feature-card:hover::before,
.feature-card.in-view::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(253, 130, 10, 0.3);
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--navy);
    font-weight: 700;
}

.feature-description {
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
}

/* Process section */
.process {
    background-color: white;
    position: relative;
    padding: 100px 0;
}

.process-steps {
    position: relative;
    z-index: 1;
}

.process-step {
    display: flex;
    margin-bottom: 80px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 80px;
    left: 40px;
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(to bottom, var(--orange) 0%, transparent 100%);
    z-index: -1;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-right: 30px;
    box-shadow: 0 5px 15px rgba(253, 130, 10, 0.3);
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--navy);
    font-weight: 700;
}

/* Services section */
.services {
    background-color: #eef2f6; /* match VPN page section tone */
    padding: 80px 0;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.services-grid {
    display: grid;
    /* Use auto-fit so layout adapts to 2 cols when width is limited */
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
    z-index: 1;
}

.service-card:hover,
.service-card.in-view {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--orange);
}

.service-card:hover::before,
.service-card.in-view::before {
    transform: scaleX(1);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--navy);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    left: 15px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    border-radius: 2px;
}

.service-description {
    color: var(--text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-left: 15px;

}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}


/* Services index specific styles */
.services-hero {
    position: relative;
    background: linear-gradient(rgba(6, 21, 48, 0.8), rgba(10, 31, 68, 0.9)), url('../images/tinified/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
}

.services-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.services-list {
    display: grid;
    /* Match technologies grid card width and behaviour */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.service-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-info p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.service-info .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* FAQ section styling */
.faq-section {
    /* CSS-only sizing so closed/open have identical width and predictable min-height */
    --faq-max-width: 900px;
    --faq-summary-min-h: 56px;
    background: #ffffff;
    padding: 60px 0 60px;
}
.faq-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.faq-intro {
    text-align: center;
    color: var(--text);
    max-width: 1100px;
    margin: 0 auto 20px;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;
}
.faq-item {
    background: #fff;
    border: 1px solid rgba(10,31,68,0.08);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: height 0.2s ease;
    min-height: var(--faq-summary-min-h);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto; /* text grows, icon fixed */
    align-items: center;
    column-gap: 12px;
    font-weight: 700;
    color: var(--navy);
    width: 100%;
    box-sizing: border-box;
}
.faq-item summary span { min-width: 0; }
.faq-item summary i { color: var(--orange); transition: transform 0.2s ease; width: 20px; text-align: right; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-content { padding: 0 18px 18px 18px; color: var(--text); width: 100%; box-sizing: border-box; }

/* Prevent content from expanding container width on long words */
.faq-item,
.faq-item summary,
.faq-content {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* spacing handled above */
.no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: #555;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Override navbar styles */
nav {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}

.navbar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 992px) {
    .feature-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .process-step::after {
        display: none;
    }
    
    .service-card {
        height: auto;
    }
}

/* Force max 2 columns for services and features slightly earlier than tablet breakpoint */
@media (max-width: 1020px) {
    .feature-grid,
    .services-grid,
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Keep CTA full-width on mobile but not hero buttons */
    .cta-buttons .btn { width: 100%; }

    /* Hero buttons behave like CTA size but not full-width */
    .hero-buttons .btn {
        width: auto;
        min-width: 220px;
        max-width: 300px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .hero {
        /* Mirror index/services intro sizing */
        min-height: 800px;
        padding: 150px 16px 120px;
    }
    .hero-content {
        min-height: 0px;
        max-width: 360px;
        margin: 0 auto;
        padding: 0 8px;
    }

    .hero-buttons {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .hero-buttons .btn { max-width: 300px; }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .feature-card, 
    .service-card {
        padding: 30px 20px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .service-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero {
        /* Keep consistent with index intro */
        min-height: 800px;
        padding: 150px 12px 120px;
    }

    .hero-content {
        max-width: 320px;
    }

    .hero-buttons {
        max-width: 320px;
    }
    .hero-buttons .btn { max-width: 280px; }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-card, 
    .service-card {
        padding: 20px 15px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-grid {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-grid {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-item {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-list {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .process-step {
        margin-bottom: 40px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .process-steps {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-hero {
        padding: 100px 0 60px;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-info {
        padding: 20px;
    }
    
    .service-info h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-info p {
        margin-bottom: 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .feature-card, 
    .service-card,
    .services-grid,
    .feature-grid,
    .service-item,
    .services-list,
    .process-step,
    .process-steps {
        max-width: 280px;
    }
} 