/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
}

.smooth-scroll {
    cursor: pointer;
}

/* Adaptive Typography for Headings */
h1 {
    font-size: 2.5rem; /* Desktop */
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.2rem; /* Tablet */
    }
}
@media screen and (max-width: 767px) {
    h1 {
        font-size: 1.8rem; /* Mobile */
        line-height: 1.25;
    }
}

h2 {
    font-size: 2.2rem; /* Desktop */
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
    h2 {
        font-size: 2rem; /* Tablet */
    }
}
@media screen and (max-width: 767px) {
    h2 {
        font-size: 1.5rem; /* Mobile */
        line-height: 1.25;
    }
}

h3 {
    font-size: 1.8rem; /* Desktop */
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
    h3 {
        font-size: 1.6rem; /* Tablet */
    }
}
@media screen and (max-width: 767px) {
    h3 {
        font-size: 1.25rem; /* Mobile */
        line-height: 1.25;
    }
}

/* Logo/Site Name Adaptive Size */
.f3-ns {
    font-size: 1.8rem;
}
@media screen and (max-width: 767px) {
    .f3-ns {
        font-size: 1.25rem; /* Mobile */
    }
}

/* Navigation */
.transform-hide {
    transform: translateX(100%);
}

.transform-show {
    transform: translateX(0);
}

.transition-transform {
    transition: transform 0.3s ease-out;
}

/* Hero Section */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Services Section Tabs */
.tab-button {
    background-color: transparent;
    color: #FF8C00; /* Orange */
    border-color: #FF8C00;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.tab-button:hover,
.tab-button.active {
    background-color: #FF8C00;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.object-fit-cover {
    object-fit: cover;
}

/* Features Section Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media screen and (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Industries Section Grid */
.grid-container-industries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .grid-container-industries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .grid-container-industries {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* How It Works Section Grid */
.grid-container-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .grid-container-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .grid-container-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    position: relative;
    background-color: white;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    line-height: 1;
}

.grid-container-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #FF8C00, #FFA500);
    z-index: 0;
    display: none; /* Hidden by default, only for desktop */
}

@media screen and (min-width: 1024px) {
    .grid-container-steps::before {
        display: block;
        top: calc(50% + 1rem); /* Adjust based on step-number height */
        left: 5%;
        right: 5%;
        width: 90%;
    }
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: calc(50% + 1rem); /* Align with the line */
        right: -1rem; /* Extend past the card */
        width: 2rem; /* Length of the arrow */
        height: 4px;
        background-color: #FF8C00; /* Match line color */
        z-index: 2;
        display: block;
    }
    .step-card:not(:last-child)::before {
        content: '';
        position: absolute;
        top: calc(50% + 1rem - 6px); /* Arrowhead position */
        right: -1rem; /* Arrowhead position */
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid #FF8C00; /* Arrowhead color */
        z-index: 2;
        display: block;
    }
}

/* Form styles */
input[type="text"], input[type="email"], select, textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
}

input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.red {
    color: red;
}

/* Cookie Banner */
#cookie-banner {
    transition: all 0.5s ease-in-out;
}

#cookie-modal {
    z-index: 9999; /* Ensure modal is above banner */
}

#cookie-modal > div {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Footer adjustment for fixed cookie banner */
body.has-cookie-banner {
    padding-bottom: 5rem; /* Adjust this value to match cookie banner height */
}

@media screen and (max-width: 767px) {
    body.has-cookie-banner {
        padding-bottom: 8rem; /* More space for stacked buttons on mobile */
    }
    #cookie-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 1rem;
        padding-top: 1rem;
    }
    #cookie-banner p {
        margin-bottom: 0.5rem;
    }
    #cookie-banner div {
        flex-direction: column;
        width: 100%;
    }
    #cookie-banner button {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}
/* Parent container padding */
.dataTrustFrame {
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px; /* Added for consistent vertical spacing */
}

/* Heading 1 styles */
.dataTrustFrame h1 {
    font-size: 28px; /* Not too large, a good primary heading size */
    font-weight: 700; /* Bold */
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Heading 2 styles */
.dataTrustFrame h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
    line-height: 1.25;
}

/* Heading 3 styles */
.dataTrustFrame h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Heading 4 styles */
.dataTrustFrame h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Heading 5 styles */
.dataTrustFrame h5 {
    font-size: 16px; /* Standard text size, but bold for hierarchy */
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Paragraph styles */
.dataTrustFrame p {
    font-size: 16px; /* Standard paragraph font size */
    line-height: 1.6; /* Good for readability */
    margin-top: 0; /* Reset default browser margin-top */
    margin-bottom: 16px; /* Space between paragraphs */
}

/* Unordered list styles */
.dataTrustFrame ul {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-left: 25px; /* Indent for bullet points */
    list-style-type: disc; /* Default bullet style */
}

/* List item styles */
.dataTrustFrame li {
    font-size: 16px; /* Inherit or explicitly set for consistency */
    line-height: 1.6; /* Consistent with paragraph line-height */
    margin-bottom: 8px; /* Space between list items */
}
