/* ============================================
   Ava Toton - Official Website
   Color palette: dark bg, red accent, white text
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1e1e28;
  --bg-darker: #14141c;
  --accent: #c91e1e;
  --accent-hover: #a01515;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.12);
  --max-w: 900px;
  --font-body: 'Roboto', system-ui, sans-serif;
  --font-heading: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration: underline;
}

a:hover {
  color: var(--accent);
}

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

/* --- Layout --- */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Header / Nav --- */
.site-header {
  background-color: var(--bg-darker);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.site-logo:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  list-style: none;
}

.site-nav li a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.site-nav li a:hover,
.site-nav li a.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text);
}

.nav-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Main content --- */
main {
  flex: 1;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* --- Hero / Page Title --- */
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* --- Bio Section --- */
.bio-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.bio-text {
  max-width: 680px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
}

.bio-text a {
  color: var(--accent);
}

.bio-text a:hover {
  color: #e03535;
  text-decoration: underline;
}

.bio-photo {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(201,30,30,0.3);
}

/* --- Section headings --- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* --- Social Icons --- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.social-links a:hover {
  background: var(--accent);
  transform: scale(1.1);
  color: var(--text);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Instagram embed --- */
.instagram-section {
  margin-top: 1rem;
  text-align: center;
}

.instagram-section .instagram-media {
  margin: 0 auto !important;
}

/* --- EPK Page --- */
.epk-section {
  max-width: 780px;
  margin: 0 auto;
}

.epk-pdf-container {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.epk-pdf-container iframe,
.epk-pdf-container object {
  display: block;
  width: 100%;
  min-height: 800px;
  border: none;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-center {
  text-align: center;
  margin-top: 1.5rem;
}

/* --- Contact Page --- */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-section p {
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--text);
  width: 100%;
  max-width: 400px;
  transition: background 0.2s, border-color 0.2s;
  font-size: 1rem;
}

.contact-link-item:hover {
  background: rgba(201,30,30,0.15);
  border-color: var(--accent);
  color: var(--text);
}

.contact-link-item svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.site-footer .social-links {
  margin-bottom: 1rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Mobile Nav --- */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav li a {
    display: block;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
    width: 100%;
  }

  .site-header {
    position: relative;
  }

  .site-header .container {
    position: relative;
    flex-wrap: wrap;
  }

  .bio-photo {
    width: 170px;
    height: 170px;
  }
}

/* --- Responsive helpers --- */
@media (min-width: 600px) {
  .bio-section {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .bio-text {
    text-align: left;
    flex: 1;
  }

  .bio-photo {
    flex-shrink: 0;
  }
}
