/* ==========================================================================
   horwich art consultants — site styles
   Cloned from the Squarespace 7.1 site (horwichart.com), rebuilt as clean CSS.
   Palette and typography match the original site tokens:
     headings: acumin-pro (Adobe font on the old site — falls back to
               Helvetica Neue until/unless an Adobe Fonts kit is added)
     body:     Poppins 300 (self-hosted, see /fonts)
   ========================================================================== */

@import url("../fonts/poppins.css");

:root {
  /* Colors pulled from the original Squarespace theme variables */
  --white: #ffffff;
  --black: #000000;
  --dark-accent: #28282a;   /* hsl(240, 2.4%, 16%) — "dark" section theme */
  --light-accent: #dfe0e2;  /* hsl(210, 3.2%, 88%) */

  --heading-font: "acumin-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-font: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --content-narrow: 44rem;
  --content-medium: 60rem;
  --content-wide: 76rem;
  --pad-x: 6vw;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.gallery-heading { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.25em; }

a { color: inherit; }

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem var(--pad-x);
}

.site-title {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom: 1px solid currentColor;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--light-accent);
    padding: 1rem var(--pad-x) 1.5rem;
    z-index: 50;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 0;
  }

  .site-header { position: relative; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Sections (mirrors the Squarespace page-section system)
   -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem var(--pad-x);
}

.section--small  { padding-top: 3rem; padding-bottom: 3rem; }
.section--medium { padding-top: 5.5rem; padding-bottom: 5.5rem; }

.section-inner { margin: 0 auto; }
.width--narrow { max-width: var(--content-narrow); }
.width--medium { max-width: var(--content-medium); }
.width--wide   { max-width: var(--content-wide); }

/* Dark / black themed sections (CTA bands on the original site) */
.section--dark {
  background: var(--dark-accent);
  color: var(--white);
}

.section--black {
  background: var(--black);
  color: var(--white);
}

/* Full-bleed image banner (home page) */
.banner {
  background: var(--black) center / cover no-repeat;
  min-height: 72vh;
}

@media (max-width: 767px) {
  .banner { min-height: 44vh; }
}

/* --------------------------------------------------------------------------
   Buttons (Squarespace-style solid button)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 1em 1.9em;
  background: var(--black);
  color: var(--white);
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.8; }

/* Inverted button when sitting on a dark section */
.section--dark .btn,
.section--black .btn {
  background: var(--white);
  color: var(--black);
}

/* --------------------------------------------------------------------------
   Gallery (2-column square grid, matching the original gallery settings)
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: var(--content-wide);
  margin: 0 auto;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid a {
  display: block;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  padding: 3rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 1rem;
  opacity: 0.75;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */

.services-list p strong {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 3rem var(--pad-x) 4rem;
}

.site-footer .section-inner { max-width: var(--content-medium); }

.site-footer h3 { margin-bottom: 0.5em; }

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}
