/* =========================================
   TOKENS
   ========================================= */
:root {
  --white:      #FFFFFF;
  --off-white:  #F7F7F5;
  --green:      #5A9E72;
  --green-lt:   #D6EDE0;
  --text:       #1C1C1A;
  --text-mid:   #5A5A55;
  --text-lt:    #9A9A94;
  --border:     #E4E4E0;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --max:        1080px;
  --pad-x:      40px;
  --pad-sect:   72px;

  --transition: .22s ease;

}

/* =========================================
   BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* =========================================
   TOP BAR
   ========================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  font-size: 1.20rem;
  color: var(--text);
  letter-spacing: 0.01em;
  font-family:var(--font-serif);
}
.topbar__name { font-weight: 500; }
.topbar__phone {
  transition: color 0.18s;
  font-family:var(--font-sans);
  color: var(--text);
}
.topbar__phone:hover { color: var(--green); }



/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 30vh;
  min-height: 200px;
  max-height: 320px;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 25, 0.52);
}
.hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--white);
}
.btn-contact {
  flex-shrink: 0;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,0.75);
  border-radius: 2px;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn-contact:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

/* =========================================
   INTRO (profile + project nav)
   ========================================= */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px var(--pad-x) 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Profile */
.intro__profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.profile__photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}
.profile__photo { width: 100%; height: 100%; object-fit: cover; }
.profile__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
}
.profile__job {
  font-size: 0.82rem;
  color: var(--text-lt);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.intro__bio {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}

.intro__quals {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.75;
  align-items: center;
}

.intro__quals::before {
  content: '';
  display: inline-block;
  width: 2.5px;
  height: 10px;
  background: var(--green);
  flex-shrink: 0;
  transition: width 0.16s;
}

/* Project nav */
.intro__section-title a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;

  display: inline-block;
  position: relative;
  padding-bottom: 3px;
}

.intro__section-title a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.1px;
  background: var(--green);
  border-radius: 1px;
}

.intro__section-title a:hover { color: var(--green); }

.project-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 1.00rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.16s;
  border-bottom: 1px solid var(--border);
}
.project-nav li:first-child {
  border-top: 1px solid var(--border);
}
.project-nav a {

}
.project-nav li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 4px;
  background: var(--green);
  flex-shrink: 0;
  transition: width 0.16s;
}
.project-nav li:hover {
  color: var(--text);
}
.project-nav li:hover::before {
  width: 20px;
}

/* =========================================
   SECTION ANCHORS (Why Me / Service)
   ========================================= */
.section-anchors {
  background: var(--off-white);
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--pad-x) 0px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--border);
}
.anchor-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  padding-top: 20px;

  display: inline-block;
  position: relative;
  padding-bottom: 3px;
}

.anchor-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}
.anchor-heading a:hover { color: var(--green); }

/* =========================================
   ABOUT + SERVICE
   ========================================= */
.about-service {
  background: var(--off-white);
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad-x) 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about__left {
  position: relative;
}

.about__left::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  right: -16px;      /* Move the divider right */
  width: 1px;

  background: var(--text-lt);
}

.service__right {
  margin-left: 0px;
}

/* =========================================
   PROJECTS
   ========================================= */
.projects {
  background: var(--white);
  padding: var(--pad-sect) 0;
}

/* Alternating rows */
.project-row {
  background: var(--off-white);
  max-width: var(--max);
  margin: 0 auto 0;
  padding: 40px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.project-row:first-child { border-top: 1px solid var(--border); }

.project-row--flip {
  grid-template-columns: auto 1fr;
}

.project-row__text { }
.project-row__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}
.project-row__text p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.project-row__img {
  width: 200px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--border);
}
.project-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full-width project */
.project-row__full {
  background: var(--off-white);
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  border-bottom: 1px solid var(--border);
}
.project-row__full .project-row__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}
.project-row__full p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 980px;
}

/* ==========================================================
   CONTACT
   ========================================================== */

.contact{
    padding:4rem 0;
}

.contact-inner{
    display:grid;
    grid-template-columns:1fr auto;
    gap:5rem;
    align-items:center;
}

.contact-copy h2{
    font-family:var(--font-serif);
    font-size:2rem;
    font-weight:400;
    margin-bottom:.8rem;
}

.contact-copy p{
    max-width:520px;
}

.contact-methods{
    display:flex;
    flex-direction:column;
    gap:1.75rem;
    align-items:flex-start;
}

.contact-link{
    display:flex;
    flex-direction:column;
    transition:var(--transition);
}

.contact-link span{
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.75rem;
    font-weight:600;
    color:var(--green);
    margin-bottom:.25rem;
}

.contact-link strong{
    font-size:1.15rem;
    font-weight:500;
}

.contact-link:hover{
    color:var(--green);
}



/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 760px) {
  :root {
    --pad-x: 20px;
    --pad-sect: 48px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 24px;
  }

  .section-anchors {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .project-row,
  .project-row--flip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-row--flip {
    /* Put image below text on mobile */
    direction: ltr;
  }
  .project-row__img {
    width: 100%;
    height: 180px;
  }

  .service-exp__body {
    grid-template-columns: 1fr;
  }
  .service-exp__img {
    width: 100%;
    height: 200px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer__copy { margin-left: 0; }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
