/* ===========================
   JULIE STERN — Global Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --cream:    #F7F5F0;
  --charcoal: #364451;
  --navy:     #29292F;
  --sage:     #BFD5D2;
  --coral:    #EDAE9D;
  --white:    #FFFFFF;
  --mid-gray: #888C90;
  --light-border: #E2DDD6;
}

html {
  scroll-behavior: smooth;
  background-color: #E8D5B7;
}

body {
  background-color: #E8D5B7;
  color: var(--charcoal);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.03em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* --- Utility --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1.2rem;
}

.divider {
  width: 50px;
  height: 2px;
  background: var(--sage);
  margin: 1.5rem 0;
}

.divider--center {
  margin: 1.5rem auto;
}

/* ===========================
   NAVIGATION
   =========================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #E8D5B7 !important;
  border-bottom: 1px solid var(--light-border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--charcoal);
}

.nav-logo span {
  font-style: italic;
}

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

.nav-links a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.25s ease;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2D5A3D;
  border-bottom-color: #2D5A3D;
}

.nav-links a.nav-contact-btn {
  background: #2D5A3D;
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  border-bottom: none;
}

.nav-links a.nav-contact-btn:hover {
  background: #1E3D2A;
  color: var(--white);
  border-bottom: none;
}

/* ===========================
   PAGE WRAPPER
   =========================== */
.page-content {
  padding-top: 68px; /* offset for fixed nav */
}

/* ===========================
   HERO / BANNER
   =========================== */
.hero {
  padding: 7rem 2rem 5rem;
  text-align: center;
  background-color: #2D5A3D;
  background-image: url('julie_stethoscopes.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero__eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 0.2rem;
  color: var(--white);
}

.hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero__rule {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin: 0 auto 2rem;
}

.hero__intro {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
  padding: 5rem 0 6rem;
  background-color: #E8D5B7;
}

.about-section h2 {
  color: #111111;
}

.about-section .section-label {
  color: #444444;
}

.about-section .divider {
  background: var(--sage);
}

.about-section .about-body p {
  color: #111111;
}

.about-section .about-tagline {
  color: #111111;
  border-left-color: var(--coral);
}

.about-section .btn--outline {
  color: #111111;
  border-color: #111111;
}

.about-section .btn--outline:hover {
  background: #111111;
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: stretch;
}

.about-image {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-image__frame {
  width: 100%;
  flex: 1;
  min-height: 320px;
  max-height: 480px;
  background: var(--sage);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image__placeholder {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  opacity: 0.5;
  text-align: center;
  padding: 2rem;
}

.about-image__accent {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--coral);
  border-radius: 2px;
  z-index: -1;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.about-col p {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .about-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.about-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--charcoal);
  border-left: 3px solid var(--coral);
  padding: 0.6rem 0 0.6rem 1.2rem;
  margin: 1.8rem 0 2rem;
  line-height: 1.4;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
  background: #2D5A3D;
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
}

.contact-section h2 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.contact-section p {
  color: rgba(255,255,255,0.9);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
}

.contact-form-col h2 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.contact-form-col p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.contact-photo-col {
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  align-self: stretch;
}

.contact-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.contact-section {
  text-align: left;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-photo-col {
    max-height: 320px;
  }
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sage);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.4rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn--primary {
  background: var(--coral);
  color: var(--white);
  border-radius: 2px;
}

.btn--primary:hover {
  background: #be7558;
}

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  border-radius: 2px;
}

.btn--outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 2px;
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ===========================
   PAGE HEADER (interior pages)
   =========================== */
.page-header {
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: none;
  background-color: #2D5A3D;
}

.page-header h1 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.page-header .section-label {
  color: rgba(255,255,255,0.75);
}

.page-header .divider {
  background: rgba(255,255,255,0.4);
}

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

/* ===========================
   WRITING PAGE
   =========================== */
.writing-section {
  padding: 5rem 0 0;
  background-color: #E8D5B7;
}

.writing-intro {
  text-align: center;
  margin-bottom: 4rem;
}

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

.writing-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 3px;
  padding: 2.2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.writing-card:hover {
  box-shadow: 0 8px 32px rgba(54,68,81,0.09);
  transform: translateY(-3px);
}

.writing-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.9rem;
}

.writing-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.writing-card__excerpt {
  font-size: 0.92rem;
  color: var(--mid-gray);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.5rem;
}

.writing-card__link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 2px solid var(--sage);
  padding-bottom: 2px;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.writing-card__link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* PDF Cards */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 3px;
  padding: 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.pdf-card:hover {
  box-shadow: 0 6px 24px rgba(54,68,81,0.09);
  transform: translateY(-2px);
}

.pdf-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}

.pdf-card__icon svg {
  width: 20px;
  height: 20px;
}

.pdf-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.25rem;
}

.pdf-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.pdf-card__meta {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-bottom: 0;
}

/* Publication placeholder */
.publication-strip {
  background: #2D5A3D;
  padding: 3rem 2rem 4rem;
  margin-top: 5rem;
}

.publication-strip p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0;
}

.publication-strip .section-label {
  color: rgba(255,255,255,0.75);
}

.publication-strip .divider {
  background: rgba(255,255,255,0.4);
}

/* ===========================
   BLOG PAGE
   =========================== */
.blog-section {
  padding: 5rem 0 0;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-post-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.blog-post-card:hover {
  box-shadow: 0 6px 28px rgba(54,68,81,0.08);
}

.blog-post-card__date-col {
  background: #2D5A3D;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  text-align: center;
}

.blog-post-card__month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.blog-post-card__day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin: 0.2rem 0;
}

.blog-post-card__year {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.65);
}

.blog-post-card__body {
  padding: 1.8rem 2rem;
}

.blog-post-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.blog-post-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.blog-post-card__excerpt {
  font-size: 0.92rem;
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.blog-post-card__status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #2D5A3D;
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: #E8D5B7;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: #444444;
  padding: 3rem 2rem;
  text-align: center;
}

.site-footer__name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: #111111;
  margin-bottom: 0.8rem;
}

.site-footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.site-footer__links a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #444444;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--coral);
}

.site-footer__copy {
  font-size: 0.78rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image__accent {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .blog-post-card {
    grid-template-columns: 1fr;
  }

  .blog-post-card__date-col {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    min-width: unset;
  }

  .blog-post-card__day {
    font-size: 1.4rem;
  }

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 540px) {
  .site-nav {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
}
