/* Creative Masters – prototype stylesheet ("Dark premium" direction) */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --bg: #121418;
    --bg-alt: #181b20;
    --surface: #1f2329;
    --line: #2b3038;
    --text: #ece4dc;
    --muted: #a9a29b;
    --accent: #f2c4a0;
    --accent-strong: #f7d3b6;
    --accent-ink: #15171b;
    --radius: 6px;
    --container: 1200px;
    --header-h: 76px;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .9em;
}

/* Prototype ribbon */
.proto-ribbon {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--accent); color: var(--accent-ink);
    text-align: center; font-size: .82rem; font-weight: 600; padding: 6px 12px;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .9em 1.6em;
    border-radius: 3px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    border: 1px solid transparent; cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { border-color: rgba(236, 228, 220, .45); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(18, 20, 24, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .98rem; position: relative; }
.site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); content: ""; transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; right: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 32px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 20, 24, .94) 0%, rgba(18, 20, 24, .72) 45%, rgba(18, 20, 24, .25) 100%),
        linear-gradient(0deg, rgba(18, 20, 24, 1) 0%, rgba(18, 20, 24, 0) 35%),
        url("../img/hero.jpg") center / cover no-repeat;
    transform: scale(1.06);
    animation: hero-zoom 18s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-content { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: 56px; max-width: var(--container); }
.hero-content h1, .hero-content .lead, .hero-content .kicker, .hero-actions { max-width: 760px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d6cec6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.trust-strip { position: relative; border-top: 1px solid var(--line); background: rgba(18, 20, 24, .7); backdrop-filter: blur(6px); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 22px 24px 22px 0; display: flex; flex-direction: column; }
.trust-item + .trust-item { padding-left: 24px; border-left: 1px solid var(--line); }
.trust-item strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--accent); letter-spacing: .03em; }
.trust-item span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-intro { color: var(--muted); font-size: 1.12rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--bg); padding: 40px 32px; position: relative; transition: background .35s var(--ease); }
.service-card:hover { background: var(--surface); }
.service-num { position: absolute; top: 28px; right: 28px; font-family: var(--font-head); color: var(--line); font-size: 2.6rem; font-weight: 700; transition: color .35s var(--ease); }
.service-card:hover .service-num { color: var(--accent); }
.service-icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.service-card p { color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.about-text p { color: #cfc7bf; }
.value-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.value-list li { padding-left: 28px; position: relative; color: var(--muted); }
.value-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 14px; height: 2px; background: var(--accent); }
.value-list strong { color: var(--text); }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; object-position: center 80%; width: 100%; height: auto; }
.about-media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--accent); border-radius: var(--radius); z-index: -1; opacity: .5; }
.about-media { z-index: 0; }
.cert-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 96px; }
.cert-card { margin: 0; display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cert-card img { width: 150px; height: auto; background: #fff; padding: 12px; border-radius: 4px; flex-shrink: 0; }
.cert-card figcaption { display: flex; flex-direction: column; gap: 4px; }
.cert-card strong { font-family: var(--font-head); font-size: 1.4rem; }
.cert-card span { color: var(--muted); font-size: .95rem; }
.cert-card a { font-size: .92rem; font-weight: 600; }

/* References */
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: 16px; }
.ref-card-span2 { grid-column: span 2; }
.ref-card { position: relative; overflow: hidden; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); background: var(--surface); text-align: left; color: var(--text); font: inherit; }
.ref-card-wide { grid-column: span 2; grid-row: span 2; }
.ref-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ref-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 20, 24, .92) 0%, rgba(18, 20, 24, .1) 60%); transition: opacity .4s; }
.ref-card:hover img { transform: scale(1.05); }
.ref-meta { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.ref-tag { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.ref-title { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; font-weight: 600; }
.ref-card-wide .ref-title { font-size: 2.2rem; }

/* Reference dialog */
.ref-dialog { width: min(1100px, 94vw); max-height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); overflow: auto; }
.ref-dialog::backdrop { background: rgba(8, 9, 11, .82); backdrop-filter: blur(4px); }
.ref-dialog[open] { display: grid; grid-template-columns: 1.2fr 1fr; animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } }
.ref-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(18, 20, 24, .8); color: var(--text); font-size: 1.6rem; cursor: pointer; }
.ref-gallery { background: #0d0e11; display: flex; flex-direction: column; }
.ref-gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ref-thumbs { display: flex; gap: 8px; padding: 10px; }
.ref-thumbs button { width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; background: none; opacity: .6; }
.ref-thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.ref-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ref-body { padding: 40px 36px; }
.ref-dialog-text p { color: #cfc7bf; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; font-size: 1.15rem; }
.contact-label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--accent); }
.map-card {
    position: relative; display: block; height: 200px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); background: var(--surface);
}
.map-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(242, 196, 160, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 196, 160, .08) 1px, transparent 1px),
        linear-gradient(35deg, transparent 47%, rgba(242, 196, 160, .18) 48%, rgba(242, 196, 160, .18) 52%, transparent 53%),
        linear-gradient(-55deg, transparent 47%, rgba(242, 196, 160, .12) 48%, rgba(242, 196, 160, .12) 51%, transparent 52%);
    background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
}
.map-pin { position: absolute; left: 50%; top: 44%; width: 22px; height: 22px; margin: -22px 0 0 -11px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 8px rgba(242, 196, 160, .18); }
.map-label { position: absolute; left: 16px; bottom: 14px; color: var(--text); font-weight: 600; }
.map-card:hover .map-label { color: var(--accent); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.form-row { margin-bottom: 20px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
    width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--text);
    background: var(--bg); border: 1px solid var(--line); border-radius: 3px; transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .is-invalid { border-color: #e2725b; }
.contact-form label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 24px; font-weight: 400; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; }
.form-status.is-ok { color: var(--accent); }
.form-status.is-error { color: #e2725b; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 72px; color: var(--muted); font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { margin: 0; text-align: right; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg { animation: none; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
    .section { padding: 84px 0; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-media::before { display: none; }
    .ref-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
    .ref-card-wide { grid-column: span 2; grid-row: span 1; }
    .ref-dialog[open] { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-copy { text-align: left; }
}
@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .brand img { height: 42px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
        transform: translateY(-120%); transition: transform .35s var(--ease);
    }
    .site-nav.is-open { transform: none; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 16px; justify-content: center; }
    .site-header { background: rgba(18, 20, 24, .94); }
    .trust-inner { grid-template-columns: 1fr; }
    .trust-item, .trust-item + .trust-item { padding: 14px 0; border-left: 0; }
    .trust-item + .trust-item { border-top: 1px solid var(--line); }
    .service-grid { grid-template-columns: 1fr; }
    .ref-grid { grid-template-columns: 1fr; }
    .ref-card-wide, .ref-card-span2 { grid-column: span 1; }
    .cert-row { grid-template-columns: 1fr; margin-top: 64px; }
    .cert-card { flex-direction: column; align-items: flex-start; }
    .form-row-2 { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
}
