/* ============================================
   Rheinland Secure | Institutional Edition
   (Inspired by Carlyle / High-End B2B Design)
   ============================================ */

/* Font loaded via HTML <link> for performance — no @import needed */

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

:root {
    --bg: #ffffff;
    --bg-alt: #f8f8f8;
    --bg-light: #ffffff;
    
    --text: #555555;
    --text-strong: #2e3644;
    --text-head: #0a364a;
    
    --accent: #0a364a;       /* Carlyle Navy */
    --accent-dim: rgba(10, 54, 74, 0.1);
    --line: #d8d8d8;
    
    --font: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-head: 'Lora', serif;
    --nav-h: 80px;
    --pad: 40px;
    --max-w: 1200px;
    
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) { :root { --pad: 20px; --nav-h: 64px; } }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* Typography */
.t-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.t-h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-head);
}

.t-h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-head);
    margin-bottom: 24px;
}

.t-h3 {
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-head);
}

.t-lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.5;
    color: var(--text-strong);
}

.t-body {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px;
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    border-radius: 2px;
    cursor: pointer;
}
.btn--solid {
    background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn--solid:hover { 
    background: #135879; border-color: #135879;
}
.btn--outline {
    border: 1px solid var(--accent); color: var(--accent);
}
.btn--outline:hover { 
    background: var(--accent-dim);
}

/* Nav */
.nav {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: var(--max-w);
    height: var(--nav-h); z-index: 100;
    display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 54, 74, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 54, 74, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav--scrolled {
    top: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(0, 54, 74, 0.1);
    height: calc(var(--nav-h) - 10px);
}
@media (max-width: 768px) {
    .nav { top: 12px; width: calc(100% - 24px); border-radius: 8px; }
    .nav--scrolled { top: 6px; }
}
.nav .wrap {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
}
.nav__logo img { 
    height: 45px; transition: height 0.3s ease; 
    filter: invert(0.9) hue-rotate(180deg) brightness(0.2); /* Make white logo dark */
}
.nav__links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.5rem);
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-strong);
    transition: color 0.2s;
}

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

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.lang-switch a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}

.lang-switch a.active {
    opacity: 1;
    font-weight: 800;
    color: var(--accent);
}

.lang-switch a:hover { opacity: 1; }
.nav__cta { 
    color: var(--accent) !important; 
}

.hamburger { display: none; flex-direction: column; gap: 5px; width: 24px; }
.hamburger span { height: 2px; width: 100%; background: var(--text-strong); transition: 0.3s; }

@media (max-width: 768px) {
    .nav__links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg);
        flex-direction: column; padding: 40px; border-bottom: 1px solid var(--line);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s;
    }
    .nav__links--open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .hamburger { display: flex; }
    .hamburger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger--active span:nth-child(2) { opacity: 0; }
    .hamburger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .lang-switch { border-left: none; padding-left: 0; margin-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
    .nav__logo img { height: 36px; }
}

/* Ambient Glow Removed / Set to display none for legacy cleanup */
.ambient-glow { display: none; }

/* Hero (Institutional) */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center;
    padding-top: calc(var(--nav-h) + 32px);
    overflow: hidden;
    background: var(--bg-alt);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(10, 54, 74, 0.85); /* Dark Navy Overlay if we use a background image */
    z-index: 1; pointer-events: none;
    display: none; /* Disabled for clean layout, but ready for image backgrounds */
}
.hero__layout {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    width: 100%;
}
.hero__text { max-width: 600px; }
.hero__text .t-h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 5vw, 4rem); }
.hero__text .t-lead { margin-bottom: 40px; color: var(--text); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}
.hero__drone-wrap {
    position: relative;
    width: 100%;
}
.hero__drone-img {
    position: relative; z-index: 2;
    width: 100%; height: auto;
}

@media (max-width: 900px) {
    .hero__layout { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 60px; text-align: center; }
    .hero__text { margin: 0 auto; }
    .hero__text .t-h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .hero__actions { justify-content: center; flex-direction: column; align-items: center; gap: 12px; }
    .hero__actions .btn { width: 100%; max-width: 320px; }
    .hero__drone-wrap { width: 80%; margin: 40px auto 0; }
}
@media (max-width: 480px) {
    .hero { min-height: 70vh; padding-top: calc(var(--nav-h) + 16px); }
    .hero__text .t-lead { font-size: 1rem; }
}

