/* Shared styles for about.html and contact.html -- simple single-purpose
   content pages, same "one stylesheet shared by a pair of pages" pattern
   css/legal.css already uses for privacy.html/terms.html. Moved here from
   home.css when About/Contact were split off index.html into their own
   pages. */

@keyframes section-gradient-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main {
  padding: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

/* ===== About ===== */

.about-formal {
  max-width: 950px;
  margin: 3em auto 0 auto;
  padding: 2em 1.2em 3em 1.2em;
  background: var(--color-surface);
  border-radius: 1.1em;
  box-shadow: 0 2px 32px rgba(80, 90, 150, 0.10);
  position: relative;
}

.about-header {
  text-align: left;
  border-left: 4px solid var(--brand-blue);
  padding-left: 1.3em;
  margin-bottom: 2em;
}
.about-lead {
  font-size: 1em;
  color: var(--color-text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  margin-bottom: .4em;
}
.about-formal h2 {
  font-size: 2.1em;
  font-weight: 700;
  color: var(--brand-ink);
  letter-spacing: .02em;
  margin: 0;
}

.about-card {
  display: flex;
  align-items: stretch;
  gap: 2.8em;
}
.about-body {
  flex: 2 1 350px;
  padding-right: 0.5em;
}
.about-brand {
  font-size: 1.15em;
  margin-bottom: .4em;
  color: var(--brand-ink);
  font-weight: 700;
}
.about-formal p {
  font-size: 1.08em;
  color: var(--color-text-secondary);
  margin: 1.15em 0 .8em 0;
  line-height: 1.6;
}
.about-highlight {
  background: linear-gradient(90deg, var(--color-surface-tint), var(--color-surface-tint), var(--color-surface-tint));
  background-size: 200% 200%;
  animation: section-gradient-drift 12s ease-in-out infinite;
  border-left: 4px solid var(--brand-blue);
  border-radius: .6em;
  margin: 1.5em 0 2em 0;
  padding: 1.1em 1.3em;
  font-style: italic;
  color: var(--brand-ink);
  font-size: 1.12em;
}
.about-quote {
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
  display: block;
}
.about-contact {
  margin-top: 2em;
}
.about-contact a {
  color: var(--brand-blue);
  background: var(--color-surface-soft);
  padding: 0.45em 1.3em;
  border-radius: 1.3em;
  text-decoration: none;
  font-weight: 600;
  transition: background .16s;
}
.about-contact a:hover {
  background: var(--color-surface-tint);
}

.about-image {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
}
.about-image img {
  width: 100%;
  border-radius: 1em;
  box-shadow: 0 3px 20px var(--color-shadow);
  object-fit: cover;
  min-width: 140px;
  max-width: 240px;
  min-height: 180px;
  filter: grayscale(7%) brightness(0.98);
}

/* ===== Contact ===== */

.contact-section-full {
  padding: 1em 1em 3em 1em;
}

.contact-card {
  max-width: 500px;
  background: var(--color-surface);
  margin: 2em auto 1.5em auto;
  padding: 2.6em 2em 2em 2em;
  border-radius: 1.2em;
  box-shadow: 0 6px 44px rgba(68, 109, 224, 0.11), 0 1px 2px var(--color-shadow);
}

.contact-header {
  text-align: center;
  margin-bottom: 2em;
}
.contact-header svg {
  margin-bottom: .35em;
}
.contact-header h2 {
  color: var(--brand-ink);
  font-size: 2em;
  font-weight: 700;
  margin: 0.1em 0 0.35em 0;
  letter-spacing: 0.01em;
}
.contact-lead {
  color: var(--color-text-secondary);
  font-size: 1.07em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.contact-form label {
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: 0.26em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: .87em .96em;
  font-size: 1.07em;
  border: 1.5px solid var(--color-border-soft);
  border-radius: 7px;
  background: var(--color-surface-soft);
  font-family: inherit;
  transition: border-color .14s, box-shadow .14s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 18px var(--brand-blue)22;
}

.contact-form button {
  font-size: 1.15em;
  font-weight: 700;
  padding: .92em 0;
  background: linear-gradient(90deg, var(--brand-blue) 0%, #9f9f9e 100%);
  background-size: 200% 200%;
  animation: section-gradient-drift 8s ease-in-out infinite;
  color: var(--color-surface);
  border: none;
  border-radius: 5em;
  cursor: pointer;
  margin-top: 1em;
  box-shadow: 0 3px 18px var(--brand-blue)33;
  transition: background .14s, transform .14s;
  letter-spacing: 0.03em;
}
.contact-form button:hover, .contact-form button:focus {
  background: linear-gradient(90deg, var(--brand-blue) 0%, #9f9f9e 100%);
  transform: scale(1.03);
}

.form-success {
  background: #e7f8e9;
  color: #217846;
  border-radius: 8px;
  margin-top: 1.2em;
  padding: .8em 1em;
  text-align: center;
  font-weight: 600;
  font-size: 1.08em;
  display: none; /* toggled to block via JS on successful submit */
}

/* ===== Socials ===== */

.socials-section {
  margin: 32px auto 50px auto;
  text-align: center;
}

.socials-section h3 {
  font-size: 1.3rem;
  color: var(--brand-ink);
  margin-bottom: 12px;
}

.socials {
  margin: 8px 0;
}

.socials a {
  display: inline-block;
  margin: 0 15px;
  transition: transform 0.2s;
}

.socials a:focus,
.socials a:hover {
  transform: scale(1.1);
}

.socials svg {
  width: 32px;
  height: 32px;
  filter: grayscale(60%);
  transition: filter 0.2s;
}

.socials a:hover svg {
  filter: none;
}

/* ===== Small screens ===== */

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }
  header {
    padding: 0.5rem;
  }
  footer {
    padding: 0.5rem;
  }
  .about-card {
    flex-direction: column;
    gap: 1.3em;
  }
  .about-image {
    order: -1;
    justify-content: center;
    margin-bottom: 1.5em;
  }
  .contact-card {
    padding: 1.3em 0.5em;
  }
  .contact-header h2 {
    font-size: 1.45em;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form-success {
    background: #163a22;
    color: #6fd98c;
  }
}

:root[data-theme="dark"] .form-success {
  background: #163a22;
  color: #6fd98c;
}
