/* Analytical Technologies Uruguay — navy + white */

:root {
    --navy-900: #0a1e3a;
    --navy-800: #102a4c;
    --navy-700: #1a3a6c;
    --navy-600: #2c5aa0;
    --accent: #00a3d9;
    --accent-dark: #0086b3;

    --white: #ffffff;
    --gray-50: #f7f9fc;
    --gray-100: #eef2f7;
    --gray-200: #dbe3ec;
    --gray-300: #c2cdd9;
    --gray-500: #6b7a8f;
    --gray-700: #3a4a5f;
    --gray-900: #14202e;

    --shadow-sm: 0 1px 2px rgba(10, 30, 58, 0.06);
    --shadow-md: 0 4px 12px rgba(10, 30, 58, 0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --container-max: 1200px;
    --header-height: 72px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--gray-700); }

/* Layout */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-header .section-sub {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.3;
}

.btn-primary {
    background: var(--navy-700);
    color: var(--white);
    border-color: var(--navy-700);
}

.btn-primary:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--navy-700);
    border-color: var(--navy-700);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-900);
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy-900);
}

.logo-text em {
    font-style: normal;
    color: var(--accent);
    font-weight: 600;
}

.logo-region {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-700);
    background: var(--gray-100);
    border-radius: 999px;
    margin-left: 4px;
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
}

.main-nav a:hover {
    color: var(--navy-700);
}

.nav-cta {
    background: var(--navy-700);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.nav-cta:hover {
    background: var(--navy-800);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy-900);
    transition: all var(--transition);
}

/* Hero */

.hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    padding: 96px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 163, 217, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(61, 111, 184, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content .eyebrow {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.hero .btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.hero .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Features */

.features {
    padding: 80px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
    text-align: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gray-200);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--navy-700);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
    color: var(--navy-900);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Products */

.products {
    padding: 100px 0;
    background: var(--white);
}

.product-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.product-block:last-child {
    margin-bottom: 0;
}

.product-block-reverse {
    direction: rtl;
}

.product-block-reverse > * {
    direction: ltr;
}

.product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
}

.product-logo {
    height: 56px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 16px;
    display: block;
}

.product-tagline {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.product-text > p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--gray-700);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-features li {
    position: relative;
    padding-left: 28px;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--navy-700);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Services */

.services {
    padding: 100px 0;
    background: var(--navy-900);
    color: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 163, 217, 0.15) 0%, transparent 50%);
}

.services .container {
    position: relative;
}

.services .section-header h2 {
    color: var(--white);
}

.services .section-header .section-sub {
    color: rgba(255, 255, 255, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 163, 217, 0.4);
    transform: translateY(-2px);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    padding-left: 20px;
    position: relative;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Contact */

.contact {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 32px;
    font-size: 1.0625rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-details strong {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-700);
}

.contact-details span,
.contact-details a {
    color: var(--gray-700);
    font-size: 1rem;
}

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

/* Form */

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-row {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.form-row label span {
    color: #d64545;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row input.error,
.form-row textarea.error {
    border-color: #d64545;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.form-status {
    margin-top: 16px;
    font-size: 0.9375rem;
    min-height: 24px;
}

.form-status.success {
    color: #0b7a3e;
}

.form-status.error {
    color: #d64545;
}

/* Footer */

.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 72px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    max-width: 360px;
    line-height: 1.6;
}

.footer-links h4,
.footer-certifications h4 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
}

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

.cert-img {
    max-width: 140px;
    height: auto;
    background: var(--white);
    padding: 8px;
    border-radius: var(--radius-md);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive */

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-inner,
    .product-block,
    .product-block-reverse,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-block-reverse {
        direction: ltr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 64px 0 80px;
    }

    .features,
    .products,
    .services,
    .contact {
        padding: 64px 0;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }

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

    .nav-toggle {
        display: flex;
    }

    .main-nav .nav-list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-md);
        gap: 16px;
        align-items: stretch;
    }

    .main-nav.open .nav-list {
        display: flex;
    }

    .main-nav a {
        padding: 10px 0;
    }

    .nav-cta {
        text-align: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .hero-ctas .btn {
        width: 100%;
    }
}

/* Accessibility / motion */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}
