/* Palette: Bavarian Blue, Stone Grey, White, Dark Slate */
:root {
    --blue: #0066B2;
    --blue-dark: #004a80;
    --stone: #708090;
    --stone-light: #f0f2f5;
    --slate: #2c3e50;
    --white: #FFFFFF;
    
    --font-head: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--white);
    color: var(--slate);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 90px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.header { background: var(--white); padding: 25px 0; border-bottom: 4px solid var(--blue); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.header-grid { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--slate); letter-spacing: 2px; }
.blue-cog { color: var(--blue); margin: 0 5px; font-size: 1.5rem; }

.nav a { margin-left: 30px; font-weight: 700; text-transform: uppercase; color: var(--stone); font-size: 0.9rem; }
.nav a:hover, .nav a.active { color: var(--blue); }

.mobile-toggle { display: none; background: var(--slate); color: var(--white); border: none; padding: 8px 15px; cursor: pointer; font-family: var(--font-head); }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background: var(--slate); z-index: 2000; padding: 50px; transition: 0.3s; border-left: 5px solid var(--blue); }
.mobile-menu.active { right: 0; }
.close-btn { background: none; border: none; font-size: 1.5rem; color: var(--white); margin-bottom: 30px; cursor: pointer; }
.mobile-menu a { display: block; font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 20px; color: var(--stone-light); }
.mobile-menu a:hover { color: var(--blue); }

@media (max-width: 900px) {
    .nav { display: none; }
    .mobile-toggle { display: block; }
}

/* Hero */
.hero { height: 85vh; position: relative; display: flex; align-items: center; justify-content: flex-start; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; filter: grayscale(30%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44,62,80,0.9) 0%, rgba(44,62,80,0.4) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 700px; padding-left: 20px; }

.subtitle { font-family: var(--font-body); letter-spacing: 3px; font-weight: 700; color: var(--blue); display: block; margin-bottom: 20px; font-size: 0.9rem; }
.hero h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
.blue-text { color: var(--blue); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; font-weight: 300; max-width: 550px; border-left: 3px solid var(--blue); padding-left: 20px; }

.hero-actions { display: flex; gap: 20px; }
.btn-solid { background: var(--blue); color: var(--white); padding: 15px 35px; border: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.btn-solid:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); padding: 13px 35px; font-weight: 700; transition: 0.3s; letter-spacing: 1px; }
.btn-outline:hover { background: var(--white); color: var(--slate); }

/* Engine Concept */
.section-title h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--slate); margin-bottom: 10px; }
.stone-line { width: 80px; height: 4px; background: var(--stone); margin-bottom: 30px; }
.center { text-align: center; }
.center .stone-line { margin: 0 auto 30px; }
.left { margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.concept-card { background: var(--stone-light); padding: 40px 30px; border-bottom: 4px solid var(--stone); transition: 0.3s; position: relative; overflow: hidden; }
.concept-card:hover { transform: translateY(-5px); border-color: var(--blue); }
.num { font-size: 4rem; font-family: var(--font-head); color: rgba(0,0,0,0.05); position: absolute; top: 10px; right: 20px; line-height: 1; }
.concept-card h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 15px; color: var(--blue); }

/* Stats Bar */
.stats-bar { background: var(--slate); color: var(--white); padding: 50px 0; margin-top: 50px; }
.stats-flex { display: flex; justify-content: space-around; text-align: center; }
.stat strong { display: block; font-size: 2.5rem; font-family: var(--font-head); margin-bottom: 5px; color: var(--blue); }
.stat span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #ccc; }

/* Mentoring Page */
.program-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 50px; }
.program-item { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; background: var(--stone-light); box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden; }
.program-item.featured { border: 2px solid var(--blue); }
.p-img { position: relative; min-height: 300px; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 20px; left: 20px; background: var(--blue); color: var(--white); padding: 5px 15px; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; }
.p-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.p-content h3 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 15px; color: var(--slate); }
.features { list-style: none; margin: 20px 0; color: var(--stone); }
.features li { margin-bottom: 8px; }
.btn-text { color: var(--blue); font-weight: 700; letter-spacing: 1px; text-decoration: underline; text-transform: uppercase; margin-top: 10px; display: inline-block; }

/* Calculator */
.calc-wrapper { max-width: 900px; margin: 0 auto; background: var(--white); border: 1px solid #ddd; padding: 50px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); }
.calc-header { text-align: center; margin-bottom: 40px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.engine-form .form-group { margin-bottom: 20px; }
.engine-form label { display: block; font-weight: 700; color: var(--slate); margin-bottom: 5px; font-size: 0.9rem; }
.engine-form input, .engine-form select, .engine-form textarea { width: 100%; padding: 12px; border: 2px solid var(--stone-light); background: #fdfdfd; font-family: var(--font-body); font-size: 1rem; transition: 0.3s; }
.engine-form input:focus, .engine-form select:focus { border-color: var(--blue); outline: none; }
.full { width: 100%; }

.calc-results { background: var(--slate); color: var(--white); padding: 30px; border-radius: 4px; display: flex; flex-direction: column; justify-content: center; }
.calc-results h3 { font-family: var(--font-head); color: var(--blue); border-bottom: 1px solid #555; padding-bottom: 10px; margin-bottom: 20px; }
.res-item { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid #444; padding-bottom: 5px; }
.highlight { color: var(--blue); font-size: 1.2rem; }
.note { font-size: 0.7rem; color: #888; margin-top: 20px; font-style: italic; }

/* Market Report */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { background: var(--white); border: 1px solid #eee; transition: 0.3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-text { padding: 25px; }
.date { font-size: 0.8rem; color: var(--stone); font-weight: 700; margin-bottom: 5px; display: block; }
.news-text h3 { font-family: var(--font-head); margin-bottom: 10px; font-size: 1.2rem; }
.read-link { color: var(--blue); font-weight: 700; font-size: 0.9rem; margin-top: 15px; display: inline-block; }

/* Contact Block */
.contact-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; background: var(--stone-light); padding: 60px; border-top: 5px solid var(--blue); }
.contact-left h2 { font-family: var(--font-head); font-size: 2rem; color: var(--slate); margin-bottom: 20px; }
.info-item { margin-top: 30px; border-left: 3px solid var(--stone); padding-left: 15px; }

/* Legal */
.legal-text { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; border: 1px solid #eee; }
.legal-text h1 { font-family: var(--font-head); color: var(--slate); }

/* Footer */
.footer { background: var(--slate); color: #ccc; padding: 60px 0 20px; margin-top: 100px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-brand h4 { font-family: var(--font-head); color: var(--white); margin-bottom: 5px; }
.f-links a { margin-left: 20px; color: #999; font-size: 0.9rem; }
.f-links a:hover { color: var(--blue); }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.8rem; }

@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .grid-3, .stats-flex, .program-item, .calc-grid, .news-grid, .contact-block { grid-template-columns: 1fr; }
    .calc-results { margin-top: 30px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}