/* ===== Colours - change these to restyle the whole site ===== */
:root {
  --bg: #0e0614;          /* near-black purple */
  --bg-alt: #170a22;
  --card: #22102f;
  --border: #3a1d52;
  --text: #ffffff;        /* logo white */
  --muted: #c4b3d4;
  --accent: #b77bff;      /* glowing purple for highlights */
  --btn: #7a2cc4;         /* button purple */
  --btn-hover: #9340e0;
  --radius: 14px;
  --display: "Pirata One", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-family: var(--display); font-weight: 400; letter-spacing: 1px; font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
p + p { margin-top: .9rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); margin-bottom: 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--btn);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--btn);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 18px rgba(147,64,224,.45);
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: 0 0 26px rgba(183,123,255,.6); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--text); border-color: #fff; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-small { padding: 8px 18px; font-size: .9rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: rgba(14,6,20,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
}
.logo img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; white-space: nowrap; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--accent); }
.lang { margin-left: auto; display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.lang a {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .85rem;
}
.lang a:hover { color: var(--text); }
.lang a.active { background: var(--card); color: var(--text); }
.lang img { width: 20px; height: 13px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  padding: 70px 20px 100px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(122,44,196,.45), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(183,123,255,.15), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(183,123,255,.15), transparent 40%),
    var(--bg);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-logo {
  width: min(320px, 70vw); height: auto;
  margin: 0 auto 2rem;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(147,64,224,.55), 0 0 0 4px rgba(255,255,255,.08);
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 3px; font-weight: 800; font-size: .85rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 1.2rem; }
.hero h1 span { font-family: var(--display); color: var(--accent); font-weight: 400; letter-spacing: 2px; }
.lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== About ===== */
.about-text { max-width: 760px; font-size: 1.1rem; color: var(--muted); }


/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--card); padding: 28px; border-radius: var(--radius); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.card p { color: var(--muted); }

/* ===== Service blocks ===== */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--text); text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 0 30px rgba(147,64,224,.45); }
.service img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.service-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: 1px; }
.service p { color: var(--muted); margin-bottom: 1rem; }
.service ul { list-style: none; display: grid; gap: 6px; margin-bottom: 1.4rem; }
.service li::before { content: "✦ "; color: var(--accent); }
.service-link { margin-top: auto; color: var(--accent); font-weight: 800; }

/* ===== Gallery tabs ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tab {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 10px 20px; border-radius: 999px;
  background: transparent; color: var(--text); border: 2px solid var(--border);
}
.tab:hover { border-color: var(--accent); }
.tab.active { background: var(--btn); border-color: var(--btn); box-shadow: 0 0 18px rgba(147,64,224,.45); }
.gallery[hidden] { display: none; }

/* Sub-tabs (e.g. Painting > Miniatures / Terrain) */
.subtabs { margin: -10px 0 24px; padding-left: 14px; border-left: 3px solid var(--btn); gap: 8px; }
.subtabs[hidden] { display: none; }
.subtab {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 6px 16px; border-radius: 999px;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.subtab:hover { color: var(--text); border-color: var(--accent); }
.subtab.active { background: var(--card); color: var(--text); border-color: var(--accent); }

/* Round thumbnail at the start of each gallery tab */
.tab, .subtab { display: inline-flex; align-items: center; gap: 12px; }
.tab { padding: 6px 22px 6px 6px; }
.subtab { padding: 5px 18px 5px 5px; }
.tab-thumb {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.subtab .tab-thumb { width: 42px; height: 42px; }
.tab.active .tab-thumb, .subtab.active .tab-thumb { border-color: rgba(255,255,255,.7); }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--card); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  font-weight: 600; font-size: .95rem;
}

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { background: var(--card); padding: 28px; border-radius: var(--radius); }
.steps span {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--btn); color: #fff; font-weight: 800;
  margin-bottom: 1rem;
}
.steps p { color: var(--muted); }

/* ===== Contact form ===== */
.fb-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 1rem; padding: 12px 20px;
  background: #1877f2; color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 999px;
}
.fb-link:hover { background: #0f65d6; }
.form { background: var(--card); padding: 28px; border-radius: var(--radius); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form button { justify-self: start; }
.form-status { font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff6b6b; }

/* ===== Footer ===== */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 28px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; border-radius: var(--radius); }
.lightbox-caption { margin-top: 12px; color: var(--text); }
.lightbox-close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* ===== Mobile ===== */
/* Menu folds into the ☰ button before it gets crowded */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 80px 16px; }
}

/* On wide screens the nav already pushes the language switch right */
@media (min-width: 1081px) { .lang { margin-left: 0; } }
/* Very small phones: hide the wordmark next to the logo */
@media (max-width: 480px) { .logo { font-size: 0; gap: 0; } .lang a { padding: 5px 8px; } }

/* ===== Footer version (under the copyright, bottom-left) ===== */
.footer-left .version { font-size: .8rem; opacity: .7; margin-top: 2px; }

/* ===== Footer disclaimer ===== */
.disclaimer {
  flex-basis: 100%;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: .85rem; font-style: italic;
}
.site-footer p + p { margin-top: 0; }

/* Form hints */
.form .hint { font-weight: 400; color: var(--muted); opacity: .8; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: -6px; }
