/* EICG welcome page — mobile first. Colours come from --brand / --accent set by platform settings. */

:root {
    --brand: #100f48;
    --accent: #e8a317;
    --leaf: #2e7d5b;
    --ink: #1b1f3b;
    --muted: #565d7a;
    --paper: #f5f7fb;
    --line: #d9deea;
    --white: #ffffff;
    --hero-bg: #f5f7fb;
    --font-display: "Newsreader", Georgia, "Times New Roman", serif;
    --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: clamp(1rem, 4vw, 2rem);
    --maxw: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--brand); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: .5rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-small { min-height: 2.5rem; padding: .4rem 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-secondary, .btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-secondary:hover, .btn-outline:hover { background: var(--brand); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #000; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.monogram { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .4rem; border-radius: .5rem; background: var(--brand); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.15; color: var(--brand); }

.menu-btn { font: inherit; font-weight: 700; min-height: 2.75rem; padding: .4rem 1rem; border: 2px solid var(--brand); background: transparent; color: var(--brand); border-radius: .5rem; cursor: pointer; }

.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; flex-direction: column; gap: 1rem; }
.nav.is-open { display: flex; }
.nav ul { display: flex; flex-direction: column; }
.nav li a { display: block; padding: .65rem 0; text-decoration: none; font-weight: 500; }
.nav li a:hover { color: var(--leaf); }
.langs { flex-direction: row !important; gap: .25rem; }
.langs li a { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .4rem; font-size: .85rem; font-weight: 700; }
.langs li a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Hero */
.hero { background: var(--hero-bg, var(--paper)); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero h1 { font-size: clamp(1.75rem, 5vw, 3.1rem); font-weight: 600; max-width: 24ch; margin-bottom: .5em; color: var(--brand); }
.hero-motto { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--leaf); margin-bottom: 1em; }
.hero-intro { max-width: 60ch; color: var(--muted); }
.quick-contact { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.quick-contact a { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .45rem .95rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; transition: border-color .15s, color .15s; }
.quick-contact a:hover { border-color: var(--brand); color: var(--brand); }
.quick-contact svg { flex: none; color: var(--brand); }

.hero-visual { position: relative; display: flex; align-items: flex-end; min-height: 15rem; border-radius: .75rem; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,15,72,.06); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,15,72,.85) 0%, rgba(16,15,72,.3) 55%, rgba(16,15,72,0) 100%); }
.motto-words { position: relative; z-index: 1; width: 100%; padding: 1.5rem; display: grid; gap: .35rem; }
.motto-words li { color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; padding-left: 1rem; border-left: .45rem solid var(--accent); }
.motto-words li:nth-child(2) { border-color: var(--brand); }
.motto-words li:nth-child(3) { border-color: var(--leaf); }
.has-photo .motto-words li { color: #fff; }
.has-photo .motto-words li:nth-child(2) { border-color: #fff; }
.has-photo .motto-words li:nth-child(3) { border-color: #6fd1a5; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); color: var(--brand); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.two-col { display: grid; gap: 1.5rem 3rem; }

.pillars { background: var(--white); }
.levels { background: var(--paper); }
.pillar-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.pillar { border-top: 4px solid var(--accent); padding-top: 1rem; }
.pillar:nth-child(2) { border-color: var(--brand); }
.pillar:nth-child(3) { border-color: var(--leaf); }
.pillar h3 { font-size: 1.4rem; margin-bottom: .3em; }
.pillar p { color: var(--muted); }

.steps { display: grid; gap: 1rem; }
.step { border-left: 4px solid var(--brand); background: var(--white); box-shadow: 0 1px 2px rgba(16,15,72,.06); padding: 1.25rem 1.25rem 1rem; border-radius: 0 .5rem .5rem 0; }
.step:nth-child(2) { border-color: var(--accent); }
.step:nth-child(3) { border-color: var(--leaf); }
.step h3 { font-size: 1.35rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }

.prose { max-width: 62ch; }
.prose p { color: var(--ink); }

.system { background: var(--paper); }
.features { display: grid; border-top: 1px solid var(--line); align-content: start; }
.features li { display: grid; gap: .1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.features strong { color: var(--brand); font-size: 1.05rem; }
.features span { color: var(--muted); font-size: .98rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }

.contact { background: var(--white); }
address { font-style: normal; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list .ico { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--brand); }
.contact-list .lbl { display: block; font-size: .85rem; color: var(--muted); line-height: 1.3; }
.contact-list .val { display: block; font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.4; }
.contact-list a.val:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.map { width: 100%; min-height: 18rem; height: 100%; border: 0; border-radius: .75rem; background: var(--line); }

.foot { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.social { display: flex; flex-wrap: wrap; gap: 1rem; }
.social a { color: var(--brand); text-underline-offset: 3px; }

/* Small phones */
@media (max-width: 30rem) {
    body { font-size: 1rem; }
    .actions .btn { width: 100%; }
    .brand-name { font-size: .95rem; }
    .motto-words { padding: 1rem; }
    .hero-visual { min-height: 12rem; }
}

/* Tablet */
@media (min-width: 40rem) {
    .pillar-grid, .steps { grid-template-columns: repeat(3, 1fr); }
    .steps { align-items: end; }
    .step:nth-child(1) { padding-bottom: 1rem; }
    .step:nth-child(2) { padding-block: 2rem 1.5rem; }
    .step:nth-child(3) { padding-block: 3rem 2rem; }
}

/* Desktop */
@media (min-width: 60rem) {
    .menu-btn { display: none; }
    .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.5rem; padding: 0; border: 0; background: transparent; }
    .nav ul { flex-direction: row; gap: 1.25rem; }
    .nav li a { padding: .4rem 0; }
    .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: stretch; gap: 3rem; }
    .hero-visual { min-height: 26rem; }
    .two-col { grid-template-columns: 1fr 1.2fr; }
    .system .two-col { grid-template-columns: 1fr 1fr; }
    .contact .two-col { grid-template-columns: 1fr 1.3fr; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

@media print {
    .top, .actions, .menu-btn { display: none; }
    .hero, .system, .foot, .levels { background: #fff; }
}
