/* =========================================================
   Sandra Droppers Photography — stylesheet
   Rebuilt as a static site (was: Adobe Portfolio)
   ========================================================= */

:root {
  --color-black: #000000;
  --color-near-black: #0a0a0a;
  --color-cream: #ffffff;
  --color-text-dark: #2b2b2b;
  --color-text-muted: #8c8c8c;
  --color-accent: #e2574a;   /* coral-red hover/active color from the nav */
  --color-border: #d9d9d9;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-nav: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-height: 130px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -----------------------------------------------------------
   Site header / nav (black bar) — present on every page except
   the home / entrance page
   ----------------------------------------------------------- */
.site-header {
  background: var(--color-black);
  color: #f2f2f2;
  padding: 34px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 18px;
  position: relative;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #f2f2f2;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

.site-nav a.is-active {
  font-weight: 700;
}

.site-logo {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.site-logo img {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #f2f2f2;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 20;
}

/* -----------------------------------------------------------
   Home / entrance page
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #efe9e2;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-logo img {
  width: clamp(320px, 40vw, 700px);
  height: auto;
}

.enter-button {
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-text-muted);
  font-family: var(--font-nav);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 16px 38px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  background: #1a1a1a;
  color: #fff;
}

/* -----------------------------------------------------------
   Generic inner page shell (background photo + content)
   ----------------------------------------------------------- */
.page {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 90px 24px 60px;
  overflow: hidden;
}

.page-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: #1f1f1f;
  margin: 0 0 50px;
}

.page-lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0 0 12px;
}

/* -----------------------------------------------------------
   About page
   ----------------------------------------------------------- */
.about-text p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0 0 34px;
}

.about-text p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------
   Portfolio overview (category tiles)
   ----------------------------------------------------------- */
.category-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16%;
  max-width: 1000px;
  margin: 0 auto;
}

.category-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tile-hover);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-tile:hover::before { opacity: 1; }

.category-tile span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.category-tile--dark { background-color: #111; }
.category-tile--light { background-color: #c9c9c9; }

/* -----------------------------------------------------------
   Photo gallery grid
   ----------------------------------------------------------- */
.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-width: 1560px;
  margin: 0 auto;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: #e9e9e9;
}

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

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg, #ececec, #ececec 12px, #f6f6f6 12px, #f6f6f6 24px
  );
  color: #a9a9a9;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

/* -----------------------------------------------------------
   Contact form
   ----------------------------------------------------------- */
.contact-form {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
}

.form-group { margin-bottom: 34px; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #1f1f1f;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: #fff;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #b7b7b7; }

.form-group--turnstile { margin-bottom: 26px; }

.form-submit {
  border: 1px solid var(--color-border);
  background: #f4f4f4;
  color: #9a9a9a;
  font-family: var(--font-nav);
  font-size: 0.95rem;
  padding: 14px 34px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.form-submit:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.form-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-note.success { color: #3c8a4c; display: none; }
.form-note.success.is-visible { display: block; }

/* -----------------------------------------------------------
   Links page
   ----------------------------------------------------------- */
.links-list {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.links-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 24px;
}

.links-row p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0;
  text-align: right;
}

.link-pill {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 14px 28px;
  font-family: var(--font-nav);
  font-size: 0.95rem;
  color: #9a9a9a;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-pill:hover,
.link-pill:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* -----------------------------------------------------------
   Footer (back to top + copyright)
   ----------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px 30px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: #9a9a9a;
  font-size: 1.2rem;
  margin-bottom: 22px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.copyright {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #a3a3a3;
  margin: 0;
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header {
    padding: 22px 24px;
    justify-content: center;
  }

  .site-logo {
    position: static;
    transform: none;
    order: -1;
    margin-bottom: 14px;
  }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-black);
    padding: 18px 24px 26px;
    gap: 18px;
    z-index: 10;
  }

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

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 28px;
    gap: 40px;
  }

  .category-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }

  .links-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .links-row p { text-align: center; }
}
