/* RAQ Website - Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e40af;
    --primary-teal: #0d9488;
    --dark-blue: #1e3a8a;
    --light-blue: #dbeafe;
    --gray-dark: #1f2937;
    --gray-medium: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Smaller on mobile */
    }
}

.logo span {
    color: var(--primary-teal);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-medium);
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    display: block;
    transition: all 0.3s;
    border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    background: var(--light-blue);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.7rem 1.5rem;
    color: var(--gray-dark);
    border-radius: 0;
}

.dropdown-content a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.dropdown-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-medium);
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.dropdown-category:first-child {
    margin-top: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-teal) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 0.8s 0.4s backwards;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    margin-bottom: 4rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--gray-dark);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-blue);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
}

/* Feature Box */
.feature-box {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-teal) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.feature-box h2 {
    color: var(--white);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f9fafb;
}

tr:last-child td {
    border-bottom: none;
}

/* Process Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.step:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.step-number {
    background: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"],
.btn-submit {
    padding: 1rem 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover,
.btn-submit:hover {
    background: var(--dark-blue);
}

/* Info Items */
.info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.info-icon {
    background: var(--light-blue);
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-teal);
}

.footer-section p {
    color: #d1d5db;
    margin: 0.3rem 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links a {
        padding: 1rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 2rem 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 3rem;
}

.max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}