/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --color-primary: #0a1930;
    /* Dark Navy - Trust, Solidity */
    --color-accent: #004e92;
    /* Dependable Blue */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-gray: #f4f5f7;
    --color-bg-light-blue: #eef5fa;
    --color-border: #e0e0e0;
    --font-base: 'Inter', 'Noto Sans JP', sans-serif;
    --width-container: 1200px;
    --header-height: 80px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--color-bg-gray);
}

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

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.lead-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--color-text-light);
}

/* Header */
.header {
    height: var(--header-height);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    /* Prevent Logo Wrap */
}

.logo span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
    /* Prevent Link Wrap */
}

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

/* Button & CTA */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    /* Prevent Button Wrap */
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: #003d73;
    border-color: #003d73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 78, 146, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-rfq {
    background-color: #d32f2f;
    /* Alert/Action color for RFQ but keeping it professional */
    background-color: var(--color-accent);
    /* Actually User requested Blue accent, let's stick to accent but make it prominent */
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    padding: 100px 0;
    background: linear-gradient(rgba(10, 25, 48, 0.9), rgba(10, 25, 48, 0.8)), url('../images/hero-bg.png');
    /* Need placeholder bg */
    background-size: cover;
    /* Fallback */
    background-position: center;
    background-color: var(--color-primary);
    /* Fallback */
    color: white;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-sub {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--color-bg-gray);
    padding-bottom: 10px;
}

/* Features/Reasons */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-num {
    font-size: 3rem;
    color: var(--color-bg-gray);
    font-weight: 700;
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Filter/Please Section */
.filter-section {
    background-color: var(--color-bg-light-blue);
    border-left: 5px solid var(--color-accent);
    padding: 40px;
    border-radius: 4px;
}

.filter-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 25px;
}

.filter-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-links h4 {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e2e8f0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 78, 146, 0.1);
}

.required-badge {
    background-color: #e53e3e;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.optional-badge {
    background-color: #718096;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Active state for toggle (Hamburger to X) */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Responsive Strategy:
   At 1200px (standard container width), switch to Mobile Menu.
   This prevents the Navigation items (which are many) from wrapping awkwardly on Laptop screens.
*/
@media (max-width: 1210px) {

    /* 1200 padding included */
    .header-container {
        padding: 0 20px;
        justify-content: space-between;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--color-border);
        gap: 0;
        transform: translateY(-150%);
        /* Hide off screen */
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-bg-gray);
        font-size: 1rem;
        white-space: nowrap;
    }

    .nav-menu .btn {
        width: 100%;
        margin-top: 20px;
        padding: 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* 2 col features on tablet/laptop */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

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

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .logo span {
        font-size: 0.7rem !important;
        margin-left: 0;
    }
}