/* ==========================================================================
   Gothic / Dark Academia Theme — Charcoal & Brass
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {

  /* Core Palette */
  --gothic-primary: #f5f1ea;
  --gothic-secondary: #1f1b18;
  --gothic-surface: #26211d;
  --gothic-surface-light: #312b26;

  /* Brass Accents */
  --gothic-accent: #8d7b52;
  --gothic-accent-light: #b59a72;
  --gothic-accent-dark: #6f6040;

  /* Supporting */
  --gothic-border: rgba(181, 154, 114, 0.28);
  --gothic-shadow: rgba(0, 0, 0, 0.35);

  /* Text */
  --gothic-text-primary: #f3eee7;
  --gothic-text-secondary: #c8bcae;
  --gothic-text-muted: #9e9387;

  /* Cards */
  --gothic-card-top: #2d2723;
  --gothic-card-bottom: #1b1815;

  /* Background */
  --gothic-background: #191614;
}


/* ==========================================================================
   Global
   ========================================================================== */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: var(--gothic-background);
    color: var(--gothic-text-primary);
    font-family: 'Crimson Text', serif;
}


/* ==========================================================================
   Damask Page Background
   ========================================================================== */

.page {
    background-image: url('../images/damask-tiled.svg');
    background-repeat: repeat;
    background-size: auto;
    min-height: 100vh;
    width: 100vw;
}


/* ==========================================================================
   Grid Layout
   ========================================================================== */

.row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.col-md-3 {
    min-width: 0;
}

.col-md-9 {
    flex: 1 1 calc(75% - 1rem);
    box-sizing: border-box;
    min-width: 300px;
    display: flex;
}


/* ==========================================================================
   Cards
   ========================================================================== */

.card {

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    max-width: 220px;

    border-radius: 10px;

    border: 1px solid var(--gothic-border);

    background:
        linear-gradient(
            180deg,
            var(--gothic-card-top) 0%,
            var(--gothic-card-bottom) 100%
        );

    box-shadow:
        0 8px 24px rgba(0,0,0,0.28);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.card:hover {

    transform: translateY(-2px);

    border-color: rgba(181,154,114,0.55);

    box-shadow:
        0 14px 30px rgba(0,0,0,0.38);
}


/* subtle brass glow border */

.card::before {

    content: '';

    position: absolute;
    inset: 0;

    pointer-events: none;

    border-radius: inherit;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.02);

}


/* ==========================================================================
   Logo Area
   ========================================================================== */

.cardImageLink {

    display: block;

    position: relative;

    padding: 1.5rem;

    background:
        linear-gradient(
            180deg,
            #2f2925 0%,
            #292420 100%
        );

    border-bottom:
        1px solid rgba(181,154,114,0.18);
}

.cardImage {

    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.card:hover .cardImage {
    transform: scale(1.03);
}


/* ==========================================================================
   Card Content
   ========================================================================== */

.cardContent {

    position: relative;

    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 1rem;

    background:
        linear-gradient(
            180deg,
            #1f1b18 0%,
            #181512 100%
        );
}


/* decorative flourish */

.cardContent::before {

    content: '❦';

    position: absolute;

    top: 0.65rem;
    right: 0.75rem;

    font-size: 0.8rem;

    color: var(--gothic-accent);

    opacity: 0.45;
}


/* ==========================================================================
   Card Typography
   ========================================================================== */

.cardCompanyName {

    text-decoration: none;

    display: inline-block;

    margin-bottom: 0.5rem;

    transition: color 0.25s ease;
}

.cardCompanyName:hover {
    color: var(--gothic-accent-light);
}

.cardCompanyName .gothicHeading {

    margin: 0;

    color: var(--gothic-text-primary);

    font-size: 1.25rem;

    font-family: 'Playfair Display', serif;

    font-style: italic;

    line-height: 1.2;
}

.cardYears {

    color: var(--gothic-text-secondary);

    font-size: 0.9rem;

    font-style: normal;
}

.cardContractedThrough {

    margin-top: auto;

    color: var(--gothic-text-muted);

    font-size: 0.9rem;

    font-style: italic;

    line-height: 1.5;
}

.cardDescription,
.cardTechStack {

    color: var(--gothic-text-secondary);

    font-size: 0.85rem;

    line-height: 1.6;
}


/* ==========================================================================
   Navigation
   ========================================================================== */

.gothicNavbar {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    width: 100%;

    background:
        linear-gradient(
            180deg,
            #211d1a 0%,
            #181512 100%
        );

    border-bottom:
        1px solid rgba(181,154,114,0.35);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.45);
}

.navbarContainer {

    max-width: 1600px;

    margin: 0 auto;

    padding: 0 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 70px;
}


/* ==========================================================================
   Brand
   ========================================================================== */

.brand {

    font-family: 'Playfair Display', serif !important;

    font-size: 1.8rem !important;

    font-weight: 700 !important;

    color: var(--gothic-accent-light) !important;

    text-decoration: none !important;

    letter-spacing: 1px;

    transition: color 0.25s ease;
}

.brand:hover {
    color: #d7c3a1 !important;
}

.brandLogo {

    max-height: 40px;

    width: auto;
    height: auto;
}


