/* =========================================================
   theme.css
   Page styles for /theme  (Automation Expo South 2028)

   Self-contained: this page loads menu.css, menu-fixes.css,
   responsive-fixes.css and footer.css only, so every rule the
   page body needs lives here. Prefix: .thm-
   ========================================================= */

:root {
    --thm-navy:      #4d0f5c;
    --thm-navy-deep: #40084d;
    --thm-gold:      #ffcc1a;
    --thm-ink:       #4d0f5c;
    --thm-body:      #882862;
    --thm-line:      #f0e2eb;
    --thm-soft:      #faf4f8;
    --thm-font:      "Roboto", Arial, sans-serif;

    /* Four Pillars section: site brand gradient + gold */
    --thm-brand-gradient: linear-gradient(to right, #ac1c72, #4d0f5c);
    --thm-card:        rgba(37, 6, 44, .62);       /* dark glass so the gradient shows through */
    --thm-card-line:   rgba(255, 204, 26, .28);     /* gold hairline */
    --thm-card-text:   #f2e0eb;                    /* light lavender text */
    --thm-card-divide: rgba(255, 255, 255, .16);
}

/*==========================================
   PRIMITIVES
==========================================*/

.thm-container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.thm-hero,
.thm-forces,
.thm-why,
.thm-light,
.thm-techs {
    font-family: var(--thm-font);
}

.thm-hero h1,
.thm-forces h2,
.thm-forces h3,
.thm-why h2 {
    margin: 0;
    font-family: var(--thm-font);
    font-weight: 700;
    line-height: 1.18;
}

/*==========================================
   SCROLL REVEAL
   .is-in is added by the observer in the page.
==========================================*/

.thm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.thm-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Stagger the four cards so they cascade rather than pop together */
.thm-force-card:nth-child(2) { transition-delay: .10s; }
.thm-force-card:nth-child(3) { transition-delay: .20s; }
.thm-force-card:nth-child(4) { transition-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
    .thm-reveal,
    .thm-force-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/*==========================================
   HERO
==========================================*/

.thm-hero {
    background: #ffffff;
    padding: 70px 0 60px;
}

.thm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.thm-img-frame {
    position: relative;
    border: 5px solid #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(77, 15, 92, .18);
    background: var(--thm-navy-deep);
    min-height: 320px;
}

.thm-img-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Shown until image/theme/theme-south-2028.webp is uploaded. The inline
   onerror adds .is-empty and removes the broken image, so the frame keeps
   its shape instead of showing a broken-image icon. Once the file exists
   this never triggers - nothing to undo later. */
.thm-img-frame.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--thm-navy-deep), #5c0c6e);
}

.thm-img-frame.is-empty::after {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 46px;
    color: rgba(255, 255, 255, .20);
}

.thm-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    margin-bottom: 18px;
    border-radius: 50px;
    background: var(--thm-gold);
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.thm-hero-copy h1 {
    font-size: clamp(30px, 3.4vw, 46px);
    color: var(--thm-ink);
    margin-bottom: 22px;
}

.thm-accent {
    color: #ac1c72;
}

.thm-hero-copy p {
    margin: 0 0 16px;
    color: var(--thm-body);
    font-size: 17px;
    line-height: 1.8;
}

.thm-hero-copy p:last-child {
    margin-bottom: 0;
}

/*==========================================
   FOUR FORCES
==========================================*/

.thm-forces {
    background: var(--thm-brand-gradient);
    padding: 64px 0;
}

.thm-section-title {
    max-width: 900px;
    margin: 0 auto 42px;
    text-align: center;
    color: #ffffff;
    font-size: clamp(24px, 2.6vw, 34px);
}

.thm-force-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.thm-force-card {
    display: flex;
    flex-direction: column;
    background: var(--thm-card);
    border: 1px solid var(--thm-card-line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease,
                opacity .7s ease;
}

.thm-force-card:hover {
    transform: translateY(-10px);
    border-color: var(--thm-gold);
    box-shadow: 0 12px 28px rgba(30, 4, 36, .55), 0 0 0 1px rgba(255, 204, 26, .35);
}

.thm-force-img {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #310b3a;
}

.thm-force-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.thm-force-card:hover .thm-force-img img {
    transform: scale(1.06);
}

/* Same graceful-degradation pattern as the hero frame */
.thm-force-img.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--thm-brand-gradient);
}

.thm-force-img.is-empty::after {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 38px;
    color: rgba(255, 255, 255, .20);
}

.thm-force-num {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--thm-gold);
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
}

.thm-force-body {
    padding: 22px 24px 26px;
}

.thm-force-body h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.thm-force-body h3 i {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--thm-gold);
}

.thm-force-body p {
    margin: 0;
    color: var(--thm-card-text);
    font-size: 15.5px;
    line-height: 1.75;
}

/*==========================================
   WHY THIS THEME MATTERS
==========================================*/

.thm-why {
    background: #ededed;
    padding: 60px 0;
}

.thm-why-box {
    background: #ffffff;
    border-radius: 14px;
    border-left: 6px solid #500b5f;
    padding: 34px 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

.thm-why-box h2 {
    margin-bottom: 18px;
    color: var(--thm-ink);
    font-size: clamp(24px, 2.6vw, 34px);
}

.thm-why-box p {
    margin: 0 0 14px;
    color: #333333;
    font-size: 17px;
    line-height: 1.8;
}

/*==========================================
   SHOW INFO STRIP
==========================================*/

.thm-showinfo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(77, 15, 92, .15);
}

.thm-showinfo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--thm-ink);
}

