/* Maegis Arts — static rebuild of www.maegisarts.com (migrated off Duda) */

@font-face {
  font-family: 'century-gothic_ufonts.com_';
  src: url('/fonts/century-gothic-ufonts.woff2') format('woff2'), url('/fonts/century-gothic-ufonts.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Century Gothic Italic';
  src: url('/fonts/century-gothic-italic.woff2') format('woff2'), url('/fonts/century-gothic-italic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'candara';
  src: url('/fonts/candara.woff2') format('woff2'), url('/fonts/candara.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Century Gothic';
  src: url('/fonts/century-gothic.woff2') format('woff2'), url('/fonts/century-gothic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #fff;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header nav ---------- */
.site-header {
  background: #000;
  padding: 10px 20px;
}
@media (min-width: 768px) {
  .site-header { padding: 49px 30px 10px; }
}
.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Century Gothic Italic', 'Century Gothic', Arial, sans-serif;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 12px 15px;
  transition: color .2s ease-out;
  white-space: nowrap;
}
.site-nav a:hover { color: #9a9a9a; }

/* Burger menu (mobile only): opens a right-side slide-in sidebar,
   overlaying the page rather than displacing it */
.nav-burger { display: none; }
.nav-overlay { display: none; }
@media (max-width: 767px) {
  .site-header {
    display: flex;
    justify-content: flex-end;
  }
  .nav-burger {
    display: block;
    background: none;
    border: 0;
    padding: 10px 6px;
    cursor: pointer;
    position: relative;
    z-index: 120;
  }
  .nav-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: transform .2s ease-out, opacity .2s ease-out;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(75vw, 300px);
    background: #0d0d0d;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 72px 12px 20px;
    transform: translateX(100%);
    transition: transform .25s ease-out;
    z-index: 110;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a {
    font-size: 16px;
    padding: 14px 15px;
    width: 100%;
  }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-out;
    z-index: 100;
  }
  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Hero rows (visibility per breakpoint, as on live site) ----------
   min-width-only cascade: exactly one variant matches at every width,
   including fractional widths from browser zoom / OS display scaling. */
.hero-mobile  { display: block; background: #000; padding: 40px 0 60px; }
.hero-tablet  { display: none; background: #000; padding: 60px 0; }
.hero-desktop { display: none; background: #000; }

@media (min-width: 768px) {
  .hero-mobile  { display: none; }
  .hero-tablet  { display: block; }
}
@media (min-width: 1024px) {
  .hero-tablet  { display: none; }
  .hero-desktop { display: block; }
}

.hero-mobile .mobile-logo {
  width: 68%;
  margin: 0 auto;
}

/* ---------- Full-width page images ---------- */
.page-rows { background: #000; }
.page-rows picture { display: block; }
.page-rows img { width: 100%; }

/* ---------- Contact section ---------- */
.contact-section {
  background: #000;
  padding: 261px 16px 95px;
}
@media (max-width: 767px) {
  .contact-section { padding: 120px 16px 80px; }
}
.contact-inner {
  width: calc(100% - 33px);
  max-width: 872px;
  margin: 0 auto 150px;
  text-align: left;
}
/* Contact heading — live site shows centered small-caps "Contact us" (en/fr)
   and large centered Chinese titles (zh/zh-tw) */
.contact-inner .form-title-live,
.faq-inner .form-title-live {
  color: #fff;
  font-family: 'candara', Candara, 'Century Gothic', Arial, sans-serif;
  font-variant: small-caps;
  font-weight: 400;
  font-size: 44px;
  text-align: center;
  margin-bottom: 52px;
}
.contact-inner .form-title-cn {
  color: #fff;
  font-family: 'candara', Candara, 'Century Gothic', Arial, sans-serif;
  font-weight: 700;
  font-size: 48px;
  text-align: center;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .contact-inner .form-title-live,
  .faq-inner .form-title-live { font-size: 34px; }
  .contact-inner .form-title-cn { font-size: 38px; }
}
.contact-form .form-field { margin-bottom: 14px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  border: 0;
  background: #fff;
  color: #000;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-submit-wrap {
  width: 284px;
  max-width: 100%;
  height: 43px;
  margin: 28px auto 0;
  background: #000;
  border: 1px solid #fff;
  border-radius: 12px;
}
.contact-form input[type="submit"] {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
}
.contact-form .form-submit-wrap:hover { background: #1a1a1a; }
.form-success, .form-error {
  display: none;
  margin-top: 18px;
  font-family: 'Century Gothic Italic', 'Century Gothic', Arial, sans-serif;
  text-align: left;
  font-size: 15px;
}
.form-success { color: #fff; }
.form-error { color: #c00000; }

/* ---------- FAQ ---------- */
.faq-section { background: #000; padding: 40px 16px 90px; }
.faq-inner { max-width: 872px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.faq-list details:first-of-type { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 17px;
  padding: 20px 36px 20px 2px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  transition: transform .2s ease-out;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  padding: 0 2px 22px;
  max-width: 760px;
}
@media (max-width: 767px) {
  .faq-list summary { font-size: 15px; }
}

/* ---------- Tablet-only image strip (as on live site) ---------- */
.tablet-strip {
  display: none;
  background: #000 url('/assets/img/pic8.jpg') no-repeat 50% 100%;
  background-size: contain;
  min-height: 420px;
}
@media (min-width: 768px)  { .tablet-strip { display: block; } }
@media (min-width: 1024px) { .tablet-strip { display: none; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 26px 16px 34px;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 13px;
}

/* ---------- Text subpages (about, fine-art, instruments, faq, contact) ---------- */
.page-main {
  background: #000;
  padding: 30px 16px 90px;
}
.page-inner {
  max-width: 872px;
  margin: 0 auto;
}
.page-title {
  color: #fff;
  font-family: 'candara', Candara, 'Century Gothic', Arial, sans-serif;
  font-variant: small-caps;
  font-weight: 400;
  font-size: 44px;
  text-align: center;
  margin: 40px 0 14px;
}
.page-title-cn {
  color: #fff;
  font-family: 'candara', Candara, 'Century Gothic', Arial, sans-serif;
  font-weight: 700;
  font-size: 44px;
  text-align: center;
  margin: 40px 0 14px;
}
.page-lead {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.text-section { margin: 0 0 58px; }
.text-section h2 {
  color: #fff;
  font-family: 'candara', Candara, 'Century Gothic', Arial, sans-serif;
  font-variant: small-caps;
  font-weight: 400;
  font-size: 27px;
  margin-bottom: 18px;
}
.text-section h3 {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 26px 0 10px;
}
.text-section p, .text-section li {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
}
.text-section p { margin-bottom: 14px; }
.text-section ul { list-style: none; padding: 0; }
.text-section ul li {
  padding: 7px 0 7px 22px;
  position: relative;
}
.text-section ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 22px;
  line-height: 1.1;
}
.text-section a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.text-section a:hover { color: #9a9a9a; }
.section-rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0 0 58px;
}

/* Team */
.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px 30px;
  margin-top: 8px;
}
.team-list .team-name {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
}
.team-list .team-role {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 6px;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
}

/* Works gallery */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px 26px;
  margin-top: 10px;
}
.works-grid figure { margin: 0; }
.works-grid img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.works-grid figcaption {
  color: rgba(255, 255, 255, 0.62);
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 13px;
  text-align: center;
  padding-top: 10px;
}
.artist-columns {
  columns: 2;
  column-gap: 40px;
  max-width: 560px;
}
@media (min-width: 600px) { .artist-columns { columns: 3; max-width: 760px; } }

/* Instruments imagery */
.instrument-figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 10px 0 20px;
}
@media (min-width: 700px) { .instrument-figures { grid-template-columns: 1fr 1fr; } }
.instrument-figures img { width: 100%; border: 1px solid rgba(255, 255, 255, 0.12); }

/* CTA */
.cta-row { text-align: center; margin: 26px 0 10px; }
.btn-outline {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 12px 40px;
  color: #fff;
  text-decoration: none;
  font-family: 'century-gothic_ufonts.com_', 'Century Gothic', Arial, sans-serif;
  font-size: 15px;
  transition: background .2s ease-out;
}
.btn-outline:hover { background: #1a1a1a; }

/* Standalone contact page: less vertical padding than homepage section */
.contact-section.standalone { padding: 40px 16px 60px; }

@media (max-width: 767px) {
  .page-title, .page-title-cn { font-size: 33px; }
  .page-lead { font-size: 15.5px; margin-bottom: 46px; }
  .text-section h2 { font-size: 23px; }
}