/* ==========================================================================
   Desktop Nav
   ========================================================================== */

.navDesktop {

    display: flex;

    gap: 2rem;

    align-items: center;
}

.navLink {

    color: var(--gothic-text-secondary) !important;

    text-decoration: none !important;

    padding: 0.75rem 1.25rem !important;

    border-radius: 6px;

    border: 1px solid transparent;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.navLink:hover {

    color: var(--gothic-accent-light) !important;

    border-color:
        rgba(181,154,114,0.35);

    background:
        rgba(181,154,114,0.05);
}

.navLink.active {

    color: var(--gothic-accent-light) !important;

    border-color:
        rgba(181,154,114,0.4);

    background:
        rgba(181,154,114,0.08);
}


/* ==========================================================================
   Mobile Nav
   ========================================================================== */

.mobileToggle {

    display: none;

    background: transparent;

    border: 1px solid rgba(181,154,114,0.35);

    color: var(--gothic-accent-light);

    padding: 0.5rem;

    border-radius: 6px;
}

.mobileNav {

    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    padding: 1rem 2rem;

    background: #181512;

    border-top:
        1px solid rgba(181,154,114,0.2);
}

.mobileNavLink {

    color: var(--gothic-text-secondary);

    text-decoration: none;

    padding: 0.9rem 1rem;

    border-radius: 6px;

    transition: all 0.25s ease;
}

.mobileNavLink:hover {

    background:
        rgba(181,154,114,0.08);

    color:
        var(--gothic-accent-light);
}


/* ==========================================================================
   Main Content
   ========================================================================== */

.gothicMain {

    min-height: calc(100vh - 70px);

    padding:
        calc(4rem + 70px)
        0
        4rem
        0;
}

.mainContainer {

    width: 80%;
    max-width: 1200px;

    margin: 0 auto;

    position: relative;

    padding: 3rem;

    border-radius: 12px;

    border:
        1px solid rgba(181,154,114,0.22);

    background:
        rgba(30, 27, 24, 0.94);

    box-shadow:
        0 10px 32px rgba(0,0,0,0.45);
}


/* ==========================================================================
   Headings
   ========================================================================== */

.gothicHeading {

    font-family: 'Playfair Display', serif;

    color: var(--gothic-primary);

    line-height: 1.2;

    margin: 0 0 1rem 0;
}

.level1 {

    font-size: 2.5rem;

    border-bottom:
        1px solid rgba(181,154,114,0.35);

    padding-bottom: 0.75rem;

    margin-bottom: 2rem;
}

.level2 {

    font-size: 2rem;

    color: var(--gothic-accent-light);
}

.level3 {

    font-size: 1.5rem;

    color: var(--gothic-text-primary);
}

.level4 {

    font-size: 1.2rem;

    color: var(--gothic-text-secondary);

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* ==========================================================================
   Body Text
   ========================================================================== */

.mainContainer p {

    color: var(--gothic-text-secondary);

    font-size: 18px;
    line-height: 1.9;
}

.mainContainer a {

    color: var(--gothic-accent-light);

    text-decoration: none;

    transition: color 0.25s ease;
}

.mainContainer a:hover {
    color: #d9c4a1;
}


/* ==========================================================================
   Team Section
   ========================================================================== */

.headshot {

    max-height: 300px;

    width: auto;
    height: auto;

    object-fit: cover;
}

.team-member-row {

    display: flex;
    flex-wrap: wrap;

    gap: 2rem;

    align-items: stretch;

    margin-bottom: 3rem;
}

.team-member-content {

    flex: 1 1 calc(83.33% - 1rem);

    min-width: 300px;
}

.team-member-image {

    flex: 1 1 calc(16.67% - 1rem);

    display: flex;
    justify-content: center;
    align-items: center;

    min-width: 150px;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.gothicFooter {

    background:
        linear-gradient(
            180deg,
            #211d1a 0%,
            #181512 100%
        );

    border-top:
        1px solid rgba(181,154,114,0.35);

    box-shadow:
        0 -4px 12px rgba(0,0,0,0.4);
}

.footerContainer {

    max-width: 1200px;

    margin: 0 auto;

    padding: 2rem;

    text-align: center;
}

.copyright {

    color: var(--gothic-text-muted);

    font-size: 0.95rem;

    letter-spacing: 0.5px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {

    .mainContainer {
        width: 88%;
    }

    .row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    .navDesktop {
        display: none !important;
    }

    .mobileToggle {
        display: block !important;
    }

    .mainContainer {

        width: 92%;

        padding: 2rem 1.5rem;
    }

    .row {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-member-row {
        flex-direction: column;
    }

    .headshot {
        max-height: 220px;
    }

    .level1 {
        font-size: 2rem;
    }

    .level2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {

    .row {
        grid-template-columns: 1fr;
    }

    .mainContainer {

        width: 95%;

        padding: 1.5rem 1rem;
    }

    .level1 {
        font-size: 1.7rem;
    }

    .level2 {
        font-size: 1.4rem;
    }

    .card {
        max-width: 100%;
    }
}

@media (min-width: 769px) {

    .mobileNav {
        display: none !important;
    }
}
