/*
Theme Name: Zawadzka Words
Theme URI: http://zawadzkawords.pl
Description: A minimalist, high-performance custom theme for Zawadzka Words. Pixel-perfect replica.
Author: Antigravity AI (Senior Front-End)
Version: 1.1.0
Text Domain: zawadzkawords
*/

/* -------------------------------------------------------------------------- */
/* 1. Global Variables & Reset
/* -------------------------------------------------------------------------- */

:root {
  /* Colors - EXACT HEX FROM AUDIT */
  --color-primary: #301703;
  /* Dark Brown */
  --color-accent: #753D2B;
  /* Accent Brown Section */
  --color-bg: #FFFAEE;
  /* Cream Background */
  --color-field-bg: #FFFFFF;
  /* Input Background */
  --color-shadow: #CEBC95;
  /* Button Shadow Color */

  /* Typography */
  --font-main: "Libre Baskerville", serif;

  /* Spacing - EXACT VALUES FROM AUDIT */
  --section-padding: 80px 0;
  --container-max-width: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.75;
  /* 35px / 20px */
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px;
  /* Audit showed 40px padding in hero/containers */
}

/* -------------------------------------------------------------------------- */
/* 2. Typography - EXACT SPECS
/* -------------------------------------------------------------------------- */

h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 62px;
  margin-bottom: 30px;
}

h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 31px;
  margin-bottom: 25px;
}

h5 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  margin-bottom: 15px;
}

p {
  font-size: 20px;
  line-height: 35px;
  color: rgba(48, 23, 3, 0.75);
  margin-bottom: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/* 3. Components
/* -------------------------------------------------------------------------- */

/* Buttons - EXACT SHADOW AND TRANSLATION */
.btn-zawadzka {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 18px 24px;
  font-family: var(--font-main);
  font-weight: 400;
  /* Regular per tip */
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px var(--color-shadow);
  transition: all 0.2s ease;
  border-radius: 0;
}

.btn-zawadzka:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px 0px var(--color-shadow);
}

.btn-filled-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-field-bg) !important;
  color: var(--color-bg) !important;
  box-shadow: 4px 4px 0px 0px var(--color-shadow) !important;
  padding: 15px 30px;
}

.btn-filled-primary:hover {
  box-shadow: 2px 2px 0px 0px var(--color-shadow) !important;
  transform: translate(2px, 2px);
}

.btn-filled-accent {
  background-color: var(--color-accent) !important;
  border: 2px solid var(--color-bg) !important;
  color: var(--color-bg) !important;
  box-shadow: 4px 4px 0px 0px var(--color-shadow) !important;
  padding: 15px 30px;
}

.btn-filled-accent:hover {
  box-shadow: 2px 2px 0px 0px var(--color-shadow) !important;
  transform: translate(2px, 2px);
}

/* Chevron Mask */
.profile-image-mask {
  mask-image: url('assets/k_mask.svg');
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('assets/k_mask.svg');
  max-width: 100%;
}

/* Helper Classes */
.bg-brown {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.bg-brown h2,
.bg-brown h5,
.bg-brown p {
  color: var(--color-bg);
}

.section {
  padding: var(--section-padding);
}

.img-full {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* 4. Form Components (Standardized & Responsive)
/* -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: 25px;
  width: 100%;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 16px;
}

/* Base input / textarea */
.form-control {
  width: 100%;
  padding: 16px 20px;
  background-color: var(--color-field-bg);
  border: 2px solid rgba(48, 23, 3, 0.4);
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 4px 4px 0px 0px var(--color-shadow);
}

.form-control::placeholder {
  color: rgba(48, 23, 3, 0.4);
}

/* Flexible row for side-by-side inputs */
.form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Standardized Checkbox Component */
.checkbox-component {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.checkbox-component input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-primary);
  background-color: var(--color-field-bg);
  position: relative;
  transition: all 0.2s ease;
  top: 2px;
  /* Slight adjustment for alignment with text line-height */
}

.checkbox-component input:checked+.checkbox-custom {
  background-color: var(--color-primary);
}

/* Checkmark logic */
.checkbox-custom::after {
  content: '✓';
  position: absolute;
  left: 3px;
  top: -2px;
  font-size: 15px;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.checkbox-component input:checked+.checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-primary);
  opacity: 0.9;
}

.checkbox-label-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

/* Actions Wrapper */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* -------------------------------------------------------------------------- */
/* 5. Thank You Page & Interstitial Components
/* -------------------------------------------------------------------------- */

.thank-you-page {
  background-color: var(--color-bg);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.thank-you-centered {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.thank-you-image {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Fix for vertical stretching */
}

.thank-you-image .profile-image-mask {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  mask-image: none;
  -webkit-mask-image: none;
  border-radius: 50%;
  overflow: hidden;
}

.thank-you-content .eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.thank-you-image .profile-image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thank-you-content h1 {
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 25px;
  color: var(--color-primary);
}

.thank-you-content .description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.8;
}

.thank-you-actions {
  margin-bottom: 60px;
}

.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .next-steps-grid {
    grid-template-columns: 1fr;
  }
}