/* Base styles and CSS reset */
:root {
    --primary: #541247;
    --text: #541247;
    --text-light: #541247;
    --background: #ffffff;
    --content-bg: #f7f4e9;
    --highlight-bg: #f7f4e9;
    --border: #E5E7EB;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Content Boxes */
.content-section {
    background: var(--content-bg);
    border-radius: 12px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-section, .safety-preview {
    text-align: center;
}

.intro-section h1, .safety-preview h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.intro-section .highlight-box, .safety-preview .highlight-box {
    margin: 2rem auto;
    max-width: 700px;
}

.highlight-box, .measure-item, .capability-item, .contact-message {
    background: var(--background);
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Header */
header {
    background: var(--background);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
}

/* Navigation */
nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--primary);
}

nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Hero Section */
.hero {
    background: var(--content-bg);
    border-radius: 12px;
    margin: 2rem 0;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero .highlight-box {
    background: var(--background);
    border-radius: 8px;
    padding: 2rem;
}

/* About Section Styles */
.about-section {
    text-align: left;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Video Section */
.video-section {
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.capability-item {
    padding: 2rem;
    background: var(--background);
    border-radius: 8px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.capability-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.capability-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.capability-item p {
    color: var(--text);
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--highlight-bg);
    border-radius: 8px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text);
    margin: 1.5rem 0;
}

/* Highlight Box */
.highlight-box {
    background: var(--highlight-bg);
    padding: 2.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text);
}

.highlight-text {
    font-style: italic;
    color: var(--primary);
}

/* Links */
.text-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    margin-top: 1.5rem;
    position: relative;
    padding-right: 1.5rem;
}

.text-link:after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.text-link:hover:after {
    transform: translate(4px, -50%);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--primary);
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 3rem;
}

.mail-icon {
    margin: 2rem 0;
    color: var(--primary);
}

.contact-message {
    background: var(--highlight-bg);
    padding: 3rem;
    border-radius: 8px;
}

.contact-message h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.contact-email {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid var(--primary);
}

.contact-email:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background: #3d3d87;
    padding: 4rem 0;
    margin-top: 4rem;
    color: white;
}

.footer-content {
    display: grid;
    gap: 2rem;
    text-align: left;
}

.footer-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.9);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-links a.active {
    color: white;
    font-weight: 500;
}

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