/* =========================================
   GOOGLE FONTS (Montserrat & Barlow)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;1,400;1,600&family=Montserrat:wght@400;500;600;700&display=swap');

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

:root {
  --bg-color: #ffffff;
  --surface-color: #f7f8f9;
  --text-primary: #222222;
  --text-body: #595959;
  --brand-teal: #0C5C78;
  --duck-blue: #1b6e8a;
  --brand-wheat: #ffe4a4;
  --border-color: #e6e8ea;
  --max-width: 1200px;
  --font-main: 'Montserrat', 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--duck-blue);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--brand-teal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 0;
  padding-top: 0;
}

p {
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 1.15rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Screen-reader only text (for hidden site title when logo is shown) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  border-bottom: none;
  padding: 28px 0;
  margin-bottom: 48px;
  background-color: var(--bg-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.custom-logo {
  height: 50px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text-primary);
  font-weight: 400;
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-teal);
  border-bottom-color: var(--brand-teal);
}

/* =========================================
   HERO INTRO (HOME / WORK PAGE)
   ========================================= */
.hero-intro {
  max-width: 760px;
  margin-bottom: 64px;
}

.hero-intro .role-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--duck-blue);
  margin-bottom: 10px;
}

.hero-intro h1 {
  font-size: 46px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-intro p {
  font-size: 20px;
  color: var(--text-body);
}

/* =========================================
   PORTFOLIO LIST (WORK PAGE)
   ========================================= */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background-color: #efefef;
}

.project-card:nth-child(even) .project-image {
  order: 2;
}

.project-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

/* Original Project Accent Backgrounds */
.bg-ansi         { background-color: #6ED2EF; }
.bg-dome         { background-color: #EFBB6E; }
.bg-audeee       { background-color: #6EEFB0; }
.bg-pure         { background-color: #610916; }
.bg-cpe          { background-color: #86b0b4; }
.bg-onetouch     { background-color: #92336a; }
.bg-cyc          { background-color: #b6e4fb; }
.bg-blockshop    { background-color: #9288a2; }
.bg-illustration { background-color: #238599; }

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 50px;
  background-color: #efefef;
}

.project-category {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 6px;
}

.project-content h2 {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.project-content h2 a {
  color: var(--text-primary);
}

/* Original Theme Helper Classes */
.duck-blue h2,
.duck-blue h2 a {
  color: #1b6e8a;
}

.duck-blue h2 a:hover {
  color: #0C5C78;
}

.wheat h2,
.wheat h2 a {
  color: #ffe4a4;
}

.white-text h2,
.white-text h3,
.white-text p {
  color: #ffffff;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background-color: #0C5C78;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  border-radius: 4px;
  margin-top: 10px;
}

.btn:hover {
  background-color: #1b6e8a;
  color: #ffffff;
}

/* =========================================
   ABOUT PAGE (Original 5/7 Col Split & 46px Headers)
   ========================================= */
.about-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  padding-top: 40px;
  align-items: start;
}

.about-row:first-of-type {
  padding-top: 0;
}

.portrait-img {
  width: 100%;
  border: 1px solid #e0e0e0;
}

.about-header {
  font-size: 46px;
  line-height: 40px;
  font-weight: 400;
  color: var(--text-primary);
}

.about-intro a {
  color: var(--duck-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-intro a:hover {
  color: var(--brand-teal);
}

.skills-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skills-two-col ul {
  list-style: none;
}

.skills-two-col li {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.8;
}

.resume-item {
  margin-bottom: 24px;
}

.resume-item strong {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.resume-item p {
  margin-bottom: 0;
}

/* =========================================
   CASE STUDY / PORTFOLIO DETAIL PAGES
   ========================================= */
.case-section {
  padding-top: 10px;
  padding-bottom: 40px;
}

.case-tagline {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.project-meta-grid h3,
.case-overview h3,
.case-two-col h3,
.case-banner h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.case-overview {
  margin-bottom: 40px;
}

.case-hero-image {
  max-width: 880px;
  margin: 0 auto 48px;
}

.case-full-image {
  margin: 0;
  width: 100%;
}

.case-full-image img {
  width: 100%;
  height: auto;
}

.case-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 28px 0;
}

/* Full-width colored callout banner (e.g., Solution section) */
.case-banner {
  padding: 48px 0;
  margin: 24px 0 40px;
}

.bg-teal {
  background-color: #0c5c78;
}

.case-banner-content {
  max-width: 760px;
}

/* Full-width parallax image divider */
.case-parallax-banner {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Full-width light gray feature band */
.case-band {
  padding: 48px 0;
}

.bg-light-gray {
  background-color: #efefef;
}

.back-to-portfolio {
  text-align: center;
  padding: 48px 0 16px;
}

.back-to-portfolio h2 {
  font-size: 28px;
}

.back-to-portfolio a {
  color: var(--duck-blue);
}

.back-to-portfolio a:hover {
  color: var(--brand-teal);
}

.case-gallery-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.case-gallery-row img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .case-gallery-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   FOOTER (Matches Original #0C5C78 Full-Width Bar)
   ========================================= */
.site-footer {
  margin-top: 64px;
  padding: 40px 0;
  background-color: var(--brand-teal);
  color: #ffffff;
  text-align: center;
}

.site-footer p {
  color: #ffffff;
  margin-bottom: 0;
  font-size: 16px;
}

/* =========================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================= */
@media (max-width: 820px) {
  .project-card,
  .about-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card:nth-child(even) .project-image {
    order: 0;
  }

  .about-header,
  .hero-intro h1,
  .page-header h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  .portrait-img {
    max-width: 360px;
  }
}