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

/* Update your base body styles to make room for the fixed banner */
:root {
    --ramandu-olive: #2E392B;
    --ramandu-dark: #141821;
    /* Added your new orange color token */
    --ramandu-orange: #E67E22;
}

/* Base Page Background Updates */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fcf9f5;
    color: var(--ramandu-olive);
    line-height: 1.5;

    /* CHANGED: Swapped from 80px to 0 because the .page-header-hero handles nav spacing now */
    padding-top: 0;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.page-header-hero {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8ed;

    /* CRUCIAL: Pushes this content down exactly 80px so it sits cleanly under the fixed nav */
    margin-top: 80px;
    padding: 40px 0; /* Creates vertical spacing around the title text */
}

/* Internal layout frame aligning with site boundaries */
.hero-content {
    max-width: 700px; /* Aligns perfectly with the width of your support container card below */
    margin: 0 auto;
    padding: 0 40px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    /* Uses a softer, high-contrast variant of your olive text color token */
    color: rgba(46, 57, 43, 0.8);
    margin-top: 12px; /* Generates breathing room below the H1 title */
    max-width: 600px; /* Prevents long-line reading fatigue on extra wide desktops */
}

/* Custom header typography properties utilizing your brand variables */
.page-header-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ramandu-dark); /* Dark slate value ensures sharp, professional contrast */
    letter-spacing: -0.02em;
}


/* Fixed Navigation Banner Layout Constraints */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Updated to use your new dark slate color variable */
    background-color: var(--ramandu-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Softened border to blend with dark tone */
    z-index: 1000;
}

/* Centered content wrapper matching max site dimensions */
.nav-content {
    max-width: 1000px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically aligns logo and items inside the 80px container */
}

/* Brand Logo Styling */
.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: #ffffff;
}

.nav-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1rem;
    list-style: none;
}

.nav-brand-label {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    user-select: none;
}

.nav-links {
    list-style: none; /* CRUCIAL: This removes the dot/bullet point from the list element */
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* Also ensure your individual list item handles it safely */
.nav-links li {
    list-style: none; /* Backup to guarantee browser defaults are cleared */
}
/* Right-aligned Navigation Links */
.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover {
    color: #ffffff;
}
.accent-color {
    color: var(--ramandu-orange);
}

.nav-app-link:hover .accent-color {
    color: var(--ramandu-orange); /* Keeps arrow orange on mouse hover */
}

/* Styling specific to the back navigation link */
.back-link {
    display: inline-flex;
    align-items: center;
    transition:
        transform 0.2s ease,
        color 0.2s ease !important;
}
.nav-app-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center; /* Keeps the dot perfectly center-aligned with the height of your text */
}

.nav-app-link:hover {
    color: #ffffff;
    transform: translateX(-2px); /* Toned down from -4px since a dot needs less movement than an arrow */
}

/* Subtle movement effect when a user hovers over the back link */
.back-link:hover {
    transform: translateX(-4px);
}

.hazard-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--ramandu-orange);
    border-radius: 50%;
    position: relative;
    display: inline-block; /* Guarantees rendering bounds inside the inline link parent flex layout */
    margin-right: 10px;    /* Replaces the old text spacing gap to separate the dot from "Go Home" text */
    flex-shrink: 0;        /* Prevents the dot shape from distorting on small mobile resolutions */
}

/* Secondary ring wrapper layer creating the ripple shadow aura */
.hazard-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ramandu-orange);
    border-radius: 50%;

    /* Attaches the hardware-accelerated 2-second infinite loop animation timing function */
    animation: hazardRippleEffect 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hardware-accelerated keyframe logic tracking opacity drop-off scales */
@keyframes hazardRippleEffect {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.5); /* Expand ring diameter outward cleanly */
        opacity: 0;            /* Smoothly dissolve color down to absolute transparent */
    }
}


/* Pushes the footer all the way to the bottom when page content is short */
/* Support Container - Styled with white background and rounded card detailing */
.support-container {
    max-width: 700px;
    margin: 30px auto 60px auto; /* Tweak top margin spacing */
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    flex: 1 0 auto;
}

.support-header {
    margin-bottom: 30px; /* Generates breathing room before the tab selection capsule */
}

.support-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.support-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ramandu-olive); /* Theme-matched dark olive color token */
    margin-bottom: 6px; /* Space between the H2 heading and paragraph descriptor text */
}

.support-header p {
    color: rgba(46, 57, 43, 0.7);
    font-size: 1.05rem;
}

/* Header Text Elements */
.support-header p {
    color: rgba(46, 57, 43, 0.7);
    font-size: 1.1rem;
}


/* Section Toggling Layout */
.hidden-section {
    display: none;
    margin-top: 40px;
}
.faq-group {
    display: none;
}

/* Buttons & Navigation */
/* Tab Navigation Outer Container */
.tab-container {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center; /* Centers the tab capsule on the page */
}

/* The Segmented Control Track Capsule */
.tab-container {
    width: 100%;
    margin-bottom: 40px;
    display: block; /* Removes flex centering behavior */
}

/* The Segmented Control Track Capsule - Expands to 100% of parent container */
.tab-menu {
    display: flex; /* Switched to flex to distribute children components */
    background-color: #e8e8ed;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    width: 100%; /* Spans full width */
}

/* Individual Tab Button Definitions */
.tab-link {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #515154;
    cursor: pointer;
    border-radius: 8px;

    /* CRUCIAL: Instructs the three tabs to grow equally and split the space 33.3% each */
    flex: 1;
    text-align: center; /* Centers text inside the individual wide tab buttons */
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle change when hovering over an inactive tab */
.tab-link:hover {
    color: #1d1d1f;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Active Tab State: Becomes a distinct, raised white button */
.tab-link.active {
    color: var(--ramandu-olive);
    font-weight: 600;
    background-color: #ffffff;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.08);
}

/* Remove the old bottom pseudo-element accent line if it exists */
.tab-link.active::after {
    display: none;
}

/* Native FAQ Accordions */
#faq-section h2 {
    margin-bottom: 20px;
    font-size: 1.75rem;
}
details {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e8e8ed;
}
summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: "+";
    font-size: 1.2rem;
    color: #86868b;
}
details[open] summary::after {
    content: "−";
}
details p {
    margin-top: 12px;
    color: #515154;
}

/* Form Fields */
#contact-section h2 {
    margin-bottom: 8px;
    font-size: 1.75rem;
}
#contact-section p {
    color: #86868b;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
input[type="email"],
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
}
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

#submit-btn {
    background-color: var(--ramandu-olive);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

#submit-btn:hover {
    background-color: color-mix(in srgb, var(--ramandu-olive) 85%, #ffffff);
}

.form-message {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

/* Footer Container Constraints */
.site-footer {
    background-color: var(--ramandu-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    /* CHANGED: Adjusted from 240px to 140px to make the footer more compact */
    min-height: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
/* Copyright text readability remains high text contrast against dark slate background track */
.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Footer Content Wrapper */
.footer-content {
    max-width: 1000px;
    width: 100%;
    padding: 24px 20px;
    text-align: center; /* Horizontally centers your text */
}
