/* ============================================================
   Jenn Gifford Designs — Custom CSS
   ============================================================ */

/* --- Google Fonts Preconnect Hint --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Caveat:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #e8ebe4;
  color: #2d3a3a;
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}

a { color: #2d5f6e; text-decoration: none; }
a:hover { color: #6b4572; }

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
.wp-block-template-part.site-header,
header.site-header,
.jgd-header {
  background-color: #2d5f6e;
  padding: 0;
}

/* Accent stripes in header — three vertical colored bars like mockup */
.jgd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  position: relative;
}

.jgd-header-stripes {
  display: flex;
  gap: 4px;
  align-items: stretch;
  height: 36px;
  margin: 0 1.5rem;
}
.jgd-header-stripes span {
  display: block;
  width: 8px;
  border-radius: 2px;
}
.jgd-header-stripes .stripe-1 { background: #8a7a9b; }
.jgd-header-stripes .stripe-2 { background: #7a9e96; }
.jgd-header-stripes .stripe-3 { background: #c4515a; }

/* Site title in header */
.wp-block-site-title a,
.jgd-site-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-decoration: none;
}

/* Navigation links */
.wp-block-navigation a,
.wp-block-navigation__container a {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}
.wp-block-navigation a:hover {
  color: #c4d8d4 !important;
}

/* ============================================================
   HOMEPAGE — DIAGONAL SPLIT LAYOUT
   ============================================================ */
.jgd-homepage {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* Left panel — sage background with name, photo, tagline */
.jgd-home-left {
  background-color: #e8ebe4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  z-index: 2;
  /* Diagonal right edge */
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}

.jgd-home-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid #ffffff;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(45,63,70,0.15);
}

.jgd-home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jgd-home-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2d5f6e;
  text-align: center;
  margin: 0 0 0.75rem;
}

.jgd-home-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: #2d5f6e;
  text-align: center;
  font-style: italic;
  line-height: 1.4;
}

/* Right panel — stacked colored sections */
.jgd-home-right {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  margin-left: -8%;
}

.jgd-home-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter 0.25s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.jgd-home-panel:hover {
  filter: brightness(1.08);
}

.jgd-home-panel--resume   { background-color: #7a9e96; }
.jgd-home-panel--creative { background-color: #2d5f6e; }
.jgd-home-panel--maker    { background-color: #6b4572; }

.jgd-home-panel-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Social icons row in bottom-right of homepage */
.jgd-home-social {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.jgd-home-social a {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}
.jgd-home-social a:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.15);
}

/* ============================================================
   SUBPAGE LAYOUT
   ============================================================ */
.jgd-subpage-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Content card — white rounded card like mockup */
.jgd-content-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(45,63,70,0.07);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.jgd-content-card__image {
  border-radius: 8px;
  overflow: hidden;
  background: #e8ebe4;
  min-height: 160px;
}

.jgd-content-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jgd-content-card__text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  color: #2d5f6e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}

.jgd-content-card__text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: #7a9e96;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  font-weight: 400;
}

.jgd-content-card__text p {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #2d3a3a;
  margin: 0 0 1.25rem;
}

/* Buttons */
.wp-block-button__link,
.jgd-btn {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background-color: #2d5f6e !important;
  color: #ffffff !important;
  border-radius: 4px;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}
.wp-block-button__link:hover,
.jgd-btn:hover {
  background-color: #6b4572 !important;
  color: #ffffff !important;
}

/* Section color accent bars for subpages */
.jgd-section-resume   .jgd-section-bar { background: #7a9e96; }
.jgd-section-creative .jgd-section-bar { background: #2d5f6e; }
.jgd-section-maker    .jgd-section-bar { background: #6b4572; }

.jgd-section-bar {
  height: 6px;
  border-radius: 3px;
  margin-bottom: 2rem;
}

/* Page title bar */
.jgd-page-title-bar {
  padding: 2.5rem 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.jgd-page-title-bar h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  color: #2d5f6e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ============================================================
   RESUME PAGE SPECIFICS
   ============================================================ */
.jgd-resume-job {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d5dbd4;
}

.jgd-resume-job:last-child { border-bottom: none; }

.jgd-resume-job__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.jgd-resume-job__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d5f6e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jgd-resume-job__company {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: #7a9e96;
  font-weight: 400;
}

.jgd-resume-job__dates {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: #7a8a8a;
  font-style: italic;
}

.jgd-resume-job ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.jgd-resume-job ul li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #2d3a3a;
  margin-bottom: 0.3rem;
}

/* Skills grid */
.jgd-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.jgd-skill-category {
  background: #e8ebe4;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.jgd-skill-category h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2d5f6e;
  margin: 0 0 0.5rem;
}

.jgd-skill-category p {
  font-size: 0.88rem;
  color: #2d3a3a;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.jgd-footer {
  background-color: #2d5f6e;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jgd-footer-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.jgd-footer-social {
  display: flex;
  gap: 0.75rem;
}

.jgd-footer-social a {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.jgd-footer-social a:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.15);
}

/* Footer accent stripes */
.jgd-footer-stripes {
  display: flex;
  gap: 4px;
  align-items: stretch;
  height: 28px;
}
.jgd-footer-stripes span {
  display: block;
  width: 8px;
  border-radius: 2px;
}

/* ============================================================
   MAKER SPACE — GRID GALLERY
   ============================================================ */
.jgd-maker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.jgd-maker-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(45,63,70,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jgd-maker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45,63,70,0.13);
}

.jgd-maker-card__image {
  aspect-ratio: 4/3;
  background: #e8ebe4;
  overflow: hidden;
}

.jgd-maker-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.jgd-maker-card:hover .jgd-maker-card__image img {
  transform: scale(1.04);
}

.jgd-maker-card__info {
  padding: 1rem 1.25rem;
}

.jgd-maker-card__info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: #6b4572;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}

.jgd-maker-card__info p {
  font-size: 0.88rem;
  color: #2d3a3a;
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   CREATIVE PORTFOLIO GRID
   ============================================================ */
.jgd-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.jgd-portfolio-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(45,63,70,0.08);
  transition: transform 0.2s ease;
}

.jgd-portfolio-item:hover {
  transform: translateY(-3px);
}

.jgd-portfolio-item__image {
  aspect-ratio: 16/9;
  background: #e8ebe4;
  overflow: hidden;
}

.jgd-portfolio-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jgd-portfolio-item__info {
  padding: 1rem 1.25rem;
  border-top: 3px solid #2d5f6e;
}

.jgd-portfolio-item__info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: #2d5f6e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
}

.jgd-portfolio-item__info p {
  font-size: 0.875rem;
  color: #5a6a6a;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .jgd-homepage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .jgd-home-left {
    clip-path: none;
    padding: 3rem 2rem;
  }

  .jgd-home-right {
    margin-left: 0;
    min-height: 300px;
  }

  .jgd-home-panel-label {
    font-size: 1.5rem;
  }

  .jgd-content-card {
    grid-template-columns: 1fr;
  }

  .jgd-header-inner {
    padding: 0.75rem 1rem;
  }

  .jgd-page-title-bar {
    padding: 1.5rem 1rem 1rem;
  }

  .jgd-subpage-content {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .jgd-home-name { font-size: 1.6rem; }
  .jgd-home-tagline { font-size: 1.1rem; }
  .jgd-home-photo { width: 130px; height: 130px; }
}
