/* =========================================================
   Wyzely — Common / Global Stylesheet
   Shared across all pages: reset, design tokens, header,
   buttons, animations, and utility classes.
   ========================================================= */

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* ===== Design Tokens ===== */
:root {
  /* Colors */
  --color-bg: #fff8f3;
  --color-bg-header: rgba(255, 248, 243, 0.8);
  --color-bg-highlight: #faf2ec;
  --color-text: #1e1b17;
  --color-text-muted: #51443c;
  --color-brand: #5f3718;
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --fs-body: 16px;
  --fs-h1-mobile: 32px;
  --fs-h1-tablet: 40px;
  --fs-h1-desktop: 48px;
  --fs-h2: 24px;
  --fs-h2-desktop: 32px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 64px;

  /* Radius & Shadow */
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
}

/* ===== Page wrapper ===== */
.page {
  min-height: 100vh;
  width: 100%;
}

/* ===== Header / Nav (shared across all pages) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--color-bg-header);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

.nav {
  margin: 0 auto;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
}

.logo-link {
  display: flex;
  align-items: center;
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.logo {
  height: 48px;
  width: auto;
  max-width: 147px;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  position: relative;
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-brand);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--color-brand);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  font-weight: 700;
  color: var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: 2px;
}

.nav-link--active::after {
  display: none;
}

.menu-btn {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-text);
  background: none;
  border: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
  padding: var(--spacing-xs) var(--spacing-md) var(--spacing-sm);
}

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

.mobile-nav-link {
  display: block;
  padding: var(--spacing-xs) 0;
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-text-muted);
}

.mobile-nav-link--active {
  font-weight: 700;
  color: var(--color-brand);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* ===== Buttons (shared) ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  border-radius: var(--radius-md);
  background-color: var(--color-brand);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--fs-body);
  color: var(--color-white);
  border: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(95, 55, 24, 0.25);
}

.btn-primary .icon {
  height: 16px;
  width: 16px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .icon {
  transform: translateX(3px);
}

/* ===== Shared animation keyframes ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-link {
  animation: fadeSlideDown 0.6s ease-out 0.05s both;
}

.nav-links,
.menu-btn {
  animation: fadeSlideDown 0.6s ease-out 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Home page — hero section
   ========================================================= */
.hero {
  margin: 0 auto;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  overflow: hidden;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero-text {
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  text-align: center;
}

.hero-title {
  width: 100%;
  font-size: var(--fs-h1-mobile);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  animation: fadeSlideUp 0.7s ease-out 0.25s both;
}

.hero-title-accent {
  font-weight: 700;
  color: var(--color-brand);
}

.hero-description {
  width: 100%;
  font-size: var(--fs-body);
  line-height: 24px;
  color: var(--color-text);
  animation: fadeSlideUp 0.7s ease-out 0.4s both;
}

.hero-cta-wrap {
  display: flex;
  width: 100%;
  justify-content: center;
  padding-top: var(--spacing-xs);
  animation: fadeSlideUp 0.7s ease-out 0.55s both;
}

.hero-image-wrap {
  display: flex;
  width: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
  animation: fadeScaleIn 0.8s ease-out 0.35s both;
}

.hero-image-frame {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hero-image-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0px 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.hero-image {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--fs-h1-tablet);
  }
  .hero-image {
    height: 380px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 96px var(--spacing-md);
  }
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    padding: 50px var(--spacing-md);
  }
  .hero-text {
    align-items: flex-start;
    text-align: left;
  }
  .hero-title {
    font-size: var(--fs-h1-desktop);
    line-height: 60px;
  }
  .hero-cta-wrap {
    justify-content: flex-start;
  }
  .hero-image {
    height: 500px;
  }
}

/* =========================================================
   How It Works page
   ========================================================= */
.works {
  margin: 0 auto;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-md);
}

.works-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
  text-align: center;
}

.works-heading {
  font-size: var(--fs-h1-mobile);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-brand);
  animation: fadeSlideUp 0.7s ease-out 0.1s both;
}

