/* ============================================================
   Sails Projects – Shared Subpage Styles
   Used by: all product/service subpages + en/ homepage
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

@media (max-width: 1023px) { .br-md { display: none; } }
@media (min-width: 1024px) { .amp-md { display: none; } }

body {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #001F3F;
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 { font-family: 'Noto Serif', serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
h2, h3 { font-family: 'Noto Serif', serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: 'Noto Sans', sans-serif; cursor: pointer; border: none; background: none; transition: all 0.3s ease; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FFFFFF; }
::-webkit-scrollbar-thumb { background: rgba(0,31,63,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,31,63,0.5); }

/* ============================================================
   Layout
   ============================================================ */
.container {
    position: relative; z-index: 10;
    width: 100%; max-width: 1600px;
    margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.silver-line { height: 1px; background: linear-gradient(90deg, transparent, #C0C0C0, transparent); }

.section-label {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.3125rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: #C0C0C0;
}

/* ============================================================
   Navigation
   ============================================================ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: all 0.5s ease;
    background-color: rgba(1,32,63,0.2);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

nav.scrolled {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #D0D0D0;
}

.nav-container {
    display: flex; align-items: center;
    justify-content: space-between; height: 4rem;
}
@media (min-width: 1024px) { .nav-container { height: 5rem; } }

.nav-logo {
    height: 100%; width: auto; object-fit: contain;
    flex-shrink: 0; padding: 0.25rem 0; transition: filter 0s;
    transform: scale(1.2); transform-origin: left center;
}
nav.scrolled .nav-logo {
    filter: brightness(0) saturate(100%) invert(8%) sepia(50%) saturate(3000%) hue-rotate(190deg) brightness(95%) contrast(105%);
}

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
    font-size: 1.3125rem; font-weight: 300;
    color: rgba(255,255,255,0.85); transition: color 0.3s ease;
}
nav.scrolled .nav-links a { color: #001F3F; }
.nav-links a:hover { color: #C0C0C0; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Language switcher */
.lang-switcher {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.15); border-radius: 0; padding: 2px;
}
nav.scrolled .lang-switcher { background: rgba(0,31,63,0.08); }

.lang-btn {
    padding: 0.25rem 0.75rem;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.125rem; font-weight: 500; letter-spacing: 0.1em;
    border-radius: 0; color: rgba(255,255,255,0.7);
}
nav.scrolled .lang-btn { color: rgba(0,31,63,0.5); }
.lang-btn:hover { color: rgba(255,255,255,0.9); }
nav.scrolled .lang-btn:hover { color: #001F3F; }
.lang-btn.active { background: #FFFFFF; color: #001F3F; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
nav.scrolled .lang-btn.active { background: #001F3F; color: #FFFFFF; }

/* Mobile toggle */
.mobile-toggle { display: block; color: rgba(255,255,255,0.85); }
nav.scrolled .mobile-toggle { color: #001F3F; }
.mobile-toggle:hover { color: #C0C0C0; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 40;
    background: rgba(0,31,63,0.97);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: none; flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem;
    padding: 5rem 2rem 3rem;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-family: 'Noto Serif', serif; font-size: 2.25rem; font-weight: 500;
    color: rgba(255,255,255,0.9); transition: color 0.3s;
    opacity: 0; transform: translateY(20px);
    animation: fadeSlideUp 0.4s ease forwards;
}
.mobile-menu a:nth-child(1) { animation-delay: 0s; }
.mobile-menu a:nth-child(2) { animation-delay: 0.08s; }
.mobile-menu a:nth-child(3) { animation-delay: 0.16s; }
.mobile-menu a:nth-child(4) { animation-delay: 0.24s; }
.mobile-menu a:nth-child(5) { animation-delay: 0.32s; }
.mobile-menu a:hover { color: #C0C0C0; }

@keyframes fadeSlideUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Page Hero Placeholder
   ============================================================ */
.page-hero {
    min-height: 80vh; /* fallback */
    min-height: 80dvh;
    background: linear-gradient(160deg, #001F3F 0%, #0A2D50 60%, #0D3C65 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 10rem 1.5rem 5rem;
    position: relative; overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(192,192,192,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .waves {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.page-hero .waves__canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.page-hero-content { position: relative; z-index: 2; max-width: 800px; }

.page-hero-label {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.125rem; font-weight: 500; letter-spacing: 0.2em;
    text-transform: uppercase; color: #C0C0C0; margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800; color: #FFFFFF; margin-bottom: 1.5rem; line-height: 1.1;
}

.page-hero-line {
    width: 4rem; height: 1px;
    background: linear-gradient(90deg, transparent, #C0C0C0, transparent);
    margin: 0 auto 1.5rem;
}

.page-hero p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.3125rem; font-weight: 300;
    color: rgba(255,255,255,0.75); max-width: 620px; margin: 0 auto;
}

.page-hero-image {
    margin-top: 4rem; width: 100%; max-width: 960px;
    aspect-ratio: 16/9; position: relative; z-index: 2;
    background: rgba(255,255,255,0.04); border: 1px dashed rgba(192,192,192,0.25);
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px; overflow: hidden;
}
.page-hero-image:has(img) { border: none; background: none; }
.page-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.page-hero-image p { font-size: 1rem; color: rgba(192,192,192,0.4); font-style: italic; }

/* Breadcrumb */
.breadcrumb {
    position: absolute; top: 5.5rem; left: 0; right: 0;
    margin: 0 auto; width: max-content; max-width: calc(100% - 3rem);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 2px 12px; border-radius: 8px;
    background: rgba(1,32,63,0.2);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9375rem; font-weight: 300; line-height: 24px;
    color: rgba(255,255,255,0.45); z-index: 2; white-space: nowrap;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.3s; }
.breadcrumb a:hover { color: rgba(192,192,192,0.9); }
.breadcrumb span.sep { color: rgba(255,255,255,0.25); }
.breadcrumb span.current { color: rgba(255,255,255,0.75); }

/* ============================================================
   Content Sections (product / service subpages)
   ============================================================ */
.page-section {
    padding: 6rem 1.5rem;
    background: #FFFFFF;
    color: #001F3F;
}
.page-section.alt { background: #F7F8FA; }
.page-section.dark {
    background: linear-gradient(160deg, #001F3F 0%, #0A2D50 100%);
    color: #FFFFFF;
}

.page-section-inner {
    max-width: 960px; margin: 0 auto;
    position: relative; z-index: 2;
}

.page-section-label {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9375rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #929AA3; margin-bottom: 1rem; display: block;
}
.page-section.dark .page-section-label { color: #C0C0C0; }

.page-section h2 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700; line-height: 1.15;
    margin-bottom: 1.5rem; color: #001F3F;
}
.page-section.dark h2 { color: #FFFFFF; }

.page-section-line {
    width: 3rem; height: 1px;
    background: linear-gradient(90deg, #C0C0C0, transparent);
    margin-bottom: 1.75rem;
}

.page-section p {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.125rem; font-weight: 400; line-height: 1.7;
    color: rgba(0,31,63,0.8); margin-bottom: 1rem;
    max-width: 720px;
}
.page-section.dark p { color: rgba(255,255,255,0.8); }

.page-list {
    list-style: none; padding: 0; margin: 2rem 0 0;
}
.page-list li {
    padding: 0.875rem 0 0.875rem 1.75rem;
    position: relative;
    border-bottom: 1px solid rgba(0,31,63,0.08);
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.0625rem; font-weight: 400;
    color: rgba(0,31,63,0.85);
}
.page-section.dark .page-list li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}
.page-list li::before {
    content: '›';
    position: absolute; left: 0.25rem; top: 0.875rem;
    color: #C0C0C0; font-weight: 500;
}

.page-section-image {
    width: 100%; max-width: 960px;
    aspect-ratio: 16/9; margin: 3rem auto 0;
    background: rgba(0,31,63,0.04);
    border: 1px dashed rgba(0,31,63,0.15);
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px; overflow: hidden;
}
.page-section-image:has(img) { border: none; background: none; }
.page-section-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s; }
.page-section-image:has(img):hover img { transform: scale(1.05); }
.page-section-image.ratio-3-2 { aspect-ratio: 3/2; max-width: 900px; border-radius: 2px; }
.page-section-image.ratio-3-2 img { object-fit: contain; }
.page-section.dark .page-section-image {
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(192,192,192,0.25);
}
.page-section-image p {
    font-size: 0.9375rem; font-style: italic; margin: 0;
    color: rgba(0,31,63,0.35);
}
.page-section.dark .page-section-image p {
    color: rgba(192,192,192,0.4);
}

.partnership-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
    margin: 2.5rem 0 0;
    background: rgba(0,31,63,0.03);
    border-left: 2px solid #C0C0C0;
}
.page-section.dark .partnership-block {
    background: rgba(255,255,255,0.05);
}
.partnership-block p { margin-bottom: 0; max-width: none; flex: 1; }
.partnership-block img {
    width: 8rem;
    height: auto;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .partnership-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .partnership-block img { width: 6rem; }
}

.page-section-cta {
    margin-top: 3rem;
}
.page-section-cta a {
    display: inline-flex;
    align-items: center;
    background-color: #FFFFFF;
    color: #001F3F;
    padding: 0.875rem 2rem;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.3125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.page-section-cta a:hover,
.page-section-cta a:focus-visible {
    background-color: #F0F0F0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.page-section.dark .page-section-cta a:hover,
.page-section.dark .page-section-cta a:focus-visible {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.page-section-cta .cta-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    width: 0;
    margin-left: 0;
    transition: width 0.35s ease, margin-left 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}
.page-section-cta a:hover .cta-icons,
.page-section-cta a:focus-visible .cta-icons {
    width: 2.75rem;
    margin-left: 0.75rem;
    opacity: 1;
}
.page-section-cta .cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #001F3F;
}

@media (max-width: 640px) {
    .page-section { padding: 4rem 1rem; }
    .partnership-block { padding: 2rem 1.5rem; }
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    background-color: #001F3F;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #FFFFFF; padding: 3rem 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-logo { height: 2.7rem; width: auto; }
.footer-distributor { color: #929AA3; font-size: 1.125rem; font-weight: 700; letter-spacing: 0.1em; text-align: center; }
.footer-copy { color: #929AA3; font-size: 0.875rem; letter-spacing: 0.1em; }
.footer-legal { color: #929AA3; font-size: 0.8rem; letter-spacing: 0.05em; margin-top: 0.5rem; text-align: center; }
.footer-legal a { color: #C0C0C0; text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal .sep { margin: 0 0.5rem; opacity: 0.5; }
.footer-credit { color: #6B7280; font-size: 0.75rem; letter-spacing: 0.05em; margin-top: 0.75rem; text-align: center; }
.footer-credit a { color: #929AA3; text-decoration: none; transition: color 0.15s; }
.footer-credit a:hover { color: #FFFFFF; text-decoration: underline; }
