/* ------------------------------------------------------------
   SOVEREIGN-RUNTIME PALETTE
------------------------------------------------------------ */
:root {
    --sr-bg: #f5f7fa;
    --sr-text: #1c1c1c;

    --sr-hero-bg: #0a1a3a;
    --sr-hero-text-gradient-start: #9bb4ff;
    --sr-hero-text-gradient-end: #dce6ff;

    --sr-tile-bg: #ffffff;
    --sr-tile-text: #1c1c1c;

    --sr-footer-bg: #e9ecf2;
    --sr-footer-text: #1c1c1c;

    --sr-cta-bg: #1c1c1c;
    --sr-cta-text: #ffffff;

    --sr-border-soft: rgba(0,0,0,0.06);
    --sr-shadow-soft: 0 8px 24px rgba(0,0,0,0.08);
    --sr-shadow-strong: 0 14px 40px rgba(0,0,0,0.14);

    --sr-accent: #4b6fff;
}

/* Dark mode */
body.dark {
    --sr-bg: #0a0a0a;
    --sr-text: #e5e5e5;

    --sr-hero-bg: #050f24;
    --sr-hero-text-gradient-start: #b8c9ff;
    --sr-hero-text-gradient-end: #e6ecff;

    --sr-tile-bg: #111;
    --sr-tile-text: #e5e5e5;

    --sr-footer-bg: #111;
    --sr-footer-text: #e5e5e5;

    --sr-cta-bg: #e5e5e5;
    --sr-cta-text: #000000;

    --sr-border-soft: rgba(255,255,255,0.08);
    --sr-shadow-soft: 0 8px 24px rgba(0,0,0,0.6);
    --sr-shadow-strong: 0 14px 40px rgba(0,0,0,0.85);

    --sr-accent: #7f9bff;
}

/* ------------------------------------------------------------
   GLOBAL
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    isolation: isolate;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--sr-bg);
    color: var(--sr-text);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--sr-border-soft);
}

body.dark header {
    background: rgba(5,5,5,0.65);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
}

.brand-text {
    font-size: 14px;
    opacity: 0.8;
}

nav a {
    color: inherit;
    opacity: 0.9;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-left: 24px;
    position: relative;
    transition: opacity 0.2s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--sr-accent);
    transition: width 0.2s ease;
}

nav a:hover {
    opacity: 1;
}

nav a:hover::after {
    width: 100%;
}

#themeToggle {
    color: inherit;
    border-radius: 999px;
    padding: 6px 18px;
    border: 1px solid var(--sr-border-soft);
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

body.dark #themeToggle {
    background: rgba(20,20,20,0.7);
}

#themeToggle:hover {
    transform: translateY(-1px);
}

/* ------------------------------------------------------------
   HERO SECTION WITH FIXED PROFESSIONAL LOGO WATERMARK
------------------------------------------------------------ */
.hero {
    background: var(--sr-hero-bg);
    padding: 120px 40px 80px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    background: url('logo-transparent.png') center/contain no-repeat;
    opacity: 0.06;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        var(--sr-hero-text-gradient-start),
        var(--sr-hero-text-gradient-end)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 22px;
    opacity: 0.9;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* ------------------------------------------------------------
   UPDATED CTA BUTTON LAYOUT (OPTION A)
------------------------------------------------------------ */

.hero-cta-row.two-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.cta.small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 999px;
    font-weight: 600;
    background: var(--sr-cta-bg);
    color: var(--sr-cta-text);
    text-decoration: none;
    box-shadow: var(--sr-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta.small:hover {
    transform: translateY(-2px);
    box-shadow: var(--sr-shadow-strong);
}

/* ------------------------------------------------------------
   FULL-WIDTH ROTATING HERO TILE
------------------------------------------------------------ */
.hero-rotating {
    width: 100%;
    height: 330px;
    position: relative;
    overflow: hidden;
}

/* ------------------------------------------------------------
   TILE SLIDES
------------------------------------------------------------ */
.hero-rotating .tile-slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 330px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    opacity: 0;
    transition: left 0.6s ease, opacity 0.6s ease;
}

.hero-rotating .tile-slide.active {
    left: 0;
    opacity: 1;
}

.hero-rotating .tile-slide.exit-left {
    left: -100%;
    opacity: 0;
}

.hero-rotating .tile-slide.exit-right {
    left: 100%;
    opacity: 0;
}

.tile-horizontal .tile-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;

    background: linear-gradient(
        135deg,
        var(--sr-hero-bg) 0%,
        var(--sr-hero-text-gradient-start) 100%
    );
    color: white;
}

.tile-left h3 {
    font-size: 28px;
    font-weight: 600;
}

.tile-left p {
    font-size: 16px;
    opacity: 0.9;
}

.tile-left button {
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--sr-cta-bg);
    color: var(--sr-cta-text);
    border: none;
    cursor: pointer;
    box-shadow: var(--sr-shadow-soft);
}

.tile-left button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--sr-shadow-strong);
}

.tile-left button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tile-horizontal .tile-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sr-tile-bg);
}

.tile-right img {
    height: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 0;
}

/* ------------------------------------------------------------
   CONTENT SECTIONS
------------------------------------------------------------ */
.section-divider {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin: 80px 0 40px;
    letter-spacing: 0.35em;
    opacity: 0.85;
}

.content-section {
    padding: 60px 40px;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
footer {
    background: var(--sr-footer-bg);
    color: var(--sr-footer-text);
    padding: 60px 40px;
    border-top: 1px solid var(--sr-border-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 14px;
    font-size: 16px;
}

.footer-col a {
    color: inherit;
    opacity: 0.85;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--sr-accent);
}

.legal {
    margin-top: 40px;
    font-size: 13px;
    opacity: 0.85;
}

/* ------------------------------------------------------------
   CHAT PANEL — FIXED & PROFESSIONAL
------------------------------------------------------------ */
#chatBubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--sr-cta-bg);
    color: var(--sr-cta-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--sr-shadow-strong);
    z-index: 9999;
}

#chatBubble img {
    width: 32px;
}

/* MAIN PANEL */
#chatPanel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;

    background: var(--sr-tile-bg);
    color: var(--sr-tile-text);

    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--sr-shadow-strong);

    display: none;
    z-index: 99999;
}

/* TITLE + CLOSE */
#chatPanel h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
}

#closeChat {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    cursor: pointer;
    color: var(--sr-tile-text);
}

/* FORM FIELDS */
#chatPanel label {
    margin-top: 14px;
    display: block;
    font-size: 14px;
    opacity: 0.85;
}

#chatPanel input,
#chatPanel textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid var(--sr-border-soft);
    background: #fff;
    color: #000;
    font-size: 14px;
}

body.dark #chatPanel input,
body.dark #chatPanel textarea {
    background: #222;
    color: #fff;
}

#chatPanel textarea {
    height: 120px;
    resize: none;
}

/* SEND BUTTON */
#sendBtn {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    background: var(--sr-cta-bg);
    color: var(--sr-cta-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

#sendBtn:hover {
    opacity: 0.85;
}

/* BANNERS */
.banner {
    display: none;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.banner.success {
    background: #0f8a0f;
    color: #fff;
}

.banner.error {
    background: #b00020;
    color: #fff;
}
