/*
Theme Name:   ST4RIS
Description:  Child theme for the ST4RIS project website
Author:       ST4RIS Consortium
Template:     twentytwentyfour
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  st4ris
*/

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',Arial,sans-serif;color:#1a2a2a;background:#fff}
a{text-decoration:none;color:inherit}
.wp-site-blocks{padding:0!important;margin:0!important}
.wp-site-blocks > *{margin-block-start:0!important}
main,.wp-block-post-content,.entry-content{margin:0!important}
.wp-block-post-content > *{margin-block-start:0!important}

/* NAV */
.site-header{background:#1a3a4a!important;position:sticky;top:0;z-index:100;padding:0 2rem;width:100%}
.site-header > .wp-block-group{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:68px;padding:0!important}
.site-header .custom-logo,.site-header .wp-block-site-logo img,.st4ris-header-logo{max-height:48px;width:auto;display:block}.st4ris-header-logo-link{display:flex;align-items:center;flex-shrink:0}.st4ris-main-logo{height:auto}
.site-header .wp-block-navigation{gap:2rem}
.site-header .wp-block-navigation a{color:#b8d4d4!important;font-size:.9rem;font-weight:500;padding:4px 0;border-bottom:2px solid transparent;transition:color .2s,border-color .2s;text-decoration:none}
.site-header .wp-block-navigation a:hover{color:#fff!important;border-bottom-color:#2dc08a}

/* HERO */
.hero{background:#1a3a4a;color:#fff}
.hero-photos{display:grid;grid-template-columns:repeat(6,1fr);height:180px;overflow:hidden}
.hero-photos div{background:#2a5a5a;overflow:hidden}
.hero-photos div img{width:100%;height:100%;object-fit:cover;object-position:center;opacity:.85}.hero-photos div:nth-child(1) img,.hero-photos div:nth-child(2) img{object-position:center 38%}.hero-photos div:nth-child(6) img{object-position:center 28%}
.hero-content{width:calc(100% - 4rem);max-width:1100px;margin:0 auto;padding:2rem 0 2.5rem;display:flex;align-items:center;justify-content:space-between;gap:2rem}
.hero-left{display:flex;align-items:center;gap:1.5rem}.hero-copy{max-width:620px;display:block}.hero-heading{font-size:2rem;font-weight:700;letter-spacing:.2px;line-height:1.18;color:#fff;margin:0}.hero-intro{display:block;font-size:.95rem;color:#9abfbf;margin-top:.5rem;max-width:560px}.hero-tagline{font-size:1.2rem;color:#d4eee8;font-style:italic;text-align:right;max-width:300px}.eu-badge{background:#fff;border-radius:6px;padding:8px 14px;display:flex;align-items:center;margin-top:.75rem;width:fit-content;margin-left:auto}.eu-funded-logo{display:block;width:195px;max-width:100%;height:auto}

/* SECTION COMMON */
section,.intro,.features,.stories,.events,.involved,.consortium{padding:3rem max(2rem,calc((100% - 1100px)/2))}.intro > *,.features > *,.stories > *,.events > *,.involved > *,.consortium > *{margin-left:0!important;margin-right:0!important}.inner{max-width:1100px;margin:0 auto}h2{font-size:1.5rem;font-weight:700;color:#1a3a4a;margin-bottom:1.5rem;line-height:1.25}h3{line-height:1.3}p{line-height:1.7}

/* INTRO */
.intro{background:#f5f9f8}.intro p{font-size:1rem;line-height:1.7;color:#2a4a4a;margin-bottom:.75rem;max-width:860px;margin-left:0;margin-right:auto}

/* FEATURE CARDS */
.features{background:#fff}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.cards > *{margin-block-start:0!important}.card{border:1.5px solid #c8e6dc;border-radius:10px;padding:1.25rem 1.5rem;display:flex;gap:1rem;align-items:flex-start;background:#fff}.card > *{margin-block-start:0!important}.card-icon{background:linear-gradient(135deg,#e0f5ec,#f4fbf8);border:1px solid #c8e6dc;border-radius:10px;padding:9px;flex:0 0 52px;width:52px;height:52px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);margin:0}.card-icon img{display:block;max-width:34px;max-height:34px;width:auto;height:auto;object-fit:contain}.card-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:#0f6e56;margin:0 0 .15rem}.card h3{font-size:.95rem;font-weight:600;color:#1a3a4a;margin:0 0 .2rem;line-height:1.25}.card p{font-size:.85rem;color:#4a6a6a;line-height:1.55;margin-block-start:0!important}

/* STAFF STORIES */
.stories{background:#1a3a4a;color:#fff}.stories h2{color:#fff}.story-carousel{position:relative;overflow:hidden}.story-track{display:flex;transition:transform .5s ease}.story-slide{min-width:100%;display:flex;gap:2rem;align-items:center;padding:.5rem 0}.story-photo-placeholder{width:90px;height:90px;border-radius:50%;background:linear-gradient(135deg,#1d9e75,#0f6e56);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:2rem;border:3px solid #2dc08a}blockquote{font-size:1.05rem;line-height:1.7;color:#d4eee8;font-style:italic}blockquote footer{margin-top:.75rem;font-size:.85rem;color:#2dc08a;font-style:normal;font-weight:600}.story-dots{display:flex;gap:8px;justify-content:center;margin-top:1.5rem}.dot{width:8px;height:8px;border-radius:50%;background:#4a7a7a;border:none;cursor:pointer;padding:0}.dot.active{background:#2dc08a}.story-btns{display:flex;gap:.75rem;justify-content:flex-end;margin-top:.75rem}.story-btns button{background:transparent;border:1.5px solid #4a8a7a;color:#b8d4d4;border-radius:6px;padding:6px 16px;cursor:pointer;font-size:.85rem;transition:background .2s}.story-btns button:hover{background:#2a5a5a}

/* EVENTS */
.events{background:#f0f8f5}.events-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}.event-card{background:#fff;border-radius:10px;padding:1.25rem;border:1.5px solid #c8e6dc}.event-type{font-size:.7rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;margin-bottom:.5rem}.event-type.event{color:#d85a30}.event-type.achievement{color:#0f6e56}.event-card h3{font-size:.95rem;font-weight:600;color:#1a3a4a;margin-bottom:.25rem}.event-card p{font-size:.82rem;color:#4a6a6a}.event-note{margin-top:.5rem!important;font-size:.8rem!important;color:#0f6e56!important}

/* CTA BUTTONS */
.cta-section{background:#fff;padding:2.5rem 2rem}.cta-inner{max-width:1100px;margin:0 auto;display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}.btn-primary{background:#1a3a4a;color:#fff;border:none;border-radius:8px;padding:.75rem 2rem;font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s;display:inline-block}.btn-primary:hover{background:#0f6e56}.btn-outline{background:transparent;color:#1a3a4a;border:2px solid #1a3a4a;border-radius:8px;padding:.75rem 2rem;font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s,color .2s;display:inline-block}.btn-outline:hover{background:#1a3a4a;color:#fff}

/* GET INVOLVED */
.involved{background:#e8f5f0}.involved .inner{max-width:1100px;text-align:left}.involved p{font-size:1rem;line-height:1.7;color:#2a4a4a;margin-bottom:1rem;max-width:860px;margin-left:0;margin-right:auto}.survey-btn{display:inline-block}.survey-btn .wp-block-button__link,.survey-btn:not(.wp-block-button){display:inline-block;background:#2dc08a;color:#fff;border-radius:8px;padding:.65rem 1.75rem;font-weight:600;font-size:.95rem;cursor:pointer;border:none;transition:background .2s;text-decoration:none}.survey-btn .wp-block-button__link:hover,.survey-btn:not(.wp-block-button):hover{background:#0f6e56;color:#fff}

/* CONSORTIUM */
.consortium{background:#fff}.consortium p{font-size:1rem;color:#2a4a4a;line-height:1.7;margin-bottom:1.5rem;max-width:860px;margin-left:0;margin-right:auto}.logo-grid{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.logo-pill{background:#f0f8f5;border:1.5px solid #c8e6dc;border-radius:8px;padding:.35rem .9rem;font-size:.78rem;font-weight:600;line-height:1.3;color:#0f6e56;margin:0!important;max-width:none!important}

/* FOOTER */
.site-footer{background:#1a3a4a!important;color:#9abfbf;padding:1.5rem 2rem}.site-footer > .wp-block-group,.footer-inner{max-width:1100px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.site-footer a{color:#9abfbf!important}.site-footer a:hover{color:#2dc08a!important}.footer-eu{background:#fff;border-radius:6px;padding:6px 10px}.footer-eu-funded-logo{width:170px}.footer-links{display:flex;gap:1.5rem;font-size:.85rem}.footer-social{display:flex;gap:1rem;font-size:.85rem}

@media (max-width:768px){.site-header{padding:0 1rem}.site-header > .wp-block-group{height:auto;min-height:56px;gap:1rem;flex-wrap:wrap;justify-content:center;padding:.65rem 0!important}.site-header .wp-block-navigation{gap:1rem;justify-content:center}.hero-photos{grid-template-columns:repeat(3,1fr);height:120px}.hero-content{flex-direction:column;align-items:flex-start}.hero-tagline{text-align:left}.eu-badge{margin-left:0}.cards,.events-grid{grid-template-columns:1fr}.story-slide{flex-direction:column;text-align:center}.story-btns{justify-content:center}}