/* Marquee Ticker */
.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
    overflow: hidden;
    background: var(--bg);
    white-space: nowrap;
    display: flex;
}
.ticker__inner {
    display: inline-flex;
    animation: ticker 40s linear infinite;
}
.ticker__item {
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em;
    color: var(--text-strong);
    display: flex; align-items: center; gap: 32px; padding-right: 32px;
    white-space: nowrap;
}
.ticker__item::after {
    content: ''; width: 4px; height: 16px; background: var(--line);
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Value Propostions / Story */
.story { padding: 100px 0; border-bottom: 1px solid var(--line); background: #ffffff; }
.story__layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items:start;
}
.story__text > p { margin-bottom: 24px; }
.story__quote {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4; font-weight: 400;
    color: var(--text-head);
    border-left: 4px solid var(--accent); padding-left: 32px; margin-top: 40px;
    background: var(--bg-alt); padding: 32px;
}
@media (max-width: 900px) { .story__layout { grid-template-columns: 1fr; gap: 40px; } }

/* Tabbed Product */
.product { padding: 100px 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.product__head { max-width: 700px; margin-bottom: 64px; }

.tabs__nav {
    display: flex; gap: 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
    overflow-x: auto; scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
    padding: 0 0 16px 0; font-size: 1rem; font-weight: 600; color: var(--text);
    transition: 0.3s; border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs__btn:hover { color: var(--text-head); }
.tabs__btn.active { color: var(--accent); border-color: var(--accent); }

.tabs__pane { display: none; animation: fade 0.4s ease; }
.tabs__pane.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.pane__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pane__img img { width: 100%; border: 1px solid var(--line); background: #fff; padding: 16px; }
.pane__text .t-h3 { margin-bottom: 16px; }
.pane__text .t-body { margin-bottom: 32px; }

.pane__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.spec__val { display: block; font-size: 1.25rem; font-weight: 700; color: var(--text-strong); line-height: 1.1; margin-bottom: 4px; }
.spec__lbl { font-size: 0.85rem; color: var(--text); }

@media (max-width: 900px) {
    .pane__grid { grid-template-columns: 1fr; gap: 32px; }
    .tabs__nav { gap: 16px; }
    .pane__specs { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
}
@media (max-width: 480px) {
    .tabs__btn { font-size: 0.85rem; padding: 0 0 12px 0; }
}

/* Split Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; }
.compare__side { padding: 100px var(--pad); }
.compare__side--bad { background: var(--bg-alt); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare__side--good { background: #ffffff; border-bottom: 1px solid var(--line); }
.compare__inner { max-width: 500px; }
.compare__side--bad .compare__inner { margin-left: auto; }
.compare__side--good .compare__inner { margin-right: auto; }

.compare__title { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; margin-bottom: 48px; color: var(--text-head); }
.compare__side--bad .compare__title { color: var(--text-strong); }

.compare__list { display: flex; flex-direction: column; gap: 32px; }
.compare__item { display:flex; flex-direction:column; gap:4px;}
.compare__item span { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.compare__side--good .compare__item span { color: var(--accent); }
.compare__item p { font-size: 1.1rem; color: var(--text-strong); line-height: 1.5; }

@media (max-width: 900px) { 
    .compare { grid-template-columns: 1fr; } 
    .compare__side--bad { border-right: none; }
    .compare__inner { margin: 0 auto !important; width: 100%; }
    .compare__side { padding: 60px var(--pad); }
    .compare__title { font-size: 1.4rem; margin-bottom: 32px; }
}

/* Sectors (Content Hub Grid) */
.sectors { padding: 100px 0; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.sectors__head { margin-bottom: 64px; }
.sectors__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.sector-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
    min-height: 200px;
}
.sector-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(10, 54, 74, 0.08);
    transform: translateY(-4px);
}
.sector-card.focus {
    background: var(--accent);
    border-color: var(--accent);
}
.sector-card.focus .t-h3,
.sector-card.focus p {
    color: #ffffff;
}
.sector-card.focus .sector-card__more {
    color: rgba(255,255,255,0.8);
}
.sector-card.focus:hover {
    background: #135879;
    box-shadow: 0 8px 24px rgba(10, 54, 74, 0.2);
}
.sector-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
.sector-card__content .t-h3 {
    margin-bottom: 4px;
}
.sector-card__content p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    flex-grow: 1;
}
.sector-card__more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 8px;
    transition: letter-spacing 0.3s;
}
.sector-card:hover .sector-card__more {
    letter-spacing: 0.05em;
}
@media (max-width: 900px) {
    .sectors__grid { grid-template-columns: 1fr; }
    .sector-card { min-height: auto; padding: 32px 24px; }
}

/* Page Padding (for legal/subpages) */
.page-pad { padding: 140px 0 80px 0; }

/* Footer bottom row */
.foot__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* FAQ (Institutional Expansion) */
.faq { padding: 100px 0; border-bottom: 1px solid var(--line); background: #ffffff; }
.faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.faq__list { display:flex; flex-direction: column;}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; padding: 24px 0; font-size: 1.1rem; font-weight: 600; color: var(--text-strong); display: flex; justify-content: space-between; align-items: center; }
.faq__q::after { content: '+'; font-size: 1.5rem; font-weight: 300; transition: 0.3s; color: var(--text-strong); }
.faq__item.active .faq__q { color: var(--accent); }
.faq__item.active .faq__q::after { transform: rotate(45deg); color: var(--accent); }
.faq__a { max-height: 0; overflow: hidden; transition: 0.4s ease; }
.faq__a-inner { padding-bottom: 32px; font-size: 1rem; color: var(--text); }
.faq__item.active .faq__a { max-height: 400px; }
@media(max-width:900px){ .faq__grid{grid-template-columns: 1fr;} }

/* CTA Block (Contact) */
.cta { padding: 80px 0; background: var(--bg-alt); text-align: center; border-bottom: 1px solid var(--line); }
.cta h2 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--text-head); margin-bottom: 24px; }

