/* JCA — Julien Charles André — New Design */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Raleway:wght@300;400;500;600&display=swap");

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

:root {
  --black: #1a1a1a;
  --white: #fff;
  --gray: #888;
  --light: #f5f5f0;
  --border: #e8e8e8;
  --gold: #b8963e;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--black);
  background: var(--white);
}

a { text-decoration: none; color: inherit; transition: opacity .2s, color .2s; }
img { max-width: 100%; height: auto; display: block; }

/* -----------------------------------------------  NAV  */
nav.jca-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background .3s, border-color .3s;
}

.jca-logo {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  letter-spacing: .2em;
  color: var(--black);
  text-transform: uppercase;
  transition: color .3s;
}

.jca-nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.jca-nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--black);
  transition: color .2s, opacity .2s;
}

.jca-nav-links a:hover { color: var(--gold); }

/* Transparent nav for homepage hero */
body.page-home nav.jca-nav {
  background: transparent;
  border-bottom-color: transparent;
}
body.page-home nav.jca-nav .jca-logo,
body.page-home nav.jca-nav .jca-nav-links a { color: #fff; }
body.page-home nav.jca-nav .jca-hamburger span { background: #fff; }

body.page-home nav.jca-nav.scrolled {
  background: var(--white);
  border-bottom-color: var(--border);
}
body.page-home nav.jca-nav.scrolled .jca-logo,
body.page-home nav.jca-nav.scrolled .jca-nav-links a { color: var(--black); }
body.page-home nav.jca-nav.scrolled .jca-hamburger span { background: var(--black); }

/* Hamburger */
.jca-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.jca-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all .3s;
}

/* Mobile drawer */
.jca-mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 48px 28px;
  z-index: 999;
}
.jca-mobile-nav.open { display: block; }
.jca-mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--border);
}
.jca-mobile-nav a:last-child { border-bottom: none; }

/* -----------------------------------------------  HERO  */
.jca-hero {
  height: auto;
  aspect-ratio: 1305 / 527;
  min-height: 40vh;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.jca-hero picture {
  display: block;
  width: 100%;
  height: 100%;
}

.jca-hero-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.jca-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.45) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}


.jca-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.6);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.jca-hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.45);
  animation: jca-line 1.8s ease-in-out infinite;
}
@keyframes jca-line {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* -----------------------------------------------  SELECTED WORKS (homepage)  */
.jca-selected {
  padding: 48px 48px 80px;
  background: var(--white);
}

.jca-section-label {
  text-align: center;
  margin-bottom: 48px;
}
.jca-section-label h2 {
  font-family: "Raleway", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.jca-section-label h2::before,
.jca-section-label h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border);
}

.jca-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: 1400px;
  margin: 0 auto 48px;
}

.jca-work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.jca-work-card picture,
.jca-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
  display: block;
}

.jca-work-card:hover picture img,
.jca-work-card:hover img { transform: scale(1.06); }

.jca-work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s;
}
.jca-work-card:hover .jca-work-card-overlay {
  opacity: 1;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}

.jca-view-all {
  text-align: center;
}
.jca-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}
.jca-link-arrow:hover { opacity: .5; }

/* -----------------------------------------------  PAGE HEADER (inner pages)  */
.jca-page-header {
  padding: calc(var(--nav-h) + 48px) 48px 40px;
  border-bottom: 1px solid var(--border);
}

.jca-page-header h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: .04em;
}

.jca-page-header p {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
}

/* -----------------------------------------------  GALLERY PAGE  */
.jca-gallery {
  padding: 36px 48px 80px;
}

.jca-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 32px;
  list-style: none;
}

.jca-filter-bar li a {
  display: inline-block;
  padding: 6px 18px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1.5px solid transparent;
  transition: all .2s;
}
.jca-filter-bar li a:hover,
.jca-filter-bar li a.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.portfolio-box {
  position: relative;
}

.portfolio-box .item {
  width: 25%;
  padding: 2px;
  float: left;
  overflow: hidden;
}
.portfolio-box .item .project-gal {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.portfolio-box .item .project-gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.portfolio-box .item:hover .project-gal img { transform: scale(1.05); }

.portfolio-box .item .hover-box {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.55);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}
.portfolio-box .item:hover .hover-box { opacity: 1; }
.portfolio-box .item .hover-box span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 2px;
}

/* -----------------------------------------------  ABOUT PAGE  */
.jca-about {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.jca-about img {
  width: 100%;
  height: auto;
  margin-bottom: 36px;
}

.jca-about p {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 22px;
}

.jca-about-split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
  margin: 28px 0;
}
.jca-about-split img { margin-bottom: 0; }

.jca-blockquote {
  border-left: 2px solid var(--black);
  padding: 22px 30px;
  margin: 36px 0;
  background: var(--light);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.jca-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  font-family: "Raleway", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--black);
  transition: all .25s;
}
.jca-btn:hover { background: var(--black); color: var(--white); }


/* -----------------------------------------------  CONTACT PAGE  */
.jca-contact {
  max-width: 580px;
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.jca-contact h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}
.jca-contact .jca-contact-intro {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 40px;
}

.jca-field {
  margin-bottom: 28px;
}
.jca-field label {
  display: block;
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.jca-field input,
.jca-field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  color: var(--black);
  outline: none;
  transition: border-color .2s;
}
.jca-field input:focus,
.jca-field textarea:focus { border-bottom-color: var(--black); }
.jca-field textarea { height: 90px; resize: none; }
.jca-field-error {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .04em;
  color: #a0522d;
  min-height: 16px;
}

/* -----------------------------------------------  EVENTS PAGE  */
.jca-events {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 48px 100px;
}