.works-subheading {
  max-width: 768px;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-muted);
  animation: fadeSlideUp 0.7s ease-out 0.25s both;
}

.work-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--spacing-md);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.work-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-row--reverse {
  flex-direction: column-reverse;
}

.work-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
}

.work-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-brand);
  position: relative;
  display: inline-block;
}

.work-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 0;
  background-color: var(--color-brand);
  transition: width 0.5s ease 0.3s;
}

.work-row.is-visible .work-title::after {
  width: 48px;
}

.work-description {
  font-size: var(--fs-body);
  line-height: 24px;
  color: var(--color-text);
}

.work-image-frame {
  width: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-image-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0px 16px 32px rgba(0, 0, 0, 0.15);
}

.work-image {
  display: block;
  width: 100%;
  aspect-ratio: 592 / 296;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-image-frame:hover .work-image {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .works {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  .works-heading {
    font-size: var(--fs-h1-tablet);
  }
}

@media (min-width: 1024px) {
  .work-row {
    flex-direction: row;
    gap: var(--spacing-lg);
    text-align: left;
  }
  .work-row--reverse {
    flex-direction: row-reverse;
  }
  .works-heading {
    font-size: var(--fs-h1-desktop);
    line-height: 56px;
  }
  .work-title {
    font-size: var(--fs-h2-desktop);
    line-height: 40px;
  }
}

 
/* =========================================================
   Pricing page
   ========================================================= */
.pricing-main {
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
  padding: var(--spacing-xl) var(--spacing-md);
}
 
.pricing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-md);
  width: 100%;
  animation: fadeSlideUp 0.7s ease-out 0.1s both;
}
 
.pricing-heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
 
.pricing-heading {
  font-size: var(--fs-h1-mobile);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: center;
}
 
.pricing-subheading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 672px;
  width: 100%;
}
 
.pricing-subheading {
  font-size: var(--fs-body);
  line-height: 28px;
  color: var(--color-text-muted);
  text-align: center;
}
 
@media (min-width: 768px) {
  .pricing-heading {
    font-size: var(--fs-h1-tablet);
  }
  .pricing-subheading {
    font-size: 18px;
  }
}
 
@media (min-width: 1024px) {
  .pricing-heading {
    font-size: var(--fs-h1-desktop);
    line-height: 56px;
    letter-spacing: -0.02em;
  }
}


 
/* =========================================================
   About page
   ========================================================= */
.about-main {
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
  padding: var(--spacing-xl) var(--spacing-md);
}
 
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-md);
  width: 100%;
  animation: fadeSlideUp 0.7s ease-out 0.1s both;
}
 
.about-heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
 
.about-heading {
  font-size: var(--fs-h1-mobile);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: center;
}
 
.about-subheading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 672px;
  width: 100%;
  background-color: var(--color-bg-highlight);
  border-radius: 8px;
  padding: var(--spacing-xs) var(--spacing-sm);
}
 
.about-subheading {
  font-size: var(--fs-body);
  line-height: 28px;
  color: var(--color-text-muted);
  text-align: center;
}
 
@media (min-width: 768px) {
  .about-heading {
    font-size: var(--fs-h1-tablet);
  }
  .about-subheading {
    font-size: 18px;
  }
}
 
@media (min-width: 1024px) {
  .about-heading {
    font-size: var(--fs-h1-desktop);
    line-height: 56px;
    letter-spacing: -0.02em;
  }
}


/* =========================================================
   Contact page
   ========================================================= */
.contact-main {
  position: relative;
  width: 100%;
}
 
/* Hero banner */
.hero-banner {
  position: relative;
  height: 450px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}
 
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-md);
  text-align: center;
  animation: fadeSlideUp 0.7s ease-out 0.1s both;
}
 
.hero-heading {
  font-size: var(--fs-h1-mobile);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
}
 
.hero-subtext {
  max-width: 672px;
  font-size: var(--fs-body);
  line-height: 28px;
  color: var(--color-white);
}
 
