/* moheet.ca — static rebuild of the 2016 BeTheme design */

@font-face { font-family: "Open Sans Condensed"; font-weight: 300; font-style: normal; font-display: swap; src: url(/assets/fonts/open-sans-condensed-300.woff2) format("woff2"); }
@font-face { font-family: "Open Sans Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/open-sans-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Arima Madurai"; font-weight: 300; font-style: normal; font-display: swap; src: url(/assets/fonts/arima-madurai-300.woff2) format("woff2"); }
@font-face { font-family: "Arima Madurai"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/arima-madurai-400.woff2) format("woff2"); }
@font-face { font-family: "Arima Madurai"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/arima-madurai-700.woff2) format("woff2"); }

:root {
  --bg: #e1d3b9;
  --panel: #f7f9fa;
  --text: #626262;
  --heading: #19222b;
  --theme: #8d856b;
  --link: #8d856b;
  --menu: #3c454e;
  --yellow: #f6dd2b;
  --footer-bg: #141b22;
  --footer-text: #8a8d91;
  --footer-link: #d0d1d3;
  --container: 1102px;
  --sans: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --serif: "Arima Madurai", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 15px/21px var(--sans);
  letter-spacing: 1px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #9c9279; }
p { margin: 0 0 15px; }
h1, h2, h3, h4 { color: var(--heading); font-family: var(--serif); font-weight: 400; margin: 0 0 15px; letter-spacing: normal; }
h2 { font-size: 32px; line-height: 36px; }
h3 { font-size: 24px; line-height: 36px; }
h4 { font-size: 20px; line-height: 30px; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 10px 16px; color: var(--heading); }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--panel); border-bottom: 1px solid #eef0f1; }
.site-header .container { display: flex; align-items: stretch; height: 90px; }
.logo {
  display: flex; align-items: center;
  padding: 0 30px 0 20px; margin-right: 0;
  border-right: 1px solid #eceeef;
  font: 300 32px/60px var(--serif); letter-spacing: -2px; color: var(--heading); white-space: nowrap;
}
.logo:hover { color: var(--heading); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.main-nav a {
  position: relative; display: flex; align-items: center; height: 100%;
  padding: 0 30px; font-size: 18px; color: var(--menu); white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px;
  background: var(--theme); transform: scaleX(0); transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { background: #f2f2f2; }
.main-nav a.nav-portfolio { color: var(--yellow); }
.menu-toggle { display: none; }

@media (max-width: 959px) {
  .site-header .container { height: 60px; justify-content: space-between; width: calc(100% - 20px); }
  .logo { border-right: 0; padding: 0 10px; font-size: 26px; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 50px; background: none; border: 0; cursor: pointer; color: var(--theme); padding: 0;
  }
  .menu-toggle svg { width: 24px; height: 24px; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid #e3e3e3; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; height: auto; padding: 5px 0; }
  .main-nav a { height: auto; padding: 12px 20px; font-size: 17px; }
  .main-nav a::after { display: none; }
}

/* ---------- Page title band ---------- */
.subheader { background: var(--panel); border-bottom: 1px solid #afb5b9; padding: 80px 0 100px; text-align: center; }
.subheader h1 { margin: 0; font: 300 52px/52px var(--sans); color: #2d3133; letter-spacing: normal; }
@media (max-width: 767px) {
  .subheader { padding: 50px 0 60px; }
  .subheader h1 { font-size: 38px; line-height: 42px; }
}

.content { padding: 30px 0 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); text-align: center; }
.site-footer .widgets { padding: 65px 0 50px; }
.site-footer h4 { color: #fff; margin-bottom: 35px; }
.site-footer p { margin: 0 0 30px; }
.site-footer a { color: var(--footer-link); }
.social { display: flex; gap: 22px; justify-content: center; }
.social a { display: block; width: 35px; height: 35px; color: #4d5258; --glyph: var(--footer-bg); transition: color .2s; }
.social a:hover { color: #6a7078; }
.social svg { width: 100%; height: 100%; display: block; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .08); padding: 31px 0; }

.back-to-top {
  position: fixed; right: 65px; bottom: 30px; z-index: 40;
  width: 47px; height: 47px; display: flex; align-items: center; justify-content: center;
  background: #f7f7f7; border: 2px solid #000; color: #000;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .back-to-top { right: 20px; bottom: 20px; width: 40px; height: 40px; } }

/* ---------- Galleries ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 270px); gap: 10px;
  justify-content: center; margin: 0 auto;
}
.gallery a {
  display: block; aspect-ratio: 270 / 230; overflow: hidden; position: relative;
  background: #fff; box-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .3s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 879px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 270px)); }
}

/* ---------- Portfolio index ---------- */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 352px));
  column-gap: 12px; row-gap: 60px; justify-content: center; padding: 10px 0 10px;
}
.hoverbox {
  position: relative; display: block; height: 250px; overflow: hidden; border-radius: 4px;
  background-color: #fff; background-repeat: no-repeat; background-position: left top; background-size: 100% auto;
}
.hoverbox .panel {
  position: absolute; left: 0; right: 0; top: 210px; height: 250px; padding: 0 10px;
  background: rgba(246, 221, 43, .9); border-radius: 4px; text-align: center; transition: top .4s ease;
}
.hoverbox h2 { margin: 0; color: #fff; font: 400 20px/40px var(--serif); }
.hoverbox .panel p { color: #fff; font-size: 16px; line-height: 22px; margin-top: 30px; opacity: 0; transition: opacity .3s .1s; }
.hoverbox:hover .panel, .hoverbox:focus-visible .panel { top: 0; padding-top: 60px; }
.hoverbox:hover .panel p, .hoverbox:focus-visible .panel p { opacity: 1; }
@media (max-width: 959px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 352px)); row-gap: 30px; } }
@media (max-width: 599px) { .portfolio-grid { grid-template-columns: minmax(0, 352px); } }

/* ---------- About ---------- */
.about-card { background: var(--panel); padding: 50px 10px 30px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols + .cols { margin-top: 40px; }
.cols .span-2 { grid-column: span 2; }
.cols .col-2 { grid-column: 2; }
.cols .col-3 { grid-column: 3; }
.about-card, .about-more { padding-inline: 21px; }
.intro { padding: 40px; font-family: var(--sans); }
.intro h2, .intro h3 { font-family: var(--sans); font-weight: 300; line-height: 36px; margin-bottom: 15px; }
.intro .name { font-weight: 700; margin-left: 55px; }
.intro h3 { margin-left: 55px; }
.justify { text-align: justify; }
.about-more { padding-top: 40px; padding-bottom: 40px; }
.about-more h3 { text-align: center; margin: 0 auto 50px; max-width: 980px; color: var(--heading); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 767px) {
  .cols, .two-cols { grid-template-columns: 1fr; }
  .cols .span-2, .cols .col-2, .cols .col-3 { grid-column: auto; }
  .cols .empty { display: none; }
  .intro { padding: 30px 20px; }
  .about-card { padding-inline: 20px; }
}

/* ---------- Contact / Instagram ---------- */
.split { display: grid; grid-template-columns: 1fr 3fr; gap: 20px; padding: 10px 0 40px; }
.split h3 { font-size: 24px; line-height: 36px; }
.note-card { background: var(--panel); border-radius: 4px; padding: 40px; }
.note-card p { font-size: 18px; line-height: 27px; }
.note-card p:last-child { margin-bottom: 0; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px; border: 2px solid var(--theme); color: var(--theme);
  font-size: 17px; letter-spacing: 1px; transition: background .2s, color .2s;
}
.button:hover { background: var(--theme); color: #fff; }
.button svg { width: 20px; height: 20px; }
.centered { text-align: center; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } .note-card { padding: 30px 20px; } }

/* ---------- Events / posts ---------- */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-card { background: #fff; display: flex; flex-direction: column; }
.post-card .photo { display: block; height: 224px; overflow: hidden; }
.post-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s; }
.post-card .photo:hover img { transform: scale(1.03); }
.post-card h2 { padding: 20px 20px 0; margin: 0 0 15px; }
.post-card h2 a { color: var(--heading); }
.post-card .post-footer { margin-top: auto; background: rgba(0, 0, 0, .02); padding: 7px 15px; text-align: right; color: #a8a8a8; }
.post-card .post-footer a { color: var(--theme); }
.featured { margin: 0 auto 40px; }
@media (max-width: 767px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .9); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); width: auto; height: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .6); background: #fff; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; opacity: .75; }
.lb button:hover, .lb button:focus-visible { opacity: 1; }
.lb button svg { width: 32px; height: 32px; display: block; }
.lb .lb-close { top: 10px; right: 10px; }
.lb .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }
@media (max-width: 767px) {
  .lb img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 4px; transform: none; }
}
body.lb-open { overflow: hidden; }
