/* =========================================
   styles.css — reneemangiafico.com
   ========================================= */

:root {
  --teal-dark:        #085041;
  --teal-mid:         #0F6E56;
  --teal-accent:      #1D9E75;
  --teal-light:       #5DCAA5;
  --teal-pale:        #E1F5EE;
  --teal-border:      #9FE1CB;
  --teal-card-border: #c0d8d1;
  --bg:               #f7f9f8;
  --white:            #ffffff;
  --text:             #2C2C2A;
  --text-muted:       #5a6b66;
}

/* =========================================
   RESET & BASE
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

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

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

/* =========================================
   NAV
   ========================================= */

.site-nav {
  background: var(--teal-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--teal-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-light);
  border-bottom-color: var(--teal-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-light);
  border-radius: 2px;
  transition: 0.2s;
}

/* =========================================
   HERO — index.html only
   ========================================= */

.hero {
  background: var(--teal-mid);
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-pale);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.55s ease 0.05s forwards;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s forwards;
}

.hero-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.83);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.28s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.38s forwards;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-accent);
  color: var(--white);
  border-color: var(--teal-accent);
}
.btn-primary:hover {
  background: #19ad80;
  border-color: #19ad80;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-accent);
}
.btn-outline:hover {
  background: var(--teal-pale);
}

/* =========================================
   CREDENTIAL BADGES — pill style
   ========================================= */

.badge {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =========================================
   PAGE HEADER — about, portfolio, contact
   ========================================= */

.page-header {
  background: var(--teal-dark);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 0.6rem;
}

.page-header p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================
   MAIN / SECTIONS
   ========================================= */

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

.section {
  margin-bottom: 3.5rem;
}

.section-heading {
  font-size: 1.45rem;
  color: var(--teal-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-pale);
}

/* =========================================
   PROJECT CARDS
   ========================================= */

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

.card {
  background: var(--white);
  border: 0.5px solid var(--teal-card-border);
  border-radius: 12px;
  border-top: 2px solid var(--teal-accent);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.2s ease;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.card:hover {
  box-shadow: 0 4px 22px rgba(8,80,65,0.10);
}

.card-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.card h3 {
  font-size: 1.08rem;
  color: var(--teal-dark);
}

.card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-live {
  background: var(--teal-pale);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
}

.status-soon {
  background: #f0f4f3;
  color: #4a6f67;
  border: 1px solid #c5d9d4;
}

.status-progress {
  background: #FEF6E7;
  color: #7a5200;
  border: 1px solid #f0d696;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.card-link:hover {
  border-bottom-color: var(--teal-accent);
}

/* Staggered entrance for cards */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.13s; }
.card:nth-child(3) { animation-delay: 0.21s; }
.card:nth-child(4) { animation-delay: 0.29s; }
.card:nth-child(5) { animation-delay: 0.37s; }
.card:nth-child(6) { animation-delay: 0.45s; }
.card:nth-child(7) { animation-delay: 0.53s; }
.card:nth-child(8) { animation-delay: 0.61s; }

/* =========================================
   PREVIEW SECTION — index.html
   ========================================= */

.preview-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.preview-header {
  margin-bottom: 2rem;
}

.preview-header h2 {
  font-size: 1.6rem;
  color: var(--teal-dark);
  margin-bottom: 0.35rem;
}

.preview-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.preview-header a {
  color: var(--teal-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.preview-header a:hover {
  border-bottom-color: var(--teal-accent);
}

.cards-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* =========================================
   ABOUT PAGE
   ========================================= */

.about-bio p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.intersection-block {
  border-left: 3px solid var(--teal-accent);
  padding: 1.25rem 1.5rem;
  background: var(--teal-pale);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0 2.5rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--teal-dark);
}

.credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text);
}

.credentials-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-accent);
  margin-top: 0.52rem;
  flex-shrink: 0;
}

.credentials-list a {
  color: var(--teal-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.credentials-list a:hover {
  border-bottom-color: var(--teal-accent);
}

.civic-block {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}

.thought-block {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.thought-block a {
  color: var(--teal-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.thought-block a:hover {
  border-bottom-color: var(--teal-accent);
}

.location-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-body {
  max-width: 580px;
}

.contact-body > p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-closing {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: var(--teal-dark);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--teal-light);
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--teal-light);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
  margin-top: 0.4rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */

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

.fade-in {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}

/* =========================================
   RESPONSIVE — 768px breakpoint
   ========================================= */

@media (max-width: 768px) {

  /* Prevent content from scrolling under the nav on mobile */
  .site-nav {
    position: relative;
  }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--teal-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
  }

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

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

  .nav-links a {
    display: block;
    padding: 0.75rem 2rem;
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Grids to single column */
  .cards-grid,
  .cards-preview {
    grid-template-columns: 1fr;
  }

  /* Spacing */
  main {
    padding: 3rem 1.5rem;
  }

  .preview-section {
    padding: 3rem 1.5rem 4rem;
  }

  /* Contact */
  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* About */
  .intersection-block {
    padding: 1rem 1.25rem;
  }
}

/* =========================================
   SPLIT HERO — index.html photo layout
   ========================================= */

.hero-split {
  padding: 4rem 2rem 0;
  text-align: left;
}

.hero-split .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: flex-end;
}

.hero-text {
  padding-bottom: 4.5rem;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

.hero-split .badge-row {
  justify-content: flex-start;
}

.hero-photo-wrap {
  align-self: flex-end;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.hero-photo-img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
  max-height: 580px;
  object-fit: cover;
  object-position: top center;
}

/* =========================================
   ABOUT PAGE — headshot
   ========================================= */

.about-photo-wrap {
  float: right;
  margin: 0.25rem 0 1.5rem 2.5rem;
}

.about-photo-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--teal-border);
  display: block;
}

/* =========================================
   RESPONSIVE additions for photos
   ========================================= */

@media (max-width: 768px) {
  .hero-split {
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
  }

  .hero-split .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-photo-wrap {
    display: none;
  }

  .hero-text {
    padding-bottom: 0;
  }

  .hero-split .hero-actions {
    justify-content: center;
  }

  .hero-split .badge-row {
    justify-content: center;
  }

  .about-photo-wrap {
    float: none;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
  }
}
