/* ============================================
   Darcie Cutland — Personal Brand Site
   Light, colourful theme
   ============================================ */

:root {
  --bg: #fdf8f5;
  --bg-card: #ffffff;
  --pink: #e84393;
  --pink-soft: rgba(232, 67, 147, 0.10);
  --pink-glow: rgba(232, 67, 147, 0.15);
  --purple: #6c5ce7;
  --purple-soft: rgba(108, 92, 231, 0.10);
  --text: #2d3436;
  --muted: #636e72;
  --light: #b2bec3;
  --border: rgba(0, 0, 0, 0.07);
  --radius: 16px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-x: hidden;
}

/* ---- Animated grid background ---- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-container {
  position: absolute;
  bottom: -40px;
  right: -40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  width: 90vw;
  max-width: 900px;
  opacity: 0.4;
}

@media (max-width: 639px) {
  .grid-container {
    width: 110vw;
    bottom: -20px;
    right: -30px;
  }
}

.grid-tile {
  aspect-ratio: 1;
  border-radius: 6px;
  opacity: 0.06;
  animation: breathe var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.grid-tile:nth-child(odd) {
  background: var(--pink);
}

.grid-tile:nth-child(even) {
  background: var(--purple);
}

@keyframes breathe {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.18; }
}

/* ---- Card ---- */

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* ---- Page layout (for multi-page) ---- */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page body {
  align-items: flex-start;
}

/* ---- Navigation ---- */

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  width: 100%;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.nav-back:hover {
  border-color: rgba(232, 67, 147, 0.3);
  color: var(--pink);
  transform: translateX(-2px);
}

/* ---- Photo ---- */

.photo-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 8px 30px rgba(232, 67, 147, 0.08);
}

.photo-wrapper::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  opacity: 0;
  animation: ring-pulse 4s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.03); }
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--purple-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder::before {
  content: 'DC';
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--pink);
  letter-spacing: -0.02em;
}

/* ---- Photo (page-level, larger) ---- */

.photo-wrapper--page {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  align-self: center;
}

/* ---- Typography ---- */

.name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--text);
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.title-text {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--pink);
  text-transform: uppercase;
}

.title-bar {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 2px;
}

.credentials {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 20px;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 340px;
}

/* ---- Section headings (inner pages) ---- */

.section-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 36px;
}

.section-title:first-of-type {
  margin-top: 0;
}

.section-title--accent {
  color: var(--pink);
}

.section-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 2px;
  border: none;
  margin: 24px 0;
}

/* ---- Body text (inner pages) ---- */

.body-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.body-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Qualification cards ---- */

.qual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .qual-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.qual-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.qual-card:hover {
  border-color: rgba(108, 92, 231, 0.25);
  box-shadow: 0 4px 20px var(--purple-soft);
}

.qual-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.qual-card__detail {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.qual-card__detail--accent {
  color: var(--purple);
  font-weight: 600;
}

/* ---- Cert tags ---- */

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cert-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

.cert-tag--purple {
  background: var(--purple-soft);
  color: var(--purple);
}

/* ---- Contact rows ---- */

.contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 28px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.contact-row:hover {
  border-color: rgba(232, 67, 147, 0.3);
  box-shadow: 0 4px 20px var(--pink-glow);
  transform: translateY(-1px);
}

.contact-row .icon {
  flex-shrink: 0;
  color: var(--pink);
}

/* ---- Action buttons ---- */

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.action-btn:hover {
  border-color: rgba(232, 67, 147, 0.3);
  box-shadow: 0 4px 20px var(--pink-glow);
  transform: translateY(-1px);
}

.action-btn--primary {
  background: var(--pink);
  color: #ffffff;
  border-color: var(--pink);
}

.action-btn--primary:hover {
  background: #d63384;
  border-color: #d63384;
  box-shadow: 0 4px 30px rgba(232, 67, 147, 0.3);
}

.action-btn--purple {
  background: var(--purple);
  color: #ffffff;
  border-color: var(--purple);
}

.action-btn--purple:hover {
  background: #5a4bd1;
  border-color: #5a4bd1;
  box-shadow: 0 4px 30px rgba(108, 92, 231, 0.3);
}

/* ---- 2 Head Supervision logo ---- */

.supervision-logo {
  width: 200px;
  height: auto;
  margin-bottom: 8px;
  align-self: center;
}

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

.form-section {
  margin-top: 36px;
  width: 100%;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--light);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--pink);
  color: #ffffff;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  margin-top: 4px;
}

.form-submit:hover {
  background: #d63384;
  box-shadow: 0 4px 30px rgba(232, 67, 147, 0.3);
  transform: translateY(-1px);
}

.form-note {
  font-size: 0.75rem;
  color: var(--light);
  text-align: center;
  margin-top: 4px;
}

/* ---- Highlight box ---- */

.highlight-box {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft));
  border-radius: 14px;
  margin-bottom: 16px;
  margin-top: 8px;
}

.highlight-box p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

.highlight-box strong {
  font-weight: 700;
}

/* ---- Feature list ---- */

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.feature-list .icon {
  color: var(--purple);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---- Icons ---- */

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon--small {
  width: 16px;
  height: 16px;
}

/* ---- Fade-in animation ---- */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.6s ease-out forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (min-width: 640px) {
  .photo-wrapper {
    width: 160px;
    height: 160px;
  }

  .name {
    font-size: 2.4rem;
  }

  .grid-container {
    width: 50vw;
  }

  .page {
    max-width: 640px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .grid-tile {
    animation: none;
    opacity: 0.06;
  }

  .photo-wrapper::after {
    animation: none;
  }

  .contact-row,
  .action-btn,
  .nav-back,
  .qual-card,
  .form-input,
  .form-textarea,
  .form-submit {
    transition: none;
  }
}