.jca-event-card {
  display: flex;
  flex-direction: column;
}

.jca-event-header {
  margin-bottom: 40px;
}

.jca-event-label {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.jca-event-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--black);
  margin-bottom: 24px;
}

.jca-event-rule {
  width: 40px;
  height: 1px;
  background: var(--black);
}

.jca-event-details {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jca-event-detail-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: baseline;
}

.jca-event-detail-key {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}

.jca-event-detail-val {
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
}

.jca-event-desc {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.jca-event-note {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 36px;
  letter-spacing: .02em;
}

/* -----------------------------------------------  HOMEPAGE EVENT BANNER  */
.jca-event-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: .08em;
}
.jca-event-banner a {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.jca-event-banner a:hover { border-bottom-color: var(--white); }
.jca-event-banner strong {
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10px;
  margin-right: 12px;
  color: var(--gold);
}

@media (max-width: 860px) {
  .jca-events { padding: 48px 20px 64px; }
  .jca-event-title { font-size: 28px; }
  .jca-event-detail-row { grid-template-columns: 54px 1fr; gap: 14px; }
}

/* -----------------------------------------------  FOOTER  */
footer.jca-footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--gray);
}
footer.jca-footer a { color: var(--gray); }
footer.jca-footer a:hover { color: var(--black); }

/* -----------------------------------------------  ARTWORK COMPAT (converted pages)  */
section.page-banner-section {
  padding: calc(var(--nav-h) + 40px) 48px 32px;
  border-bottom: 1px solid var(--border);
}
section.page-banner-section h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  color: var(--black);
  margin: 0 0 6px;
}
section.page-banner-section p {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
}

section.single-project-section.jca-artwork-compat {
  padding: 48px 48px 80px;
  background: var(--white);
  max-width: 1280px;
  margin: 0 auto;
}
section.single-project-section.jca-artwork-compat .single-content { max-width: 100%; }
section.single-project-section.jca-artwork-compat img {
  width: 100%;
  height: auto;
  margin-bottom: 3px;
  display: block;
}
section.single-project-section.jca-artwork-compat .project-content {
  padding: 0 0 0 40px;
}
section.single-project-section.jca-artwork-compat .project-content h2 {
  font-family: "Raleway", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 20px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
section.single-project-section.jca-artwork-compat .project-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
section.single-project-section.jca-artwork-compat .project-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0 0 4px;
}
section.single-project-section.jca-artwork-compat .project-content a.btn-default {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 32px;
  font-family: "Raleway", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--black);
  background: transparent;
  transition: all .25s;
}
section.single-project-section.jca-artwork-compat .project-content a.btn-default:hover {
  background: var(--black);
  color: var(--white);
}
section.single-project-section.jca-artwork-compat ul.social-icons {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}
section.single-project-section.jca-artwork-compat ul.social-icons li a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray);
  transition: all .2s;
}
section.single-project-section.jca-artwork-compat ul.social-icons li a:hover {
  color: var(--black);
  border-color: var(--black);
}

/* Bootstrap row in artwork pages */
section.single-project-section.jca-artwork-compat .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
section.single-project-section.jca-artwork-compat .col-md-7 {
  width: 58.33%;
  padding: 0 12px;
}
section.single-project-section.jca-artwork-compat .col-md-5 {
  width: 41.67%;
  padding: 0 12px;
}
section.single-project-section.jca-artwork-compat .col-sm-6 {
  width: 50%;
  padding: 0 6px;
}

@media (max-width: 860px) {
  section.page-banner-section { padding: calc(var(--nav-h) + 28px) 24px 24px; }
  section.single-project-section.jca-artwork-compat { padding: 32px 24px 60px; }
  section.single-project-section.jca-artwork-compat .project-content { padding: 28px 0 0; }
  section.single-project-section.jca-artwork-compat .col-md-7,
  section.single-project-section.jca-artwork-compat .col-md-5 { width: 100%; }
}
@media (max-width: 600px) {
  section.single-project-section.jca-artwork-compat .col-sm-6 { width: 100%; }
}

/* -----------------------------------------------  RESPONSIVE  */
@media (max-width: 1100px) {
  .portfolio-box .item { width: 33.333%; }
  .jca-works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .jca-nav-links { display: none; }
  .jca-hamburger { display: flex; }
  .jca-hero-scroll { display: none; }
  .jca-hero { height: auto; aspect-ratio: 1305 / 527; min-height: 200px; }
  .jca-hero-img { object-fit: fill; }
  nav.jca-nav, .jca-mobile-nav { padding-left: 20px; padding-right: 20px; }
  .jca-selected { padding: 48px 16px; }
  .jca-gallery { padding: 20px 16px 48px; }
  .jca-page-header { padding: calc(var(--nav-h) + 28px) 20px 24px; }
  .jca-about { padding: 36px 20px 56px; }
  .jca-about-split { grid-template-columns: 1fr; }
  .jca-artwork { padding: calc(var(--nav-h) + 28px) 20px 56px; }
  .jca-artwork-layout { grid-template-columns: 1fr; gap: 28px; }
  .jca-contact { padding: 36px 20px 56px; }
  footer.jca-footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
  .portfolio-box .item { width: 50%; }
  .jca-section-label { margin-bottom: 28px; }
}

@media (max-width: 600px) {
  /* 2-col grid on mobile for selected works */
  .jca-works-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .jca-artwork-row { grid-template-columns: 1fr; }
  /* filter bar wraps cleanly */
  .jca-filter-bar { gap: 0; }
  .jca-filter-bar li a { padding: 5px 12px; font-size: 10px; }
}
