/* Modern Professional CSS for the Wyrdwatch LLC website (wyrdwatch.com) */

/* M7: tokens remapped to the SIRT app's design system
   (sirt: app/static/css/site.css :root), so the site and the product
   read as one theme. */
:root {
    /* brand chrome */
    --primary-color: #1b2a4a;   /* brand navy (was Bootstrap blue) */
    --brand-navy-dark: #142038;
    --brand-navy-light: #24365c;
    --accent-color: #2c4a7c;    /* action navy (was green) */
    --accent-hover: #1b2a4a;
    /* content surfaces */
    --light-color: #eef1f5;
    --card-color: #ffffff;
    --border-color: #d8dde4;
    --dark-color: #212529;      /* text (was gray-800) */
    --gray-color: #6c757d;      /* muted text */
    /* status */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    /* shape */
    --card-radius: 6px;
    --shadow-card: 0 2px 8px rgba(16, 24, 40, 0.12);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

/* Body and Typography */
body {
    /* SIRT's system font stack (M7) */
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    /* SIRT page surface: white cards sit on the light gray (M7) */
    background-color: var(--light-color);
    /* Sticky footer: body is a flex column and the footer's margin-top: auto
       pins it to the viewport bottom when content is short, with no extra
       scroll when content is long. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Navigation */
/* bg-dark is a Bootstrap utility with !important, so the brand navy has to
   match that specificity or it silently loses (SIRT's site.css documents
   the same gotcha). */
.navbar.bg-dark {
    background-color: var(--primary-color) !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff !important;
}

/* M12: the plank-shield mark next to the brand name. Slightly taller than
   the 1.8rem text so the shield leads; the negative vertical-align drops it
   to sit on the text line instead of riding the baseline. */
.navbar-brand-logo {
    height: 2.25rem;
    width: 2.25rem;
    display: inline-block;
    vertical-align: -0.45rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

/* Bootstrap 4.0 (the version this site pins) has no .text-white-50
   utility -- it arrived in 4.1 -- so the hero/CTA/footer taglines that
   use it were falling through to the dark body text on the navy. Define
   it here at 50% white, as Bootstrap does. */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Hero Section */
/* Navy gradient (brand navy → navy light) per M7, replacing the old
   Bootstrap blue gradient. */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--brand-navy-light) 100%);
    /* the h1 and eyebrow inherit the body's dark text color without this --
       on the navy gradient that reads as black-on-navy and nearly vanishes */
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    /* the navbar is fixed-top (~88px), so the top padding has to clear it
       or the eyebrow slides underneath at this shorter min-height */
    padding: 7rem 0 3rem;
}

/* The dot tile repeats at its natural 100px. A previous version set
   background-size: cover, which stretched the 100px tile to the whole
   section and turned its top-left dot into a giant ghost circle. */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="4" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

/* M12: the brand shield in the home hero. It is a column in .hero-inner
   (inside the same .container as the navbar), so it aligns to the page
   grid and centers against the text by construction -- no absolute
   positioning. On phones the row stacks: small mark above centered text. */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.hero-logo {
    flex: 0 0 auto;
    width: clamp(140px, 13vw, 200px);
    height: auto;
}

.hero-inner .hero-content {
    text-align: left;
}

