/* -------------------------------
   Variables & Base Styles
------------------------------- */
:root {
    /* Color Palette */
    --color-primary: #FF8C00;
    --color-primary-hover: #e67e00;
    --color-bg: #f9f9f9;
    --color-text: #333;
    --color-link: var(--color-primary);

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Border radius */
    --radius-default: 0.5rem;

    /* Typography */
    --font-base: 18px;
    --line-height-base: 1.7;
}

html {
    /* Always show vertical scrollbar to prevent layout shift */
    overflow-y: scroll;
    font-size: var(--font-base);
}

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

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    line-height: var(--line-height-base);
    background: var(--color-bg);
    color: var(--color-text);
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

p {
    margin-bottom: var(--space-md);
}

/* -------------------------------
   Container & Layout
------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
    background: #fff;
}

/* -------------------------------
   Header & Navigation
------------------------------- */
header {
    background: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-primary);
}

/* Logo image sizing */
.logo img {
    height: 120px;
    /* or whatever fits your header */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile-first responsive grid for .articles */
.articles {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 600px) {
    .articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
        display: none;
    }
    nav ul.open {
        display: flex;
    }
    nav ul li {
        margin: var(--space-sm) 0;
        text-align: right;
        padding: 0 var(--space-md);
    }
}

/* -------------------------------
   Hero
------------------------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 85vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, #FFD700 100%);
    color: #fff;
}

.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: var(--space-md); }
.hero p  { font-size: 1.2rem; font-weight: 500; }

/* -------------------------------
   Cards
------------------------------- */
.card {
    background: #fafafa;
    padding: var(--space-md);
    border-radius: var(--radius-default);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    border-left-color: var(--color-primary);
}

.card h3, .card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.card p {
    font-weight: 400;
    font-size: 1rem;
    margin: 0 var(--space-md) var(--space-md);
}

.card img, .card-image { width: 100%; height: auto; display: block; object-fit: cover; }

/* Services & Company card grids */
.services,
.company .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0; /* if you want vertical breathing room */
}

/* -------------------------------
   Video Wrapper (aspect-ratio)
------------------------------- */
.video-wrapper {
    max-width: 100%;
    margin: var(--space-lg) auto;
    display: flex;
    justify-content: center;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

/* -------------------------------
   Section titles & blog-specific
------------------------------- */
.section-title { text-align: center; font-size: 2rem; font-weight: 600; margin-bottom: var(--space-lg); color: #222; }

/* Blog post overrides separated */
.blog-post {
    padding: var(--space-xl) var(--space-md);
}

.container.blog-post {
    padding: var(--space-xl) var(--space-lg);
}

.blog-post h1 { font-weight: 900; }
.blog-post h2 { font-weight: 400; }
.blog-post h3 { margin-top: var(--space-xl); }
.blog-post ul { margin-left: 1.25rem; }

/* Link styles within blog-post */
.blog-post a {
    color: var(--color-link);
    text-decoration: underline;
    font-weight: 500;
}
.blog-post a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* -------------------------------
   Call-to-Action Buttons
------------------------------- */
.cta-button {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.cta-button:hover { background: var(--color-primary-hover); }

/* Focus styles for accessibility */
:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Footer */
footer {
    text-align: center;
    padding: var(--space-lg) 0;
    font-size: 0.9rem;
    color: #555;
}

.cta-section {
    /* make the section full-width and give it some space */
    width: 100%;
    padding: var(--space-xl) 0;
    
    /* center everything inside it */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* if your .container is shrinking too much, override it here */
  .cta-section .container {
    max-width: 800px;  /* or whatever width you prefer */
    width: 100%;
    padding: 0 var(--space-md);
  }
  