/* Global Styles */

:root {
  --color-bg-deep: #141b0f;
  --color-bg-mid: #1f2915;
  --color-bg-light: #f3efe7;
  --color-accent: #f28f3b;
  --color-accent-soft: #d0e0c7;
  --color-text-main: #f7f5ef;
  --color-text-muted: #c6c1b3;
  --color-text-dark: #262522;

  --hero-bg-image: url("images/keenan-hero-bg.jpg");
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section--dark {
  background-color: var(--color-bg-mid);
  color: var(--color-text-main);
}

.section__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
}

.section__intro {
  max-width: 640px;
  font-size: 1rem;
  margin: 0 0 2rem;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

@media (max-width: 800px) {
  .section--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background-color: rgba(20, 27, 15, 0.95);
  border-bottom: 1px solid rgba(208, 224, 199, 0.15);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand__small {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__tagline {
  font-size: 0.8rem;
  text-transform: lowercase;
  color: var(--color-text-muted);
}

/* Nav */

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-main);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.2s ease-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background-color: var(--color-text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    background-color: rgba(20, 27, 15, 0.98);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    gap: 0.8rem;
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  color: var(--color-text-main);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(20, 27, 15, 0.92) 0%,
    rgba(20, 27, 15, 0.8) 40%,
    rgba(20, 27, 15, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  padding: 4rem 1.25rem 4.5rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  letter-spacing: 0.03em;
  margin: 0;
}

.hero__subtitle {
  font-size: 1.1rem;
  margin: 0.2rem 0 1rem;
  text-transform: lowercase;
  color: var(--color-accent-soft);
}

.hero__text {
  max-width: 540px;
  font-size: 1rem;
  color: var(--color-text-main);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero__links a {
  color: var(--color-accent-soft);
  text-decoration: none;
}

.hero__links a:hover {
  text-decoration: underline;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.08s ease-out, box-shadow 0.08s ease-out;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #1d130a;
  border-color: var(--color-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  background-color: #ffae63;
  border-color: #ffae63;
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: rgba(247, 245, 239, 0.5);
}

.btn--ghost:hover {
  background-color: rgba(247, 245, 239, 0.06);
}

/* Video */

.video-wrapper {
  margin-top: 1.5rem;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
}

.video-wrapper--audio {
  max-width: 720px;
  margin-inline: auto;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Reels grid */

.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .reels-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Headshots / Resume */

.headshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.headshot img {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  background-color: #222;
}

@media (max-width: 800px) {
  .headshot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.resume-actions {
  margin: 0.75rem 0 1rem;
}

.resume-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(128, 116, 90, 0.35);
  background-color: #fffdf7;
}

.resume-embed object {
  display: block;
  width: 100%;
  height: 320px;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  background-color: #000;
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.social-links a {
  color: #1a4b2f;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 75, 47, 0.3);
}

.social-links a:hover {
  border-bottom-color: rgba(26, 75, 47, 0.8);
}

.contact-form {
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: 16px;
  background-color: #f7f5ef;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 10px;
  border: 1px solid #d0c8b6;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: #1a4b2f;
  box-shadow: 0 0 0 1px rgba(26, 75, 47, 0.18);
}

/* Footer */

.site-footer {
  background-color: #10140c;
  color: var(--color-text-muted);
  padding: 1.5rem 0;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer__name {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  margin: 0 0 0.2rem;
}

.footer__note {
  margin: 0;
}

.footer__links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }
}
