:root {
    --primary-navy: #0f2537;
    --accent-teal: #008080;
    --accent-teal-hover: #006666;
    --bg-light: #f4f7f9;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Navbar */
.navbar {
    background-color: var(--primary-navy);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-decoration: none;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.navbar nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.navbar nav a:hover {
    color: #ffffff;
}

/* Active clicked state for navigation */
.navbar nav a.active-nav {
    background-color: var(--accent-teal);
    color: #ffffff !important;
}

/* Action Button (Request a Design Study) - Styled cleanly without permanent highlight */
.btn-action {
    background-color: var(--accent-teal);
    color: #ffffff !important;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-action:hover {
    background-color: var(--accent-teal-hover);
}

.btn-action.active-nav {
    background-color: var(--accent-teal-hover) !important;
    box-shadow: 0 0 0 2px #ffffff;
}

.btn-primary {
    background-color: var(--accent-teal);
    color: #ffffff !important;
    padding: 0.65rem 1.35rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-teal-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f2537 0%, #1b3b55 100%);
    color: #ffffff;
    text-align: center;
    padding: 5.5rem 1.5rem;
}

.hero h1 {
    font-size: 2.6rem;
    max-width: 800px;
    margin: 0 auto 1.25rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 2rem;
    color: #cbd5e1;
}

/* Platform Section */
.platform-banner {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.platform-step {
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-teal);
}

.platform-step h4 {
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

/* Service Grid - 2 x 2 Layout */
h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(15, 37, 55, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(15, 37, 55, 0.1);
}

.service-card h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.service-card .subtitle {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-card ul {
    margin: 1rem 0 1.5rem 1.2rem;
    color: var(--text-dark);
    font-size: 0.92rem;
}

.service-card ul li {
    margin-bottom: 0.4rem;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.card-footer a {
    color: var(--accent-teal);
    font-weight: 600;
    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* Quote & Contact Forms */
.quote-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.nda-note {
    background-color: #eef7f7;
    border: 1px solid #bce0e0;
    color: var(--primary-navy);
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    max-width: 680px;
    margin: 0 auto 1.75rem;
    font-size: 0.92rem;
    text-align: center;
}

.quote-form {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

/* Contact Page Grid */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info-card,
.legal-document {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(15, 37, 55, 0.05);
}

.contact-info-card h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.contact-detail {
    margin-bottom: 1.25rem;
}

.contact-detail strong {
    display: block;
    color: var(--primary-navy);
    font-size: 0.92rem;
}

/* Legal Documents (Privacy & Terms) */
.legal-document {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
}

.legal-document h1 {
    color: var(--primary-navy);
    font-size: 2.1rem;
    margin-bottom: 0.4rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-document h3 {
    color: var(--primary-navy);
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.legal-document p,
.legal-document ul {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 0.97rem;
}

.legal-document ul {
    margin-left: 1.4rem;
}

/* Confirmation & Alert Boxes */
.confirmation-box {
    max-width: 650px;
    background: #ffffff;
    margin: 3rem auto;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.alert-success {
    background-color: #eef7f7;
    border: 1px solid #bce0e0;
    border-left: 4px solid var(--accent-teal);
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.ref-badge {
    display: inline-block;
    background: #eef7f7;
    color: var(--accent-teal);
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.summary-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    border-left: 4px solid var(--accent-teal);
}

.summary-card p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: #94a3b8;
    text-align: center;
    padding: 2.25rem 1rem;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links .sep {
    margin: 0 0.75rem;
    color: #64748b;
}
