/* --- CSS Custom Variables for Clean Brand Control --- */
:root {
    --primary-color: #1a365d;    /* Professional deep navy */
    --secondary-color: #2b6cb0;  /* Corporate slate blue */
    --accent-color: #319795;     /* Tech-forward teal accent */
    --text-dark: #2d3748;        /* Charcoal body text */
    --text-light: #f7fafc;       /* Clean layout background alternative */
    --bg-light: #f8fafc;         /* Section light background */
    --border-color: #e2e8f0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset & Core Layouts --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.max-600 { max-width: 600px; }

section {
    padding: 80px 0;
}

/* --- Typography --- */
h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p { margin-bottom: 20px; color: #4a5568; }

.section-title {
    text-align: center;
    margin-bottom: 15px;
}
.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Header & Nav --- */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    color: var(--primary-color);
}
.logo span {
    color: var(--secondary-color);
    font-weight: 300;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.phone-link {
    color: var(--primary-color) !important;
    font-size: 0.95rem;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #edf2f7;
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.full-width { width: 100%; }

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    text-align: center;
    padding: 120px 0;
}

.hero-content {
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- Layout Grids & Cards --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* 7th Service Card Custom Accent */
.project-highlight {
    grid-column: 1 / -1;
    max-width: 650px;
    margin: 20px auto 0;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border: 2px dashed var(--secondary-color);
}

/* --- Engagement Models Section --- */
.engagement-models {
    background-color: #ffffff;
}

.engagement-card {
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
}

.engagement-card.highlight {
    border-left: 5px solid var(--accent-color);
    background-color: #f8fafc;
}

.philosophy-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.philosophy-box strong {
    color: var(--secondary-color);
    font-style: normal;
}

.tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--secondary-color);
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- Intelligence & Automation --- */
.tech-intelligence {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.align-center { align-items: center; }

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.tech-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.badge-row { display: flex; gap: 10px; }

.badge {
    background: #ffffff;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* --- Guiding Principles --- */
.principles-section {
    background: #ffffff;
}

.text-center-max {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
}

.principle-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 45px 35px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.principle-card:hover {
    border-color: var(--secondary-color);
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.principle-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 15px;
    font-feature-settings: "tnum";
}

/* --- Contact & Forms --- */
.direct-contact-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}
.direct-contact-card p { margin-bottom: 8px; font-size: 1.05rem; }
.direct-contact-card p:last-child { margin-bottom: 0; }
.direct-contact-card a { color: var(--secondary-color); text-decoration: none; font-weight: 600; }
.direct-contact-card a:hover { text-decoration: underline; }

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}
.main-footer p { color: #a0aec0; margin-bottom: 5px; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .nav-wrapper { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .grid-2 { grid-template-columns: 1fr; }
    .project-highlight { grid-column: auto; margin: 0; }
    .badge-row { flex-wrap: wrap; justify-content: center; }
    section { padding: 60px 0; }
    .contact-form { padding: 25px; }
}