/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.primary-color {
    color: #E74C3C; /* A vibrant red */
}

.primary-color-bg {
    background-color: #E74C3C;
}

.primary-color-border {
    border-color: #E74C3C;
}

.primary-color-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.magenta-color {
    color: #E74C3C; /* Using primary red as the accent color as requested */
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.button-primary {
    background-color: #E74C3C;
    color: white;
    border: 1px solid #E74C3C;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: inline-block;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.button-primary:hover {
    background-color: #C0392B;
    border-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-secondary {
    background-color: transparent;
    color: #E74C3C;
    border: 1px solid #E74C3C;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    display: inline-block;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.button-secondary:hover {
    background-color: #E74C3C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.link.hover-primary-color:hover {
    color: #E74C3C;
}

/* Header and Navigation */
header {
    border-bottom: 1px solid #eee;
}

header .link span {
    transition: color 0.3s ease;
}

#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu .mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero-section {
    padding-top: 5rem; /* Adjust for fixed header */
}

.absolute-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hero-canvas {
    z-index: 0;
}

.hero-section .dtc {
    position: relative;
    z-index: 1;
}

/* Responsive Typography for Headings */
@media screen and (min-width: 1024px) {
    .f-headline-l {
        font-size: 3.5rem; /* Desktop */
    }
    .f1-l {
        font-size: 2.5rem;
    }
    .f2-l {
        font-size: 2rem;
    }
    .f3-l {
        font-size: 1.8rem;
    }
    .f4-l {
        font-size: 1.5rem;
    }
    .f5-l {
        font-size: 1.25rem;
    }
    .f6-l {
        font-size: 1rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .f1-m {
        font-size: 2.2rem; /* Tablet */
    }
    .f2-m {
        font-size: 1.8rem;
    }
    .f3-m {
        font-size: 1.6rem;
    }
    .f4-m {
        font-size: 1.4rem;
    }
    .f5-m {
        font-size: 1.1rem;
    }
    .f6-m {
        font-size: 0.9rem;
    }
    .f7-m {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 767px) {
    .f2-s {
        font-size: 1.5rem; /* Mobile */
    }
    .f3-s {
        font-size: 1.25rem;
    }
    .f4-s {
        font-size: 1.1rem;
    }
    .f5-s {
        font-size: 1rem;
    }
    .f6-s {
        font-size: 0.9rem;
    }
    .f7-s {
        font-size: 0.8rem;
    }
    .f8-s {
        font-size: 0.7rem;
    }
    .f9-s {
        font-size: 0.6rem;
    }
    header .link img {
        height: 1.5rem;
    }
    header .link span {
        font-size: 1.25rem;
    }
}

/* Section Padding */
.pa5-l {
    padding: 5rem;
}
.pa4-m {
    padding: 3rem;
}
.pa3-s {
    padding: 2rem;
}

/* About Section */
.about-image {
    height: 300px;
    object-fit: cover;
}

/* Accordion (Features & Industries) */
.accordion-container {
    max-width: 800px;
    margin: auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-button:hover {
    background-color: #F8F8F8;
}

.accordion-button i {
    transition: transform 0.3s ease;
}

.accordion-button.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    transition: max-height 0.4s ease-out;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.accordion-content.expand {
    max-height: 500px; /* Sufficiently large value */
}

/* Pricing Section */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.pricing-card ul {
    list-style: none;
}

.pricing-card ul li i {
    vertical-align: middle;
}

.faq-mini-accordion .faq-button {
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.faq-mini-accordion .faq-button:hover {
    background-color: #EAEAEA;
}

.faq-mini-accordion .faq-button i {
    transition: transform 0.3s ease;
}

.faq-mini-accordion .faq-button.active i {
    transform: rotate(45deg);
}

.faq-mini-accordion .faq-content {
    max-height: 0;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 0.25rem 0.25rem;
}

.faq-mini-accordion .faq-content.expand {
    max-height: 200px; /* Sufficiently large value */
}

/* Team Section */
.timeline-container {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-track {
    position: relative;
    padding-top: 2rem;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #E74C3C;
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    min-width: 200px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background-color: #E74C3C;
    border-radius: 50%;
    border: 3px solid white;
    z-index: 2;
}

.avatar {
    object-fit: cover;
}

/* Portfolio Section */
.portfolio-item {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

/* Footer */
footer {
    padding-bottom: 7rem; /* Space for cookie banner */
}

footer .link img {
    filter: brightness(0) invert(1);
}

footer .link span {
    color: #E74C3C;
}

/* Cookie Banner */
#cookie-banner {
    z-index: 1000;
    background-color: #333;
    color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookie-banner a {
    color: #E74C3C;
    text-decoration: underline;
}

#cookie-banner a:hover {
    color: white;
}

#cookie-modal {
    z-index: 1001;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

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

#cookie-modal label {
    cursor: pointer;
}

@media screen and (max-width: 1100px) {
    nav.db-l {
        display: none;
    }
    #burger-menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .pa5-l, .pa4-m {
        padding: 2rem 1rem;
    }
    .mb5-l, .mb4-m {
        margin-bottom: 1.5rem;
    }
    .mw9.center .flex.flex-wrap > div {
        width: 100%;
    }
    .timeline-item {
        min-width: 150px;
    }
    .pricing-card {
        min-height: auto;
    }
    .portfolio-item {
        height: 200px;
    }
    #cookie-banner .flex-auto {
        flex: none;
    }
    #cookie-banner .flex-wrap {
        justify-content: center;
    }
    #cookie-banner .button-primary, #cookie-banner .button-secondary {
        margin-bottom: 0.5rem;
        margin-right: 0;
        width: 100%;
    }
    #cookie-modal > div {
        margin: 1rem;
    }
}
/*
 * New stock styles for common text elements within .lawMatrixNode
 * These styles provide a clean, readable baseline without overly large fonts.
 */

