/* Teranora Luxury Design System */
:root {
    --bg-dark: #000000;
    --bg-light: #ecebe6; /* Custom beige from reference */
    --text-dark: #1a1a1a;
    --text-muted: #bcabbd;
    --accent-white: #ffffff;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Typography */
body {
    background-color: var(--bg-dark);
    color: var(--accent-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h5, .logo, .serif {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    padding: 2.5rem 0;
    transition: var(--transition-smooth);
    z-index: 1000;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
}
.nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-left: 2rem;
    color: rgba(255,255,255,0.7) !important;
}
.nav-link:hover { color: var(--accent-white) !important; }

/* Mobile Navigation Background */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #0a0a0a; /* Deep charcoal/black */
        margin-top: 15px;
        padding: 25px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    .navbar-nav .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
        display: block;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Hero Section */
/* Hero Wrap Reset */
.hero-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #000;
}

/* Video Positioning */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(40%) contrast(1.1); /* Editorial Grayscale */
}

/* Overlay for Text Legibility */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

/* Content layer to sit on top of video */
.hero-content-overlay {
    position: relative;
    z-index: 3;
}

/* Ensure CTA remains visible and interactive */
.cta-arrow {
    position: relative;
    z-index: 4;
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cta-arrow:hover {
    color: #c5a059; /* Gold accent */
}

/* Section Light (Operational & Operating) */
.section-light, .section-operate {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 50px 0;
}

.vert-line {
    border-left: 1px solid rgba(0,0,0,0.1);
    padding-left: 2rem;
}

.icon-box {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.small-caps {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
}

/* Quote Section */
.section-quote {
    background-color: var(--bg-dark);
    padding: 140px 0;
}
.quote-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* Operating Items Grid */
.operate-item {
    padding: 2rem;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(0,0,0,0.05);
}
.operate-item:last-child { border-right: none; }
.operate-item:hover { background: rgba(0,0,0,0.02); }

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 60px 0 40px;
}
.social-link {
    color: rgba(255,255,255,0.5);
    transition: var(--transition-smooth);
}
.social-link:hover { color: white; }

/* Responsive Tweaks */
@media (max-width: 991px) {
    .vert-line { border-left: none; padding-left: 0; }
    .operate-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .navbar { padding: 1.5rem 0; }
}

/* Ventures Specific Styles */
.section-padding-top {
    padding-top: 160px;
}

.header-line {
    height: 1px;
    width: 60px;
    background: rgba(255,255,255,0.2);
}

.ventures-grid .row {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.venture-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.venture-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(40%);
    transition: var(--transition-smooth);
    z-index: 1;
}

.venture-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.venture-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px;
    z-index: 3;
    transition: var(--transition-smooth);
}

.venture-desc {
    transition: var(--transition-smooth);
    margin-top: 10px;
    max-width: 250px;
}

/* Hover States */
.venture-item:hover .venture-img {
    filter: grayscale(0%) brightness(60%);
    transform: scale(1.05);
}

.venture-item:hover .venture-content {
    transform: translateY(-10px);
}

.venture-item:hover .venture-desc {
    opacity: 0.8 !important;
}

/* Grid border correction for mobile */
@media (max-width: 991px) {
    .venture-item {
        border-right: none;
    }
}

/* Active Navigation State */
.nav-link.active {
    color: inherit !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor; /* Matches text color (white on dark, black on light) */
}

/* Contact Page Specifics */
.bg-light-custom {
    background-color: #ecebe6;
}

.navbar-light .nav-link {
    color: rgba(0,0,0,0.6) !important;
}

.navbar-light .nav-link.active {
    color: #000 !important;
}

.form-control-custom {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s ease;
    font-size: 1rem;
    color: #000;
}

.form-control-custom:focus {
    border-bottom-color: #000;
}

.btn-submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background: #333;
    padding-right: 50px;
}

.lead-muted {
    color: rgba(0,0,0,0.6);
    line-height: 1.8;
}

/* Article Styling */
.article-body {
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.dropcap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 0.8;
    margin-right: 15px;
    margin-top: 5px;
    color: var(--accent-white);
}

.blockquote-custom {
    padding-left: 30px;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin: 4rem 0;
}

.italic {
    font-style: italic;
}

.hover-link {
    transition: var(--transition-smooth);
}

.hover-link:hover {
    opacity: 0.7;
    padding-left: 10px;
}

.article-hero .ratio {
    border: 1px solid rgba(255,255,255,0.1);
}

/* Refined Filter Aesthetics */
.filter-bar {
    background-color: #0a0a0a; /* Deep charcoal for distinction */
}

.filter-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: all 0.4s ease;
    padding: 10px 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.filter-link:hover {
    color: #c5a059; /* Sophisticated Gold Accent */
}

.filter-link.active {
    color: #c5a059; /* Gold accent for active state */
    border-bottom: 1px solid #c5a059;
}

/* Article Thumbnail Aesthetics */
.article-thumb-container {
    overflow: hidden;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    aspect-ratio: 16 / 10;
}

.article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.perspective-item:hover .article-thumb {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.9);
}

.perspective-item h3 {
    transition: color 0.4s ease;
}

.perspective-item:hover h3 {
    color: #c5a059 !important;
}

/* Healthcare/Sector Specifics */
.text-gold {
    color: #c5a059;
}

.bg-charcoal {
    background-color: #0a0a0a;
}

.sector-hero .ratio {
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-outline-custom {
    text-decoration: none;
    color: #fff;
    border: 1px solid #c5a059;
    padding: 15px 40px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-block;
}

.btn-outline-custom:hover {
    background-color: #c5a059;
    color: #000;
}

.sector-hero div div {
    transition: transform 2s ease;
}

.sector-hero:hover div div {
    transform: scale(1.05);
}

/* Dark Form Styling */
.form-input-dark {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    color: white;
    outline: none;
    transition: border-color 0.4s ease;
    font-size: 1rem;
    font-weight: 300;
}

.form-input-dark:focus {
    border-bottom-color: #c5a059; /* Using the gold accent from Perspectives */
}

.btn-submit-dark {
    background: white;
    color: black;
    border: none;
    padding: 16px 45px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-dark:hover {
    background: #c5a059;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Header line for consistency with Ventures/Perspectives */
.header-line {
    height: 1px;
    width: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Ensure footer links match the icon color */
.social-link {
    color: white;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    color: #c5a059;
}

.article-text-container p {
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.article-text-container h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-text-container blockquote {
    border-left: 2px solid #c5a059;
    padding-left: 30px;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.5rem;
    color: #fff;
}