/* ============================================================
   Snape Art Conservation — stylesheet
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=amulya@700&f[]=synonym@400,500,600&display=swap');

:root {
  --bg: #1a1917;
  --bg-alt: #201e1b;
  --bg-card: #252220;
  --text: #efece5;
  --text-muted: #b3a99a;
  --border: rgba(239, 236, 229, 0.14);
  --accent: #9c8f7c;
  --accent-light: #c2b7a5;
  --font-head: 'Amulya', Georgia, 'Iowan Old Style', serif;
  --font-body: 'Synonym', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Synonym Regular is the base font for every piece of text on the site.
   Form controls and buttons don't inherit font-family by default in all
   browsers, so it's set explicitly here. Amulya Bold is reserved for
   h1/h2/h3 titles only (see below). */
button, input, textarea, select {
  font-family: var(--font-body);
  font-weight: 400;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 2px;
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 22px 24px;
}

/* Logo lockup — built from the site's own fonts (Amulya Bold for the
   wordmark, Synonym for everything else) so it always matches, and scales
   cleanly instead of relying on a fixed-resolution image. Name + sub stack
   on the left, a vertical divider separates them from the tagline on the
   right. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  line-height: 1.05;
}
.logo-main {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.logo-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text);
  margin-top: 2px;
}
.logo-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}
.logo-tagline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}
.logo-tagline span { white-space: nowrap; }

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
}
.header-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.header-contact a:hover { color: var(--accent-light); }
.header-contact svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 11px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-btn.active { background: var(--accent); color: var(--bg); }
.lang-btn:not(.active):hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  flex-shrink: 0;
  background: var(--text);
  border-radius: 2px;
}

.main-nav {
  border-top: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 13px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-image {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Sections ---------------- */
section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; }

/* ---------------- Intro ---------------- */
.intro-text { font-size: 1.05rem; }

