/**
 * Ingetest SpA Website Stylesheet
 * A comprehensive stylesheet for the company website
 * Organized with a mobile-first approach and modular components
 */

/**
 * CSS Custom Properties
 * Global variables for consistent theming across the site
 * Includes color scheme and typography settings
 */
:root {
    /* Brand Colors */
    --navy: #1B365D;          /* Primary brand color */
    --navy-light: #2B4C7E;    /* Used for hover states */
    --navy-lighter: #3A5F9E;  /* Used for gradients */
    --navy-dark: #0A1F3F;     /* Used for shadows and contrast */
    --orange: #FF7F41;        /* Accent color */
    --orange-light: #FF9B6B;  /* Secondary accent */
    --orange-dark: #E65D1F;   /* Used for CTA hover states */
    --gray-light: #F5F7FA;    /* Background color */
    --gray: #6B7C93;          /* Body text color */
    --white: #FFFFFF;         /* Used for contrast and cards */
    
    /* Typography System */
    --heading-font: 'Montserrat', sans-serif;  /* Used for headings and emphasis */
    --body-font: 'Open Sans', sans-serif;      /* Used for body text and general content */
}

/**
 * CSS Reset and Base Styles
 * Normalizes browser defaults and sets up base styling
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/**
 * Typography System
 * Comprehensive typographic scale and text styles
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Base Typography */
body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--navy);
    font-size: 16px;
    font-weight: 400;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--navy);
}

/* Heading Size Scale */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;  /* Tighter tracking for large headlines */
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2.2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    font-weight: 600;
}

h5 {
    font-size: 1.4rem;
    font-weight: 600;
}

h6 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Paragraph and Text Styles */
p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
}

/* Text Utilities */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}

.text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.125rem;
}

/* Font Weight Utilities */
.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }
.font-weight-extrabold { font-weight: 800; }

/**
 * Layout Components
 * Core layout structures and spacing systems
 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flexbox Layout System */
.flex-row {
    display: flex;
    gap: 1rem;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flex-wrap { flex-wrap: wrap; }
.flex-center {
    align-items: center;
    justify-content: center;
}
.flex-between { justify-content: space-between; }
.flex-align-center { align-items: center; }
.flex-grow { flex-grow: 1; }

/**
 * Grid Systems
 * Component-specific grid layouts
 */
/* Services Grid */
.services .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem;
}

.services .col-lg-3 {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 250px;
}

/* List Components */
.list-unstyled {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-unstyled li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/**
 * Component Groups
 * Reusable component collections
 */
/* Button Groups */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Stats Grid */
.stats .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem;
}

.stats .col-lg-3 {
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 200px;
}

/**
 * Contact Components
 * Styles for contact-related elements
 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/**
 * Navigation Components
 * Main navigation and header styles
 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(27, 54, 93, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--navy) !important;
    text-decoration: none;
    font-family: var(--heading-font);
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--navy-light) !important;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--navy) !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--orange) !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel {
    height: 100%;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100vh;
    background-color: var(--navy);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(27, 54, 93, 0.7),
        rgba(27, 54, 93, 0.8)
    );
    z-index: 1;
}

.hero .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 1000px;
    z-index: 2;
    padding: 0;
}

.hero .carousel-caption h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero .carousel-caption h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--orange);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s;
}

.hero .carousel-caption p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(27, 54, 93, 0.7);
    border-radius: 50%;
    background-size: 50%;
}

.carousel-item {
    transition: transform 1.2s ease-in-out;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--orange-dark);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--gray-light);
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.services .card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(27, 54, 93, 0.1);
}

/* About Section */
.about {
    padding: 80px 0;
    text-align: center;
}

.about-image img {
    border-radius: 10px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--gray-light);
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form input,
#contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--navy-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

footer p {
    color: var(--white) !important;
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--orange);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero .carousel-caption {
        padding: 1rem;
        width: 90%;
    }
    
    .hero .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .hero .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .hero .carousel-caption p {
        font-size: 1rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

/* Custom styles to complement Bootstrap */

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Custom form styles */
.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 127, 65, 0.25);
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom button hover effect */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 127, 65, 0.3);
}

