/* =============================================
   MADELEINE MOSS — PORTFOLIO
   Bold & Artistic | HTML/CSS/JS
   ============================================= */

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

:root {
  --black:       #1A0A0A;       /* rich near-black text */
  --off-black:   #F5E8DF;       /* soft light peach — alternate sections */
  --white:       #F5E8DF;       /* soft light peach — main bg */
  --cream:       #FBF3EE;       /* very light peach — cards & highlights */
  --accent:      #7A1528;       /* deep maroon */
  --accent-2:    #9b2335;       /* medium maroon */
  --muted:       #5C3A2E;       /* warm muted text */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --max-w:       1200px;
  --radius:      12px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- TYPOGRAPHY HELPERS --- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

#articles .section-title,
#video .section-title {
  color: #FBF3EE;
}

#articles .section-label,
#video .section-label {
  color: rgba(251,243,238,0.7);
}

#articles .section-subtitle,
#video .section-subtitle {
  color: rgba(251,243,238,0.8);
}

.section-subtitle {
  color: #444444;
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 520px;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
  margin-top: 2rem;
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all var(--transition);
  margin-top: 1.5rem;
}
.btn-secondary:hover { background: var(--accent); color: var(--black); }

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  transition: background var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  background: rgba(237,213,191,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,21,40,0.2);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.8;
  transition: opacity var(--transition), color var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F5E8DF;
}

/* Background decorative shapes */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.shape-1 {
  width: 600px; height: 600px;
  background: #6b1929;
  top: -150px; right: -200px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #6b1929;
  bottom: -100px; left: -100px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: #9b2335;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-name em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(26,10,10,0.65);
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 560px;
  margin: 0 auto;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26,10,10,0.5);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  padding: 8rem 0;
  background: var(--off-black);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  display: block;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--accent);
  border-radius: calc(var(--radius) + 8px);
  opacity: 0.25;
  pointer-events: none;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: rgba(26,10,10,0.75);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* =============================================
   ARTICLES
   ============================================= */
#articles {
  padding: 8rem 0;
  background: #7A1528;
  color: #FBF3EE;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #FBF3EE;
  color: var(--black);
  border: 1px solid rgba(245,232,216,0.3);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(107,25,41,0.4);
  box-shadow: 0 20px 60px rgba(107,25,41,0.1);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,169,110,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.card-excerpt {
  color: #3A1A10;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  transition: letter-spacing var(--transition);
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.card-link:hover { letter-spacing: 0.1em; }

.articles-cta {
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(245,232,216,0.2);
}

.articles-cta p {
  color: rgba(245,232,216,0.75);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* =============================================
   SOCIAL MEDIA WORK
   ============================================= */
#social {
  padding: 8rem 0;
  background: var(--off-black);
}

.campaign-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.campaign-intro-text h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.campaign-intro-text p {
  color: rgba(26,10,10,0.75);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.campaign-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.campaign-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}
.campaign-social-link:hover { opacity: 0.75; }
.campaign-social-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.campaign-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.social-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(107,25,41,0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(107,25,41,0.1);
}

.social-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f7f3f3, #e8c0c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444444;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background var(--transition);
}
.social-card:hover .social-card-img-placeholder {
  background: linear-gradient(135deg, #2a2024, #32242a);
}

.social-post-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.social-card-body {
  padding: 1.5rem;
}

.social-platform {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.social-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.social-card-body p {
  font-size: 0.88rem;
  color: rgba(26,10,10,0.7);
  line-height: 1.6;
}

/* =============================================
   VIDEO EDITING — COMING SOON
   ============================================= */
#video {
  padding: 8rem 0;
  background: #7A1528;
  color: #FBF3EE;
}

.coming-soon-box {
  text-align: center;
  padding: 5rem 2rem;
  border: 1px dashed rgba(245,232,216,0.3);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at center, rgba(245,232,216,0.07) 0%, transparent 70%);
  max-width: 640px;
  margin: 0 auto;
}

.coming-soon-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.6;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.coming-soon-box h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #FBF3EE;
}

.coming-soon-box p {
  color: rgba(245,232,216,0.75);
  font-size: 1rem;
  line-height: 1.8;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  padding: 8rem 0;
  background: var(--off-black);
}

.contact-inner {
  text-align: center;
}

.floral-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.floral-divider svg {
  width: 380px;
  max-width: 90%;
  color: var(--accent);
  opacity: 0.5;
}

.contact-inner .section-subtitle {
  margin: 0 auto 3rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.contact-social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact-social-btn.email {
  background: var(--accent);
  color: #FBF3EE;
}
.contact-social-btn.email:hover {
  background: #5A0E1C;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(122,21,40,0.3);
}

.contact-social-btn.phone {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.contact-social-btn.phone:hover {
  background: var(--accent);
  color: var(--cream);
  transform: translateY(-3px);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--off-black);
  border-top: 1px solid rgba(107,25,41,0.12);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: #444444;
  letter-spacing: 0.05em;
}

/* =============================================
   DECORATIVE CORNER WAVES
   ============================================= */
#articles, /* #about (wavy lines saved — uncomment to restore) */ #video {
  position: relative;
  overflow: hidden;
}

#articles::before, #video::before,
#articles::after, #video::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 120px;
  background-repeat: repeat-x;
  background-size: 120px 120px;
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M0,90 Q15,70 30,90 Q45,110 60,90 Q75,70 90,90 Q105,110 120,90' fill='none' stroke='%236b1929' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M0,70 Q15,50 30,70 Q45,90 60,70 Q75,50 90,70 Q105,90 120,70' fill='none' stroke='%236b1929' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M0,50 Q15,30 30,50 Q45,70 60,50 Q75,30 90,50 Q105,70 120,50' fill='none' stroke='%236b1929' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M0,30 Q15,10 30,30 Q45,50 60,30 Q75,10 90,30 Q105,50 120,30' fill='none' stroke='%236b1929' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  left: -25%;
}

/* =============================================
   ABOUT SECTION — SCATTERED DOTS
   ============================================= */
#about {
  position: relative;
  overflow: hidden;
}

.about-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

/* =============================================
   SOCIAL SECTION — DIAMOND PATTERN
   ============================================= */
#social {
  position: relative;
  overflow: hidden;
}

#social::before,
#social::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 28px;
  left: -25%;
  background-repeat: repeat-x;
  background-size: 40px 28px;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cpolygon points='20,2 38,14 20,26 2,14' fill='none' stroke='%236b1929' stroke-width='1.5'/%3E%3Cpolygon points='20,7 33,14 20,21 7,14' fill='none' stroke='%236b1929' stroke-width='1'/%3E%3C/svg%3E");
}

#social::before { top: 12px; }
#social::after  { bottom: 12px; }

/* Top: tilted so lines run across the top corner edge to edge */
#articles::before, #video::before {
  top: -30px;
  transform: rotate(-8deg);
  transform-origin: center center;
}

/* Bottom: tilted the other way across the bottom corner */
#articles::after, #video::after {
  bottom: -30px;
  transform: rotate(8deg);
  transform-origin: center center;
}



/* =============================================
   ANIMATIONS — FADE IN ON SCROLL
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-wrap { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .nav-toggle { display: block; z-index: 101; }

  .hero-name { font-size: clamp(3.5rem, 18vw, 5rem); }

  .cards-grid,
  .social-grid { grid-template-columns: 1fr; }

  .campaign-intro { grid-template-columns: 1fr; gap: 2rem; }
  .campaign-images-grid { grid-template-columns: 1fr 1fr; }

  #articles, #about, #social, #video, #contact { padding: 5rem 0; }
}