.thm-showinfo-meta {
    font-size: 16px;
    color: #55636f;
}

.thm-showinfo-meta i {
    margin-right: 6px;
    color: #ac1c72;
}

.thm-showinfo-sep {
    margin: 0 10px;
    color: #c3cad3;
}

/*==========================================
   BUTTONS  (match the navbar CTA)
==========================================*/

.thm-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.thm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 200px;
    padding: 0 28px;
    border: 2px solid var(--thm-gold);
    border-radius: 50px;
    background: var(--thm-gold);
    color: #111111;
    font-family: var(--thm-font);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
}

.thm-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #4d0f5c;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .25);
}

.thm-btn--ghost {
    background: transparent;
    border-color: var(--thm-ink);
    color: var(--thm-ink);
}

.thm-btn--ghost:hover {
    background: var(--thm-ink);
    border-color: var(--thm-ink);
    color: #ffffff;
}

/*==========================================
   RESPONSIVE
==========================================*/

@media (max-width: 992px) {
    .thm-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .thm-force-grid {
        grid-template-columns: 1fr;
    }
    .thm-why-box {
        padding: 28px 26px;
    }
}

@media (max-width: 768px) {
    .thm-hero {
        padding: 46px 0 40px;
    }
    .thm-forces,
    .thm-why {
        padding: 46px 0;
    }
    .thm-force-img {
        height: 250px;
    }
    .thm-hero-copy p,
    .thm-why-box p {
        font-size: 16px;
    }
    .thm-btn {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        padding: 0 18px;
    }
}

@media (max-width: 575px) {
    .thm-showinfo {
        display: block;
    }
    .thm-showinfo-name {
        display: block;
        margin-bottom: 8px;
    }
    .thm-showinfo-sep {
        display: none;
    }
    .thm-showinfo-meta i {
        display: inline-block;
        margin-top: 6px;
    }
}

/*==========================================
   NEW CONTENT: journey, tags, ecosystem, technologies
==========================================*/

.thm-light { background: var(--thm-soft); padding: 60px 0; }
.thm-techs { background: #ffffff; padding: 60px 0; }

.thm-light h2, .thm-light h3, .thm-techs h2, .thm-techs h3 {
    font-family: var(--thm-font); font-weight: 700; line-height: 1.18;
}
.thm-light h3, .thm-techs h3 { margin: 0; }

/* One line on desktop; wraps naturally on smaller screens */
.thm-section-title { max-width: none; }
.thm-section-title--dark { color: var(--thm-ink); }
.thm-section-title--dark:has(+ .thm-lead) { margin-bottom: 14px; }

.thm-hero-copy strong { color: var(--thm-ink); }
.thm-hero-say {
    padding: 12px 18px; border-left: 4px solid var(--thm-gold);
    background: var(--thm-soft); color: var(--thm-ink) !important; font-weight: 700;
}

.thm-force-tags {
    margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--thm-card-divide);
    color: var(--thm-gold) !important; font-size: 13px !important; font-weight: 700; letter-spacing: 1px;
}

/* Journey: a real sequence, so numbered */
.thm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.thm-steps::before {
    content: ""; position: absolute; left: 10%; right: 10%; top: 28px; height: 2px; background: #eec4dd;
}
.thm-step { position: relative; text-align: center; padding: 0 6px; }
.thm-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border: 4px solid var(--thm-soft); border-radius: 50%;
    background: var(--thm-navy); color: var(--thm-gold); font-weight: 700;
}
.thm-step h3 { margin-top: 12px; color: var(--thm-ink); font-size: 18px; }
.thm-step p { margin: 4px 0 0; color: var(--thm-body); font-size: 14.5px; }

.thm-lead { max-width: 820px; margin: 0 auto 34px; text-align: center; color: var(--thm-body); font-size: 17px; line-height: 1.8; }

.thm-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.thm-flow-box {
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 110px; padding: 18px; border-radius: 12px;
    background: var(--thm-navy); color: #ffffff; font-weight: 600; line-height: 1.35;
}
.thm-flow-box:not(:last-child)::after {
    content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; right: -23px; color: #ac1c72; font-size: 18px; /* magenta: yellow was invisible on the light background */
}

.thm-tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.thm-tech-card {
    padding: 24px 22px; border: 1px solid var(--thm-line); border-radius: 12px; background: #ffffff;
    transition: transform .35s ease, box-shadow .35s ease, opacity .7s ease;
}
.thm-tech-card:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(77, 15, 92, .12); }
.thm-tech-card i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-bottom: 14px; border-radius: 8px;
    background: var(--thm-navy); color: var(--thm-gold);
}
.thm-tech-card h3 { color: var(--thm-ink); font-size: 18px; margin-bottom: 6px; }
.thm-tech-card p { margin: 0; color: var(--thm-body); font-size: 14.5px; line-height: 1.6; }

.thm-why-quote {
    padding-left: 18px; border-left: 4px solid var(--thm-gold);
    color: var(--thm-ink) !important; font-size: 19px !important; font-weight: 700;
}

@media (max-width: 992px) {
    .thm-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .thm-flow { grid-template-columns: repeat(3, 1fr); }
    .thm-flow-box:nth-child(3)::after { display: none; }
    .thm-steps { grid-template-columns: 1fr; gap: 18px; }
    .thm-steps::before { display: none; }
}
@media (max-width: 575px) {
    .thm-light, .thm-techs { padding: 44px 0; }
    .thm-tech-grid, .thm-flow { grid-template-columns: 1fr; }
    .thm-flow-box::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .thm-tech-card { transition: none; } }