.cta__email-box {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--text-head);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta__email-box:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(10, 54, 74, 0.08);
}

/* Footer Institutional */
.footer { padding: 64px 0 40px 0; background: var(--text-head); color: #ffffff; }
.foot__grid { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; }
.foot__brand img { height: 48px; margin-bottom: 24px; filter: brightness(0) invert(1); /* Ensure white logo */ }
.foot__brand p { font-size: 0.9rem; max-width: 300px; color: rgba(255,255,255,0.7); }
.foot__links { display: flex; gap: 32px; flex-wrap: wrap; }
.foot__links a { font-size: 0.9rem; font-weight: 500; color: #ffffff; transition: opacity 0.2s; }
.foot__links a:hover { opacity: 0.7; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
}
.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie__inner p {
    font-size: 0.85rem;
    color: var(--text-strong);
    line-height: 1.6;
    margin-bottom: 16px;
}
.cookie__inner a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-dim);
    text-underline-offset: 3px;
    transition: color 0.3s;
}
.cookie__inner a:hover {
    color: #135879;
}
.cookie__inner .btn {
    padding: 10px 24px;
    font-size: 0.8rem;
    align-self: flex-start;
}
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
/* Infinite Logo Marquee */
.marquee-section {
    padding: 60px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.marquee-section .t-eyebrow {
    text-align: center;
    margin-bottom: 40px;
}

.marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-inner {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 100px;
    padding: 0 40px;
    animation: scroll 60s linear infinite;
}

.marquee__logo {
    height: 42px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.4;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.marquee__logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-inner { gap: 60px; animation-duration: 35s; }
    .marquee__logo { height: 32px; }
    .marquee-section { padding: 40px 0; }
    .marquee-section .t-eyebrow { margin-bottom: 24px; }
}

/* Story / subpage sections on mobile */
@media (max-width: 768px) {
    .story { padding: 60px 0; }
    .story__layout { gap: 32px; }
    .story__quote { font-size: 1.15rem; padding: 24px; }
    .product { padding: 60px 0; }
    .product__head { margin-bottom: 40px; }
    .sectors { padding: 60px 0; }
    .sectors__head { margin-bottom: 40px; }
    .faq { padding: 60px 0; }
    .cta { padding: 60px 0; }
    .page-pad { padding: 100px 0 60px 0; }
    .foot__grid { flex-direction: column; align-items: flex-start; gap: 32px; }
    .foot__links { flex-direction: column; gap: 16px; }
    .foot__bottom { flex-direction: column; gap: 12px; text-align: center; }
    .cta__email-box { font-size: 0.95rem; padding: 14px 20px; word-break: break-all; }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ticker__inner, .marquee-inner { animation: none; }
    .sector-card, .btn, .nav { transition: none; }
}

/* Process (How It Works) */
.process { padding: 100px 0; background: var(--bg-alt); counter-reset: process-counter; }
.process__head { max-width: 600px; margin-bottom: 64px; }
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process__item { background: var(--bg); padding: 40px; border: 1px solid var(--line); position: relative; }
.process__item::before { 
    counter-increment: process-counter; 
    content: "0" counter(process-counter); 
    display: block; font-size: 0.85rem; font-weight: 700; color: var(--accent); 
    margin-bottom: 24px; letter-spacing: 0.1em;
}
.process__title { font-size: 1.25rem; font-weight: 600; color: var(--text-strong); margin-bottom: 12px; }
.process__text { font-size: 0.95rem; line-height: 1.6; color: var(--text); }

@media (max-width: 900px) {
    .process__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .process__grid { grid-template-columns: 1fr; }
    .process { padding: 60px 0; }
}

/* Trust & Compliance */
.trust { padding: 100px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trust__item { text-align: center; }
.trust__icon { 
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; color: var(--accent);
}
.trust__icon svg { width: 32px; height: 32px; stroke-width: 1.5px; opacity: 0.9; }
.trust__title { font-size: 1.1rem; font-weight: 700; color: var(--text-strong); margin-bottom: 12px; }
.trust__text { font-size: 0.9rem; line-height: 1.6; color: var(--text); }

@media (max-width: 768px) {
    .trust__grid { grid-template-columns: 1fr; gap: 40px; }
    .trust { padding: 60px 0; }
}