@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-logo {
        width: 96px;
    }

    .hero-inner .hero-content {
        text-align: center;
    }

    .hero-inner p.lead {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* M7: primary buttons carry the accent navy (they were green in the old
   template). */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* M7: the one .btn-outline-primary in the markup (index services preview)
   was falling back to Bootstrap's default blue; restyled to the accent.
   Bootstrap's .btn-outline-primary uses !important, so it must be matched
   or the override silently loses (same gotcha as .navbar.bg-dark above). */
.btn-outline-primary {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.8);
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

/* M7: inline content links (mailto:/tel:, the "contact page" mention on
   privacy.html) were falling back to Bootstrap's default blue; the navy
   accent keeps them in the theme. Hover goes to the brand navy. */
.section a:not(.btn):not(.nav-link) {
    color: var(--accent-color);
}

.section a:not(.btn):not(.nav-link):hover {
    color: var(--primary-color);
}

/* Bootstrap's .bg-light is #f8f9fa with !important; on the SIRT page
   surface it would read as a different band, so the alternating sections
   follow the token (M7). */
.section.bg-light {
    background-color: var(--light-color) !important;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Service Cards */
/* M7: radii and shadows move to SIRT's quieter values (6px radius, the SIRT
   card shadow) so cards read like the app's, not the old template's. */
.service-card {
    transition: all 0.3s ease;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--card-color);
    box-shadow: var(--shadow-card);
    height: 100%;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(16,24,40,0.18);
}

.service-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    font-size: 2rem;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Home page (M1) */
.hero-eyebrow {
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* SIRT screenshots (M8): the images are 1600px web-sized, so the figure
   caps them at their container and the caption reads like the app's
   muted text. */
.screenshot-fig {
    margin: 0;
    text-align: center;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
}

.screenshot-fig figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-color);
}

/* Screenshot lightbox (M11.1): clicking a screenshot opens it full-size in
   an overlay (static/js/lightbox.js builds the DOM). The image is scaled
   with max-width/height only, so small shots (e.g. the portrait reports
   list) are shown at 1:1 instead of stretched. */
.screenshot-img {
    cursor: zoom-in;
}

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(16, 24, 40, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    cursor: zoom-out;
}

.lightbox-backdrop[hidden] {
    display: none;
}

.lightbox-fig {
    margin: 0;
    max-width: none;
    cursor: default;
}

.lightbox-img {
    max-width: 100vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Inner page hero (M2): same treatment as the home hero, but sized for a
   content page instead of taking the viewport. */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--brand-navy-light) 100%);
    /* white text, same reason as .hero above */
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="4" fill="rgba(255,255,255,0.1)"/></svg>');
    /* repeats at the tile's natural 100px -- see .hero::before for the
       background-size: cover bug this fixed */
    opacity: 0.3;
}

/* SIRT page (M2) numbered steps */
.steps {
    list-style: none;
    counter-reset: sirt-step;
    padding-left: 0;
}

.steps li {
    position: relative;
    padding: 0 0 2rem 4.5rem;
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps li::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.08);
}

.steps li:last-child::before {
    display: none;
}

.steps-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* accent navy (M7) -- the brand navy would read as part of the hero */
    background: var(--accent-color);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h4 {
    margin-bottom: 0.5rem;
}

.steps p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* About page (M4) skills strip: wrapping, pill-shaped list of technologies */
.skill-strip {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-strip li {
    background: var(--light-color);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.skill-strip li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* About Section */
.about-content {
    background: linear-gradient(to right, var(--light-color) 0%, var(--card-color) 100%);
    border-radius: var(--card-radius);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.stats-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--card-radius);
    transition: all 0.3s ease;
    background: var(--card-color);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(16,24,40,0.18);
}

.stats-card h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
    background: var(--card-color);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(16,24,40,0.18);
}

.testimonial-card::before {
    content: "\"";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(0,0,0,0.05);
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
/* Dark navy gradient per M7, replacing the old gray one. */
footer {
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--brand-navy-dark) 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p.lead {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .about-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        padding: 0.5rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p.lead {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Custom Spacing */
.mb-6 {
    margin-bottom: 4rem !important;
}

.mt-6 {
    margin-top: 4rem !important;
}

/* Custom Backgrounds */
/* M7: the old Bootstrap blue gradient is gone; these follow the SIRT tokens. */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--brand-navy-light) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--gray-color) 0%, var(--dark-color) 100%);
}

/* Border Radius */
.rounded-xl {
    border-radius: var(--card-radius);
}

/* Shadow */
.shadow-lg {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Hover Effects */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Text Styles */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--accent-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-light {
    color: #f8f9fa !important;
}

/* Utility Classes */
.text-uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom Container */
.custom-container {
    max-width: 1200px;
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}