/* ---------------- Carousel ---------------- */
.reel {
  position: relative;
}
.reel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-alt);
}
.reel-track img {
  scroll-snap-align: start;
  width: min(360px, 78vw);
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.reel-track img.reel-img-contain {
  object-fit: contain;
  background: var(--bg-card);
}
.reel-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.reel-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-nav button:hover { border-color: var(--accent); color: var(--accent-light); }

/* ---------------- Homepage hero simple + hero reel ---------------- */
.hero-simple { padding: 32px 0 16px; text-align: left; }
.hero-simple .hero-copy { max-width: 720px; }
.hero-simple .lead { font-size: 1.15rem; max-width: 56ch; }

/* Page headlines scale in lockstep with the logo wordmark, so titles read
   as the same size as the logo (and each other) at every breakpoint. */
.hero-simple h1,
.contact-info h1,
.section-head h1,
.about-body h1 { font-size: 2.8rem; }
.hero-title-name { text-transform: uppercase; letter-spacing: 0.08em; }

.hero-reel-section { padding: 0 0 64px; }
.reel--hero { border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.reel--hero .reel-track {
  gap: 0;
  padding-bottom: 0;
  scrollbar-width: none;
}
.reel--hero .reel-track::-webkit-scrollbar { display: none; }
.reel--hero .reel-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border: none;
  border-radius: 0;
}
.reel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(243, 237, 225, 0.35);
  background: rgba(26, 25, 23, 0.55);
  backdrop-filter: blur(2px);
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.reel-arrow:hover { background: rgba(26, 25, 23, 0.85); border-color: var(--accent); color: var(--accent-light); }
.reel-arrow-prev { left: 16px; }
.reel-arrow-next { right: 16px; }

@media (max-width: 600px) {
  .reel-arrow { width: 38px; height: 38px; font-size: 1.15rem; }
  .reel-arrow-prev { left: 8px; }
  .reel-arrow-next { right: 8px; }
}

/* ---------------- Services list (image left, text right) ---------------- */
.service-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.service-row:first-child { border-top: none; padding-top: 0; }
.service-row-image {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}
.service-row--no-image { grid-template-columns: 1fr; }
.service-row-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-row-image img.img-pos-down { object-position: center 75%; }
.service-row-image img.img-contain { object-fit: contain; background: var(--bg-card); }
.service-row-image img.img-pos-left { object-position: 0% center; }

.service-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--accent-light);
  margin: -2px 0 16px;
}
.service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.service-toggle:hover { background: rgba(193, 137, 63, 0.12); }
.service-toggle-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.service-toggle[aria-expanded="true"] .service-toggle-icon { transform: rotate(180deg); }
.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.service-toggle[aria-expanded="true"] + .service-details { max-height: 2000px; }
.service-details-inner { padding-top: 20px; }
.service-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 28px;
}
.service-bullets li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.service-row-body h3 { margin-bottom: 0.5em; }
.service-row-body p { margin-bottom: 0; }
.service-row-body .service-tagline { margin-bottom: 16px; }
.service-row-body .service-text { margin-bottom: 18px; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight {
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: start;
}
.about-photo-wrap { order: 2; }
.about-photo {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo-wrap .photo-caption {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  margin: 10px 2px 0;
}
.about-body { order: 1; text-align: left; }
.about-body p { font-size: 1.02rem; }
.about-body .lead {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-light);
  margin: 2px 0 20px;
}

/* Extended bio sections below the intro (Education, Highlights, etc.) */
.about-extended-section { padding-top: 0; }
.about-extended { max-width: 760px; text-align: left; }
.about-section { margin-top: 52px; }
.about-section:first-child { margin-top: 0; }
.about-section h2 { margin-bottom: 14px; }
.about-section h3 {
  color: var(--accent-light);
  margin: 26px 0 8px;
}
.about-section p { font-size: 1.02rem; }
.about-section .cv-list { margin-top: 6px; }

.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.cv-list li:last-child { border-bottom: 1px solid var(--border); }
.cv-list strong { color: var(--text); font-weight: 600; }
.editable-note {
  font-size: 0.78rem;
  color: var(--accent-light);
  border: 1px dashed var(--border);
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 18px;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
}
.contact-info p { font-size: 0.98rem; }
.contact-info a { color: var(--accent-light); }
.contact-info a:hover { color: var(--accent); }
.contact-detail { margin-bottom: 22px; }
.contact-detail .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

form { display: flex; flex-direction: column; gap: 18px; }
.field label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.required-mark { color: var(--accent); }
.form-note { font-size: 0.8rem; margin-top: -4px; }
.form-status { font-size: 0.85rem; color: var(--accent-light); min-height: 1.2em; }
.form-status.is-error { color: #d97757; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------------- 404 ---------------- */
.notfound-section {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.notfound-section .container { max-width: 480px; }
.notfound-section .eyebrow { font-size: 1.1rem; letter-spacing: 0.2em; }
.notfound-section p { font-size: 1.02rem; margin-bottom: 28px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.footer-brand { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--text); }
.footer-monogram { width: 136px; height: 136px; margin-right: auto; flex-shrink: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent-light); }
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent-light); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-member { color: var(--accent-light); font-weight: 600; }
.footer-member a,
.cv-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-member a:hover,
.cv-list a:hover { color: var(--accent); }

/* ---------------- Utility / animations ---------------- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .logo-name { font-size: 2.2rem; }
  .logo-sub { font-size: 1.1rem; }
  .logo-tagline { font-size: 0.72rem; }
  .hero-simple h1,
  .contact-info h1,
  .section-head h1,
  .about-body h1 { font-size: 2.2rem; }
}

@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-height: 320px; }
  .highlight-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-row-image { max-width: 320px; }
  .service-bullets { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-contact { display: none; }
  .menu-toggle { display: flex; }
  .header-controls { margin-left: auto; }
  .logo-name { font-size: 1.2rem; letter-spacing: 0.04em; }
  .logo-sub { font-size: 0.66rem; }
  .logo { gap: 10px; }
  .logo-tagline {
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }
  .hero-simple h1,
  .contact-info h1,
  .section-head h1,
  .about-body h1 { font-size: 1.6rem; }
  .main-nav {
    display: none;
    background: var(--bg-alt);
  }
  .main-nav.open { display: block; }
  .nav-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav .lang-toggle { align-self: flex-start; margin: 0 24px 16px; }
  .header-top { padding: 14px 20px; }
  .hero { padding: 40px 0 36px; }
  section { padding: 40px 0; }
  .footer-grid { flex-direction: column; align-items: center; justify-content: center; }
  .footer-social { position: static; transform: none; order: -1; }
  .footer-monogram { margin-right: 0; order: -2; }
}