/* Stats section */
.stat-item {
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(27, 54, 93, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    color: var(--orange);
    margin-bottom: 1rem;
}

/* About section */
.about-image img:hover {
    transform: scale(1.05);
}

/* CTA section */
.cta {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Animated Background */
.scroll-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.1;
    mix-blend-mode: multiply;
}

.scroll-bg path {
    transition: transform 0.3s ease-out;
}

.scroll-bg defs linearGradient stop:first-child {
    stop-color: var(--navy);
    stop-opacity: 0.5;
}

.scroll-bg defs linearGradient stop:last-child {
    stop-color: var(--navy-dark);
    stop-opacity: 0.5;
}

/* Contact Form */
.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alert styles */
.alert-success {
    background-color: var(--gray-light);
    border-color: var(--orange-light);
    color: var(--navy);
}

/* Footer */
.bg-dark {
    background-color: var(--navy-dark) !important;
}

/* Custom button hover effect */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 127, 65, 0.3);
}

/* Custom styles */
.text-primary {
    color: var(--orange) !important;
}

.bg-primary {
    background-color: var(--navy) !important;
}

.btn-primary {
    background-color: var(--orange) !important;
    border-color: var(--orange) !important;
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--orange-dark) !important;
    border-color: var(--orange-dark) !important;
}

.btn-outline-primary {
    color: var(--orange) !important;
    border-color: var(--orange) !important;
}

.btn-outline-primary:hover {
    background-color: var(--orange) !important;
    color: var(--white) !important;
}

.btn-light {
    background-color: var(--white) !important;
    color: var(--navy) !important;
}

.btn-light:hover {
    background-color: var(--gray-light) !important;
    color: var(--navy-dark) !important;
}

/* Service Detail Pages */
.service-page {
    margin-top: 76px;
    padding-top: 2rem;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.service-nav {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.service-nav h4 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gray-light);
}

.service-nav .nav-link {
    color: var(--gray);
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.3rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-nav .nav-link:hover {
    color: var(--orange);
    background-color: var(--gray-light);
    transform: translateX(5px);
}

.contact-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h4 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gray-light);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.contact-info i {
    color: var(--orange);
    font-size: 1.1rem;
}

.service-content {
    padding: 0 1rem;
}

.service-content section {
    margin-bottom: 3.5rem;
    padding: 0;
}

.service-content h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.service-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--orange);
}

.service-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.service-content .list-unstyled li {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
}

.service-content .list-unstyled li i {
    position: absolute;
    left: 0;
    top: 0.3rem;
    font-size: 1.1rem;
}

.service-content .list-unstyled li strong {
    color: var(--navy);
    display: block;
    margin-bottom: 0.3rem;
}

.page-header {
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    background-blend-mode: multiply;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(27, 54, 93, 0.95), rgba(27, 54, 93, 0.8));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 1;
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--orange);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--white);
    opacity: 0.8;
}

@media (max-width: 991px) {
    .service-sidebar {
        margin-bottom: 2rem;
    }
    
    .service-content {
        padding: 0;
    }
    
    .service-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0;
    }
    
    .service-content p {
        font-size: 1rem;
    }
    
    .service-nav, .contact-info {
        padding: 1.2rem;
    }
}

/* Service Pages */
.service-page {
    margin-top: 76px; /* Height of the navbar */
    padding-top: 2rem;
}

.sidebar.sticky-top {
    top: 90px; /* Adjusted to account for navbar height plus some spacing */
    z-index: 100;
}

/* Responsive Typography */
@media (max-width: 1200px) {
    h1.display-4 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    h1.display-4 {
        font-size: 2.2rem;
    }
    
    .page-header {
        padding-top: 6rem !important;
    }
}

@media (max-width: 576px) {
    h1.display-4 {
        font-size: 1.8rem;
    }
}

/* Button Styles */
.hover-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hover-outline:hover {
    background-color: transparent !important;
    color: var(--orange) !important;
    border-color: var(--orange) !important;
}

/* Remove margin utilities where flexbox gap is used */
.mb-2, .mb-3, .mb-4, .me-2, .me-3, .me-4 {
    margin: 0 !important;
}

/* Keep vertical section spacing */
section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-bottom: 3rem;
} 