/* ==========================================================================
   Juli Ontwerpstudio — Kleurenplanner
   ========================================================================== */

:root {
  --juli-donkerbruin: #4F443F;   /* PPG1005-7 Norcia Truffle */
  --juli-roodbruin:   #9E6654;   /* PPG1067-6 Spice it Up */
  --juli-licht-beige: #D9D0C1;   /* PPG1023-2 Cool Concrete */
  --juli-beige:       #BDB0A0;   /* PPG1021-3 Discover */
  --juli-wit:         #FBF9F7;

  --font-logo: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Times New Roman", Times, serif;

  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--juli-licht-beige);
  color: var(--juli-donkerbruin);
  line-height: 1.5;
}

/* --- Top logo + intro (geen balk, geen achtergrondvlak) ------------------ */

.top-logo-row {
  display: flex;
  justify-content: flex-start;
  padding: 1.75rem clamp(1rem, 5vw, 3rem) 0.5rem;
}

.top-logo {
  height: 96px;
  width: auto;
}

.page-intro {
  text-align: center;
  padding: 0 1rem 2rem;
}

.page-intro h1 {
  font-family: var(--font-logo);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}

.page-intro p {
  margin: 0;
  color: var(--juli-roodbruin);
}

/* --- Main / panels ------------------------------------------------------ */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem) 4rem;
}

.panel {
  background: var(--juli-wit);
  border: 1px solid var(--juli-beige);
  border-radius: var(--radius);
  padding: 1.75rem clamp(1rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
}

.panel h2 {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.step-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--juli-roodbruin);
}

/* --- Upload -------------------------------------------------------------- */

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 1.5px dashed var(--juli-roodbruin);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  color: var(--juli-roodbruin);
  transition: background 0.15s ease;
}

.upload-box:hover,
.upload-box:focus-within {
  background: color-mix(in srgb, var(--juli-licht-beige) 40%, transparent);
}

.upload-box[hidden] {
  display: none;
}

.canvas-wrap {
  margin-top: 1rem;
}

.canvas-inner {
  position: relative;
}

#wall-canvas {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
}

.change-photo-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(79, 68, 63, 0.75);
  color: var(--juli-wit);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.change-photo-btn:hover {
  background: var(--juli-roodbruin);
}

.canvas-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.canvas-hint {
  font-size: 0.85rem;
  color: var(--juli-roodbruin);
  margin: 0;
}

.canvas-action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-tool {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--juli-donkerbruin);
  background: var(--juli-wit);
  color: var(--juli-donkerbruin);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-tool:hover,
.btn-tool.active {
  background: var(--juli-donkerbruin);
  color: var(--juli-wit);
}

.btn-reset {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--juli-roodbruin);
  background: var(--juli-wit);
  color: var(--juli-roodbruin);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-reset:hover {
  background: var(--juli-roodbruin);
  color: var(--juli-wit);
}

/* --- Brand buttons -------------------------------------------------------- */

.brand-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.brand-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--juli-donkerbruin);
  background: transparent;
  color: var(--juli-donkerbruin);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.brand-btn.active,
.brand-btn:hover {
  background: var(--juli-donkerbruin);
  color: var(--juli-wit);
}

/* --- Tone filters ---------------------------------------------------------- */

.tone-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tone-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--juli-beige);
  background: var(--juli-wit);
  color: var(--juli-donkerbruin);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tone-btn.active {
  background: var(--juli-roodbruin);
  border-color: var(--juli-roodbruin);
  color: var(--juli-wit);
}

.tone-btn:hover {
  border-color: var(--juli-roodbruin);
}

/* --- Color search ------------------------------------------------------------ */

.color-search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--juli-beige);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* --- Color carousel ----------------------------------------------------------- */

.color-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--juli-donkerbruin);
  background: var(--juli-wit);
  color: var(--juli-donkerbruin);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--juli-donkerbruin);
  color: var(--juli-wit);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.color-dots {
  flex: 1 1 auto;
  display: flex;
  gap: clamp(0.4rem, 2vw, 0.85rem);
  overflow: visible;
  min-height: 96px;
  padding: 4px 2px;
}

.color-dot-wrap {
  flex: 1 1 0;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.color-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.color-dot:hover,
.color-dot.selected {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--juli-roodbruin);
}

.color-dot-name {
  font-size: 0.68rem;
  color: var(--juli-donkerbruin);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.carousel-position {
  font-size: 0.75rem;
  color: var(--juli-roodbruin);
  text-align: center;
  margin: 0.5rem 0 0;
}

.selected-color-label {
  margin-top: 1rem;
  font-style: italic;
  color: var(--juli-roodbruin);
}

/* --- Form ------------------------------------------------------------------ */

#order-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-intro {
  font-size: 0.9rem;
  color: var(--juli-roodbruin);
  margin: 0 0 1rem;
}

.calc-fields {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.calc-fields label {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.3rem;
}

.calc-fields input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--juli-beige);
  border-radius: var(--radius);
}

.calc-result {
  margin-top: 1rem;
  font-style: italic;
  color: var(--juli-donkerbruin);
}

.checkbox-row {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem !important;
  font-size: 0.9rem;
}

.checkbox-row input {
  margin-top: 0.2rem;
}

#order-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.3rem;
}

#order-form input[type="text"],
#order-form input[type="email"],
#order-form input[type="tel"],
#order-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--juli-beige);
  border-radius: var(--radius);
}

#order-form fieldset {
  border: 1px solid var(--juli-beige);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}

#order-form fieldset legend {
  font-size: 0.85rem;
  color: var(--juli-roodbruin);
  padding: 0 0.3rem;
}

.radio {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  margin: 0.3rem 0;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--juli-roodbruin);
  color: var(--juli-wit);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--juli-donkerbruin);
}

.form-note {
  font-size: 0.8rem;
  color: var(--juli-roodbruin);
  margin: 0;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--juli-donkerbruin);
  color: var(--juli-wit);
  font-size: 0.85rem;
}

.logo-small {
  height: 28px;
}

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 560px) {
  .color-dots { min-height: 80px; }
  .color-dot { width: 32px; height: 32px; }
  .color-dot-wrap { min-width: 36px; }
}

/* --- Reduced motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
