/* Public website (index.php, courses.php). Colours follow the logo: navy, blue and a welding-spark amber. */
/* Fonts (loaded in site_layout.php): Poppins for headings, Inter for reading text. */

:root {
    --navy: #12283b;
    --navy-2: #1d3a54;
    --blue: #1769aa;
    --blue-dark: #124f80;
    --amber: #ffb703;
    --ink: #1c2530;
    --text: #4a5563;
    --line: #e3e7ec;
    --soft: #f5f7fa;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(18, 40, 59, .08);
    --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; font-weight: 500; letter-spacing: -.015em; }
h3, h4 { letter-spacing: -.005em; }
strong, b, th { font-weight: 500; }
.brand strong, .btn, .site-nav a, .eyebrow, .fact strong, .course-meta .value, .course-num, .step::before { font-family: var(--font-head); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- top strip ---------- */
.topstrip { background: var(--navy); color: #c8d3de; font-size: .84rem; }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topstrip a { color: #e6edf4; }
.topstrip a:hover { color: var(--amber); }
.topstrip i { color: var(--amber); margin-right: 6px; }
.topstrip .contacts { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: auto; }
.brand strong { display: block; color: var(--navy); font-size: 1.22rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; color: var(--text); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: .94rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); border-bottom-color: var(--amber); }
.site-nav a.btn { border-bottom: none; padding: 10px 20px; color: var(--white); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; font-size: 1.15rem; color: var(--navy); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 8px; border: 2px solid var(--blue);
    background: var(--blue); color: var(--white); font-weight: 500; font-size: .98rem; font-family: inherit;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn.amber:hover { background: #e6a500; border-color: #e6a500; color: var(--navy); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn.ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn.outline { background: transparent; color: var(--blue); }
.btn.outline:hover { background: var(--blue); color: var(--white); }
.btn.small { padding: 9px 18px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero {
    position: relative; color: var(--white);
    background: linear-gradient(100deg, rgba(18, 40, 59, .96) 0%, rgba(18, 40, 59, .86) 45%, rgba(18, 40, 59, .45) 100%), url('../img/logo1.png') center / cover no-repeat;
}
.hero .wrap { padding-top: 96px; padding-bottom: 104px; }
.hero .eyebrow, .eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 500; line-height: 1.18; letter-spacing: -.02em; max-width: 720px; margin-bottom: 18px; }
.hero p { max-width: 620px; font-size: 1.1rem; color: #d5dee7; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px; }
.page-hero p { color: #d5dee7; max-width: 640px; }

/* ---------- facts strip ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; align-items: center; gap: 14px; padding: 26px 18px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: none; padding-left: 0; }
.fact i { font-size: 1.5rem; color: var(--blue); width: 34px; text-align: center; }
.fact strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.fact span { font-size: .84rem; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 12px; }
.section-head.left { margin-left: 0; text-align: left; }

/* about */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; isolation: isolate; }
.about-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo::before { content: ''; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 46%; border-left: 5px solid var(--amber); border-bottom: 5px solid var(--amber); border-radius: 0 0 0 var(--radius); z-index: -1; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.about > div > p { margin-bottom: 26px; }

/* team (inside about) */
.team { margin-top: 76px; }
.team .section-head { margin-bottom: 36px; }
.team-roll { overflow: hidden; padding: 6px 0 28px; }
.team-track { display: flex; width: max-content; animation: team-roll 40s linear infinite; }
.team-roll:hover .team-track { animation-play-state: paused; }
@keyframes team-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .team-roll { overflow-x: auto; } .team-track { animation: none; } }
.team-card { flex-shrink: 0; margin-right: 24px; width: 250px; max-width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; padding-bottom: 20px; }
.team-card img, .team-nophoto { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; margin-bottom: 16px; }
.team-nophoto { display: flex; align-items: center; justify-content: center; background: #e8f1f8; color: #9db8cf; font-size: 4.5rem; }
.team-card h3 { font-size: 1.05rem; padding: 0 14px; margin-bottom: 2px; }
.team-card p { font-size: .88rem; color: var(--blue); padding: 0 14px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.point { display: flex; gap: 14px; }
.point i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 8px; background: #e8f1f8; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.point h3 { font-size: 1rem; margin-bottom: 3px; }
.point p { font-size: .9rem; line-height: 1.5; }

/* courses */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.course-card {
    background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.course-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.course-card .content { font-size: .9rem; margin-bottom: 14px; }
.course-meta { display: flex; gap: 28px; margin-top: auto; padding: 16px 0; border-top: 1px solid var(--line); }
.course-meta .label { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #7b8794; }
.course-meta .value { color: var(--ink); font-weight: 500; font-size: 1.02rem; }
.course-card .btn { width: 100%; }
.center { text-align: center; margin-top: 36px; }

/* course list page */
.course-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.course-row { display: flex; align-items: center; gap: 22px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.course-row:last-child { border-bottom: none; }
.course-row:hover { background: #fafbfd; }
.course-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; background: var(--navy-2); color: var(--amber); font-weight: 500; display: flex; align-items: center; justify-content: center; }
.course-info { flex: 1; min-width: 0; }
.course-info h3 { font-size: 1.12rem; margin-bottom: 4px; }
.course-info .details { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: .93rem; }
.course-info .details strong { color: var(--ink); }
.course-info .content { font-size: .9rem; margin-top: 8px; }
.empty { text-align: center; padding: 60px 20px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--navy); font-weight: 500; margin-bottom: 16px; }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .93rem; }

/* contact */
.contact-section { background: var(--navy); color: #c8d3de; }
.contact-section h2, .contact-section h3 { color: var(--white); }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.contact-item { display: flex; gap: 16px; margin-top: 26px; }
.contact-item i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--amber); display: flex; align-items: center; justify-content: center; }
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item a { color: #e6edf4; }
.contact-item a:hover { color: var(--amber); }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 34px; color: var(--text); }
.contact-form h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .86rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 8px; font: inherit; color: var(--ink); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 170, .15); }
.form-group textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { width: 100%; }
.notice { padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; font-size: .94rem; }
.notice.ok { background: #e6f4ea; color: #1e6b34; border: 1px solid #b7dfc2; }
.notice.bad { background: #fdecea; color: #a12622; border: 1px solid #f3c0bc; }

/* footer */
.site-footer { background: #0c1c2a; color: #9fb0c2; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding: 54px 0 40px; }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #c8d3de; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand strong { color: var(--white); }
.site-footer .brand small { color: #9fb0c2; }
.site-footer .brand img { background: var(--white); border-radius: 6px; padding: 3px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; }

/* ---------- smaller screens ---------- */
/* gallery (gallery.php and the home page) */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #e8edf2; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: .86rem; line-height: 1.35;
    background: linear-gradient(transparent, rgba(12, 28, 42, .85)); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 18, 28, .94); display: flex; align-items: center; justify-content: center; padding: 20px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; margin: 0 auto; }
.lightbox figcaption { color: #d5dee7; margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 940px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }
@media (max-width: 940px) {
    .facts .wrap { grid-template-columns: 1fr 1fr; }
    .fact { border-left: none; padding-left: 0; }
    .about, .contact { grid-template-columns: 1fr; gap: 40px; }
    .steps { grid-template-columns: 1fr; }
    .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .menu-btn { display: block; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; box-shadow: var(--shadow); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .site-nav a.btn { margin-top: 14px; }
    .topstrip .hours { display: none; }
    .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
    .section { padding: 60px 0; }
    .points, .form-row { grid-template-columns: 1fr; }
    .course-grid { grid-template-columns: 1fr; }
    .course-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .course-row .btn { width: 100%; }
    .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
    .contact-form { padding: 24px; }
}
@media (max-width: 480px) {
    .facts .wrap { grid-template-columns: 1fr; }
    .fact { padding: 16px 0; border-top: 1px solid var(--line); }
    .fact:first-child { border-top: none; }
    .hero .actions .btn { width: 100%; }
}