/* Floating form */
.form-wrap {
  position: relative;
  margin: -80px auto 0;
  max-width: 672px;
  width: calc(100% - 32px);
  z-index: 2;
}
 
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  background-color: var(--color-white);
  border: 1px solid rgba(213, 195, 184, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
}
 
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
 
.form-field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
 
.form-label {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
}
 
.form-input,
.form-textarea {
  background-color: var(--color-bg);
  border: 1px solid #d5c3b8;
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--fs-body);
  font-family: inherit;
  color: var(--color-text);
  width: 100%;
}
 
.form-input::placeholder,
.form-textarea::placeholder {
  color: #6b7280;
}
 
.form-input:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

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

/* Field-level validation */
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #b3261e;
}

.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus {
  outline-color: #b3261e;
}

.field-error {
  display: none;
  font-size: 13px;
  color: #b3261e;
}

.field-error:not(:empty) {
  display: block;
}

/* Form-level status banner (API success/error) */
.form-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  animation: form-status-pop 0.35s ease;
}

.form-status[hidden] {
  display: none;
}

.form-status::before {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.form-status--success {
  background-color: #eaf6ec;
  border-color: #6fbf7d;
  color: #1f5c2b;
}

.form-status--success::before {
  content: '\2713';
  background-color: #2f9e44;
  color: #ffffff;
}

.form-status--error {
  background-color: #fceaea;
  border-color: #e57373;
  color: #9c1f17;
}

.form-status--error::before {
  content: '!';
  background-color: #d92d20;
  color: #ffffff;
}

@keyframes form-status-pop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-status {
    animation: none;
  }
}

.form-submit {
  background-color: var(--color-brand);
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--fs-body);
  border: none;
  border-radius: 9999px;
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
 
.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
}
 
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
 
/* Honeypot field — hidden from real users, catches basic bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
 
/* Contact info cards */
.info-section {
  background-color: var(--color-bg-highlight);
  padding: var(--spacing-lg) var(--spacing-md);
  margin-top: 80px;
}
 
.info-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
 
.info-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
  flex: 1;
}
 
.info-icon-badge {
  background-color: #7a4e2d;
  border-radius: 9999px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
 
.info-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
 
.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.info-title {
  font-size: var(--fs-body);
  color: var(--color-brand);
}
 
.info-value {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
}
 
@media (min-width: 640px) {
  .hero-heading {
    font-size: var(--fs-h1-tablet);
  }
  .form-row {
    flex-direction: row;
  }
}
 
@media (min-width: 768px) {
  .hero-subtext {
    font-size: 18px;
  }
  .info-grid {
    flex-direction: row;
  }
}
 
@media (min-width: 1024px) {
  .hero-heading {
    font-size: var(--fs-h1-desktop);
    line-height: 56px;
  }
  .form-wrap {
    margin-top: -96px;
  }
}
 
/* =========================================================
   Submissions viewer page
   ========================================================= */
.submissions-main {
  margin: 0 auto;
  max-width: 900px;
  padding: var(--spacing-lg) var(--spacing-md);
}
 
.submissions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
 
.submissions-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-brand);
}
 
.clear-btn {
  display: inline-flex;
  background-color: transparent;
  border: 1px solid var(--color-brand);
  color: var(--color-brand);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
 
.clear-btn:hover {
  background-color: var(--color-brand);
  color: var(--color-white);
}
 
.empty-state {
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--spacing-lg) 0;
}
 
.empty-state a {
  color: var(--color-brand);
  text-decoration: underline;
}
 
.entries-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}
 
.entry-card {
  background-color: var(--color-white);
  border: 1px solid rgba(213, 195, 184, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}
 
.entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
 
.entry-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}
 
.entry-date {
  font-size: 13px;
  color: var(--color-text-muted);
}
 
.entry-line {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
 
.entry-message {
  font-size: var(--fs-body);
  color: var(--color-text);
  margin-top: 8px;
  white-space: pre-wrap;
}