/* Main container padding for spacing from top and sides */
.lawMatrixNode {
    padding-top: 25px; /* Top spacing for the content block */
    padding-left: 20px; /* Left side spacing */
    padding-right: 20px; /* Right side spacing */
    padding-bottom: 25px; /* Bottom spacing for the content block */
    /* You might also want a margin-bottom if you have multiple .lawMatrixNode sections */
    /* margin-bottom: 30px; */
}

/* Heading 1 styles */
.lawMatrixNode h1 {
    font-size: 1.8em; /* Not too large, relative to base font (e.g., 28.8px if base is 16px) */
    font-weight: 600; /* Slightly less than 'bold' for a modern look, or use 'bold' */
    margin-top: 1.5em; /* Spacing above the heading */
    margin-bottom: 0.7em; /* Spacing below the heading */
    line-height: 1.2; /* Tighter line height for headings */
}

/* Heading 2 styles */
.lawMatrixNode h2 {
    font-size: 1.5em; /* e.g., 24px */
    font-weight: 600;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
    line-height: 1.2;
}

/* Heading 3 styles */
.lawMatrixNode h3 {
    font-size: 1.25em; /* e.g., 20px */
    font-weight: 600;
    margin-top: 1.3em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

/* Heading 4 styles */
.lawMatrixNode h4 {
    font-size: 1.1em; /* e.g., 17.6px */
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    line-height: 1.3;
}

/* Heading 5 styles */
.lawMatrixNode h5 {
    font-size: 1em; /* Same as paragraph, but bold */
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.3em;
    line-height: 1.4;
}

/* Paragraph styles */
.lawMatrixNode p {
    font-size: 1em; /* Base font size, typically 16px */
    line-height: 1.6; /* Good line height for readability */
    margin-bottom: 1em; /* Spacing between paragraphs */
}

/* Unordered list styles */
.lawMatrixNode ul {
    list-style-type: disc; /* Default bullet style */
    margin-left: 20px; /* Indentation for the list itself */
    padding-left: 0; /* Reset default browser padding if any */
    margin-top: 1em; /* Spacing above the list */
    margin-bottom: 1em; /* Spacing below the list */
}

/* List item styles */
.lawMatrixNode li {
    font-size: 1em; /* Inherit or explicitly set */
    line-height: 1.5; /* Good line height for list items */
    margin-bottom: 0.5em; /* Spacing between list items */
}

/* Remove bottom margin for the last element to prevent extra space at the end of the container */
.lawMatrixNode p:last-child,
.lawMatrixNode ul:last-child,
.lawMatrixNode li:last-child {
    margin-bottom: 0;
}
.cookie-hidden { display: none !important; }
.cookie-visible { display: flex !important; }

main {
    overflow: hidden;
}
.accordion-button:not(.active) + .accordion-content,
.faq-button:not(.active) + .faq-content {
    padding: unset !important;
}
@media screen and (width < 576px) {
    .lawMatrixNode {
    padding-top: 125px; 
    }
}