/*
Theme Name: Thomas Latine
Theme URI: https://lathofotografie.be
Author: artmedia
Author URI: https://www.artmedia.be
Description: Licht eigen thema voor Thomas Latine Photography. Opmaak en beweging komen uit assets/css/main.css.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: latho
*/

/* Aanvullingen op main.css: formuliermelding en verborgen veld tegen spam. */
.form-wrap { grid-column: 7 / -1; }
.form-wrap .form { grid-column: auto; }
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-notice {
  margin-bottom: 36px;
  padding: 22px 26px;
  border: 1px solid var(--c-gold);
  color: var(--c-brown);
}
.form-notice p {
  margin: 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}
.form-notice a { color: var(--c-gold); }
.form-notice--fout { border-color: var(--c-brown); background: var(--c-sand); }
.form-notice:focus { outline: none; }
@media (max-width: 899px) {
  .form-wrap { grid-column: auto; }
}

/* Eenvoudige pagina's (404, privacy). */
.page-simple { padding: calc(var(--header-h) + var(--space-section)) 0 var(--space-section); }
.page-simple .title { margin-bottom: 24px; }
.page-simple__body { max-width: var(--measure); }
.page-simple__body p { margin-bottom: 1.2em; }

/* Ronde 2: prijs excl. btw klein onder de prijs incl. btw */
.package__excl { font-size: 13px; color: var(--c-stone, #6E6355); margin-top: -4px; letter-spacing: .02em; }
.packages__excl { color: var(--c-stone, #6E6355); font-size: .9em; }
.site-footer__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244,241,232,.35); }

/* Ronde 3: losse staande foto gecentreerd (feest) */
.shot--center { grid-column: 4 / span 6; }
@media (max-width: 899px) { .shot--center { grid-column: 2 / span 10; } }
.shot img { height: auto; }

/* Ronde 3: herbruikte foto als gedimde zwart-witlaag */
#lichtplanner, #contact { position: relative; isolation: isolate; overflow: hidden; }
.section__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) blur(2px); opacity: .09; transform: scale(1.04); }
@media (max-width: 899px) { .shot--third:last-child { grid-column: 1 / -1; } }

/* Ronde 3c: leesbaarheid hero op de echte foto, rustigere contactlaag */
.hero__shade {
  background:
    linear-gradient(to top, rgba(46, 36, 24, .82) 0%, rgba(46, 36, 24, .45) 34%, rgba(46, 36, 24, 0) 64%),
    linear-gradient(to right, rgba(46, 36, 24, .58) 0%, rgba(46, 36, 24, .28) 38%, rgba(46, 36, 24, 0) 62%);
}
#contact .section__bg img { opacity: .05; filter: grayscale(1) blur(3px); }

/* Ronde 5: privacyregel onder het formulier, favicon via site_icon */
.form__privacy { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--c-stone, #6E6355); }
.form__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Ronde 5b */
.form__privacy { grid-column: 1 / -1; }
.page-simple__body h2 { font-family: var(--f-serif); font-weight: 500; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink, #2E2418); margin: 40px 0 12px; }
.page-simple__body a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Ronde 6: datumveld duidelijk aanklikbaar, ook op gsm */
.field:has(> input[type="date"]) { position: relative; }
.field input[type="date"] {
  min-height: 48px;
  padding-right: 36px;
  cursor: pointer;
  background-image:
    linear-gradient(var(--c-gold), var(--c-gold)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A5C2E' stroke-width='1.4'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-position: left bottom, right 4px center;
  background-size: 0 2px, 20px 20px;
}
.field input[type="date"]:focus { background-size: 100% 2px, 20px 20px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.field input[type="date"].is-empty::-webkit-datetime-edit { opacity: 0; }
.field input[type="date"].is-empty:focus::-webkit-datetime-edit { opacity: 1; }
.field:has(> input[type="date"].is-empty)::after {
  content: "Kies een datum";
  position: absolute; left: 0; bottom: 12px;
  color: var(--c-stone, #6E6355);
  font-family: var(--f-sans); font-size: 17px; line-height: 26px;
  pointer-events: none;
}
.field:has(> input[type="date"].is-empty:focus)::after { display: none; }
