/* YadriWorks - Corporate Landing Page
   SentryWorks family palette: deep navy, warm gold, professional typography
   No dark mode. Minimalist. */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
    --navy-900: #0c1929;
    --navy-800: #132337;
    --navy-700: #1a3049;
    --navy-600: #234060;
    --gold-500: #d4a853;
    --gold-400: #e4be6a;

    --bg-primary: #faf9f7;
    --bg-secondary: #f5f3ef;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #8c8c8c;
    --border: #e5e2db;
    --accent: var(--navy-700);
    --accent-hover: var(--navy-600);
    --accent-gold: var(--gold-500);

    --font-heading: 'Source Serif 4', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1080px;
    --nav-height: 64px;
    --transition: 0.2s ease;
}

/* === Base === */

html { font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

/* === Accessibility === */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--bg-card);
    border-radius: 0 0 6px 6px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 200;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: var(--bg-card);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Buttons === */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-card);
}

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

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-card);
}

/* === Navigation === */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: var(--container);
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.25s ease;
}

.nav-toggle-active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle-active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

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

/* === Hero === */

.hero {
    padding: calc(var(--nav-height) + 6rem) 2rem 6rem;
    text-align: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* === Thesis === */

.thesis {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.thesis-content {
    max-width: 640px;
    margin: 0 auto;
}

.thesis h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    line-height: 1.35;
}

.thesis p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.thesis-closing {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
}

/* === Products === */

.products {
    padding: 5rem 2rem;
}

.products-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.5rem;
}

.product-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.product-tagline {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.product-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-card li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.product-card li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--border);
}

.product-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.product-link:hover { color: var(--accent-hover); }

/* === Contact === */

.contact {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

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

.contact h2 {
    margin-bottom: 0.5rem;
}

.contact-content > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.contact-email {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
}

.contact-form {
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(26, 48, 73, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
}

.contact-status {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    text-align: center;
}

.contact-status.success { color: #059669; }
.contact-status.error { color: #dc2626; }

/* === Footer === */

footer {
    background: var(--navy-900);
    padding: 2rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-inner p {
    color: #64748b;
    font-size: 0.8125rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #64748b;
    font-size: 0.8125rem;
}

.footer-links a:hover {
    color: var(--gold-400);
}

/* === Legal Pages === */

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
}

.legal-page h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.legal-effective {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-page > p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-page ul, .legal-page ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.legal-page li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.legal-page a {
    color: var(--accent);
    font-weight: 500;
}

.legal-page a:hover {
    color: var(--accent-hover);
}

/* === Responsive === */

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.5rem; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 1rem 2rem;
        gap: 0;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .hero {
        padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legal-page {
        padding: calc(var(--nav-height) + 2.5rem) 1.5rem 3rem;
    }

    .legal-page h1 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }

    nav { padding: 0 1rem; }

    .product-card { padding: 1.5rem; }

    .thesis, .products, .contact {
        padding: 3rem 1.25rem;
    }

    .legal-page {
        padding: calc(var(--nav-height) + 2rem) 1.25rem 2.5rem;
    }
}
